/* ============================================================
   CONTROLES TÉRMICOS — token system
   Frío (azul) ⟷ Calor (naranjo): la dualidad del logo, aplicada
   como hilo conductor estructural, no solo decorativo.
   ============================================================ */
:root{
  --ink:        #0F2A47;   /* fondo oscuro frío (hero, footer) */
  --ink-2:      #0A2038;   /* fondo oscuro, un paso más profundo */
  --frio:       #2E6FB7;   /* azul del copo de nieve */
  --frio-soft:  #E4EEF9;
  --calor:      #ED9222;   /* naranjo del sol */
  --calor-soft: #FBEBD3;
  --paper:      #F5F7FA;
  --paper-2:    #FFFFFF;
  --text:       #121A24;
  --text-muted: #5B6B7C;
  --line:       #E2E7EC;

  --display: 'Barlow Condensed', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --wrap: 1180px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
.wrap{ max-width: var(--wrap); margin:0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------- eyebrow / headings ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--frio);
  margin-bottom: 14px;
  display:block;
}
.eyebrow--light{ color: var(--calor); }

.h2{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--ink);
}
.h2--light{ color:#fff; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 26px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1.5px solid transparent;
}
.btn--primary{
  background: var(--calor);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(237,146,34,.6);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(237,146,34,.7); }
.btn--ghost{
  border-color: rgba(255,255,255,.35);
  color:#fff;
}
.btn--ghost:hover{ border-color:#fff; background: rgba(255,255,255,.08); }

/* ============================================================
   SCROLL GAUGE — barra superior que va de azul a naranjo
   a medida que se avanza en la página (frío ⟶ calor).
   ============================================================ */
.scroll-gauge{
  position: fixed; top:0; left:0; right:0; height:3px;
  background: rgba(15,42,71,.08);
  z-index: 1000;
}
.scroll-gauge__fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--frio), var(--calor));
}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: sticky; top:3px; z-index: 900;
  background: rgba(15,42,71,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner{
  max-width: var(--wrap); margin:0 auto; padding: 14px 24px;
  display:flex; align-items:center; gap: 28px;
}
.nav__brand{ display:flex; align-items:center; gap:10px; margin-right:auto; }
.nav__logo{ height:34px; width:auto; }
.nav__word{
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  color:#fff;
}
.nav__word em{ font-style:normal; color: var(--calor); }
.nav__links{ display:flex; gap:26px; }
.nav__links a{
  font-size: 14px; font-weight:500; color: rgba(255,255,255,.75);
  transition: color .15s ease;
}
.nav__links a:hover{ color:#fff; }
.nav__cta{
  background: var(--calor); color:#fff; font-weight:600; font-size:14px;
  padding: 10px 18px; border-radius: 999px; white-space:nowrap;
}
.nav__burger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav__burger span{ width:22px; height:2px; background:#fff; display:block; }

/* ============================================================
   HERO — la dualidad frío/calor del logo, a escala de página
   ============================================================ */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex; flex-direction:column; justify-content:center;
  padding: 140px 24px 80px;
  background: var(--ink);
  overflow:hidden;
  isolation:isolate;
}
.hero__seam{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(1100px 700px at 12% 15%, rgba(46,111,183,.55), transparent 60%),
    radial-gradient(1100px 750px at 92% 85%, rgba(237,146,34,.42), transparent 60%),
    var(--ink);
}
.hero__inner{ max-width: 760px; margin: 0 auto; text-align:center; }
.hero__title{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 22px;
}
.tag{
  font-family: var(--mono);
  font-size: .55em;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 8px;
  vertical-align: middle;
  display:inline-block;
}
.tag--frio{ background: rgba(46,111,183,.22); color:#9CC3EB; border:1px solid rgba(156,195,235,.35); }
.tag--calor{ background: rgba(237,146,34,.2); color:#F6C27E; border:1px solid rgba(246,194,126,.35); }

.hero__lead{
  font-size: 18px; line-height:1.6;
  color: rgba(255,255,255,.72);
  max-width: 560px; margin: 0 auto 36px;
}
.hero__actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom: 56px; }

.hero__clients{
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.hero__clients > span:first-child{
  font-family: var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(255,255,255,.4);
}
.hero__clients-row{
  display:flex; gap:12px; align-items:center;
  font-family: var(--display); font-weight:600; font-size:19px; letter-spacing:.02em;
  color: rgba(255,255,255,.85);
  flex-wrap:wrap; justify-content:center;
}
.hero__clients-row span:nth-child(even){ color: rgba(255,255,255,.3); font-weight:400; }

.hero__icon{
  position:absolute; right:-90px; bottom:-90px;
  width: 420px; opacity:.14; filter: saturate(1.3);
  pointer-events:none;
}
@media (max-width: 720px){ .hero__icon{ width:260px; right:-60px; bottom:-60px; } }

/* ============================================================
   INTRO
   ============================================================ */
.intro{ padding: 96px 0 80px; background: var(--paper-2); }
.intro__text{
  font-size: 17px; line-height:1.75; color: var(--text-muted);
  max-width: 680px; margin-bottom: 48px;
}
.intro__stats{ display:flex; gap:56px; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; gap:4px; }
.stat__num{
  font-family: var(--display); font-weight:800; font-size:44px; color: var(--ink);
  line-height:1;
}
.stat__label{ font-size:13px; color: var(--text-muted); font-weight:500; }

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.especialidades{ padding: 80px 0; background: var(--paper); }
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.chip:nth-child(odd){ border-color: rgba(46,111,183,.3); }
.chip:nth-child(even){ border-color: rgba(237,146,34,.35); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios{ padding: 96px 0; background: var(--paper-2); }

.gauge-divider{
  display:flex; align-items:center; gap:14px;
  margin: 8px 0 44px;
  font-family: var(--mono); font-size:11px; letter-spacing:.16em; color: var(--text-muted);
}
.gauge-divider__bar{
  flex:1; height:4px; border-radius:4px;
  background: linear-gradient(90deg, var(--frio), var(--calor));
}

.servicios__grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:24px;
}
@media (max-width: 900px){ .servicios__grid{ grid-template-columns:1fr; } }

.servicio-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  border-top: 4px solid var(--frio);
}
.servicio-card--calor{ border-top-color: var(--calor); }
.servicio-card__kicker{
  font-family: var(--mono); font-size:12px; color: var(--text-muted);
}
.servicio-card h3{
  font-family: var(--display); font-weight:700; font-size:23px;
  margin: 10px 0 16px; color: var(--ink);
}
.servicio-card li{
  font-size: 14.5px; color: var(--text-muted); line-height:1.7;
  padding-left: 16px; position:relative;
}
.servicio-card li::before{
  content:''; position:absolute; left:0; top:11px;
  width:6px; height:6px; border-radius:50%;
  background: var(--frio);
}
.servicio-card--calor li::before{ background: var(--calor); }

/* ============================================================
   CLIENTES
   ============================================================ */
.clientes{ padding: 80px 0; background: var(--paper); }
.clientes__grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:16px;
}
@media (max-width:760px){ .clientes__grid{ grid-template-columns: repeat(2,1fr); } }
.cliente-card{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px;
  min-height: 96px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  transition: border-color .15s ease, transform .15s ease;
}
.cliente-card:hover{ border-color: var(--calor); transform: translateY(-3px); }
.cliente-card img{ max-height: 44px; width:auto; max-width:100%; object-fit:contain; filter: grayscale(1); opacity:.75; transition: filter .2s ease, opacity .2s ease; }
.cliente-card:hover img{ filter:none; opacity:1; }
.cliente-card__fallback{
  display:none;
  font-family: var(--display); font-weight:700; font-size:19px; color: var(--ink);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto{ background: var(--ink); padding: 96px 0; position:relative; overflow:hidden; }
.contacto__wrap{
  display:grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items:start;
}
@media (max-width: 860px){ .contacto__wrap{ grid-template-columns:1fr; } }
.contacto__text{ color: rgba(255,255,255,.68); font-size:16px; line-height:1.7; max-width:480px; margin-bottom:32px; }
.contacto__list{ display:flex; flex-direction:column; gap:16px; margin-bottom:36px; }
.contacto__list dt{
  font-family: var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color: rgba(255,255,255,.4); margin-bottom:3px;
}
.contacto__list dd{ font-size:16px; color:#fff; font-weight:500; }
.contacto__list a:hover{ color: var(--calor); }

/* Formulario de contacto */
.contacto__form{
  background: var(--paper-2);
  border-radius: 20px;
  padding: 32px;
  display:flex; flex-direction:column; gap:16px;
}
.contacto__form label{ display:flex; flex-direction:column; gap:6px; }
.contacto__form label span{
  font-family: var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--text-muted);
}
.contacto__form input, .contacto__form textarea{
  font-family: var(--body); font-size:15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}
.contacto__form input:focus, .contacto__form textarea:focus{
  outline:none; border-color: var(--frio);
}
.contacto__submit{ margin-top:6px; align-self:flex-start; }
.contacto__form-note{ font-size:12.5px; color: var(--text-muted); margin-top:-6px; }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.wa-float{
  position: fixed; right:22px; bottom:22px; z-index: 950;
  width: 58px; height:58px; border-radius:50%;
  background: #25D366;
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px -8px rgba(0,0,0,.5); }
@media (max-width:600px){ .wa-float{ width:52px; height:52px; right:16px; bottom:16px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background: var(--ink-2); padding: 22px 0; }
.footer__inner{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
  font-family: var(--mono);
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 860px){
  .nav__links{
    position:fixed; top:60px; left:0; right:0;
    background: var(--ink); flex-direction:column; gap:0;
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.is-open{ transform: translateY(0); }
  .nav__links a{ padding: 12px 0; border-bottom:1px solid rgba(255,255,255,.06); }
  .nav__cta{ display:none; }
  .nav__burger{ display:flex; }
}
