/* ── Reset ──────────────────────────── */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }

    body {
      background: #f7f3ea;
      color: #29261b;
      font-family: "Inter", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* ── Tokens ─────────────────────────── */
    :root {
      --ink: #29261b;
      --ink-2: #4a4537;
      --ink-3: #7a7565;
      --indigo: #1f2a6b;
      --indigo-deep: #141a47;
      --indigo-dark: #0d1025;
      --bronze: #8a6a3b;
      --bronze-soft: #b89870;
      --bronze-wash: #f3ead8;
      --paper: #f7f3ea;
      --paper-mid: #f0ead8;
      --paper-bright: #fbf8ef;
      --serif: "Fraunces", Georgia, serif;
      --sans: "Inter", system-ui, sans-serif;
      --mono: "JetBrains Mono", monospace;
      --green: #3da57f;
      --green-wash: rgba(61, 165, 127, .1);
      --indigo-wash: rgba(31, 42, 107, .08);
      --red: #c2604c;
    }

    /* ── NAV ────────────────────────────── */
    /* NAV -- siempre solido, separado del hero, estilo Alice */
    #nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 200;
      height: 60px;
      display: flex;
      align-items: center;
      padding: 0 48px;
      justify-content: space-between;
      background: var(--paper-bright);
      border-bottom: 1px solid rgba(41, 38, 27, .08);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .nav-logo .wordmark {
      font-family: var(--serif);
      font-weight: 380;
      font-size: 14px;
      letter-spacing: .18em;
      padding-left: .1em;
      color: var(--ink);
    }

    .nav-links {
      display: flex;
      gap: 24px;
      align-items: center;
    }

    .nav-links a {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .07em;
      text-transform: uppercase;
      color: var(--ink-3);
      text-decoration: none;
      transition: color .2s;
    }

    .nav-links a.active {
      color: var(--bronze);
    }

    .nav-links a:hover {
      color: var(--bronze) !important;
    }

    .nav-secondary-action {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .07em;
      text-transform: uppercase;
      color: var(--indigo) !important;
      text-decoration: none;
      border: 1px solid rgba(31, 42, 107, 0.24);
      padding: 8px 14px;
      border-radius: 5px;
      transition: all .2s;
    }

    .nav-secondary-action:hover {
      background: rgba(31, 42, 107, 0.05);
      border-color: var(--indigo);
      color: var(--indigo-deep) !important;
    }

    .nav-cta {
      background: var(--indigo) !important;
      color: #f7f3ea !important;
      padding: 8px 18px;
      border-radius: 5px;
      text-transform: uppercase !important;
      transition: background .2s !important;
    }

    .nav-cta:hover {
      background: var(--indigo-deep) !important;
    }

    /* ── Mobile Menu Trigger & Drawer ── */
    .nav-toggle,
    .mobile-menu-close {
      display: none;
      background: none;
      border: none;
      color: var(--ink);
      cursor: pointer;
      padding: 8px;
      align-items: center;
      justify-content: center;
      transition: color .2s;
    }

    .nav-toggle:hover,
    .mobile-menu-close:hover {
      color: var(--bronze);
    }

    .mobile-menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(41, 38, 27, 0.4);
      backdrop-filter: blur(4px);
      z-index: 299;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .mobile-menu-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 320px;
      max-width: 85%;
      background: var(--paper-bright);
      z-index: 300;
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      padding: 24px;
      box-shadow: -10px 0 30px rgba(41, 38, 27, 0.15);
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .mobile-menu-drawer.open {
      transform: translateX(0);
    }

    .mobile-menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(41, 38, 27, 0.08);
      padding-bottom: 16px;
    }

    .mobile-menu-links {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .mobile-menu-links a {
      font-size: 14px;
      font-weight: 600;
      letter-spacing: .07em;
      text-transform: uppercase;
      color: var(--ink-3);
      text-decoration: none;
      transition: color .2s;
    }

    .mobile-menu-links a.active {
      color: var(--bronze);
    }

    .mobile-menu-links a:hover {
      color: var(--bronze) !important;
    }

    .mobile-menu-divider {
      border: none;
      border-top: 1px solid rgba(41, 38, 27, 0.08);
      margin: 8px 0;
    }

    .mobile-secondary-action {
      text-align: center;
      border: 1px solid rgba(31, 42, 107, 0.24);
      padding: 12px;
      border-radius: 5px;
      color: var(--indigo) !important;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      text-decoration: none;
      transition: all .2s;
    }

    .mobile-secondary-action:hover {
      background: rgba(31, 42, 107, 0.05);
      border-color: var(--indigo);
    }

    .mobile-cta {
      background: var(--indigo);
      color: #f7f3ea !important;
      text-align: center;
      padding: 12px;
      border-radius: 5px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      text-decoration: none;
      transition: background .2s;
    }

    .mobile-cta:hover {
      background: var(--indigo-deep);
    }

    /* HERO -- fullscreen debajo del nav */
    #hero {
      position: relative;
      height: calc(100vh - 60px);
      margin-top: 60px;
      min-height: 580px;
      overflow: hidden;
    }

    .hero-video-wrapper {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .hero-vid {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 1.8s ease-in-out;
      background: var(--paper-mid);
    }

    .hero-vid.active {
      opacity: 1;
    }

    .hero-vid video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      pointer-events: none;
      mix-blend-mode: multiply !important;
      opacity: 0.50 !important;
    }

    /* gradiente solo en zona de texto, sin tapar el vídeo */
    .hero-overlay {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 65%;
      /* más ancho para que el fundido tenga recorrido */
      z-index: 2;
      /* fundido suave en el borde izquierdo, sólido a la derecha */
      background: linear-gradient(to right,
          transparent 0%,
          rgba(255, 255, 255, 0.86) 32%,
          rgba(255, 255, 255, 0.86) 100%);
      border-radius: 0;
    }

    .hero-content {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 42%;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: center;
      /* centrado en altura */
      padding: 0 6% 0 7%;
      text-align: left;
    }

    /* Eyebrow style (not italic, larger) */
    .hero-eyebrow-italic {
      font-family: var(--serif);
      font-style: normal;
      font-weight: 350;
      font-size: clamp(18px, 1.8vw, 26px);
      color: var(--ink);
      margin-bottom: 12px;
      letter-spacing: -.01em;
    }

    /* H1 extra grande, en bronce, cursiva y peso 400 */
    #hero h1 {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 400;
      font-size: clamp(76px, 9.5vw, 144px);
      letter-spacing: -.022em;
      line-height: 1.05;
      color: var(--bronze);
      margin-bottom: 18px;
    }

    #hero h1 em {
      font-style: italic;
      font-weight: 400;
      color: var(--bronze);
    }

    /* Cuerpo mono uppercase in dark gray and larger */
    .hero-sub {
      font-family: var(--mono);
      font-size: clamp(12px, 1.1vw, 14px);
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--ink-2);
      line-height: 1.9;
      margin-bottom: 36px;
    }

    /* Descripcion descriptiva en serif normal */
    .hero-desc {
      font-family: var(--serif);
      font-style: normal;
      font-weight: 350;
      font-size: clamp(18px, 1.4vw, 26px);
      color: var(--ink-2);
      line-height: 1.25;
      margin-bottom: 16px;
    }

    .hero-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* CTAs -- bronze filled + dark outline, como Alice */
    .btn-p {
      background: var(--bronze);
      color: #f7f3ea;
      padding: 12px 26px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      text-decoration: none;
      border: 1px solid var(--bronze);
      transition: background .2s;
    }

    .btn-p:hover {
      background: #6e5230;
      border-color: #6e5230;
    }

    .btn-s {
      background: transparent;
      color: var(--ink);
      border: 1px solid rgba(41, 38, 27, .30);
      padding: 12px 26px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      text-decoration: none;
      transition: all .2s;
    }

    .btn-s:hover {
      background: rgba(41, 38, 27, .06);
      border-color: var(--ink);
    }

    /* Seccion CTA footer -- mismo pero sobre fondo crema */
    .btn-p-dark {
      background: var(--indigo);
      color: var(--paper);
      padding: 13px 26px;
      border-radius: 5px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: background .2s;
    }

    .btn-p-dark:hover {
      background: var(--indigo-deep);
    }

    /* hero progress bar */
    .hero-progress {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: rgba(247, 243, 234, .2);
      z-index: 3;
    }

    .hero-progress-bar {
      height: 100%;
      background: var(--bronze);
      width: 0%;
      transition: width linear;
    }

    /* hero nav dots */
    .hero-dots {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 3;
    }

    .hero-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: rgba(31, 42, 107, .22);
      cursor: pointer;
      transition: all .3s;
    }

    .hero-dot.active {
      background: var(--bronze);
      transform: scale(1.5);
    }

    /* ── STRIP ──────────────────────────── */
    #strip {
      background: var(--indigo-deep);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid rgba(247, 243, 234, .06);
    }

    .strip-item {
      padding: 44px 40px;
      text-align: center;
      border-right: 1px solid rgba(247, 243, 234, .08);
    }

    .strip-item:last-child {
      border-right: none;
    }

    .strip-num {
      font-family: var(--serif);
      font-size: clamp(28px, 3vw, 38px);
      font-weight: 200;
      color: var(--paper);
      letter-spacing: -.02em;
      line-height: 1;
    }

    .strip-num em {
      font-style: italic;
      color: var(--bronze-soft);
    }

    .strip-lbl {
      font-family: var(--mono);
      font-size: 14px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(247, 243, 234, .45);
      margin-top: 8px;
    }

    /* ── LIGHT SECTIONS ─────────────────── */
    .light-section {
      background: var(--paper);
      padding: 140px 80px;
    }

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

    #jumbo-engines {
      padding-bottom: 24px;
      padding-top: 56px;
    }

    #datos {
      padding-top: 56px;
    }

    #speaking {
      padding-top: 64px;
      padding-bottom: 56px;
    }

    .speaking-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      margin-top: 24px;
    }

    .section-wrap {
      max-width: 1180px;
      margin: 0 auto;
    }

    .eyebrow {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--bronze);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .eyebrow::before {
      content: "";
      flex: 0 0 28px;
      height: 1px;
      background: var(--bronze);
      opacity: .5;
    }

    .section-h {
      font-family: var(--serif);
      font-weight: 300;
      font-size: clamp(30px, 3.8vw, 50px);
      letter-spacing: -.02em;
      line-height: 1.08;
      color: var(--indigo);
      margin-bottom: 18px;
    }

    .section-h em {
      font-style: italic;
      font-weight: 200;
    }

    .section-body {
      font-size: 16px;
      color: var(--ink-2);
      line-height: 1.72;
      max-width: 580px;
    }

    /* ── DAILY CONTENT SECTION ──────────── */
    #daily-content {
      padding: 100px 0;
    }

    #daily-content .section-h em {
      font-size: 0.75em;
      display: block;
      margin-top: 8px;
    }

    #daily-content .section-wrap {
      max-width: none;
      margin: 0;
      padding-left: max(80px, calc((100vw - 1180px) / 2));
      padding-right: 48px;
    }

    .daily-content-cols {
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      gap: 64px;
      align-items: center;
    }

    .daily-items {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-top: 28px;
    }

    .daily-item {
      background: var(--paper-bright);
      border: 1px solid rgba(41, 38, 27, .06);
      border-radius: 10px;
      padding: 20px 24px;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .daily-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(41, 38, 27, 0.04);
      border-color: rgba(138, 106, 59, 0.2);
    }

    .daily-item-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 6px;
    }

    .daily-item-num {
      font-family: var(--serif);
      font-size: 15px;
      font-weight: 350;
      color: var(--bronze-soft);
      background: rgba(184, 152, 112, 0.08);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .daily-item h3 {
      font-family: var(--serif);
      font-size: 17px;
      font-weight: 400;
      color: var(--indigo);
    }

    .daily-item p {
      font-size: 14px;
      color: var(--ink-2);
      line-height: 1.6;
    }

    /* Browser Mockup Window */
    .browser-mockup {
      background: var(--paper-bright);
      border: 1px solid rgba(41, 38, 27, 0.12);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(41, 38, 27, 0.08), 0 30px 70px rgba(41, 38, 27, 0.12);
    }

    .browser-header {
      height: 38px;
      background: var(--paper-mid);
      border-bottom: 1px solid rgba(41, 38, 27, 0.08);
      display: flex;
      align-items: center;
      padding: 0 16px;
      position: relative;
    }

    .browser-dots {
      display: flex;
      gap: 6px;
      position: absolute;
      left: 16px;
    }

    .browser-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }

    .browser-dot.red {
      background: #ff5f56;
      opacity: 0.8;
    }

    .browser-dot.yellow {
      background: #ffbd2e;
      opacity: 0.8;
    }

    .browser-dot.green {
      background: #27c93f;
      opacity: 0.8;
    }

    .browser-address {
      font-family: var(--mono);
      font-size: 9px;
      letter-spacing: 0.03em;
      color: var(--ink-3);
      background: var(--paper-bright);
      padding: 3px 16px;
      border-radius: 4px;
      border: 1px solid rgba(41, 38, 27, 0.06);
      margin: 0 auto;
      width: 65%;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .parallax-window-viewport {
      position: relative;
      height: 520px;
      overflow-y: scroll;
      overflow-x: hidden;
      background: #fafaf9;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: var(--bronze-soft) var(--paper-mid);
    }

    .parallax-window-viewport::-webkit-scrollbar {
      width: 6px;
    }

    .parallax-window-viewport::-webkit-scrollbar-track {
      background: var(--paper-mid);
      border-radius: 3px;
    }

    .parallax-window-viewport::-webkit-scrollbar-thumb {
      background-color: var(--bronze-soft);
      border-radius: 3px;
    }

    .parallax-window-image {
      display: block;
      width: 100%;
      height: auto;
    }

    @media (prefers-reduced-motion: reduce) {
      .parallax-window-viewport {
        height: auto;
        overflow: visible;
      }
    }


    /* ── PARA QUIEN ─────────────────────── */
    .services-layout {
      display: grid;
      grid-template-columns: 2fr 1.2fr;
      gap: 48px;
      margin-top: 60px;
      align-items: stretch;
    }

    .services {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0;
    }

    .service {
      padding: 36px 32px;
      background: #ffffff;
      border-right: 1px solid rgba(41, 38, 27, .08);
      border-bottom: 1px solid rgba(41, 38, 27, .08);
    }

    .service:nth-child(2n) {
      border-right: none;
    }

    .service:nth-child(3),
    .service:nth-child(4) {
      border-bottom: none;
    }

    .services-image {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .services-image-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .services-image img {
      width: auto;
      height: 100%;
      max-width: 100%;
      max-height: 620px;
      object-fit: contain;
      border-radius: 12px;
      flex: 1;
      min-height: 0;
    }

    .services-image-caption {
      font-family: var(--serif);
      font-size: 28px;
      font-style: italic;
      font-weight: 350;
      color: var(--indigo);
      margin-bottom: 16px;
      text-align: center;
    }

    .services-image-wrapper p:not(.services-image-caption) {
      text-align: center;
      line-height: 1.72;
      margin-bottom: 24px;
    }

    .service-tag {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--bronze);
      margin-bottom: 16px;
      display: inline-block;
      background: rgba(138, 106, 59, .1);
      padding: 3px 9px;
      border-radius: 4px;
    }

    .service h3 {
      font-family: var(--serif);
      font-size: 26px;
      font-weight: 350;
      color: var(--indigo);
      margin-bottom: 12px;
      line-height: 1.1;
    }

    .service p {
      font-size: 14px;
      color: var(--ink-3);
      line-height: 1.65;
      margin-bottom: 16px;
    }

    .service ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .service ul li {
      font-size: 14px;
      color: var(--ink-2);
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .service ul li::before {
      content: "—";
      color: var(--bronze);
      flex-shrink: 0;
    }

    /* ── DATA SECTION ───────────────────── */
    .data-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      margin-top: 60px;
      align-items: center;
    }

    .data-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .data-item {
      background: var(--paper-bright);
      border: 1px solid rgba(41, 38, 27, 0.05);
      border-radius: 12px;
      padding: 20px 24px;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 20px;
      align-items: flex-start;
      box-shadow: 0 4px 12px rgba(41, 38, 27, 0.02);
      transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      cursor: pointer;
    }

    .data-item-badge {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      color: var(--bronze-soft);
      background: rgba(184, 152, 112, 0.08);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      margin-top: 2px;
    }

    .data-item-content h4 {
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 6px;
      transition: color 0.3s ease;
    }

    .data-item-content p {
      font-size: 14px;
      color: var(--ink-3);
      line-height: 1.6;
      margin: 0;
      transition: color 0.3s ease;
    }

    /* Hover State */
    .data-item:hover {
      transform: translateY(-3px);
      border-color: rgba(31, 42, 107, 0.12);
      box-shadow: 0 12px 28px rgba(41, 38, 27, 0.05), 0 4px 10px rgba(41, 38, 27, 0.02);
    }

    .data-item:hover .data-item-badge {
      background: var(--indigo);
      color: var(--paper-bright);
    }

    .data-item:hover .data-item-content h4 {
      color: var(--indigo);
    }

    .data-item:hover .data-item-content p {
      color: var(--ink-2);
    }

    .data-mock {
      background: var(--paper-bright);
      border: 1px solid rgba(41, 38, 27, .1);
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 2px 4px rgba(41, 38, 27, .04), 0 12px 32px rgba(41, 38, 27, .06);
    }

    .mock-header {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--bronze);
      margin-bottom: 16px;
    }

    .mock-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 9px;
    }

    .mock-label {
      font-size: 11px;
      color: var(--ink-3);
      width: 100px;
      flex-shrink: 0;
    }

    .mock-bar-w {
      flex: 1;
      height: 5px;
      background: var(--paper-mid);
      border-radius: 3px;
    }

    .mock-bar {
      height: 100%;
      border-radius: 3px;
    }

    .mock-val {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      width: 26px;
      text-align: right;
    }

    .mock-chips {
      display: flex;
      gap: 8px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .mock-chip {
      font-family: var(--mono);
      font-size: 9px;
      font-weight: 500;
      letter-spacing: .07em;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 4px;
    }

    /* ── COLLAGE STACK ──────────────────── */
    .collage-wrap {
      position: relative;
      width: 100%;
      height: 480px;
      margin-top: 40px;
    }

    .collage-card {
      position: absolute !important;
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      cursor: pointer;
    }

    /* Set default positions, scales and rotations to overlap beautifully */
    .collage-card.card-main {
      width: 70%;
      top: 10%;
      left: 0;
      z-index: 2;
      transform: rotate(-2deg);
      box-shadow: 0 8px 20px rgba(41, 38, 27, 0.06), 0 20px 40px rgba(41, 38, 27, 0.08);
    }

    .collage-card.card-psyche {
      width: 55%;
      top: 0;
      right: 0;
      z-index: 1;
      transform: rotate(3deg) translateY(-10px);
      box-shadow: 0 8px 20px rgba(41, 38, 27, 0.06), 0 20px 40px rgba(41, 38, 27, 0.08);
    }

    .collage-card.card-transcript {
      width: 50%;
      bottom: 5%;
      right: 5%;
      z-index: 3;
      transform: rotate(-1deg) translateY(10px);
      box-shadow: 0 12px 30px rgba(41, 38, 27, 0.08), 0 30px 60px rgba(41, 38, 27, 0.12);
    }

    /* Interactive hover logic */
    .collage-card:hover {
      z-index: 10 !important;
      transform: scale(1.06) rotate(0deg) translate(0, 0) !important;
      box-shadow: 0 20px 40px rgba(41, 38, 27, 0.12), 0 45px 90px rgba(41, 38, 27, 0.18) !important;
      opacity: 1 !important;
      filter: none !important;
    }

    /* Dim and slightly shrink non-hovered cards when container is hovered */
    .collage-wrap:hover .collage-card:not(:hover) {
      opacity: 0.5;
      transform: scale(0.95);
      filter: blur(1px) grayscale(20%);
    }

    .collage-card-img-w {
      width: 100%;
      overflow: hidden;
      background: var(--paper-mid);
      display: flex;
      align-items: flex-start;
    }

    .collage-card-img-w img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* ── LIGHTBOX MODAL ─────────────────── */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(13, 16, 37, 0.82);
      /* Deep indigo tint background */
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      cursor: zoom-out;
    }

    .lightbox.show {
      display: flex;
      opacity: 1;
    }

    .lightbox-content {
      margin: auto;
      display: block;
      max-width: 85%;
      max-height: 80%;
      border-radius: 12px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(247, 243, 234, 0.08);
      transform: scale(0.92);
      transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
      cursor: default;
    }

    .lightbox.show .lightbox-content {
      transform: scale(1);
    }

    .lightbox-close {
      position: absolute;
      top: 30px;
      right: 40px;
      color: var(--paper);
      font-size: 44px;
      font-weight: 200;
      transition: color 0.2s;
      cursor: pointer;
      user-select: none;
      line-height: 1;
    }

    .lightbox-close:hover {
      color: var(--bronze-soft);
    }

    .lightbox-caption {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      width: 80%;
      max-width: 700px;
      text-align: center;
      font-family: var(--mono);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--bronze-soft);
      pointer-events: none;
      background: rgba(13, 16, 37, 0.6);
      padding: 6px 16px;
      border-radius: 30px;
      border: 1px solid rgba(247, 243, 234, 0.05);
    }

    /* ── PARALLAX SECTIONS ──────────────── */
    .parallax {
      position: relative;
      min-height: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-attachment: fixed;
      background-size: cover;
      background-position: center;
      overflow: hidden;
    }

    .parallax .par-overlay {
      position: absolute;
      inset: 0;
    }

    .parallax .par-content {
      position: relative;
      z-index: 2;
      text-align: center;
      max-width: 860px;
      padding: 80px 48px;
    }

    .par-eyebrow {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--bronze-soft);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .par-eyebrow::before,
    .par-eyebrow::after {
      content: "";
      flex: 0 0 32px;
      height: 1px;
      background: var(--bronze-soft);
      opacity: .4;
    }

    .par-h {
      font-family: var(--serif);
      font-weight: 300;
      font-size: clamp(32px, 4.5vw, 60px);
      letter-spacing: -.022em;
      line-height: 1.08;
      color: #f7f3ea;
      margin-bottom: 20px;
    }

    .par-h em {
      font-style: italic;
      font-weight: 200;
      color: var(--bronze-soft);
    }

    .par-body {
      font-size: 16px;
      color: rgba(247, 243, 234, .70);
      line-height: 1.72;
      max-width: 640px;
      margin: 0 auto;
    }

    /* parallax 1 — dark indigo */
    #par1 {
      background-color: #0d1025;
    }

    #par1 .par-overlay {
      background: linear-gradient(180deg, rgba(13, 16, 37, .1) 0%, rgba(13, 16, 37, .5) 50%, rgba(13, 16, 37, .1) 100%);
    }

    /* parallax 2 — quote */
    #par2 {
      background-image: url("/uploads/teacher.jpg");
    }

    #par2 .par-overlay {
      /* Degradado radial sobre toda la sección para proteger el centro sin cortes y fundir más la imagen */
      background: radial-gradient(circle, rgba(16, 12, 4, 0.85) 0%, rgba(16, 12, 4, 0.7) 50%, rgba(16, 12, 4, 0.58) 100%);
    }


    /* parallax 4 — cta bg */
    #par4 {
      background-color: #140e08;
    }

    #par4 .par-overlay {
      background: rgba(20, 14, 8, .5);
    }

    /* parallax campus — datos */
    #campus {
      background-color: var(--indigo-deep);
    }

    #campus .par-overlay {
      background: rgba(20, 26, 71, .5);
    }

    /* ── JUMBO ENGINES SECTION ──────────── */
    .jumbo-icon {
      width: 160px;
      height: auto;
      color: var(--indigo);
      display: block;
      margin: 0 auto 20px;
    }

    .eyebrow-center {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--bronze);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .eyebrow-center::before,
    .eyebrow-center::after {
      content: "";
      flex: 0 0 24px;
      height: 1px;
      background: var(--bronze);
      opacity: .5;
    }

    .engines-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 54px 32px;
      margin-top: 48px;
    }

    .engine-card {
      background: #ffffff;
      border: 1px solid rgba(41, 38, 27, .08);
      border-radius: 12px;
      position: relative;
      overflow: visible;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 20px rgba(41, 38, 27, .03);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .engine-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(41, 38, 27, .06);
      border-color: rgba(31, 42, 107, .15);
    }

    .engine-card-num {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--indigo);
      color: var(--paper);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--serif);
      font-size: 18px;
      font-weight: 300;
      border: 3px solid var(--paper);
      box-shadow: 0 4px 10px rgba(31, 42, 107, .15);
      z-index: 3;
    }

    .engine-card-img {
      width: 100%;
      height: 200px;
      border-top-left-radius: 11px;
      border-top-right-radius: 11px;
      overflow: hidden;
      position: relative;
    }

    .engine-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .engine-card:hover .engine-card-img img {
      transform: scale(1.04);
    }

    .engine-card-body {
      padding: 24px 28px 28px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .engine-card-body h3 {
      font-family: var(--serif);
      font-size: 18px;
      font-weight: 600;
      color: var(--indigo);
      margin-bottom: 12px;
      letter-spacing: -.01em;
    }

    .engine-card-body h3 em {
      font-style: italic;
      font-weight: 200;
      color: var(--bronze);
      font-size: 0.9em;
      margin-left: 4px;
    }

    .engine-card-body h5 {
      color: var(--bronze);
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 6px;
    }

    .engine-card-body p {
      font-size: 14px;
      color: var(--ink-2);
      line-height: 1.6;
      margin: 0;
    }

    /* ── COMPARATIVA ────────────────────── */
    .compare-table {
      margin-top: 64px;
      border: 1px solid rgba(41, 38, 27, .1);
      border-radius: 12px;
      background: var(--paper-bright);
      box-shadow: 0 16px 40px rgba(41, 38, 27, .05);
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      position: relative;
    }

    .compare-row {
      display: contents;
    }

    .compare-cell {
      padding: 22px 28px;
      border-bottom: 1px solid rgba(41, 38, 27, .08);
      display: flex;
      flex-direction: column;
      gap: 4px;
      justify-content: center;
      font-size: 15px;
      color: var(--ink);
    }

    .compare-row:last-child .compare-cell {
      border-bottom: none;
    }

    .compare-header .compare-cell {
      background: rgba(41, 38, 27, .03);
      border-bottom: 1px solid rgba(41, 38, 27, .1);
    }

    .compare-header .compare-cell:first-child {
      border-top-left-radius: 11px;
    }

    .compare-row:last-child .compare-cell:first-child {
      border-bottom-left-radius: 11px;
    }

    .compare-label {
      font-size: 14px;
      color: var(--ink-2);
    }

    .compare-col-tag {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--bronze);
    }

    .compare-col-title {
      font-family: var(--serif);
      font-size: 18px;
      color: var(--ink);
    }

    .compare-highlight {
      background: var(--indigo-wash);
      border-left: 1px solid rgba(31, 42, 107, .25);
      border-right: 1px solid rgba(31, 42, 107, .25);
      position: relative;
    }

    .compare-header .compare-highlight {
      background: var(--indigo);
      border-top: 1px solid var(--indigo);
      border-top-right-radius: 11px;
      border-top-left-radius: 11px;
    }

    .compare-row:last-child .compare-highlight {
      border-bottom: 1px solid rgba(31, 42, 107, .25);
      border-bottom-right-radius: 11px;
      border-bottom-left-radius: 11px;
    }

    .compare-header .compare-highlight .compare-col-tag,
    .compare-header .compare-highlight .compare-col-title {
      color: var(--paper-bright);
    }

    .compare-header .compare-highlight .compare-col-tag {
      opacity: .85;
    }

    .compare-badge {
      position: absolute;
      top: -13px;
      left: 28px;
      background: var(--ink);
      color: var(--paper-bright);
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 999px;
      white-space: nowrap;
      z-index: 1;
    }

    .compare-mobile-label {
      display: none;
    }

    .compare-value-accent {
      font-family: var(--serif);
      font-size: 18px;
      font-weight: 600;
      color: var(--indigo);
    }

    .compare-bad {
      color: var(--red);
      font-weight: 500;
    }

    .compare-warn {
      color: #d97706;
      font-weight: 500;
    }

    .compare-yes,
    .compare-no {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .compare-no {
      color: var(--ink-3);
    }

    .compare-yes {
      font-family: var(--serif);
      font-size: 18px;
      color: var(--indigo);
      font-weight: 600;
    }

    /* ── PROGRAMAS ──────────────────────── */
    .programs-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      margin-top: 48px;
    }

    .program-col {
      display: flex;
      flex-direction: column;
    }

    .program-margin-badge {
      flex-shrink: 0;
      background: var(--bronze);
      color: var(--paper-bright);
      font-family: var(--mono);
      font-size: 12px;
      letter-spacing: .03em;
      text-align: left;
      padding: 8px 14px;
      border-radius: 8px;
    }

    .program-card {
      background: #ffffff;
      border: 1px solid rgba(41, 38, 27, .08);
      border-radius: 12px;
      padding: 26px 32px 16px;
      flex-grow: 1;
      display: flex;
      flex-direction: row;
      gap: 24px;
      align-items: stretch;
    }

    .program-card-main {
      flex: 1 1 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .program-card-main p {
      margin-bottom: 0;
    }

    .program-card.featured {
      border: 1px solid rgba(41, 38, 27, .08);
      box-shadow: 0 10px 30px rgba(61, 165, 127, .08);
    }

    .program-tag {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--bronze);
    }

    .program-card.featured .program-tag {
      color: var(--green);
    }

    .program-card h3 {
      font-family: var(--serif);
      font-weight: 300;
      font-size: 25px;
      color: var(--indigo);
      margin: 0 0 10px;
      letter-spacing: -.01em;
    }

    .program-price-row {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .program-price {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 34px;
      color: var(--ink);
      white-space: nowrap;
    }

    .program-price span {
      font-family: var(--sans);
      font-weight: 400;
      font-size: 15px;
      color: var(--ink-3);
    }

    .program-card p {
      font-size: 13px;
      color: var(--ink-2);
      line-height: 1.6;
      margin: 0 0 10px;
    }

    .program-card ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 8px;
      flex: 1;
    }

    .program-card ul li {
      font-size: 14px;
      color: var(--ink-2);
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .program-card ul li::before {
      content: "✓";
      color: var(--green);
      flex-shrink: 0;
    }



    /* ── CTA FORM ───────────────────────── */
    #cta {
      background: var(--bronze-wash);
      padding: 100px 80px;
      text-align: center;
    }

    .cta-form {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 500px;
      margin: 0 auto;
    }

    .cta-form .btn-p-dark {
      margin-top: 16px;
      width: 100%;
    }

    .cta-input {
      flex: 1;
      min-width: 180px;
      padding: 12px 16px;
      border: 1px solid rgba(31, 42, 107, .2);
      border-radius: 7px;
      font-family: var(--sans);
      font-size: 14px;
      color: var(--ink);
      background: var(--paper-bright);
      outline: none;
    }

    .cta-input:focus {
      border-color: rgba(31, 42, 107, .4);
      box-shadow: 0 0 0 3px rgba(31, 42, 107, .07);
    }

    .cta-input::placeholder {
      color: var(--ink-3);
    }

    .cta-note {
      margin-top: 14px;
      font-size: 12px;
      color: var(--ink-3);
    }

    /* ── FOOTER ─────────────────────────── */
    footer {
      background: var(--indigo-dark);
      padding: 56px 80px 40px;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 40px;
    }

    .footer-brand h3 {
      font-family: var(--serif);
      font-size: 20px;
      font-weight: 350;
      color: var(--paper);
      letter-spacing: .2em;
      margin-bottom: 12px;
    }

    .footer-brand p {
      font-size: 14px;
      color: rgba(247, 243, 234, .45);
      line-height: 1.65;
      max-width: 300px;
    }

    .footer-col h4 {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(247, 243, 234, .35);
      margin-bottom: 14px;
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .footer-col ul li a {
      font-size: 14px;
      color: rgba(247, 243, 234, .55);
      text-decoration: none;
      transition: color .2s;
    }

    .footer-col ul li a:hover {
      color: var(--bronze-soft);
    }

    .footer-bottom {
      border-top: 1px solid rgba(247, 243, 234, .07);
      padding-top: 24px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .footer-bottom p {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: .07em;
      text-transform: uppercase;
      color: rgba(247, 243, 234, .25);
    }

    /* ── Responsive ─────────────────────── */
    @media(max-width:960px) {
      #nav {
        padding: 0 24px;
      }

      .nav-links {
        display: none;
      }

      .nav-toggle {
        display: flex;
      }

      .light-section {
        padding: 72px 24px;
      }

      #datos {
        padding-top: 32px;
      }

      #strip {
        grid-template-columns: 1fr;
      }

      .strip-item {
        border-right: none;
        border-bottom: 1px solid rgba(247, 243, 234, .08);
        padding: 32px 24px;
      }

      .services-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
      }

      .services {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .service {
        border-right: none !important;
        border-bottom: 1px solid rgba(41, 38, 27, .08) !important;
      }

      .service:last-child {
        border-bottom: none !important;
      }

      .engines-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .data-cols {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .compare-table {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
      }

      .compare-row {
        display: block;
        padding: 16px;
        border: 1px solid rgba(41, 38, 27, .08);
        border-radius: 10px;
        background: var(--paper-bright);
      }

      .compare-header {
        display: none;
      }

      .compare-row .compare-cell {
        border-bottom: 1px dashed rgba(41, 38, 27, .1);
        padding: 8px 0;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
      }

      .compare-row .compare-cell:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }

      .compare-label {
        font-weight: 600;
        color: var(--ink);
        padding-top: 0;
        padding-bottom: 12px;
        border-bottom: none;
        font-size: 16px;
      }

      .compare-cell[data-col]::before {
        content: attr(data-col);
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--ink-3);
        flex: 0 0 auto;
      }

      .compare-cell[data-col] {
        text-align: right;
      }

      .compare-highlight {
        border-radius: 8px;
        margin: 8px -8px -8px;
        padding: 10px 12px !important;
        background: var(--indigo-wash);
        border: 1px solid rgba(31, 42, 107, .25);
      }

      .compare-highlight::before {
        color: var(--indigo) !important;
        font-weight: 700;
      }

      .compare-mobile-label {
        display: block;
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--indigo);
        font-weight: 700;
        flex: 0 0 auto;
        line-height: 1.4;
      }

      .compare-badge {
        display: none;
      }

      .programs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .program-card {
        flex-direction: column;
        gap: 0;
      }

      .program-card-main {
        flex: none;
        padding-right: 0;
        border-right: none;
      }

      .program-card-main p {
        margin-bottom: 20px;
      }

      #jumbo-engines {
        padding-bottom: 16px;
      }

      #speaking {
        padding-top: 48px;
      }

      .speaking-cols {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 16px;
      }

      .collage-wrap {
        height: 380px;
        margin-top: 20px;
        margin-bottom: 40px;
      }

      .collage-card.card-main {
        width: 75%;
        top: 8%;
      }

      .collage-card.card-psyche {
        width: 60%;
        top: 0;
      }

      .collage-card.card-transcript {
        width: 55%;
        bottom: 5%;
        right: 2%;
      }

      #daily-content {
        padding: 72px 24px;
      }

      #daily-content .section-wrap {
        padding-left: 0;
        padding-right: 0;
      }

      .daily-content-cols {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .parallax-window-viewport {
        height: 420px;
      }

      .parallax {
        background-attachment: scroll;
      }

      .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      footer {
        padding: 40px 24px 32px;
      }

      #cta {
        padding: 72px 24px;
      }

      .cta-form {
        grid-template-columns: 1fr;
      }

      .cta-form .btn-p-dark {
        grid-column: span 1;
      }

      /* Adaptación del Hero para móviles */
      #hero {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        background: #ffffff;
      }

      .hero-video-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        z-index: 1;
        overflow: hidden;
        background: var(--paper-mid);
      }

      .hero-overlay {
        display: none;
      }

      .hero-content {
        position: relative;
        width: 100%;
        padding: 40px 24px 48px;
        background: #ffffff;
        z-index: 3;
        box-sizing: border-box;
      }

      .hero-content::before {
        content: "";
        position: absolute;
        top: -80px;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to bottom, transparent, #ffffff);
        pointer-events: none;
        z-index: 4;
      }

      .hero-eyebrow-italic {
        font-size: 18px;
        margin-bottom: 8px;
      }

      #hero h1 {
        font-size: clamp(40px, 12vw, 56px);
        line-height: 1.1;
        margin-bottom: 12px;
      }

      .hero-desc {
        font-size: 18px;
        margin-bottom: 12px;
      }

      .hero-sub {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 28px;
      }

      .hero-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .hero-actions .btn-p,
      .hero-actions .btn-s {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
      }
    }
  
    #student-profiles {
      padding: 96px 0;
      background: var(--paper-mid, #f5f0e8);
    }

    .student-profiles-wrap {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 48px;
    }

    .student-profiles-wrap .eyebrow {
      margin-bottom: 12px;
    }

    .student-profiles-wrap .section-h {
      margin-bottom: 48px;
    }

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

    .student-profile-card {
      position: relative;
      background: #ffffff;
      border: 1px solid rgba(138, 106, 59, 0.18);
      border-radius: 12px;
      overflow: visible;
      transition: box-shadow 0.2s ease, transform 0.2s ease;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
      min-height: 160px;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .student-profile-card:hover {
      box-shadow: 0 6px 24px rgba(31, 42, 107, 0.13);
      transform: translateY(-2px);
    }

    .student-profile-badge {
      position: absolute;
      top: 0;
      right: 0;
      width: 62px;
      height: 62px;
      overflow: hidden;
      border-radius: 0 11px 0 0;
      z-index: 5;
      pointer-events: none;
      transition: opacity 0.15s ease;
    }

    .student-profile-badge::before {
      content: '';
      position: absolute;
      top: -31px;
      right: -31px;
      width: 62px;
      height: 62px;
      background: #1f2a6b;
      transform: rotate(45deg);
    }

    .student-profile-badge span {
      position: absolute;
      top: 9px;
      right: 6px;
      color: #ffffff;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.05em;
      line-height: 1;
      text-transform: uppercase;
      font-family: var(--mono);
    }

    /* Hide badge and card content on hover */
    .student-profile-card:hover .student-profile-badge {
      opacity: 0;
    }

    .student-profile-card-body {
      padding: 18px 16px 16px;
      transition: opacity 0.15s ease;
    }

    .student-profile-card:hover .student-profile-card-body {
      opacity: 0;
      pointer-events: none;
    }

    .student-profile-card .profile-name {
      margin: 0 0 8px;
      font-size: 22px;
      font-weight: 700;
      color: #1b1b1b;
      font-family: var(--serif);
      line-height: 1.15;
    }

    .student-profile-card .profile-age {
      font-size: 12px;
      color: #7a7565;
      margin: 0 0 10px;
      display: block;
    }

    .student-profile-card .profile-goal {
      font-size: 12px;
      color: #7a7565;
      line-height: 1.5;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .student-profile-card .profile-goal strong {
      color: #1b1b1b;
    }

    /* ── Hover overlay — double button ── */
    .profile-hover-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      opacity: 0;
      transition: opacity 0.15s ease;
      pointer-events: none;
      border-radius: 11px;
      overflow: hidden;
    }

    .student-profile-card:hover .profile-hover-overlay {
      opacity: 1;
      pointer-events: auto;
    }

    .profile-btn-main {
      flex: 2;
      border: none;
      background: var(--indigo);
      color: #ffffff;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: var(--sans);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.03em;
      line-height: 1.25;
      text-decoration: none;
      transition: background 0.15s;
    }

    .profile-btn-main:hover {
      background: #253380;
    }

    .profile-btn-divider {
      height: 1px;
      background: rgba(31, 42, 107, 0.15);
      flex-shrink: 0;
    }

    .profile-btn-secondary {
      flex: 1;
      border: none;
      background: #ffffff;
      color: var(--indigo);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--sans);
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.15s;
    }

    .profile-btn-secondary:hover {
      background: rgba(31, 42, 107, 0.04);
    }

    /* ── Gear icon + tooltip ── */
    .profile-gear-wrap {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 30;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease;
    }

    .student-profile-card:hover .profile-gear-wrap {
      opacity: 1;
      pointer-events: auto;
    }

    .profile-gear-btn {
      background: transparent;
      border: none;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.75);
      transition: color 0.15s;
      padding: 0;
    }

    .profile-gear-btn:hover {
      color: #ffffff;
    }

    .profile-gear-tooltip {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      background: #ffffff;
      color: #1b1b1b;
      border: 1px solid rgba(0, 0, 0, 0.1);
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 12px;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      pointer-events: none;
      z-index: 9999;
      font-family: var(--sans);
    }

    .profile-gear-btn:hover+.profile-gear-tooltip,
    .profile-gear-btn:focus+.profile-gear-tooltip {
      display: block;
    }

    /* ── AI instructions tooltip (on Iniciar CONVERSACIÓN hover) ── */
    /* Tooltip lives outside .profile-hover-overlay (overflow:hidden)
       directly on .student-profile-card (overflow:visible, position:relative) */
    .profile-btn-main {
      flex: 2;
    }

    .profile-conv-tooltip {
      display: none;
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%);
      width: 280px;
      background: #ffffff;
      color: #1b1b1b;
      border-radius: 10px;
      padding: 14px 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
      border: 1px solid rgba(138, 106, 59, 0.22);
      pointer-events: none;
      z-index: 99999;
      font-family: var(--sans);
      font-size: 12px;
      line-height: 1.55;
    }

    .profile-conv-tooltip p {
      margin: 0 0 8px;
      font-weight: 400;
      font-size: 12px;
      line-height: 1.5;
      color: #7a7565;
    }

    .profile-conv-tooltip strong {
      font-weight: 700;
      color: #1b1b1b;
      display: block;
      margin: 0;
    }

    /* Arrow pointing down */
    .profile-conv-tooltip::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 14px;
      height: 14px;
      background: #ffffff;
      border-bottom: 1px solid rgba(138, 106, 59, 0.22);
      border-right: 1px solid rgba(138, 106, 59, 0.22);
      border-radius: 0 0 2px 0;
    }

    /* ✔ :has() triggers from the card level — works even though
       tooltip is a sibling of the overlay, not a child */
    .student-profile-card:has(.profile-btn-main:hover) .profile-conv-tooltip,
    .student-profile-card:has(.profile-btn-main:focus) .profile-conv-tooltip {
      display: block;
    }

    @media (max-width: 860px) {
      .student-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }

      .student-profiles-wrap {
        padding: 0 24px;
      }
    }

    @media (max-width: 540px) {
      .student-profiles-grid {
        grid-template-columns: 1fr;
      }

      #student-profiles {
        padding: 64px 0;
      }
    }

/* ── Mobile: tap-to-show overlay (no hover on touch devices) ── */
@media (hover: none) {
  /* Elevate active card so its tooltip stacking context beats sibling cards */
  .student-profile-card.card-active {
    z-index: 100;
  }

  /* Show overlay on tap */
  .student-profile-card.card-active .profile-hover-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Show gear icon on tap */
  .student-profile-card.card-active .profile-gear-wrap {
    opacity: 1;
    pointer-events: auto;
  }

  /* Show AI instructions tooltip BELOW the card (avoids going off-screen above) */
  .student-profile-card.card-active .profile-conv-tooltip {
    display: block;
    bottom: auto;
    top: calc(100% + 10px);
  }

  /* Flip arrow to point UP on mobile */
  .student-profile-card.card-active .profile-conv-tooltip::after {
    bottom: auto;
    top: -8px;
    border-bottom: none;
    border-right: none;
    border-top: 1px solid rgba(138, 106, 59, 0.22);
    border-left: 1px solid rgba(138, 106, 59, 0.22);
    border-radius: 2px 0 0 0;
    transform: translateX(-50%) rotate(45deg);
  }

  /* Disable desktop :has() hover tooltip (no hover on touch) */
  .student-profile-card:has(.profile-btn-main:hover) .profile-conv-tooltip,
  .student-profile-card:has(.profile-btn-main:focus) .profile-conv-tooltip {
    display: none;
  }

  /* Suppress gear tooltip on touch (touch triggers :hover momentarily) */
  .profile-gear-btn:hover + .profile-gear-tooltip,
  .profile-gear-btn:focus + .profile-gear-tooltip {
    display: none !important;
  }

}