
  :root {
    --bg: #0a0a0f;
    --surface: #111118;
    --accent: #00e5ff;
    --accent2: #ff3d6b;
    --accent3: #b8ff57;
    --accent4: #ff9f43;
    --text: #f0ede8;
    --muted: #6b6b7a;
    --nav-h1: 44px;
    --nav-h2: 38px;
    --nav-total: 82px;
    /* Text inline — adaptan al tema oscuro/claro */
    --c-hi:    rgba(240,237,232,0.95);
    --c-body:  rgba(240,237,232,0.82);
    --c-muted: rgba(240,237,232,0.55);
    --c-dim:   rgba(240,237,232,0.38);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    /* cursor: none; → reactivar si se quiere el cursor personalizado puro */
  }

  .cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

  #progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.4s ease;
    z-index: 100;
  }

  /* ── DECK ── */
  #deck {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: var(--nav-total);
  }

  .slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5vw 10vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
  }

  .slide.active { opacity: 1; pointer-events: all; }

  .slide::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  .slide::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4; pointer-events: none;
  }

  /* ── TYPOGRAPHY ── */
  .eyebrow {
    font-size: clamp(0.6rem, 0.85vw, 0.78rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.1rem;
    position: relative; z-index: 2;
  }

  h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 9.5vw, 10rem);
    line-height: 0.88;
    position: relative; z-index: 2;
  }

  h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 6vw, 7rem);
    line-height: 0.9;
    position: relative; z-index: 2;
    margin-bottom: 1.3rem;
  }

  .body-text {
    font-size: clamp(0.88rem, 1.3vw, 1.2rem);
    line-height: 1.68;
    font-weight: 300;
    max-width: 60ch;
    color: rgba(240,237,232,0.82);
    position: relative; z-index: 2;
  }

  .accent-line {
    width: 55px; height: 3px;
    background: var(--accent);
    margin-bottom: 1.4rem;
    position: relative; z-index: 2;
  }

  .highlight  { color: var(--accent); }
  .highlight2 { color: var(--accent2); }
  .highlight3 { color: var(--accent3); }
  .highlight4 { color: var(--accent4); }

  /* Cards */
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1.1rem;
    width: 100%; max-width: 840px;
    position: relative; z-index: 2;
    margin-top: 0.6rem;
  }
  .card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 1.2rem;
    transition: border-color 0.3s, background 0.3s;
  }
  .card:hover { border-color: var(--accent); background: rgba(0,229,255,0.05); }
  a.card-link,
  a.card-link:link,
  a.card-link:visited,
  a.card-link:hover,
  a.card-link:active {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    cursor: pointer;
    position: relative;
  }
  a.card-link *,
  a.card-link h4,
  a.card-link p,
  a.card-link span {
    text-decoration: none !important;
    color: inherit;
  }
  a.card-link p { color: rgba(240,237,232,0.6) !important; }
  a.card-link::after { content: '↗'; position: absolute; top: 0.6rem; right: 0.7rem; font-size: 0.7rem; opacity: 0; transition: opacity 0.2s; color: var(--accent); }
  a.card-link:hover::after { opacity: 0.7; }
  .card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
  .card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
  .card p { font-size: 0.78rem; font-weight: 300; color: rgba(240,237,232,0.6); line-height: 1.5; }

  /* Steps */
  .steps { display: flex; flex-direction: column; gap: 0.9rem; position: relative; z-index: 2; margin-top: 0.4rem; }
  .step { display: flex; align-items: flex-start; gap: 1.2rem; }
  .step-num { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--accent); line-height: 1; min-width: 2rem; opacity: 0.4; }
  .step-content h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 0.05em; margin-bottom: 0.12rem; }
  .step-content p { font-size: 0.8rem; font-weight: 300; color: rgba(240,237,232,0.6); line-height: 1.5; max-width: 50ch; }

  /* Risk list */
  .risk-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; position: relative; z-index: 2; margin-top: 0.6rem; max-width: 660px; }
  .risk-list li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: clamp(0.8rem, 1.15vw, 1rem); font-weight: 300; line-height: 1.5; }
  .risk-list li::before { content: attr(data-icon); font-size: 1.05rem; flex-shrink: 0; margin-top: 0.05rem; }

  /* Two col */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; width: 100%; max-width: 840px; position: relative; z-index: 2; }
  .col-label { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.9rem; font-weight: 500; }

  /* Cover deco */
  .cover-bg { position: absolute; right: -5vw; top: 50%; transform: translateY(-50%); width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 70%); pointer-events: none; }
  .cover-ring { position: absolute; right: 6vw; top: 50%; transform: translateY(-50%); width: 34vw; height: 34vw; border-radius: 50%; border: 1px solid rgba(0,229,255,0.12); pointer-events: none; animation: spin 30s linear infinite; }
  .cover-ring2 { position: absolute; right: 9vw; top: 50%; transform: translateY(-50%); width: 25vw; height: 25vw; border-radius: 50%; border: 1px solid rgba(255,61,107,0.09); pointer-events: none; animation: spin 20s linear infinite reverse; }
  @keyframes spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
  /* Solar system — portada */
  @keyframes solar-orbit  { from { transform: rotate(0deg); }            to { transform: rotate(360deg); } }
  @keyframes solar-planet { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); } }
  @keyframes sun-pulse    { 0%,100% { box-shadow: 0 0 32px rgba(0,229,255,0.22), 0 0 8px rgba(0,229,255,0.5); } 50% { box-shadow: 0 0 55px rgba(0,229,255,0.38), 0 0 16px rgba(0,229,255,0.7); } }

  .particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .particle { position: absolute; width: 2px; height: 2px; background: var(--accent); border-radius: 50%; animation: float linear infinite; opacity: 0; }
  @keyframes float { 0% { transform: translateY(100vh); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(-10vh) translateX(20px); opacity: 0; } }

  .tag-row { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 1.6rem; position: relative; z-index: 2; }
  .tag { border: 1px solid rgba(255,255,255,0.13); border-radius: 2px; padding: 0.25rem 0.65rem; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

  /* Stat */
  .stat-grid { display: flex; gap: 3.5vw; margin-top: 1.2rem; position: relative; z-index: 2; }
  .stat-num { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 5.5rem); line-height: 1; color: var(--accent3); }
  .stat-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.22rem; }

  /* Entrance animation */
  .slide.active .eyebrow,
  .slide.active h1,
  .slide.active h2,
  .slide.active .body-text,
  .slide.active .cards,
  .slide.active .steps,
  .slide.active .stat-grid,
  .slide.active .risk-list,
  .slide.active .two-col,
  .slide.active .accent-line,
  .slide.active .tag-row {
    animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
  }
  .slide.active .eyebrow    { animation-delay: 0s; }
  .slide.active h1          { animation-delay: 0.07s; }
  .slide.active h2          { animation-delay: 0.07s; }
  .slide.active .accent-line{ animation-delay: 0.04s; }
  .slide.active .body-text  { animation-delay: 0.16s; }
  .slide.active .cards      { animation-delay: 0.2s; }
  .slide.active .steps      { animation-delay: 0.16s; }
  .slide.active .stat-grid  { animation-delay: 0.16s; }
  .slide.active .risk-list  { animation-delay: 0.16s; }
  .slide.active .two-col    { animation-delay: 0.16s; }
  .slide.active .tag-row    { animation-delay: 0.2s; }
  @keyframes slideUp { from { opacity:0; transform:translateY(26px); } to { opacity:1; transform:translateY(0); } }

  /* ═══════════════════════════════════
     TWO-LEVEL BOTTOM NAV
  ═══════════════════════════════════ */
  #bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--nav-total);
    z-index: 300;
    display: flex;
    flex-direction: column;
    background: rgba(7,7,11,0.97);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  /* ── Level 1 ── */
  #nav-l1 {
    height: var(--nav-h1);
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .l1-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: clamp(0.58rem, 0.82vw, 0.76rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.22s, background 0.22s;
    position: relative;
    padding: 0 0.8rem;
    white-space: nowrap;
    user-select: none;
  }

  .l1-item:hover { color: rgba(240,237,232,0.65); background: rgba(255,255,255,0.03); }
  .l1-item.active { color: var(--text); }

  /* top accent bar */
  .l1-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--ch-color, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  }
  .l1-item.active::before { transform: scaleX(1); }

  .l1-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    opacity: 0.28;
    line-height: 1;
    transition: opacity 0.22s;
  }
  .l1-item.active .l1-num { opacity: 0.55; color: var(--ch-color, var(--accent)); }

  .l1-sep { width: 1px; background: rgba(255,255,255,0.05); align-self: stretch; flex-shrink: 0; }

  /* ── Level 2 ── */
  #nav-l2 {
    height: var(--nav-h2);
    position: relative;
    overflow: hidden;
  }

  .l2-row {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .l2-row.active { opacity: 1; transform: translateY(0); pointer-events: all; }

  .l2-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.56rem, 0.78vw, 0.72rem);
    letter-spacing: 0.07em;
    font-weight: 300;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    padding: 0 0.7rem;
    white-space: nowrap;
    position: relative;
    user-select: none;
    text-align: center;
  }

  .l2-item:hover { color: rgba(240,237,232,0.72); background: rgba(255,255,255,0.03); }
  .l2-item.active { color: var(--text); background: rgba(255,255,255,0.04); }

  /* bottom dot */
  .l2-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--ch-color, var(--accent));
  }

  .l2-sep { width: 1px; background: rgba(255,255,255,0.04); align-self: stretch; margin: 5px 0; flex-shrink: 0; }

  /* Hints */
  .fs-hint {
    position: fixed; top: 1.1rem; right: 1.6rem;
    font-size: 0.6rem; letter-spacing: 0.14em; color: var(--muted);
    text-transform: uppercase; z-index: 100; cursor: pointer;
    transition: color 0.2s;
  }
  .fs-hint:hover { color: var(--accent); }

  .key-hint {
    position: fixed; top: 1.1rem; left: 1.6rem;
    font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted);
    z-index: 100; display: flex; gap: 0.5rem; align-items: center;
  }
  .key { border: 1px solid rgba(255,255,255,0.11); border-radius: 3px; padding: 0.08rem 0.3rem; font-size: 0.58rem; }

  /* ── TRES CARDS FLUJO IMAGEN→TEXTO→IMAGEN ── */
  .flow-slide {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 4vw 7vw !important;
    gap: 0;
  }

  .flow-header {
    position: relative;
    z-index: 2;
    margin-bottom: 1.6vh;
    flex-shrink: 0;
  }

  .flow-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    width: 100%;
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
  }

  /* Flecha conectora */
  .flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2vw;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
  }

  .flow-arrow-line {
    width: 2.5vw;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.35));
    position: relative;
  }

  .flow-arrow-line::after {
    content: '▶';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
  }

  .flow-arrow-label {
    font-size: 0.48rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
    margin-top: 4px;
  }

  /* Card genérica del flujo */
  .flow-card {
    background: #13131e;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .flow-card:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 18px 44px rgba(0,0,0,0.6);
  }

  /* Cabecera de card */
  .flow-card-header {
    padding: 8px 12px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .flow-card-pill {
    font-size: 0.46rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
  }

  .flow-card-title {
    font-size: 0.52rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
  }

  /* Zona de imagen placeholder */
  .flow-img-area {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 14px
    );
    cursor: pointer;
  }

  .flow-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .flow-img-photo {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .flow-img-icon {
    font-size: 2.2rem;
    opacity: 0.18;
  }

  .flow-img-hint {
    font-size: 0.46rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
  }

  /* Zona de texto (card central) */
  .flow-text-area {
    flex: 1;
    min-height: 0;
    padding: 12px 14px;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .flow-text-area::-webkit-scrollbar { display: none; }

  .flow-text-block {
    background: rgba(255,255,255,0.04);
    border-left: 2px solid var(--accent);
    border-radius: 0 4px 4px 0;
    padding: 7px 10px;
    font-size: 0.56rem;
    line-height: 1.6;
    color: rgba(240,237,232,0.75);
    font-weight: 300;
    font-style: italic;
  }

  .flow-text-block strong {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
  }

  .flow-text-label {
    font-size: 0.44rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-top: 2px;
  }

  .flow-prompt-block {
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.54rem;
    line-height: 1.55;
    color: rgba(240,237,232,0.7);
    font-weight: 300;
  }

  .flow-prompt-block span {
    display: block;
    font-size: 0.42rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
    font-style: normal;
  }

  /* Footer de card con modelo */
  .flow-card-footer {
    padding: 5px 12px 7px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .flow-card-model {
    font-size: 0.42rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.08em;
  }

  .flow-card-model-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ── MARCOS DE IMAGEN PLACEHOLDER ── */
  .img-cards-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2vh;
    position: relative;
    z-index: 2;
    padding: 1.5vh 2vw;
  }

  .img-card {
    width: 80%;
    background: #13131e;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .img-card:hover {
    transform: scale(1.03) translateY(-3px) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,0.65);
  }

  /* Imagen 16:9 — contain para ver la imagen completa sin recorte */
  .img-card-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    background: #0d0d14;
  }

  /* Placeholder cuando no hay imagen */
  .img-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 12px
    );
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .img-card-placeholder-icon {
    font-size: 2rem;
    opacity: 0.25;
  }

  .img-card-placeholder-text {
    font-size: 0.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
  }

  /* Footer de la tarjeta con etiqueta */
  .img-card-footer {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .img-card-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .img-card-label {
    font-size: 0.54rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(240,237,232,0.7);
    line-height: 1.3;
  }

  .img-card-sublabel {
    font-size: 0.44rem;
    font-weight: 300;
    color: rgba(240,237,232,0.35);
    letter-spacing: 0.04em;
    margin-top: 1px;
  }

  /* ── SLIDE CON MÓVILES ── */
  .slide-with-phones {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0;
    padding: 4vw 4vw 4vw 8vw !important;
  }

  .slide-text-col {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  /* Slides con imágenes 16:9: texto más estrecho, más espacio para las fotos */
  .slide-with-phones:has(.img-cards-col) .slide-text-col {
    flex: 0 0 34%;
  }
  .slide-with-phones:has(.img-cards-col) {
    padding: 3vw 3vw 3vw 6vw !important;
  }

  .slide-phones-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4vh;
    position: relative;
    z-index: 2;
    padding: 1rem 2vw;
  }

  /* Marco del móvil */
  .phone-mockup {
    width: clamp(240px, 28vw, 380px);
    background: #1a1a24;
    border-radius: 28px;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.6),
      0 20px 50px rgba(0,0,0,0.6),
      inset 0 1px 0 rgba(255,255,255,0.07);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    /* subtle tilt for the second phone */
    transition: transform 0.3s ease;
  }

  .phone-mockup:hover {
    transform: scale(1.03) translateY(-3px) !important;
  }

  /* Notch / isla dinámica */
  .phone-notch {
    width: 80px; height: 22px;
    background: #0a0a0f;
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 2;
  }

  .phone-notch-cam {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #1e1e2a;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .phone-notch-pill {
    width: 38px; height: 10px;
    background: #0a0a0f;
    border-radius: 6px;
  }

  /* Barra de estado */
  .phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 14px 2px;
    font-size: 0.5em;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
  }

  /* Header de la app de chat */
  .phone-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 7px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .phone-header-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #7b2fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55em;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }

  .phone-header-name {
    font-size: 0.58em;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
  }

  .phone-header-status {
    font-size: 0.45em;
    color: var(--accent);
    letter-spacing: 0.05em;
  }

  /* Área del chat */
  .phone-chat {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
  }

  /* Burbuja de usuario */
  .bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff;
    border-radius: 14px 14px 3px 14px;
    padding: 6px 10px;
    font-size: 0.52em;
    line-height: 1.45;
    max-width: 85%;
    font-weight: 400;
    letter-spacing: 0.01em;
  }

  /* Burbuja de IA */
  .bubble-ai {
    align-self: flex-start;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(240,237,232,0.88);
    border-radius: 14px 14px 14px 3px;
    padding: 6px 10px;
    font-size: 0.5em;
    line-height: 1.5;
    max-width: 90%;
    letter-spacing: 0.01em;
  }

  .bubble-ai strong {
    color: var(--accent);
    font-weight: 500;
  }

  /* Label de placeholder (para cuando el usuario ponga su imagen) */
  .phone-placeholder-label {
    font-size: 0.42em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    text-align: center;
    padding: 4px 0 6px;
  }

  /* Input bar del móvil */
  .phone-input {
    margin: 4px 10px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.45em;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.03em;
  }

  /* ── SLIDE COMPARACIÓN DE PROMPTS ── */
  .prompt-slide {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 3.5vw 7vw !important;
    gap: 0;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(184,255,87,0.2) transparent;
  }

  .prompt-header {
    position: relative;
    z-index: 2;
    margin-bottom: 1.8vh;
    flex-shrink: 0;
  }

  .prompt-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    width: 100%;
    position: relative;
    z-index: 2;
    align-items: start;
    margin-bottom: 3vh;
  }

  .prompt-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .prompt-card.bad {
    border-color: rgba(255,61,107,0.3);
    background: rgba(255,61,107,0.04);
  }

  .prompt-card.good {
    border-color: rgba(184,255,87,0.3);
    background: rgba(184,255,87,0.04);
  }

  .prompt-card-header {
    padding: 9px 14px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid;
    flex-shrink: 0;
  }

  .prompt-card.bad  .prompt-card-header { border-color: rgba(255,61,107,0.2); }
  .prompt-card.good .prompt-card-header { border-color: rgba(184,255,87,0.2); }

  .prompt-badge {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
  }

  .prompt-card.bad  .prompt-badge { background: rgba(255,61,107,0.15); color: var(--accent2); }
  .prompt-card.good .prompt-badge { background: rgba(184,255,87,0.15); color: var(--accent3); }

  .prompt-badge-icon { font-size: 0.85rem; }

  .prompt-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  /* El prompt en sí */
  .prompt-text {
    font-family: 'DM Sans', monospace;
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 13px;
    border-radius: 6px;
    border-left: 3px solid;
    letter-spacing: 0.01em;
  }

  .prompt-card.bad  .prompt-text { border-color: var(--accent2); background: rgba(255,61,107,0.07); color: rgba(240,237,232,0.85); }
  .prompt-card.good .prompt-text { border-color: var(--accent3); background: rgba(184,255,87,0.07); color: rgba(240,237,232,0.9); }

  /* Análisis: qué falta / qué tiene */
  .prompt-analysis {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .prompt-analysis-title {
    font-size: 0.48rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 2px;
  }

  .prompt-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .prompt-tag {
    font-size: 0.5rem;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    font-weight: 400;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .prompt-card.bad  .prompt-tag { border-color: rgba(255,61,107,0.25); color: rgba(255,61,107,0.7); background: rgba(255,61,107,0.06); }
  .prompt-card.good .prompt-tag { border-color: rgba(184,255,87,0.25); color: rgba(184,255,87,0.8); background: rgba(184,255,87,0.06); }

  /* Resultado esperado */
  .prompt-result {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.55rem;
    font-weight: 300;
    line-height: 1.55;
    font-style: italic;
    color: rgba(240,237,232,0.55);
  }

  .prompt-card.bad  .prompt-result { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
  .prompt-card.good .prompt-result { background: rgba(184,255,87,0.04); border: 1px solid rgba(184,255,87,0.1); color: rgba(240,237,232,0.7); }

  .prompt-result-label {
    display: block;
    font-size: 0.42rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-style: normal;
    margin-bottom: 4px;
    font-weight: 500;
  }

  .prompt-card.bad  .prompt-result-label { color: rgba(255,61,107,0.6); }
  .prompt-card.good .prompt-result-label { color: rgba(184,255,87,0.7); }

  /* Etiqueta elementos del buen prompt resaltados */
  .ph { color: var(--accent3); font-weight: 500; font-style: normal; }

  /* ── SLIDE COMPARACIÓN DE PROMPTS ── */
  @keyframes pulseHoy {
    0%, 100% { box-shadow: 0 0 0 rgba(255,159,67,0); }
    50% { box-shadow: 0 0 18px rgba(255,159,67,0.35); }
  }

  #modal-hoy.open { opacity: 1 !important; pointer-events: all !important; }
  #modal-hoy.open > div { transform: scale(1) !important; }


  /* ══════════════════════════════════════════
     MEJORAS — generadas por mejoras.py
  ══════════════════════════════════════════ */

  /* Contador de slide (N / Total) */
  #slide-counter {
    position: fixed;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    z-index: 100;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
  }
  #slide-counter .cur { color: var(--text); }

  /* Cursor: el sistema se mantiene visible; el custom dot es decorativo */
  .cursor { pointer-events: none; }

  /* Closing slide */
  .closing-slide {
    justify-content: center;
  }

  /* Media query pantallas bajas (móvil landscape / tablet pequeña) */
  @media (max-height: 620px) {
    :root {
      --nav-h1: 34px;
      --nav-h2: 30px;
      --nav-total: 64px;
    }
    h1 { font-size: clamp(2.2rem, 6vw, 6rem); }
    h2 { font-size: clamp(1.6rem, 4vw, 4rem); }
    .body-text { font-size: clamp(0.78rem, 1.1vw, 1rem); }
    .cards { gap: 0.7rem; }
    .card { padding: 0.8rem; }
    .l1-item { font-size: 0.54rem; }
    .l2-item { font-size: 0.5rem; }
  }

  /* ARIA: nav region label hint */
  #bottom-nav { contain: layout style; }

  /* ── SLIDE DEMO CON IFRAME ── */
  .slide-demo {
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    gap: 0;
  }

  .demo-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vw 2.5vw 4vw 7vw;
    position: relative;
    z-index: 2;
  }

  .demo-caption {
    margin-top: 1.2rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: #a78bfa;
    text-transform: uppercase;
    font-weight: 500;
  }

  .demo-iframe-col {
    flex: 0 0 30%;
    display: flex;
    align-items: stretch;
    padding: 1.8vh 2vw 1.8vh 1vw;
    position: relative;
    z-index: 2;
  }

  .demo-iframe-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0d0d18;
    border-radius: 10px;
    border: 1px solid rgba(167,139,250,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.08);
    overflow: hidden;
  }

  /* Barra de navegador simulada */
  .demo-iframe-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #16161f;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
  }

  .demo-iframe-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .demo-iframe-url {
    margin-left: 8px;
    font-size: 0.52rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
    font-family: monospace;
  }

  .demo-iframe-frame iframe {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
    background: #fff;
  }


  /* ── SLIDE GENERAR OPCIONES ── */
  .opciones-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1vh;
    padding: 2vh 2.5vw 2vh 1.5vw;
  }

  .opcion-prompt {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: rgba(255, 61, 107, 0.1);
    border: 1px solid rgba(255, 61, 107, 0.3);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    color: rgba(240,237,232,0.85);
    line-height: 1.55;
  }

  .opcion-prompt-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
  }

  .opciones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8vh 0.8vw;
    flex: 1;
  }

  .opcion-card {
    background: #f8f4e8;
    border: 1px solid #c8b88a;
    border-radius: 2px;
    padding: 0.7rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.45);
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a1209;
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .opcion-card:nth-child(1) { transform: rotate(-0.8deg); }
  .opcion-card:nth-child(2) { transform: rotate(0.6deg); }
  .opcion-card:nth-child(3) { transform: rotate(0.5deg); }
  .opcion-card:nth-child(4) { transform: rotate(-0.6deg); }

  .opcion-card:hover {
    box-shadow: 4px 6px 16px rgba(0,0,0,0.55);
    z-index: 2;
  }

  .noticia-seccion {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: #999;
    border-bottom: 2px solid #1a1209;
    padding-bottom: 0.22rem;
    margin-bottom: 0.35rem;
  }

  .noticia-titular {
    font-size: clamp(0.7rem, 0.88vw, 0.95rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.28rem;
    color: #1a1209;
  }

  .noticia-subtitulo {
    font-size: 0.6rem;
    font-style: italic;
    color: #555;
    border-top: 1px solid #c8b88a;
    border-bottom: 1px solid #c8b88a;
    padding: 0.18rem 0;
    margin-bottom: 0.3rem;
    line-height: 1.35;
  }

  .noticia-cuerpo {
    font-size: 0.58rem;
    line-height: 1.5;
    text-align: justify;
    color: #2a2010;
  }

  /* ── CÓMO FUNCIONA ── */
  .slide-como {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3vw;
    padding: 3vh 5vw;
  }

  .como-text-col {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .como-side-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
  }

  .como-idea {
    font-style: italic;
    font-size: clamp(0.76rem, 0.92vw, 0.92rem);
    color: rgba(240,237,232,0.7);
    border-left: 3px solid #38bdf8;
    padding-left: 0.75rem;
    margin: 0.5rem 0 0.8rem;
    line-height: 1.5;
  }

  .como-formula {
    background: rgba(56,189,248,0.07);
    border: 1px solid rgba(56,189,248,0.3);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.62rem, 0.8vw, 0.85rem);
    color: #38bdf8;
    text-align: center;
    line-height: 1.65;
  }

  .como-frase {
    background: rgba(56,189,248,0.04);
    border: 1px solid rgba(56,189,248,0.18);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: clamp(0.7rem, 0.85vw, 0.88rem);
    font-style: italic;
    color: rgba(240,237,232,0.75);
    line-height: 1.5;
    text-align: center;
  }

  .como-frase strong { color: #38bdf8; }

  .como-svg {
    width: 100%;
    border-radius: 8px;
    background: rgba(56,189,248,0.04);
    border: 1px solid rgba(56,189,248,0.15);
    padding: 6px;
    box-sizing: border-box;
    display: block;
  }

  .como-cierre {
    border-left: 3px solid #38bdf8;
    padding: 0.6rem 1rem;
    font-style: italic;
    font-size: clamp(0.78rem, 0.95vw, 0.95rem);
    color: rgba(240,237,232,0.6);
    margin: 1rem 0 0;
    line-height: 1.55;
  }

  /* ── COMPARATIVA TRADUCCIÓ ── */
  .traduccio-panel {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 61, 107, 0.15);
    border-radius: 10px;
    overflow: hidden;
  }

  .traduccio-col {
    flex: 1;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .traduccio-label {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(240,237,232,0.4);
  }

  .traduccio-text {
    font-size: clamp(13px, 1.3vw, 18px);
    font-weight: 300;
    color: rgba(240,237,232,0.8);
    line-height: 1.65;
  }

  .traduccio-divider {
    width: 1px;
    background: rgba(255, 61, 107, 0.2);
    flex-shrink: 0;
  }

  .traduccio-mark {
    background: rgba(255, 61, 107, 0.18);
    color: #ff8fab;
    border-radius: 3px;
    padding: 0 3px;
    font-style: normal;
  }

  /* ── SYSTEM PROMPT BOX ── */
  .sysprompt-box {
    background: #0d0d18;
    border: 1px solid rgba(255, 61, 107, 0.25);
    border-radius: 8px;
    flex: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
  }

  .sysprompt-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 61, 107, 0.08);
    border-bottom: 1px solid rgba(255, 61, 107, 0.15);
  }

  .sysprompt-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    flex-shrink: 0;
  }

  .sysprompt-label {
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 61, 107, 0.7);
    font-weight: 500;
  }

  .sysprompt-body {
    padding: 0.7rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    overflow-y: visible;
  }

  .sysprompt-body p {
    font-size: clamp(14px, 1.4vw, 20px);
    color: rgba(240,237,232,0.7);
    line-height: 1.6;
    margin: 0;
  }

  .sp-avoid {
    font-size: 10px !important;
    line-height: 1.65 !important;
  }

  .sp-final {
    color: rgba(240,237,232,0.4) !important;
    font-style: italic;
  }

  .sp-mark-bad {
    background: rgba(255, 61, 107, 0.15);
    color: #ff8fab;
    border-radius: 3px;
    padding: 0 2px;
    font-style: normal;
  }

  .sp-mark-good {
    background: rgba(184, 255, 87, 0.12);
    color: #b8ff57;
    border-radius: 3px;
    padding: 0 2px;
    font-style: normal;
  }

  /* ── SLIDE APRENDER: 6 cards de prompts ── */
  .aprender-col {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.6vh 0.7vw;
    padding: 2vh 2vw 2vh 1vw;
    align-items: stretch;
  }

  .aprender-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 61, 107, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.2s;
  }

  .aprender-card:hover {
    border-color: rgba(255, 61, 107, 0.35);
  }

  .aprender-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent2);
    text-transform: uppercase;
  }

  .aprender-prompts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .aprender-prompts li {
    font-size: 10px;
    color: rgba(240,237,232,0.65);
    line-height: 1.45;
    padding-left: 0.6rem;
    position: relative;
  }

  .aprender-prompts li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: rgba(255, 61, 107, 0.5);
  }

  /* ── SLIDE Q&A ── */
  .qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7vh 0.7vw;
    flex: 1;
    align-content: start;
  }

  .qa-card {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.2s;
  }

  .qa-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
  }

  .qa-q {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.4;
  }

  .qa-a {
    font-size: 10px;
    font-weight: 300;
    color: rgba(240,237,232,0.6);
    line-height: 1.5;
  }

  /* ── GALERÍA EXPANDIBLE ── */
  .slide-gallery {
    flex-direction: column !important;
    padding: 2vh 3vw 2vh 3vw !important;
    gap: 1vh;
  }

  .gallery-header {
    flex-shrink: 0;
  }

  .gallery-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 4rem);
    margin-bottom: 0.2rem;
  }

  .gallery-header p {
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    font-weight: 300;
    color: rgba(240,237,232,0.5);
    margin-top: 0.4rem;
  }

  .gallery-row {
    display: flex;
    flex-direction: row;
    gap: 0.6vw;
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  .gallery-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    position: relative;
    transition:
      flex 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease;
    align-self: stretch;
  }

  .gallery-card img {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }

  .gallery-card:hover img {
    transform: scale(1.03);
  }

  .gallery-card-footer {
    flex-shrink: 0;
    padding: 0.45rem 0.7rem;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .gallery-pill {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .gallery-model {
    font-size: 9px;
    font-weight: 300;
    color: rgba(240,237,232,0.4);
  }

  /* Estado expandido */
  .gallery-card.gallery-expanded {
    flex: 2;
    align-self: stretch;
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 60px rgba(0,0,0,0.6);
  }

  /* Estado colapsado */
  .gallery-card.gallery-collapsed {
    flex: 0.6;
    align-self: center;
    height: 75%;
    opacity: 0.6;
  }

  /* ── MODAL GENÉRICO ── */
  .gallery-modal-trigger {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 0.3rem 0.2rem 0;
  }

  .gallery-modal-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    color: rgba(240,237,232,0.6);
    font-size: 11px;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .gallery-modal-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: rgba(240,237,232,0.9);
  }

  .gallery-modal-btn-icon {
    font-size: 13px;
  }

  .ia-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .ia-modal.open {
    display: flex;
  }

  .ia-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
  }

  .ia-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 80vw;
    max-height: 88vh;
    animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes modal-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
  }

  .ia-modal-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  }

  .ia-modal-caption {
    font-size: 11px;
    color: rgba(240,237,232,0.4);
    letter-spacing: 0.08em;
  }

  .ia-modal-close {
    position: absolute;
    top: -2.2rem;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: rgba(240,237,232,0.7);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }

  .ia-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
  }
  /* ── RUEDA DE POSIBILIDADES (portada) ── */
  .rueda-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 4;
  }

  .rueda-icon {
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    line-height: 1;
  }

  .rueda-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.55rem, 0.8vw, 0.78rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 10px currentColor;
  }

  @keyframes dashFlow {
    from { stroke-dashoffset: 18; }
    to   { stroke-dashoffset: 0; }
  }

  .rueda-line {
    animation: dashFlow 2.5s linear infinite;
  }
