/* ===== CSS específico de index.html ===== */

/* === Override nav: transparente sobre hero, opaco al hacer scroll === */
.nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 248, 243, 0.92) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
}
.nav.scrolled .nav-brand,
.nav.scrolled .nav-links a {
  color: var(--navy);
}
.nav-brand { color: var(--paper); }
.nav .nav-links a { color: var(--paper); opacity: 0.92; }



/* ===== CSS específico de index.html ===== */

:root {
        --navy: #142a47;
        --navy-soft: #1e3a5f;
        --navy-mid: #2a4b75;
        --paper: #faf8f3;
        --bone: #f1ede3;
        --bone-dark: #e6e0d2;
        --orange: #d97706;
        --orange-light: #f59e0b;
        --orange-bright: #fbbf24;
        --text: #142a47;
        --text-soft: #5a6577;
        --text-muted: #8a9099;
        --line: rgba(20, 42, 71, 0.08);
        --line-strong: rgba(20, 42, 71, 0.28);

        --serif: "Fraunces", "Times New Roman", serif;
        --sans: "Inter", "Manrope", system-ui, sans-serif;
        --ease: cubic-bezier(0.22, 1, 0.36, 1);
      }

/* ============================================
   NAV
   ============================================ */

.nav.scrolled {
        background: rgba(250, 248, 243, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        color: var(--text);
      }

.nav.scrolled .nav-brand {
        color: var(--navy);
      }

.nav-brand-logos {
        position: relative;
        width: 40px;
        height: 40px;
      }

.nav-brand-logos img {
        position: absolute;
        inset: 0;
        height: 40px;
        width: auto;
        transition: opacity 0.4s var(--ease);
      }

.nav-brand-logos .logo-light {
        opacity: 1;
      }

.nav-brand-logos .logo-dark {
        opacity: 0;
      }

.nav.scrolled .nav-brand-logos .logo-light {
  opacity: 0;
}
.nav.scrolled .nav-brand-logos .logo-dark {
  opacity: 1;
}

.nav.scrolled .nav-links a {
        color: var(--navy);
        opacity: 0.78;
      }

.nav.scrolled .nav-links a:hover {
        opacity: 1;
        color: var(--orange);
      }

/* ============================================
   BLUEPRINT BG (estilo de versiones previas)
   ============================================ */

main,
      footer,
      section {
        position: relative;
        z-index: 1;
      }

/* SECTION EYEBROW */

.section-eyebrow {
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--orange);
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 24px;
      }

.section-eyebrow::before {
        content: "";
        width: 28px;
        height: 1px;
        background: var(--orange);
      }

.section-eyebrow.center {
        justify-content: center;
      }

/* CORNER MARKS */

.corner {
        position: absolute;
        width: 28px;
        height: 28px;
        border: 1px solid var(--orange);
        z-index: 3;
        pointer-events: none;
      }

.corner.tl {
        top: 105px;
        left: 32px;
        border-right: none;
        border-bottom: none;
      }

.corner.tr {
        top: 105px;
        right: 32px;
        border-left: none;
        border-bottom: none;
      }

.corner.bl {
        bottom: 100px;
        left: 32px;
        border-right: none;
        border-top: none;
      }

.corner.br {
        bottom: 100px;
        right: 32px;
        border-left: none;
        border-top: none;
      }

/* ============================================
   HERO
   ============================================ */

.hero {
        position: relative;
        height: 100vh;
        min-height: 720px;
        max-height: 1080px;
        overflow: hidden;
        color: var(--paper);
      }

.hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
      }

.hero-bg img,
      .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        will-change: transform;
        transform: translate3d(0, 0, 0);
      }

.hero-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          45deg,
          rgba(20, 42, 71, 0.75) 0%,
          rgba(20, 42, 71, 0.35) 40%,
          transparent 65%
        );
      }

.hero-content {
        position: relative;
        z-index: 1;
        height: 100%;
        padding: 81px 180px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }

.hero-text {
        flex: 1;
        display: flex;
        align-items: flex-end;
        padding-bottom: 80px;
      }

.hero-text h1 {
        font-family: var(--serif);
        font-size: clamp(40px, 4.2vw, 64px);
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: -0.025em;
        max-width: 720px;
        color: var(--paper);
      }

.hero-strip {
        position: relative;
        z-index: 1;
        padding: 22px 0;
        border-top: 1px solid rgba(250, 248, 243, 0.22);
        border-bottom: 1px solid rgba(250, 248, 243, 0.22);
        overflow: hidden;
        background: linear-gradient(180deg, transparent, rgba(20, 42, 71, 0.5));
        mask-image: linear-gradient(
          90deg,
          transparent 0,
          black 4%,
          black 96%,
          transparent 100%
        );
        -webkit-mask-image: linear-gradient(
          90deg,
          transparent 0,
          black 4%,
          black 96%,
          transparent 100%
        );
      }

.hero-strip-track {
        display: flex;
        gap: 60px;
        width: max-content;
        animation: stripScroll 38s linear infinite;
      }

@keyframes stripScroll {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(-50%);
        }
      }

.hero-strip-item {
        display: inline-flex;
        align-items: center;
        gap: 24px;
        font-family: var(--serif);
        font-size: 22px;
        font-weight: 400;
        font-style: italic;
        color: rgba(244, 241, 234, 0.92);
        white-space: nowrap;
      }

.hero-strip-item::before {
        content: "◆";
        color: var(--orange);
        font-size: 14px;
        font-style: normal;
      }

/* ============================================
   SECTION TITLE (shared)
   ============================================ */

.section {
        padding: 120px 180px;
      }

.section-title {
        font-family: var(--serif);
        font-size: clamp(40px, 4vw, 56px);
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -0.025em;
        color: var(--text);
        margin-bottom: 80px;
      }

.section-title em {
        font-style: italic;
        color: var(--orange);
        font-weight: 500;
        font-variation-settings:
          "SOFT" 100,
          "WONK" 1;
      }

/* ============================================
   BENEFITS
   ============================================ */

.benefits {
        background: transparent;
        position: relative;
      }

.benefits::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--paper);
        background-image:
          linear-gradient(var(--line) 1px, transparent 1px),
          linear-gradient(90deg, var(--line) 1px, transparent 1px);
        background-size: 56px 56px;
        pointer-events: none;
        z-index: 0;
      }

.benefits > .section-eyebrow,
      .benefits > .section-title,
      .benefits > .benefits-grid {
        position: relative;
        z-index: 1;
      }

.benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }

.benefit-card {
        position: relative;
        aspect-ratio: 1.05 / 1;
        overflow: hidden;
        background: var(--navy);
        cursor: default;
      }

.benefit-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s var(--ease);
      }

.benefit-card:hover img {
        transform: scale(1.06);
      }

.benefit-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          180deg,
          rgba(20, 42, 71, 0.1) 30%,
          rgba(20, 42, 71, 0.85) 100%
        );
        pointer-events: none;
      }

.benefit-card-title {
        position: absolute;
        left: 32px;
        bottom: 32px;
        right: 32px;
        z-index: 2;
        font-family: var(--serif);
        font-size: 26px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.015em;
        color: var(--paper);
      }

/* ============================================
   FUNCTIONS / MODULES
   ============================================ */

.functions {
        background: transparent;
        padding-top: 80px;
        position: relative;
      }

.functions::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: #e8e3d8;
        background-image:
          linear-gradient(var(--line) 1px, transparent 1px),
          linear-gradient(90deg, var(--line) 1px, transparent 1px);
        background-size: 56px 56px;
        pointer-events: none;
        z-index: 0;
      }

.functions > .section-eyebrow,
      .functions > .section-title,
      .functions > .module-row, .functions > .and-more {
        position: relative;
        z-index: 1;
      }

.module-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
        margin-bottom: 80px;
      }

.module-row:last-child {
        margin-bottom: 0;
      }

.module-row.right .module-text {
        order: 2;
      }

.module-row.right .module-mockup {
        order: 1;
      }

.module-text h3 {
        font-family: var(--serif);
        font-size: 32px;
        font-weight: 600;
        color: #003f8a;
        letter-spacing: -0.02em;
        margin-bottom: 20px;
      }

.module-text p {
        font-family: var(--sans);
        font-size: 16px;
        line-height: 1.6;
        color: var(--text-soft);
        margin-bottom: 28px;
        max-width: 580px;
      }

.module-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--sans);
        font-size: 15px;
        font-weight: 600;
        color: var(--orange);
        transition:
          gap 0.3s var(--ease),
          color 0.3s var(--ease);
      }

.module-link:hover {
        gap: 14px;
        color: var(--orange-light);
      }

.module-link .arrow {
        display: inline-block;
        transition: transform 0.3s var(--ease);
      }

.module-link:hover .arrow {
        transform: translateX(4px);
      }

.module-mockup {
        position: relative;
        aspect-ratio: 16 / 9;
        background: var(--navy);
        border-radius: 12px;
        overflow: hidden;
        box-shadow:
          0 24px 60px rgba(20, 42, 71, 0.18),
          0 2px 4px rgba(20, 42, 71, 0.06);
      }

.module-mockup video,
      .module-mockup img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
      }

/* ============================================
   CTA DEMO
   ============================================ */

.cta-demo {
        position: relative;
        padding: 0;
        background: transparent;
        color: var(--paper);
        overflow: hidden;
      }

.cta-demo-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
        pointer-events: none;
      }

.cta-demo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          ellipse at center,
          rgba(20, 42, 71, 0.45) 0%,
          rgba(20, 42, 71, 0.15) 60%,
          transparent 90%
        );
        z-index: 1;
        pointer-events: none;
      }

.cta-demo-inner {
        position: relative;
        z-index: 1;
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
      }

.cta-demo {
        min-height: 460px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

.cta-demo-inner {
        position: relative;
        z-index: 2;
        max-width: 720px;
        margin: 100px auto;
        padding: 40px 60px;
        text-align: center;
        text-shadow: 0 2px 16px rgba(20, 42, 71, 0.55);
      }

.cta-demo h2 {
        font-family: var(--serif);
        font-size: clamp(40px, 4vw, 56px);
        font-weight: 600;
        letter-spacing: -0.025em;
        line-height: 1.1;
        color: var(--paper);
        margin-bottom: 20px;
      }

.cta-demo .section-eyebrow {
        color: var(--orange);
      }

.cta-demo .section-eyebrow::before {
        background: var(--orange);
      }

.cta-demo h2 em {
        font-style: italic;
        color: var(--orange);
        font-weight: 500;
        font-variation-settings:
          "SOFT" 100,
          "WONK" 1;
      }

.cta-demo p {
        font-size: 17px;
        line-height: 1.55;
        color: rgba(250, 248, 243, 0.85);
        margin-bottom: 40px;
      }

.cta-demo-actions {
        display: inline-flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
      }

.cta-demo .btn-secondary {
        background: rgba(20, 42, 71, 0.55);
        color: var(--paper);
        border-color: var(--paper);
        backdrop-filter: blur(4px);
      }

.cta-demo .btn-secondary:hover {
        background: var(--paper);
        color: var(--navy);
        border-color: var(--paper);
      }

.cta-demo .section-eyebrow {
        color: var(--orange);
      }

.cta-demo .section-eyebrow::before {
        background: var(--orange);
      }

/* ============================================
   FAQ
   ============================================ */

.faq {
        background: transparent;
        padding: 120px 180px;
        position: relative;
      }

.faq::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--paper);
        background-image:
          linear-gradient(var(--line) 1px, transparent 1px),
          linear-gradient(90deg, var(--line) 1px, transparent 1px);
        background-size: 56px 56px;
        pointer-events: none;
        z-index: 0;
      }

.faq .faq-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* (regla .faq-grid vieja eliminada — usar .faq .faq-grid) */

.faq-intro h2 {
        font-family: var(--serif);
        font-size: clamp(36px, 3.4vw, 48px);
        font-weight: 600;
        font-style: italic;
        letter-spacing: -0.02em;
        line-height: 1.05;
        color: var(--orange);
        margin-bottom: 18px;
        font-variation-settings: "SOFT" 100;
      }

.faq-intro p {
        font-size: 15px;
        line-height: 1.55;
        color: var(--navy);
        margin-top: 0;
      }

.faq-intro p a {
        color: var(--orange);
        font-weight: 600;
        border-bottom: 1px solid var(--orange);
        padding-bottom: 1px;
        transition: color 0.3s var(--ease);
      }

.faq-intro p a:hover {
        color: var(--orange-light);
        border-bottom-color: var(--orange-light);
      }

.faq-list {
  position: relative;
  z-index: 1;
  list-style: none;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
        border-bottom: 1px solid rgba(217, 119, 6, 0.3);
      }

.faq-item summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 22px 4px;
        font-family: var(--sans);
        font-size: 17px;
        font-weight: 500;
        color: var(--text);
        cursor: pointer;
        list-style: none;
        transition: color 0.3s var(--ease);
      }

.faq-item summary::-webkit-details-marker {
        display: none;
      }

.faq-item summary:hover {
        color: var(--orange);
      }

.faq-item summary::after {
        content: "";
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        transition: transform 0.3s var(--ease);
      }

.faq-item[open] summary::after {
        transform: rotate(180deg);
      }

.faq-item .faq-answer {
        padding: 0 4px 24px;
        font-size: 15px;
        line-height: 1.6;
        color: var(--text-soft);
        max-width: 760px;
      }

/* ============================================
   FOOTER
   ============================================ */

/* ============================================
   CONTACT MODAL
   ============================================ */

/* ============================================
   FAB CHAT
   ============================================ */

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .section,
        .cta-demo,
        .faq {
          padding-left: 80px;
          padding-right: 80px;
        }
}

@media (max-width: 980px) {
  .corner {
          display: none;
        }

  @media (max-width: 720px) {
        .nav {
          padding: 0 16px;
          height: 64px;
        }

      }

  .hero {
          min-height: 600px;
        }

  .hero-content {
          padding: 72px 24px 0;
        }

  .hero-text h1 {
          font-size: 34px;
        }

  .hero-strip {
          font-size: 13px;
          gap: 16px;
          padding: 16px 0;
        }

  .hero-strip-sep {
          width: 14px;
          height: 14px;
        }

  .hero-dot {
          right: 24px;
        }

  .section,
        .cta-demo,
        .faq {
          padding: 64px 24px;
        }

  .section-title {
          font-size: 32px;
          margin-bottom: 40px;
        }

  .benefits-grid {
          grid-template-columns: 1fr 1fr;
          gap: 14px;
        }

  .module-row {
          grid-template-columns: 1fr;
          gap: 28px;
          margin-bottom: 56px;
        }

  .module-row.right .module-text {
          order: 1;
        }

  .module-row.right .module-mockup {
          order: 2;
        }

  /* responsive grid override eliminado (ya no es grid) */

  .faq-intro p {
          margin-top: 0;
        }

  .cta-demo {
          min-height: 460px;
          display: flex;
          align-items: center;
          justify-content: center;
        }

  .cta-demo-inner {
          position: relative;
          z-index: 2;
          max-width: 720px;
          margin: 100px auto;
          padding: 40px 60px;
          text-align: center;
          text-shadow: 0 2px 16px rgba(20, 42, 71, 0.55);
        }

  .cta-demo h2 {
          font-size: 34px;
        }
}

@media (max-width: 600px) {
  .hero-text h1 {
          font-size: 28px;
        }

  .hero-strip {
          flex-wrap: wrap;
          justify-content: center;
        }

  .hero-strip-sep {
          display: none;
        }

  .benefits-grid {
          grid-template-columns: 1fr;
        }

  .benefit-card {
          aspect-ratio: 16 / 10;
        }

  .cta-demo-actions {
          flex-direction: column;
          width: 100%;
        }
}

/* Y mucho más link */

.and-more {
  text-align: center;
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--line-strong);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.and-more-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.and-more-link em {
  font-style: italic;
  color: var(--orange);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.and-more-link .arrow {
  font-size: 28px;
  color: var(--orange);
  transition: transform 0.3s var(--ease);
}

.and-more-link:hover {
  gap: 22px;
  color: var(--orange);
}

.and-more-link:hover .arrow { transform: translateX(6px); }

/* ===== HAMBURGUESA + OVERLAY MOBILE ===== */

@media (max-width: 720px) {
  .nav > .btn-primary { display: none !important; }
}

/* ===== MODAL CONTACTO: BOTTOM SHEET EN MOBILE ===== */

/* ===== MÁS RESPIRACIÓN EN BOTTOM SHEET + OVERLAY MENU (mobile) ===== */

@media (max-width: 720px) {
  /* Bottom sheet: aumentar gaps del formulario */

  /* Fullscreen mobile menu: más separación entre links */
}

/* ===== SINCRONIZACIÓN NAV + FAB CON INDEX (mismo comportamiento en todos los breakpoints) ===== */

/* === Hero video: servir video horizontal en desktop, vertical en mobile === */
/* Default (desktop): solo desktop visible */
.hero-video-mobile { display: none; }
.hero-video-desktop { display: block; }

@media (max-width: 720px) {
  .hero-video-desktop { display: none; }
  .hero-video-mobile { display: block; }
}
