/* ============================================================
   UNIVERSALE.AI — HERO CLÍNICAS (experimento patrón bottom-left)
   Inspirado en el patrón del ejemplo de Pit (vídeo fullscreen +
   navbar pill + contenido abajo-izquierda), adaptado a NUESTRA
   estética: negro absoluto, lima, Space Mono. Header/footer del sitio.
   ============================================================ */

.clh-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--u-black, #000);
  display: flex;
  flex-direction: column;
}

/* Fondo: imagen ahora (standin), vídeo cuando Pit grabe — mismo contenedor */
.clh-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.clh-bg-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.35) 100%),
              linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 55%);
}

/* Navbar pill flotante — patrón del ejemplo, colores nuestros */
.clh-nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 20px 24px 0;
}
.clh-nav-logo {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 2px solid var(--u-lime, #84CC16);
  background: rgba(0,0,0,0.5);
  flex-shrink: 0;
  text-decoration: none;
  font-family: var(--u-font); font-weight: 700; color: var(--u-lime);
  font-size: 0.9rem;
}
.clh-nav-pill {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 38px);
  border: 1px solid rgba(250,250,250,0.25);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 12px clamp(18px, 3vw, 32px);
}
.clh-nav-pill a {
  font-family: var(--u-font);
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  letter-spacing: var(--u-ls-wide, 0.05em);
  text-transform: uppercase;
  color: var(--u-text-soft, rgba(250,250,250,0.85));
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.clh-nav-pill a:hover { color: var(--u-lime); }
.clh-nav-pill a.is-cta { color: var(--u-lime); font-weight: 700; }

/* Contenido abajo-izquierda */
.clh-content {
  position: relative; z-index: 10;
  flex: 1;
  display: flex; align-items: flex-end;
  padding: 0 clamp(24px, 8vw, 112px) calc(clamp(48px, 9vh, 96px) + env(safe-area-inset-bottom, 0px));
}
.clh-inner { max-width: 640px; }

.clh-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--u-font);
  font-size: 0.78rem; letter-spacing: var(--u-ls-wide);
  text-transform: uppercase;
  color: var(--u-lime);
  margin: 0 0 18px;
  text-decoration: none;
}
.clh-badge .arw { transition: transform 0.2s; display: inline-block; }
.clh-badge:hover .arw { transform: translateX(3px); }

.clh-headline {
  font-family: var(--u-font); font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: var(--u-ls-headline, -0.025em);
  color: var(--u-text, #fafafa);
  margin: 0 0 18px;
}
.clh-headline .lime { color: var(--u-lime); }

.clh-sub {
  font-family: var(--u-font);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--u-text-soft);
  margin: 0 0 28px;
  max-width: 36ch;
}

.clh-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.clh-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--u-font); font-weight: 700;
  font-size: 0.9rem; letter-spacing: var(--u-ls-wide);
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.clh-cta-primary {
  background: var(--u-lime); color: #000; border: 2px solid var(--u-lime);
}
.clh-cta-primary:hover { background: transparent; color: var(--u-lime); }
.clh-cta-ghost {
  background: transparent; color: var(--u-text); border: 2px solid rgba(250,250,250,0.35);
}
.clh-cta-ghost:hover { border-color: var(--u-lime); color: var(--u-lime); }
.clh-cta .arw { transition: transform 0.2s; display: inline-block; }
.clh-cta:hover .arw { transform: translateX(3px); }

@media (max-width: 600px) {
  .clh-nav { flex-wrap: wrap; }
  .clh-content { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .clh-badge .arw, .clh-cta .arw, .clh-cta, .clh-nav-pill a { transition: none; }
}

/* ---------- FIX MÓVIL (Pit 13/06): mismo criterio que v6-hero — el hero
   crece con su contenido en móvil, sin recorte de CTAs por la barra. ---------- */
@media (max-width: 640px) {
  .clh-hero { min-height: auto; }
  .clh-content {
    padding: 24px clamp(20px, 6vw, 40px) 64px;
    align-items: flex-start;
  }
}
