/* ============================================================
   LIVING HUB — BRAND OVERRIDE LAYER
   Aplica identidad Living Hub sobre la estructura Minotti.
   Tipografía: Inter · Color: Warm Charcoal / Ivory / Sage
   ============================================================ */
@import url("tokens.css");

/* ---------- 1. TIPOGRAFÍA GLOBAL · INTER ---------- */
/* Los iconos del sitio son SVG (no icon-font), así que forzar
   Inter en todo el árbol es seguro y no rompe pictogramas. */
body,
body *,
h1, h2, h3, h4, h5, h6,
p, a, span, li, button, input, textarea, select, label,
.btn, nav, footer, .preheader, .menu, blockquote, em, strong {
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}

body { color: var(--lh-charcoal); }

/* ============================================================
   2. HEADER LIVING HUB  (reemplaza la navegación Minotti)
   ============================================================ */
.menuWrap { display: none !important; }   /* oculta nav Minotti */

.lh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 108px;         /* barra más alta para alojar el logo ampliado */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  /* estado inicial: transparente, flotando sobre el vídeo.
     Sutil scrim superior solo para legibilidad. */
  background: transparent;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.5s ease, backdrop-filter 0.5s ease,
              border-color 0.5s ease, height 0.5s ease;
}
.lh-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 1;
  transition: opacity 0.5s ease;
}
/* estado scrolled: charcoal translúcido + blur */
.lh-header.lh-scrolled {
  height: 92px;
  background: rgba(64, 61, 57, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.lh-header.lh-scrolled::before { opacity: 0; }
.lh-header__brand { display: flex; align-items: center; position: relative; z-index: 1; }
.lh-header__brand img {
  height: 80px;          /* ~266% del tamaño anterior (30px) */
  width: auto;
  display: block;
}
.lh-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  position: relative;
  z-index: 1;
}
.lh-header__nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.35s ease;
}
.lh-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--lh-sage);
  transition: width 0.35s ease;
}
.lh-header__nav a:hover { color: var(--lh-sage-100) !important; }
.lh-header__nav a:hover::after { width: 100%; }

@media (max-width: 600px) {
  .lh-header { height: 84px; padding: 0 20px; }
  .lh-header.lh-scrolled { height: 74px; }
  .lh-header__brand img { height: 62px; }   /* ~258% del anterior (24px) */
  .lh-header__nav { gap: 20px; }
  .lh-header__nav a { font-size: 11px; letter-spacing: 0.14em; }
}

/* ============================================================
   3. HERO — VÍDEO A PANTALLA COMPLETA + CONTENIDO EDITORIAL
   ============================================================ */
.hero { position: relative !important; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.hero .slide.slide-with-video, .hero .slide.slide-with-video > div { position: absolute; inset: 0; }

/* el vídeo cubre todo el hero conservando proporción */
.hero .slide.slide-with-video,
.hero .slide.slide-with-video > div,
.hero .slider,
.hero .slide { width: 100%; height: 100%; }

.hero .slide video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  transform: translate(-50%, -50%) !important;
  z-index: 0 !important;
}

/* scrim para legibilidad sobre el vídeo */
.lh-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.lh-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(64, 61, 57, 0.42) 0%,
      rgba(64, 61, 57, 0.14) 38%,
      rgba(64, 61, 57, 0.22) 70%,
      rgba(64, 61, 57, 0.48) 100%);
}
.lh-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 0 24px;
  margin-top: 28px; /* compensa header fijo */
}

/* isotipo / sello superior — elegante y SECUNDARIO (tamaño original) */
.lh-hero-mark {
  width: clamp(40px, 3.6vw, 58px);
  height: auto;
  margin: 0 auto clamp(20px, 2.6vw, 34px);
  display: block;
  opacity: 0.92;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.30));
}

/* H1 — titular editorial (sentence-case, proporcionado) */
.lh-hero-title {
  font-weight: 400 !important;
  font-size: clamp(30px, 5.2vw, 68px) !important;
  line-height: 1.12;
  letter-spacing: 0.005em !important;
  text-transform: none;
  color: #fff;
  margin: 0 auto;
  max-width: 20ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.42);
}

/* hairline divisor */
.lh-hero-rule {
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin: clamp(20px, 2.6vw, 34px) auto;
}

/* H2 — frase de apoyo editorial */
.lh-hero-sub {
  font-weight: 300 !important;
  font-size: clamp(14px, 1.35vw, 19px) !important;
  line-height: 1.6;
  letter-spacing: 0.04em !important;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 48ch;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.34);
}

/* (sin CTA en el hero — foco en vídeo · logo · H1 · H2) */

/* mantener visible la flecha de scroll por encima del scrim */
.hero .arrow { z-index: 6 !important; }

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 1024px) {
  .lh-hero-title { font-size: clamp(28px, 4.6vw, 52px) !important; max-width: 18ch; }
  .lh-hero-sub { font-size: 15px !important; max-width: 42ch; }
}

/* ---------- RESPONSIVE: TABLET PEQUEÑA ---------- */
@media (max-width: 768px) {
  .lh-hero-inner { margin-top: 14px; }
  .lh-hero-title {
    font-size: clamp(40px, 11vw, 66px) !important;
    letter-spacing: 0.12em !important;
    text-indent: 0.12em;
  }
  .lh-hero-sub {
    font-size: 13.5px !important;
    letter-spacing: 0.18em !important;
    max-width: 34ch;
  }
}

/* ---------- RESPONSIVE: MÓVIL ---------- */
@media (max-width: 480px) {
  .lh-hero-title {
    font-size: clamp(38px, 13vw, 52px) !important;
    letter-spacing: 0.10em !important;
    text-indent: 0.10em;
    line-height: 1.08;
  }
  .lh-hero-sub {
    font-size: 12px !important;
    letter-spacing: 0.14em !important;
    line-height: 1.55;
    max-width: 24ch;
  }
  .lh-hero-rule { width: 48px; }
}

/* ============================================================
   4. FASCIA SLIDER — MÁXIMA CALIDAD VISUAL (Living Hub)
   ============================================================ */
.fascia-slider > div {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  image-rendering: -webkit-optimize-contrast; /* nitidez en upscale */
}
.fascia-slider img,
.fascia-slider .img-for-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: -webkit-optimize-contrast;
}

/* ============================================================
   5. FOOTER · BLOQUE CONTACT (Living Hub)
   ============================================================ */
.lh-contact { line-height: 1.7; }
.lh-contact label {
  display: block;
  font-weight: 600 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-size: 14px;
}
.lh-contact p {
  margin: 2px 0;
  font-weight: 300 !important;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.lh-contact a { text-decoration: none; color: inherit; }
.lh-contact a:hover { opacity: 0.7; }

/* ============================================================
   6. SELECTOR DE IDIOMA — minimalista, sin caja
   ============================================================ */
.lh-lang {
  display: flex; align-items: center; gap: 8px;
  margin-left: clamp(10px, 1.6vw, 22px);
  position: relative; z-index: 1;
}
.lh-lang__btn {
  background: none; border: 0; padding: 6px 1px; cursor: pointer;
  color: #fff !important; font-weight: 500 !important;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1; opacity: 0.5;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.lh-lang__btn:hover { opacity: 0.85; }
.lh-lang__btn.is-active { opacity: 1; color: var(--lh-sage-100) !important; }
.lh-lang__sep { color: rgba(255, 255, 255, 0.35); font-size: 11px; }
@media (max-width: 600px) {
  .lh-lang { gap: 6px; margin-left: 12px; }
  .lh-lang__btn { font-size: 11px; letter-spacing: 0.12em; }
}

/* ============================================================
   7. SECCIÓN CONTACT — Editorial Split (footer charcoal)
   ============================================================ */
/* ritmo / respiración entre slider y contacto */
.footer { padding-top: clamp(76px, 10vw, 132px) !important; }

/* contenedor: sin el borde blanco pesado de Minotti */
.footer .newsletter.lh-contact {
  max-width: 640px; border-left: 0; padding-left: 0; padding-bottom: 0;
}
.lh-contact__kicker {
  display: block; color: var(--lh-sage);
  font-size: 12px; font-weight: 600 !important;
  letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 18px;
}
.lh-contact__title {
  font-weight: 400 !important;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15; letter-spacing: 0.005em;
  color: #fff; margin: 0 0 18px; max-width: 16ch;
}
.lh-contact__note {
  color: rgba(255, 255, 255, 0.6); font-weight: 300 !important;
  font-size: 14px; line-height: 1.75; max-width: 52ch; margin: 0 0 36px;
}

/* formulario editorial · solo subrayado, sin cajas */
.lh-form { max-width: 580px; }
.lh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lh-field { position: relative; margin-bottom: 22px; }
.lh-form input,
.lh-form textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important; font-size: 15px; font-weight: 300 !important;
  letter-spacing: 0.01em; padding: 14px 0; outline: 0;
  border-radius: 0; -webkit-appearance: none;
  transition: border-color 0.35s ease;
}
.lh-form textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.lh-form input::placeholder,
.lh-form textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.lh-form input:focus,
.lh-form textarea:focus { border-bottom-color: var(--lh-sage); }
.lh-form input.has-error,
.lh-form textarea.has-error { border-bottom-color: #cf9a9a; }
.lh-error {
  display: block; min-height: 14px; color: #d9b1b1;
  font-size: 11px; letter-spacing: 0.04em; margin-top: 7px;
}

/* CTA editorial: texto + flecha con subrayado animado (sin botón ordinario) */
.lh-submit {
  background: none; border: 0; cursor: pointer;
  color: #fff !important; font-weight: 500 !important;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 0; margin-top: 10px; position: relative;
  transition: opacity 0.3s ease;
}
.lh-submit::after {
  content: ""; position: absolute; left: 0; bottom: 6px; height: 1px; width: 100%;
  background: rgba(255, 255, 255, 0.45);
  transform: scaleX(1); transform-origin: left;
  transition: background 0.35s ease;
}
.lh-submit:hover::after { background: var(--lh-sage); }
.lh-submit__arrow { transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.lh-submit:hover .lh-submit__arrow { transform: translateX(8px); }
.lh-submit.is-loading { opacity: 0.55; cursor: progress; }
.lh-submit:disabled { cursor: not-allowed; }
.lh-form-status {
  margin-top: 20px; font-size: 13.5px; letter-spacing: 0.02em;
  line-height: 1.5; min-height: 18px;
}
.lh-form-status.is-ok  { color: var(--lh-sage-100); }
.lh-form-status.is-err { color: #d9b1b1; }

/* columna derecha del footer (social + privacidad): refinada */
.footer .social ul.inline li a:hover img { opacity: 0.6; }
.footer .linkService a { letter-spacing: 0.04em; }

/* copyright legible y siempre visible */
.footer .copyright {
  display: block !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px; line-height: 1.95; letter-spacing: 0.02em;
  margin-top: 38px;
}

@media (max-width: 768px) {
  .footer { padding-top: clamp(56px, 12vw, 90px) !important; }
  .lh-form__row { grid-template-columns: 1fr; gap: 0; }
  .lh-contact__title { font-size: clamp(24px, 7vw, 30px); max-width: 20ch; }
  .lh-contact__note { font-size: 13.5px; margin-bottom: 28px; }
  .footer .copyright { margin-top: 30px; }
  /* asegurar que el bloque copyright se vea bajo el formulario en móvil */
  .footer .col-md-8, .footer .col-md-4 { width: 100%; }
  .footer .col-md-4 { margin-top: 40px; }
}

/* ============================================================
   8. SLIDER — visibilidad del texto en móvil
   ============================================================ */
@media (max-width: 768px) {
  .fascia-slider > div { position: relative; }
  .fascia-slider .img-for-mobile { display: block; width: 100%; height: auto; }
  .fascia-slider > div::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  }
  .fascia-slider .text {
    display: block !important; position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 3; text-align: center; padding: 22px 20px;
  }
  .fascia-slider .text .desc {
    color: #fff !important; font-weight: 400 !important;
    font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }
}

/* ============================================================
   9. MODAL LEGAL / PRIVACIDAD
   ============================================================ */
#watermark-overlay.overlay-download {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(28, 27, 25, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; overflow-y: auto; display: block;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#watermark-overlay.overlay-download.lh-open { opacity: 1; visibility: visible; }
#watermark-overlay .container { max-width: 760px; margin: 0 auto; padding: 96px 24px 64px; }
#watermark-overlay h4 {
  color: #fff !important; font-weight: 500 !important;
  letter-spacing: 0.06em; font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 26px;
}
#watermark-overlay .watermark-info {
  background: var(--lh-ivory); color: var(--lh-charcoal);
  padding: 44px clamp(22px, 4vw, 54px); border-radius: 2px;
}
#watermark-overlay .watermark-info p { margin: 0 0 16px; line-height: 1.75; font-size: 14px; }
#watermark-overlay .overlay-navigation { position: fixed; top: 24px; right: 26px; z-index: 2001; }
#watermark-overlay .overlay-navigation .close { cursor: pointer; }
#watermark-overlay .overlay-navigation .close img { width: 20px; filter: invert(1); }
#watermark-overlay .btn {
  display: inline-block; margin: 30px 0 0; cursor: pointer; text-decoration: none;
  background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.7);
  padding: 14px 36px; font-weight: 500 !important;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.4s ease, color 0.4s ease;
}
#watermark-overlay .btn:hover { background: #fff; color: var(--lh-charcoal) !important; }

/* ============================================================
   10. ACCESIBILIDAD GLOBAL
   ============================================================ */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible,
.lh-lang__btn:focus-visible {
  outline: 2px solid var(--lh-sage); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   11. SCROLL NATIVO — libera el bloqueo de fullPage.js/Minotti
   (fullPage pasa a modo scrollbar vía setAutoScrolling(false))
   ============================================================ */
html, html.fp-enabled {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  -webkit-overflow-scrolling: touch;
}
body {
  overflow: visible !important;
  height: auto !important;
}
