/* ============================================================
   3KM HVAC LLC & Refrigeration — hoja de estilos principal
   ============================================================
   Sistema de diseño
   Color:
     --flame       #F2650C  naranja llama (calefacción)
     --flame-deep  #D6420F  naranja/rojo profundo
     --ice         #17B4EC  azul hielo (refrigeración)
     --ice-deep    #0B8FCB  azul profundo
     --navy-950    #0A1B30  fondo oscuro / texto sobre claro
     --navy-800    #122E50  navy secundario
     --paper       #F5F8FA  fondo claro (blanco acerado, no crema)
     --steel-200   #E3E9EE  bordes / separadores claros
     --slate-600   #4C5C6E  texto de cuerpo
   Tipografía:
     Display: 'Space Grotesk'  — títulos, con carácter técnico
     Cuerpo:  'Inter'          — texto de lectura
     Utilidad:'JetBrains Mono' — cifras, temperaturas, etiquetas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --flame:#F2650C;
  --flame-deep:#D6420F;
  --ice:#17B4EC;
  --ice-deep:#0B8FCB;
  --navy-950:#0A1B30;
  --navy-900:#0E2440;
  --navy-800:#122E50;
  --paper:#F5F8FA;
  --paper-dim:#EBF1F4;
  --steel-200:#E3E9EE;
  --steel-300:#C9D4DC;
  --slate-600:#4C5C6E;
  --slate-500:#647686;
  --white:#FFFFFF;

  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;

  --shadow-sm: 0 2px 10px rgba(10,27,48,.08);
  --shadow-md: 0 10px 30px rgba(10,27,48,.12);
  --shadow-lg: 0 24px 60px rgba(10,27,48,.22);

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--navy-950);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.08;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}

p{ margin:0 0 1em; color:var(--slate-600); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

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

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--flame);
  font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--flame);
  display:inline-block;
}
.section--dark .eyebrow{ color:var(--ice); }
.section--dark .eyebrow::before{ background:var(--ice); }

.section{ padding:96px 0; }
.section--tight{ padding:72px 0; }
@media (max-width:720px){
  .section{ padding:64px 0; }
  .section--tight{ padding:48px 0; }
}

.section-head{
  max-width:640px;
  margin-bottom:48px;
}
.section-head p{ font-size:1.05rem; }

.section--dark{ background:var(--navy-950); color:var(--white); }
.section--dark h2, .section--dark h3{ color:var(--white); }
.section--dark p{ color:#B7C4D3; }

.section--alt{ background:var(--paper-dim); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-flame{
  background:var(--flame);
  color:var(--white);
  box-shadow:0 10px 24px rgba(242,101,12,.32);
}
.btn-flame:hover{ background:var(--flame-deep); box-shadow:0 12px 28px rgba(242,101,12,.42); }

.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.55);
  color:var(--white);
}
.btn-ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; }

.btn-outline-navy{
  background:transparent;
  border-color:var(--navy-950);
  color:var(--navy-950);
}
.btn-outline-navy:hover{ background:var(--navy-950); color:var(--white); }

.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

/* ---------- Header ---------- */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:100;
  padding:16px 0;
  transition:background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.site-header.is-scrolled{
  background:rgba(10,27,48,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 24px rgba(0,0,0,.18);
  padding:10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{ height:46px; width:auto; }
.brand-text{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--white);
  font-size:1rem;
  line-height:1.15;
}
.brand-text span{
  display:block;
  font-family:var(--font-mono);
  font-weight:500;
  font-size:.66rem;
  letter-spacing:.1em;
  color:var(--steel-300);
  text-transform:uppercase;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
}
.nav-links a{
  color:#DCE6EE;
  font-size:.92rem;
  font-weight:500;
  position:relative;
  padding:4px 0;
  transition:color .18s ease;
}
.nav-links a:hover{ color:var(--white); }
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px;
  height:2px; background:var(--flame);
  transition:right .2s ease;
}
.nav-links a:hover::after{ right:0; }

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

.lang-toggle{
  display:flex;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  overflow:hidden;
  flex:none;
}
.lang-toggle button{
  background:transparent;
  border:none;
  color:#B7C4D3;
  font-family:var(--font-mono);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.04em;
  padding:7px 12px;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.lang-toggle button.is-active{
  background:var(--flame);
  color:#fff;
}
.lang-toggle button:not(.is-active):hover{ color:#fff; }
.lang-toggle-mobile{ display:none; margin-top:6px; }
.header-phone{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono);
  color:var(--white);
  font-size:.92rem;
  font-weight:600;
}
.header-phone svg{ width:16px; height:16px; color:var(--ice); }

.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.4);
  border-radius:10px;
  padding:9px 10px;
  color:#fff;
}

@media (max-width:960px){
  .nav-links{
    position:fixed; top:0; right:0; height:100vh; width:min(320px,86vw);
    background:var(--navy-950);
    flex-direction:column;
    align-items:flex-start;
    padding:100px 28px 32px;
    gap:22px;
    transform:translateX(100%);
    transition:transform .3s ease;
    box-shadow:-16px 0 40px rgba(0,0,0,.3);
  }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-links a{ font-size:1.05rem; }
  .nav-toggle{ display:inline-flex; }
  .header-phone span{ display:none; }
  .header-cta > .lang-toggle{ display:none; }
  .lang-toggle-mobile{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--navy-950);
  padding-top:110px;
}
.hero-photo{
  position:absolute; inset:0;
  z-index:-1;
  background-size:cover;
  background-position:center;
  background-color:var(--navy-950);
}
.hero-bg{
  position:absolute; inset:0;
  background:
    linear-gradient(120deg, rgba(10,27,48,.72), rgba(10,27,48,.86)),
    radial-gradient(circle at 18% 20%, rgba(242,101,12,.55), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(23,180,236,.55), transparent 45%),
    var(--navy-950);
  z-index:0;
}
.hero-divider{
  position:absolute; inset:0;
  z-index:1;
  clip-path:polygon(var(--split,50%) 0, 100% 0, 100% 100%, calc(var(--split,50%) - 6%) 100%);
  background:
    radial-gradient(circle at 85% 15%, rgba(23,180,236,.5), transparent 50%),
    linear-gradient(200deg, rgba(23,180,236,.28), transparent 60%);
  transition:clip-path .12s ease-out;
  pointer-events:none;
}
.hero .container{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:48px;
  align-items:end;
  padding-bottom:64px;
}
.hero-content h1{
  font-size:clamp(2.4rem, 5vw, 3.85rem);
  color:var(--white);
}
.hero-content h1 em{
  font-style:normal;
  color:var(--flame);
}
.hero-content h1 em.ice{
  color:var(--ice);
}
.hero-content p{
  color:#C6D3DF;
  font-size:1.12rem;
  max-width:520px;
  margin-bottom:28px;
}
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:36px; }
.hero-trust{
  display:flex; flex-wrap:wrap; gap:20px 28px;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.03em;
  color:#9FB2C2;
}
.hero-trust li{ display:flex; align-items:center; gap:8px; }
.hero-trust svg{ width:14px; height:14px; color:var(--flame); }

/* signature: digital thermostat readout */
.thermo{
  justify-self:end;
  width:100%;
  max-width:280px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius-lg);
  padding:24px 24px 22px;
  backdrop-filter:blur(6px);
}
.thermo-label{
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#9FB2C2;
  margin-bottom:10px;
}
.thermo-readout{
  font-family:var(--font-mono);
  font-size:3rem;
  font-weight:600;
  color:var(--white);
  line-height:1;
  display:flex;
  align-items:baseline;
  gap:6px;
  transition:color .15s ease;
}
.thermo-readout small{ font-size:1.1rem; color:#9FB2C2; font-weight:500; }
.thermo-mode{
  margin-top:6px;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.08em;
  color:var(--ice);
}
.thermo-bar{
  margin-top:16px;
  height:6px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--ice), var(--flame));
  position:relative;
}
.thermo-bar::after{
  content:"";
  position:absolute; top:50%; left:var(--pos,50%);
  width:16px; height:16px; border-radius:50%;
  background:#fff; border:3px solid var(--navy-950);
  transform:translate(-50%,-50%);
  transition:left .12s ease-out;
}
.thermo-hint{
  margin-top:14px;
  font-size:.76rem;
  color:#7E93A5;
}

@media (max-width:900px){
  .hero .container{ grid-template-columns:1fr; padding-bottom:48px; }
  .thermo{ justify-self:start; max-width:100%; }
}

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  z-index:2;
  color:#9FB2C2;
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.scroll-cue span{
  width:1px; height:26px; background:linear-gradient(#fff,transparent);
  animation:scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{ 0%{opacity:0; transform:translateY(-4px);} 40%{opacity:1;} 100%{opacity:0; transform:translateY(10px);} }

/* ---------- Servicios ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
@media (max-width:960px){ .services-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:620px){ .services-grid{ grid-template-columns:1fr; } }

.service-card{
  background:var(--white);
  border:1px solid var(--steel-200);
  border-radius:var(--radius-md);
  padding:28px 26px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.service-icon{
  width:48px; height:48px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
  background:linear-gradient(135deg, var(--flame), var(--flame-deep));
  color:#fff;
}
.service-card:nth-child(even) .service-icon{
  background:linear-gradient(135deg, var(--ice), var(--ice-deep));
}
.service-icon svg{ width:24px; height:24px; }
.service-card h3{ font-size:1.12rem; margin-bottom:8px; color:var(--navy-950); }
.service-card p{ font-size:.94rem; margin-bottom:0; }

/* ---------- Cobertura ---------- */
.coverage-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:56px;
  align-items:center;
}
@media (max-width:900px){ .coverage-grid{ grid-template-columns:1fr; gap:36px; } }

.coverage-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px 20px;
  margin:26px 0 32px;
}
.coverage-list li{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:.88rem;
  color:#DCE6EE;
}
.coverage-list svg{ width:14px; height:14px; color:var(--ice); flex:none; }

.coverage-badge{
  display:inline-flex; align-items:center; gap:10px;
  background:rgba(23,180,236,.12);
  border:1px solid rgba(23,180,236,.35);
  color:var(--ice);
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.06em;
  padding:9px 16px;
  border-radius:999px;
  margin-bottom:22px;
}

.map-frame{
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:var(--shadow-lg);
  aspect-ratio:4/3.2;
}
.map-frame iframe{ width:100%; height:100%; border:0; filter:grayscale(.15) contrast(1.05); }

/* ---------- Galería ---------- */
.gallery-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-bottom:32px;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:1fr; } }

.gallery-item{
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  aspect-ratio:4/3;
  cursor:zoom-in;
  background:var(--steel-200);
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-item .cap{
  position:absolute; inset:auto 0 0 0;
  padding:14px 16px 12px;
  background:linear-gradient(0deg, rgba(10,27,48,.85), transparent);
  color:#fff;
  font-size:.82rem;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease;
}
.gallery-item:hover .cap{ opacity:1; transform:translateY(0); }

.gallery-empty{
  grid-column:1/-1;
  text-align:center;
  padding:48px 20px;
  color:var(--slate-500);
  font-family:var(--font-mono);
  font-size:.9rem;
  border:1px dashed var(--steel-300);
  border-radius:var(--radius-md);
}

/* lightbox */
.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(10,20,32,.92);
  display:flex; align-items:center; justify-content:center;
  padding:32px;
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:min(920px,92vw); max-height:82vh; border-radius:12px; box-shadow:var(--shadow-lg); }
.lightbox-cap{ color:#DCE6EE; font-family:var(--font-mono); font-size:.85rem; margin-top:14px; text-align:center; }
.lightbox-close{
  position:absolute; top:22px; right:26px;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.3);
  color:#fff; font-size:1.4rem; cursor:pointer; line-height:1;
}

/* ---------- Videos ---------- */
.video-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
@media (max-width:760px){ .video-grid{ grid-template-columns:1fr; } }
.video-card{
  background:var(--white);
  border:1px solid var(--steel-200);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.video-frame{ position:relative; width:100%; aspect-ratio:16/9; background:var(--navy-950); }
.video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-title{ padding:16px 18px; font-weight:600; font-size:.95rem; color:var(--navy-950); }

.videos-empty{
  text-align:center;
  padding:56px 20px;
  border:1px dashed var(--steel-300);
  border-radius:var(--radius-md);
  color:var(--slate-500);
  font-family:var(--font-mono);
  font-size:.9rem;
}

/* ---------- Contacto ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:56px;
}
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }

.contact-info-list{ margin-top:24px; display:flex; flex-direction:column; gap:20px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info-icon{
  flex:none; width:44px; height:44px; border-radius:12px;
  background:var(--paper-dim); border:1px solid var(--steel-200);
  display:flex; align-items:center; justify-content:center;
  color:var(--flame);
}
.contact-info-icon svg{ width:20px; height:20px; }
.contact-info-item h4{ font-size:.95rem; margin-bottom:2px; color:var(--navy-950); }
.contact-info-item a, .contact-info-item p{ font-size:.92rem; margin:0; color:var(--slate-600); }
.contact-info-item a:hover{ color:var(--flame); }

.contact-card{
  background:var(--white);
  border:1px solid var(--steel-200);
  border-radius:var(--radius-lg);
  padding:34px;
  box-shadow:var(--shadow-sm);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:18px; }
.field label{
  display:block; font-size:.8rem; font-weight:600; color:var(--navy-950); margin-bottom:6px;
}
.field input, .field select, .field textarea{
  width:100%;
  border:1px solid var(--steel-300);
  border-radius:10px;
  padding:12px 14px;
  font-family:var(--font-body);
  font-size:.94rem;
  color:var(--navy-950);
  background:var(--paper);
  transition:border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color:var(--flame);
  box-shadow:0 0 0 3px rgba(242,101,12,.15);
}
.field textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:.78rem; color:var(--slate-500); margin-top:14px; }
.form-status{
  margin-top:14px;
  padding:12px 14px;
  border-radius:10px;
  font-size:.88rem;
  display:none;
}
.form-status.is-ok{ display:block; background:#E7F7EE; color:#12793F; }
.form-status.is-err{ display:block; background:#FDEAE6; color:#B8371A; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-950);
  color:#9FB2C2;
  padding:64px 0 28px;
}
.footer-top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
@media (max-width:760px){ .footer-top{ grid-template-columns:1fr; gap:32px; } }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-brand img{ height:40px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; color:#fff; }
.footer-col h5{
  font-family:var(--font-mono);
  font-size:.74rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:16px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:.9rem; transition:color .16s ease; }
.footer-col a:hover{ color:var(--ice); }
.footer-bottom{
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:.8rem;
}

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

/* ---------- WhatsApp float button ---------- */
.float-call{
  position:fixed; right:20px; bottom:20px; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background:var(--flame);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(242,101,12,.42);
  transition:transform .18s ease;
  animation:floatPulse 2.6s ease-out infinite;
}
.float-call:hover{ transform:scale(1.06); }
.float-call svg{ width:26px; height:26px; }

@keyframes floatPulse{
  0%   { box-shadow:0 10px 24px rgba(242,101,12,.42), 0 0 0 0 rgba(242,101,12,.55); }
  70%  { box-shadow:0 10px 24px rgba(242,101,12,.42), 0 0 0 16px rgba(242,101,12,0); }
  100% { box-shadow:0 10px 24px rgba(242,101,12,.42), 0 0 0 0 rgba(242,101,12,0); }
}
@media (prefers-reduced-motion: reduce){
  .float-call{ animation:none; }
}
