/* ---------- Design tokens ---------- */
:root{
  --blue: #3E86C6;
  --blue-dark: #2A5F91;
  --blue-darker: #1D4468;
  --blue-light: #A0CAED;
  --blue-tint: #EAF3FB;
  --ink: #0B1220;
  --ink-soft: #46536A;
  --white: #FFFFFF;
  --bg-alt: #F4F8FC;
  --border: #E1E9F2;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(11, 18, 32, 0.12);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus{ left: 12px; top: 12px; border-radius: var(--radius-sm); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--blue-dark); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue-dark); }
.btn-white{ background: #fff; color: var(--blue-darker); }
.btn-white:hover{ background: var(--blue-tint); }
.btn-outline-white{ background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg{ padding: 15px 30px; font-size: 1rem; }
.btn-sm{ padding: 9px 18px; font-size: .875rem; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled{
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
  gap: 20px;
}
.brand-logo{ height: 68px; width: auto; }
.nav{ display: flex; gap: 22px; }
.nav a{
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover{ color: var(--blue-dark); }
.nav a::after{
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--blue);
  transition: width .2s ease;
}
.nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.header-phone{
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink-soft); font-size: .9rem;
}
.header-phone svg{ width: 17px; height: 17px; color: var(--blue); }
.header-phone:hover{ color: var(--blue-dark); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle span{ display: block; height: 2px; width: 22px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-tint) 0%, #ffffff 65%);
  padding: 88px 0 64px;
}
.hero-net{
  position: absolute; top: -70px; right: -140px;
  width: min(720px, 78vw); height: min(720px, 78vw);
  opacity: .5;
  pointer-events: none;
}
.hero-net img{ width: 100%; height: 100%; object-fit: contain; }
.hero-inner{ position: relative; max-width: 720px; }
.eyebrow{
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--blue-dark); margin-bottom: 14px;
}
.hero h1{
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  margin-bottom: .45em;
}
.hero h1 span{ color: var(--blue); }
.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 2em;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2.6em; }
.hero-stats{ display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li{ display: flex; flex-direction: column; }
.hero-stats strong{ font-family: var(--font-head); font-size: 1.7rem; color: var(--blue-darker); }
.hero-stats span{ font-size: .85rem; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.trust-strip{ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust-inner{
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  padding: 20px 24px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .03em;
  color: var(--blue-dark); font-size: .9rem; text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section{ padding: 88px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub{ font-size: 1.02rem; }

/* ---------- Services ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}
.service-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue-dark);
  margin-bottom: 18px;
}
.service-icon svg{ width: 26px; height: 26px; }
.service-card h3{ font-size: 1.08rem; margin-bottom: .4em; }
.service-card p{ font-size: .93rem; margin-bottom: 0; }

/* ---------- Why grid ---------- */
.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.why-num{
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.6rem; color: var(--blue-light); margin-bottom: 10px;
}
.why-card h3{ font-size: 1.05rem; }
.why-card p{ font-size: .92rem; margin-bottom: 0; }

/* ---------- Nosotros ---------- */
.nosotros-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.nosotros-text p{ font-size: 1.02rem; }
.nosotros-art{
  background: linear-gradient(160deg, var(--blue-tint), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
}
.nosotros-art img{ width: 100%; max-width: 260px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--blue-darker), var(--blue-dark) 60%, var(--blue));
  padding: 72px 0;
}
.cta-inner{ text-align: center; max-width: 640px; margin: 0 auto; }
.cta-banner h2{ color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p{ color: rgba(255,255,255,.85); font-size: 1.02rem; }
.cta-inner .hero-actions{ justify-content: center; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row{ margin-bottom: 18px; }
.form-row-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label{ display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea{
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint);
}
.form-row textarea{ resize: vertical; }
.form-note{ font-size: .82rem; color: var(--ink-soft); margin: -6px 0 18px; }
.form-status{ font-size: .88rem; margin: 14px 0 0; text-align: center; min-height: 1.2em; }
.form-status.is-success{ color: #1a7f4b; font-weight: 600; }
.form-status.is-error{ color: #c0392b; font-weight: 600; }

.contact-info{ display: flex; flex-direction: column; gap: 20px; }
.info-card{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card-alt{ background: var(--blue-tint); }
.info-card h3{ font-size: 1.05rem; }
.info-card ul{ display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.info-card li{ display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.info-card li svg{ width: 19px; height: 19px; flex: none; color: var(--blue); margin-top: 2px; }
.info-card li a:hover{ color: var(--blue-dark); }
.map-link{ font-weight: 600; font-size: .9rem; color: var(--blue-dark); }
.map-link:hover{ text-decoration: underline; }
.info-card .muted{ font-size: .85rem; color: var(--ink-soft); margin-top: 4px; margin-bottom: 0; }
.info-card p{ margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); padding: 44px 0; }
.footer-inner{
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo{ height: 26px; width: auto; }
.footer-nav{ display: flex; gap: 24px; }
.footer-nav a{ color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; }
.footer-nav a:hover{ color: #fff; }
.footer-copy{ color: rgba(255,255,255,.5); font-size: .82rem; margin: 0; width: 100%; text-align: center; order: 3; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.whatsapp-fab svg{ width: 28px; height: 28px; }
.whatsapp-fab:hover{ transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .header-phone{ display: none; }
}

@media (max-width: 980px){
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .nosotros-inner{ grid-template-columns: 1fr; }
  .nosotros-art{ order: -1; padding: 26px; }
  .nosotros-art img{ max-width: 180px; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav, .header-phone{ display: none; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-sm{ padding: 8px 16px; font-size: .82rem; }

  .site-header.nav-open .nav{
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 18px 24px 24px; gap: 4px; box-shadow: var(--shadow-sm);
  }
  .site-header.nav-open .nav a{ padding: 10px 0; }

  .hero{ padding: 56px 0 44px; }
  .hero-net{ opacity: .3; width: 100vw; height: 100vw; top: -30px; right: -220px; }
  .hero-stats{ gap: 26px; }

  .section{ padding: 60px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .form-row-split{ grid-template-columns: 1fr; }

  .footer-inner{ justify-content: center; text-align: center; }
  .footer-nav{ order: 2; justify-content: center; flex-wrap: wrap; }
}
