/* =============================================
   FRÍO MOTRIZ — hero.css
============================================= */

:root {
  --blue:  #2563eb;
  --black: #0a0a0a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; overflow-x: hidden; overflow-y: auto; font-family: 'Barlow', sans-serif; }

#cur-dot, #cur-ring {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
#cur-dot  { width: 6px; height: 6px; background: var(--blue); }
#cur-ring { width: 26px; height: 26px; border: 1.5px solid rgba(37,99,235,.5); transition: width .12s, height .12s; }

.page {
  height: 100vh;
  display: grid;
  grid-template-rows: 3px 58px 1fr 48px 38px;
  overflow: hidden;
}
.stripe { background: var(--blue); }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: relative; z-index: 50;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-bars { display: flex; flex-direction: column; gap: 4px; }
.logo-bars span { display: block; height: 5px; border-radius: 2px; background: var(--blue); }
.logo-bars span:nth-child(1) { width: 28px; }
.logo-bars span:nth-child(2) { width: 22px; margin-left: 3px; }
.logo-bars span:nth-child(3) { width: 15px; margin-left: 6px; }
.logo-bars span:nth-child(4) { width: 9px;  margin-left: 9px; }
.lw .l1 { font-family:'Barlow Condensed'; font-weight:900; font-size:20px; color:var(--blue); letter-spacing:.02em; }
.lw .l2 { font-family:'Barlow Condensed'; font-weight:900; font-size:20px; color:var(--black); letter-spacing:.02em; }
.lw .l3 { display:block; font-size:8px; letter-spacing:.17em; text-transform:uppercase; color:#aaa; margin-top:2px; }
.nav-links { display:flex; gap:28px; list-style:none; }
.nav-links a { font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:#888; text-decoration:none; transition:color .18s; }
.nav-links a:hover { color:var(--black); }
.nav-links a.active { color:var(--black); border-bottom:2px solid var(--blue); padding-bottom:2px; }
.nav-wa { display:flex; align-items:center; gap:7px; background:var(--blue); color:#fff; padding:9px 18px; border-radius:3px; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; text-decoration:none; }
.nav-wa:hover { background:#1d4ed8; }
.nav-wa i { font-size:13px; }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: #0a1628;
  width: 100%;
  min-height: calc(100vh - 147px);
}

/* VIDEO — z-index 0, al fondo */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* OVERLAY oscuro izquierda → letras legibles
   z-index 1, encima del video */
.video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(5,14,28,.65)  0%,
    rgba(5,14,28,.50) 30%,
    rgba(5,14,28,.15) 55%,
    rgba(5,14,28,.00) 75%
  );
}
/* VANTA FOG — z-index 2, encima del overlay
   mix-blend-mode screen: se mezcla con el video */
#vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* PARTÍCULAS — z-index 3 */
#ice-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  z-index: 3; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
  mask-image:         linear-gradient(to right, black 30%, transparent 100%);
}
.ic {
  position: absolute; border-radius: 50%;
  background: rgba(56, 189, 248, 0.7);
  animation: floatUp var(--d) linear var(--del) infinite;
}
@keyframes floatUp {
  0%   { transform:translateY(0) scale(1); opacity:0; }
  15%  { opacity:1; }
  85%  { opacity:.5; }
  100% { transform:translateY(var(--r)) scale(.2); opacity:0; }
}

/* TEXTO — z-index 10, siempre encima */
.hero-content {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 52px;
  max-width: 580px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 14px;
  opacity: 0; animation: fadeUp .5s ease .1s forwards;
}
.edot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #38bdf8; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,.6); }
  50%     { box-shadow: 0 0 0 7px rgba(56,189,248,0); }
}

.hero-title {
  font-family: 'Barlow Condensed'; font-weight: 900;
  font-size: clamp(62px, 8vh, 100px);
  line-height: .87; margin-bottom: 16px;
}
.t1 { display:block; color:#fff; opacity:0; animation:fadeUp .5s ease .2s forwards; }
.t2 { display:block; color:transparent; -webkit-text-stroke:2.5px rgba(255,255,255,.9); opacity:0; animation:fadeUp .5s ease .3s forwards; }
.t3 { display:block; color:#38bdf8; text-shadow:0 0 30px rgba(56,189,248,.6); opacity:0; animation:fadeUp .5s ease .4s forwards; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero-desc {
  font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.75;
  max-width: 400px; margin-bottom: 26px;
  opacity: 0; animation: fadeUp .5s ease .5s forwards;
}

.hero-btns {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .5s ease .6s forwards;
}
.btn-wa {
  display:inline-flex; align-items:center; gap:7px;
  background:#25d366; color:#fff;
  padding:13px 26px; border-radius:3px;
  font-size:12px; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; text-decoration:none;
}
.btn-wa:hover { background:#1fba58; }
.btn-wa i { font-size:14px; }
.btn-s {
  border:2px solid rgba(255,255,255,.45); color:#fff;
  background: rgba(255,255,255,.08);
  padding:13px 26px; border-radius:3px;
  font-size:12px; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; text-decoration:none;
}
.btn-s:hover { background:rgba(255,255,255,.2); }

/* STATS */
.stats-bar {
  display:grid; grid-template-columns:repeat(4,1fr);
  background:#fff; border-top:1px solid #e0e8f0;
}
.stat-cell { display:flex; align-items:center; gap:10px; padding:0 24px; border-right:1px solid #e8eef4; }
.stat-cell:last-child { border-right:none; }
.si-bars { display:flex; flex-direction:column; gap:2px; flex-shrink:0; }
.si-bars span { display:block; height:3px; border-radius:1px; background:var(--blue); }
.si-bars span:nth-child(1) { width:16px; }
.si-bars span:nth-child(2) { width:11px; margin-left:3px; }
.si-bars span:nth-child(3) { width:7px;  margin-left:6px; }
.si-n { font-family:'Barlow Condensed'; font-weight:900; font-size:22px; color:var(--black); line-height:1; }
.si-n sup { font-size:12px; color:var(--blue); }
.si-l { font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:#aaa; }

/* BRANDS */
.brand-bar { background:#fff; border-top:1px solid #e8eef4; overflow:hidden; display:flex; align-items:center; }
.b-track { display:flex; align-items:center; white-space:nowrap; animation:brandSlide 30s linear infinite; will-change:transform; }
@keyframes brandSlide { to { transform:translateX(-50%); } }
.b-item { font-size:9.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#bbb; padding:0 16px; }
.b-sep  { color:#ddd; font-size:12px; }

/* ════════════════════════════════════════════
   MOBILE
════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* página scrolleable en mobile */
  html, body { overflow: auto; height: auto; }

  .page {
    height: auto;
    min-height: 100vh;
    /* filas: stripe | nav | hero | stats | brands */
    grid-template-rows: 3px 56px auto auto auto;
    overflow: visible;
  }

  /* hero ocupa exactamente la pantalla en mobile */
  .hero {
    height: calc(100svh - 59px);
    min-height: 400px;
    background: #b8e4ff; /* fallback celeste si vanta tarda */
  }

  /* video visible en mobile */
  #hero-video    { display: block; }
  .video-overlay { display: block; }

  /* vanta y partículas: todo el ancho, sin mezcla ni máscara */
  #vanta-bg {
    width: 100%;
    mix-blend-mode: normal;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
  #ice-wrap {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero-content {
    padding: 32px 24px;
    max-width: 100%;
    justify-content: center;
  }

  .hero-title { font-size: clamp(48px, 13vw, 68px); }
  .hero-desc  { font-size: 13px; }

  /* letras oscuras sobre fondo celeste claro */
  .eyebrow { color: #1e4a8a; }
  .t1 { color: #0d1f3c; }
  .t2 { -webkit-text-stroke: 2px #0d1f3c; }
  .t3 { color: var(--blue); text-shadow: 0 0 20px rgba(37,99,235,.3); }
  .hero-desc { color: #3a5070; }
  .btn-s { border-color: rgba(13,31,60,.3); color: #0d1f3c; background: rgba(255,255,255,.5); }

  .hero-btns { flex-direction: column; }
  .btn-wa, .btn-s { text-align:center; justify-content:center; }

  /* stats 2 columnas */
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3),
  .stat-cell:nth-child(4) { border-top: 1px solid #e8eef4; }
}

/* MOBILE — fog directo sin blend */
@media(max-width:1024px){
  #vanta-bg { mix-blend-mode: normal; opacity: 1; }

  /* Overlay oscuro para que el texto respire sobre el Vanta */
  .video-overlay {
    background: rgba(5, 10, 25, 0.55) !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: transparent;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  min-height: 80vh;
}

.hero-text {
  flex: 1;
  max-width: 500px;
  padding-right: 40px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.125rem;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background-color: #38bdf8;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #0284c7;
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  fill: currentColor;
}

.hero-video {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-out;
  background: transparent !important;
  box-shadow: none !important;
}

.hero-video:hover {
  transform: translateY(-15px);
}

.hero-video video {
  width: 100%;
  max-width: 650px;
  outline: none;
  border: none;
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    color: #000000;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  }

  .hero-text p {
    color: #000000;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  }
}
@media (max-width: 1024px) {

  /* Oscurecer el fondo Vanta para dar contraste */
  .video-overlay {
    background: rgba(0, 5, 20, 0.65) !important;
  }

  /* EXPERTOS y EN ENFRIAR — blanco */
  .hero-title .t1,
  .hero-title .t2,
  .t1, .t2 {
    color: #ffffff !important;
    -webkit-text-stroke: 0 !important;
    text-shadow:
      0 2px 30px rgba(0,0,0,0.9),
      0 0 60px rgba(0,0,0,0.7) !important;
  }

  /* Párrafo descripción */
  .hero-desc,
  p.hero-desc {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 15px rgba(0,0,0,0.9) !important;
  }

  /* Eyebrow — la línea de arriba */
  .eyebrow {
    color: rgba(255, 255, 255, 0.75) !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.8) !important;
  }
}