/* ===== MC Compusoluciones — estilos ===== */

:root{
  --green: #8DC63F;
  --green-dark: #5c9a1f;
  --green-deep: #2E410A;
  --blue: #1D99F9;
  --blue-dark: #0f7fd6;
  --ink: #26321a;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --bg: #EDEDED;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(30,40,10,0.08);
  --shadow-lg: 0 10px 30px rgba(30,40,10,0.14);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height:1.5;
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

.container{
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:0 24px;
}

section{ padding:88px 0; }

h1,h2,h3{ color:var(--ink); font-weight:800; line-height:1.2; }

.eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--blue-dark);
  background:rgba(29,153,249,0.1);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}

.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 48px auto;
}
.section-head h2{ font-size:34px; margin-bottom:12px; }
.section-head p{ color:var(--muted); font-size:17px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 26px;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg{ width:18px; height:18px; flex:0 0 auto; }
.btn:hover{ transform:translateY(-2px); }

.btn-primary{
  background: linear-gradient(135deg,#25c563,#1fae56);
  color:#fff;
  box-shadow:0 8px 20px rgba(37,197,99,0.35);
}
.btn-primary:hover{ box-shadow:0 12px 26px rgba(37,197,99,0.45); }

.btn-blue{
  background: linear-gradient(135deg,#39b3ff,var(--blue));
  color:#fff;
  box-shadow:0 8px 20px rgba(29,153,249,0.35);
}
.btn-blue:hover{ box-shadow:0 12px 26px rgba(29,153,249,0.45); }

.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:#dcdfd4;
}
.btn-ghost:hover{ border-color:var(--green-dark); color:var(--green-dark); }

.btn-ghost-light{
  background:rgba(255,255,255,0.12);
  color:#fff;
  border-color:rgba(255,255,255,0.5);
}
.btn-ghost-light:hover{ background:rgba(255,255,255,0.2); }

/* ===== Header ===== */
.topbar{
  background:var(--ink);
  color:#e9ede0;
  font-size:13px;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:8px;
  padding-bottom:8px;
  flex-wrap:wrap;
  gap:8px;
}
.topbar a{ display:inline-flex; align-items:center; gap:6px; }
.topbar a:hover{ color:var(--green); }
.topbar svg{ width:14px; height:14px; }
.topbar-links{ display:flex; gap:20px; flex-wrap:wrap; }

header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid #eee;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:44px; width:auto; }
.brand-name{ font-weight:800; color:var(--ink); font-size:17px; line-height:1.1; }
.brand-name span{ display:block; font-size:11px; font-weight:600; color:var(--green-dark); letter-spacing:1px; }

.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
  font-weight:600;
  font-size:15px;
}
.nav-links a{ color:var(--text); position:relative; padding:4px 0; }
.nav-links a:hover{ color:var(--green-dark); }

.nav-cta{ display:flex; align-items:center; gap:14px; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:40px; height:40px;
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:26px; height:26px; }

/* ===== Hero ===== */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(29,153,249,0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(141,198,63,0.16), transparent 60%),
    linear-gradient(180deg, #F7F8F4 0%, #ffffff 100%);
  padding:80px 0 60px 0;
}
.hero .container{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:48px;
  align-items:center;
}
.hero h1{ font-size:46px; margin-bottom:20px; letter-spacing:-0.5px; }
.hero h1 span{ color:var(--blue); }
.hero p.lead{ font-size:18px; color:var(--muted); margin-bottom:30px; max-width:520px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:34px; }

.hero-trust{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  font-size:13.5px;
  color:var(--muted);
  font-weight:600;
}
.hero-trust div{ display:flex; align-items:center; gap:8px; }
.hero-trust svg{ width:18px; height:18px; color:var(--green-dark); flex:0 0 auto; }

.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; }

/* ===== Marquee servicios chips ===== */
.chips{
  background:var(--ink);
  padding:16px 0;
  overflow:hidden;
}
.chips-track{
  display:flex;
  gap:14px;
  white-space:nowrap;
  animation:scroll 26s linear infinite;
  width:max-content;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,0.08);
  color:#e9ede0;
  border:1px solid rgba(255,255,255,0.12);
  padding:8px 16px;
  border-radius:999px;
  font-size:13.5px;
  font-weight:600;
}
.chip svg{ width:14px; height:14px; color:var(--green); }
@keyframes scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* ===== Servicios ===== */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
.svc-card{
  background:var(--card);
  border:1px solid #eef0ea;
  border-radius:var(--radius);
  padding:30px 26px;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}
.svc-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.svc-icon{
  width:56px; height:56px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  margin-bottom:20px;
}
.svc-card.blue .svc-icon{ background:linear-gradient(135deg,#39b3ff,var(--blue)); }
.svc-icon svg{ width:28px; height:28px; }
.svc-card h3{ font-size:19px; margin-bottom:10px; }
.svc-card p{ color:var(--muted); font-size:14.5px; }

/* ===== Por qué elegirnos ===== */
.why{
  background:var(--bg);
  position:relative;
}
.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.why-item{ text-align:center; }
.why-icon{
  width:64px; height:64px;
  margin:0 auto 16px auto;
  border-radius:50%;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow);
}
.why-icon svg{ width:30px; height:30px; color:var(--green-dark); }
.why-item h3{ font-size:16.5px; margin-bottom:8px; }
.why-item p{ color:var(--muted); font-size:14px; }

/* ===== Sobre nosotros ===== */
.about .container{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
  align-items:center;
}
.about-art{ position:relative; }
.about-art svg{ width:100%; height:auto; }
.about h2{ font-size:32px; margin-bottom:18px; }
.about p{ color:var(--muted); font-size:16px; margin-bottom:16px; }
.about-list{ list-style:none; margin-top:22px; display:flex; flex-direction:column; gap:12px; }
.about-list li{ display:flex; align-items:flex-start; gap:10px; font-weight:600; color:var(--ink); font-size:15px; }
.about-list svg{ width:20px; height:20px; color:var(--green-dark); flex:0 0 auto; margin-top:1px; }

/* ===== CTA banda ===== */
.cta-band{
  background:linear-gradient(120deg,#1D99F9,#0f7fd6 60%, #1abf6b);
  color:#fff;
  padding:64px 0;
  text-align:center;
}
.cta-band h2{ color:#fff; font-size:30px; margin-bottom:14px; }
.cta-band p{ color:rgba(255,255,255,0.9); font-size:16.5px; margin-bottom:30px; }
.cta-buttons{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ===== Contacto ===== */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:22px;
  margin-bottom:44px;
}
.contact-card{
  background:var(--card);
  border:1px solid #eef0ea;
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
  text-align:center;
}
.contact-card .svc-icon{ margin:0 auto 16px auto; }
.contact-card h3{ font-size:16px; margin-bottom:8px; }
.contact-card p, .contact-card a{ color:var(--muted); font-size:14.5px; word-break:break-word; }
.contact-card a:hover{ color:var(--blue-dark); }

/* ===== Footer ===== */
footer{
  background:var(--ink);
  color:#c9d0bd;
  padding:56px 0 24px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-brand img{ height:40px; }
.footer-brand span{ color:#fff; font-weight:800; font-size:17px; }
footer h4{ color:#fff; font-size:14.5px; margin-bottom:16px; letter-spacing:0.5px; }
footer ul{ list-style:none; display:flex; flex-direction:column; gap:10px; font-size:14px; }
footer ul a{ color:#c9d0bd; }
footer ul a:hover{ color:var(--green); }
footer p.desc{ font-size:14px; color:#b7bfa8; max-width:340px; }
.footer-bottom{
  padding-top:22px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:#9aa38a;
  flex-wrap:wrap; gap:10px;
}

/* WhatsApp floating button */
.wa-float{
  position:fixed;
  bottom:22px; right:22px;
  width:60px; height:60px;
  border-radius:50%;
  background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(37,211,102,0.5);
  z-index:60;
  transition:transform .15s ease;
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:30px; height:30px; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:340px; margin:0 auto; }
  .about .container{ grid-template-columns:1fr; }
  .about-art{ order:-1; max-width:320px; margin:0 auto; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
}

@media (max-width: 760px){
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .nav.open .nav-links{
    display:flex;
    position:absolute;
    top:100%; left:0; right:0;
    background:#fff;
    flex-direction:column;
    padding:20px 24px;
    gap:18px;
    border-bottom:1px solid #eee;
    box-shadow:var(--shadow);
  }
  section{ padding:60px 0; }
  .hero{ padding:50px 0 40px 0; }
  .hero h1{ font-size:32px; }
  .section-head h2{ font-size:26px; }
  .services-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .topbar .container{ justify-content:center; text-align:center; }
}
