/* BORRADOR uniones (10 nov 2026). Solo agrega movimiento: mismas letras, tamanos, headings y orden. */

/* A1 · rotulo: un poco mas de escena para el intro (el intro usa el primer 27 %) */
.cli, .escenas-cortas .cli { height: 440svh; }
@media (max-width: 760px) { .cli, .escenas-cortas .cli { height: 420svh; } }
.b-fantasma { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; visibility: hidden; }
.b-fantasma span { position: absolute; left: 0; top: 0; white-space: nowrap; transform-origin: 0 0; will-change: transform; }

/* A2 · iris: Philosophy se queda quieta y Sobre mi se abre en un circulo desde la esfera */
#philosophy { position: sticky; z-index: 1; }
#about { z-index: 3; will-change: transform, clip-path; }
.b-foto { position: absolute; z-index: 4; object-fit: cover; pointer-events: none; visibility: hidden; }

/* A1 · rotulo en compu (como el boceto): titulo arriba a lo ancho con su linea crema; texto a la izquierda; tele a la derecha.
   Mismos tamanos de letra; solo cambia el acomodo. En cel queda como hoy. */
@media (min-width: 1000px) {
    #cli-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto auto; justify-items: stretch; gap: 16px; }   /* B: la separacion de siempre del sitio (16 px), sin aire inventado arriba ni abajo */
    #cli-in .cli-cab { grid-column: 1 / -1; width: auto; align-self: start; }
    #cli-in .cli-marco { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: calc(min(100%, (100svh - var(--hdr-h) - 190px) * 1.6) * .9); }   /* E: 10 % mas chica para que el rotulo tenga aire arriba */
    #cli-in .cli-pie { grid-column: 1; grid-row: 2; align-self: center; width: auto; grid-template-columns: 1fr; }   /* B: arranca en la misma orilla que el titulo (sin sangria) */
    #cli-in .cli-pie .lnk { grid-row: auto; grid-column: auto; justify-self: start; }
}

/* D (10 nov): todo Mis proyectos es un solo bloque centrado en la pantalla. Si la tele o el texto chocan con el aro de Start a vibe,
   sube solo lo necesario (--b-sube). "safe": si no cabe, se queda arriba (no baja ni tapa el widget, no se achica nada). */
#cli-in { align-content: safe center; padding-bottom: var(--b-sube, 0px); }   /* D: centrado; borrador.js solo lo sube lo necesario si algo choca con el widget */
/* la raya del rotulo (2 px) en cel y en compu, a 16 px del titulo */
#cli-in .cli-cab { position: relative; padding-bottom: 16px; }
#cli-in .cli-cab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(var(--b-linea, 1)); transform-origin: left; }

/* ================= ronda 4 · Sobre mi con otro layout (html.s4-*) ================= */
.s4 .b-foto { display: none !important; }
/* --- tele: como Mis proyectos (rotulo con raya, la foto en una tele que se prende) --- */
.s4-tele .about-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.s4-tele .about-txt { display: contents; }
.s4-tele #about-t { order: -2; position: relative; padding-bottom: 16px; }
.s4-tele #about-t::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(var(--k1, 1)); transform-origin: left; }
.s4-tele .about-foto { order: -1; width: 100% !important; max-width: none; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 28%; padding: 14px; background: #2F2E2C !important; border-radius: 14px; justify-self: stretch;
  transform: scale(min(1, calc(var(--k2, 1) * 3)), max(.012, calc((var(--k2, 1) - .33) * 1.5))); }
@media (min-width: 761px) {
  .s4-tele .about-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 5vw; row-gap: 16px; }
  .s4-tele #about-t { grid-column: 1 / -1; grid-row: 1; }
  .s4-tele .about-foto { grid-column: 2; grid-row: 2 / span 4; width: min(100%, calc((100svh - var(--hdr-h) - 190px) * 1.6)) !important; justify-self: end; }
  .s4-tele .about-txt > p, .s4-tele .about-txt > .fila { grid-column: 1; }
}
/* --- partida: tu foto a sangre, media pantalla; entra de lado empujando --- */
.s4-partida #about { padding-left: var(--pad); padding-top: 0; }
.s4-partida #about .lateral { display: none; }
.s4-partida .about-in { grid-template-columns: minmax(0, 1fr); gap: 6svh; }
.s4-partida .about-foto { width: 100vw !important; max-width: none; margin-left: calc(-1 * var(--pad)); height: 62svh !important; aspect-ratio: auto; object-fit: cover; object-position: 50% 30%; padding: 0 !important; border-radius: 0; background: none !important;
  transform: translateX(calc((var(--k1, 1) - 1) * 100%)); }
.s4-partida .about-txt { opacity: var(--k2, 1); transform: translateY(calc((1 - var(--k2, 1)) * 24px)); }
@media (min-width: 761px) {
  .s4-partida #about { padding: 0 var(--pad) 0 0; min-height: 100svh; }
  .s4-partida .about-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; align-items: center; }
  .s4-partida .about-foto { width: 100% !important; margin-left: 0; height: 100svh !important; justify-self: stretch; }
}
/* --- fotograma: tu foto a pantalla completa, con tu nombre como subtitulo de pelicula --- */
.s4-fotograma #about { padding: 0 0 12svh; }
.s4-fotograma #about .lateral { display: none; }
.s4-fotograma .about-in { display: block; position: relative; }
.s4-fotograma .about-foto { display: block; width: 100% !important; max-width: none; height: 100svh !important; aspect-ratio: auto; object-fit: cover; object-position: 50% 22%; padding: 0 !important; border-radius: 0; background: none !important;
  opacity: var(--k1, 1); transform: scale(calc(1.08 - var(--k, 1) * .08)); }
.s4-fotograma .about-in::after { content: ""; position: absolute; left: 0; right: 0; top: 60svh; height: 40svh; background: linear-gradient(transparent, rgba(20, 20, 18, .55)); opacity: var(--k1, 1); pointer-events: none; }
.s4-fotograma .about-txt { max-width: none; padding: 6svh var(--pad) 0; }
.s4-fotograma #about-t { position: absolute; z-index: 1; left: var(--pad); top: calc(100svh - 28svh); color: #ECE8E0; opacity: var(--k2, 1); transform: translateY(calc((1 - var(--k2, 1)) * 20px)); }
.s4-fotograma .about-txt > p, .s4-fotograma .about-txt > .fila { max-width: 46ch; }
@media (min-width: 761px) { .s4-fotograma .about-txt { display: grid; grid-template-columns: repeat(2, minmax(0, 46ch)); column-gap: 5vw; } .s4-fotograma .about-txt > .fila { grid-column: 1; } }
/* --- franja: tu foto como franja de cine (cinemascope) que se abre desde una rayita --- */
.s4-franja #about { padding-left: var(--pad); }
.s4-franja #about .lateral { display: none; }
.s4-franja .about-in { grid-template-columns: minmax(0, 1fr); gap: 5svh; }
.s4-franja .about-foto { width: 100vw !important; max-width: none; margin-left: calc(-1 * var(--pad)); height: auto !important; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 32%; padding: 0 !important; border-radius: 0; background: none !important;
  clip-path: inset(calc((1 - var(--k1, 1)) * 49.5%) 0); }
.s4-franja .about-txt { max-width: none; opacity: var(--k2, 1); }
@media (min-width: 761px) {
  .s4-franja .about-foto { aspect-ratio: 21 / 9; }
  .s4-franja .about-txt { display: grid; grid-template-columns: repeat(2, minmax(0, 46ch)); column-gap: 5vw; row-gap: 16px; }
  .s4-franja #about-t { grid-column: 1 / -1; }
}
/* --- seccion 2013 (adicional): entre Philosophy y Sobre mi --- */
.b-dato { position: relative; z-index: 3; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 3svh; padding: 16svh var(--pad); text-align: center; background: var(--azul, #113D9E); color: #ECE8E0; }
.b-dato .b-frase { font-size: 17px; }
.b-cifra { display: flex; justify-content: center; }
.b-ventana { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.b-rollo { display: flex; flex-direction: column; line-height: 1; transition: transform 1.6s cubic-bezier(.22, .68, .12, 1); }
.b-rollo > span { height: 1em; }
.b-dato.gira .b-rollo { transform: translateY(calc(var(--fin) * -1em)); }
.s4-banda2013 .b-dato { background: #F5F5F3; color: #2F2E2C; padding-inline: 0; min-height: 70svh; width: 100%; justify-items: stretch; }
.s4-banda2013 .b-dato .b-frase { text-align: center; }
.s4-banda2013 .b-banda { border-block: 2px solid currentColor; }
.s4-banda2013 .b-banda .banda-rollo { transform: none; }

/* E afinada: Sobre mi tambien se queda fija y Contacto sube encima; profundidad con una sombra que crece */
.e2 #about, .e3 #about, .e4 #about { position: sticky; z-index: 3; }
.e2 #contact, .e3 #contact, .e4 #contact { z-index: 5; }
.e3 #philosophy, .e3 .b-dato, .e3 #about { transform-origin: 50% 50%; }
.e3 #philosophy::after, .e3 .b-dato::after, .e3 #about::after { content: ""; position: absolute; inset: 0; background: #1d1c1b; opacity: var(--tapa, 0); pointer-events: none; }
.e3 .b-dato { overflow: hidden; }
.e2 .b-dato, .e3 .b-dato, .e4 .b-dato { position: sticky; top: 0; z-index: 3; }
.e2 #about, .e3 #about, .e4 #about { z-index: 4; }

/* ===== ronda 6: el 2013 sin apilar ===== */
.m6 #philosophy { position: relative !important; }
.m6 .b-dato { overflow: hidden; }
.m6 .b-frase { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--lento); }
.m6 .b-dato.llego .b-frase { opacity: 1; transform: none; }
.b-cifra6 { font-variant-numeric: tabular-nums; }
.b-osd { position: absolute; top: calc(var(--hdr-h) + 18px); left: var(--pad); font: 500 17px/1 "Barlow", sans-serif; letter-spacing: .08em; }
.b-dial { position: relative; width: 100vw; height: 64px; overflow: hidden; }
.b-regla { position: absolute; left: 50%; top: 0; display: flex; will-change: transform; }
.b-marca { width: 120px; flex: none; display: grid; justify-items: center; gap: 8px; }
.b-marca i { width: 2px; height: 22px; background: currentColor; opacity: .7; }
.b-marca b { font: 500 14px/1 "Barlow", sans-serif; opacity: .8; }
.b-aguja { position: absolute; left: 50%; top: 0; width: 3px; height: 34px; margin-left: -1.5px; background: #FFC21A; border-radius: 2px; }
.b-tablero { display: flex; gap: .08em; justify-content: center; }
.b-flap { display: inline-block; width: .74em; padding: .06em 0 .02em; background: #1C4AAE; border-radius: 6px; text-align: center; }
.b-flap.gira { animation: flap .07s linear; }
@keyframes flap { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
.b-viaja { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; visibility: hidden; transform-origin: 0 0; color: #ECE8E0; will-change: transform; line-height: 1; margin: 0; }
.b-desde mark { background: var(--amarillo, #FFC21A); color: #2f2e2c; padding: 0 6px 2px; border-radius: 6px; }
.b-desde { margin-bottom: -6px; }

/* v18.117b: Sobre mi al alto de su contenido con el padding de siempre (16svh), sin el hueco de 110svh antes de Contacto */
.m6 #about { min-height: 0; }

/* v18.118 · burbuja: Philosophy quieta, el 2013 se abre en un circulo desde la esfera con tu foto adentro; luego scroll normal */
.m6-burbuja #philosophy { position: sticky !important; z-index: 1; }
.m6-burbuja .b-dato { z-index: 3; will-change: transform, clip-path; }
.b-bfoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; pointer-events: none; z-index: 0; }
.m6-burbuja .b-dato > :not(.b-bfoto) { position: relative; z-index: 1; }
.m6-burbuja .b-dato > .b-osd { position: absolute; }

/* ===== borrador Grail (11 nov) ===== */
html { overflow-x: clip; }
.g-mancha { position: fixed; left: 50%; top: 50%; width: 176px; height: 176px; z-index: 2; pointer-events: none; visibility: hidden; will-change: transform; }
.g-fondo { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 400 22vw/1 "RA", sans-serif; letter-spacing: .25px; color: #ECE8E0; opacity: .07; will-change: transform; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; z-index: 0 !important; }
.gg-hoja #about { transform-origin: 50% 0; border-radius: 14px; position: relative; z-index: 4; }
.gg-hoja .b-dato { z-index: 2; }
.g-cap { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: calc(var(--hdr-h) + 16px); display: flex; justify-content: space-between; pointer-events: none; }
.gg-capitulos #philosophy, .gg-capitulos #about { position: relative; }
.b-dato .g-cap { position: absolute !important; }

/* ===== borrador Grail · ronda 2 ===== */
.gg-hdr-azul .hdr { --hdr-bg: #113D9E !important; --hdr-ink: #ECE8E0 !important; transition: background .35s var(--lento), color .35s var(--lento); }
/* Sobre mi sin la marquesina lateral (la hoja ya es el momento especial) */
.ss #about .lateral { display: none; }
.ss #about { padding-left: var(--pad); overflow: clip; }
/* s1 · capitulos + letras que suben */
.ss-1 .ss-w { display: inline-block; white-space: nowrap; overflow-y: clip; padding-bottom: .04em; vertical-align: top; }
.ss-1 .ss-l { display: inline-block; transform: translateY(105%); transition: transform .9s var(--lento); }
.ss-1 #about.ss-llega .ss-l { transform: none; }
/* s2 · nombre partido, foto al centro, un parrafo a cada lado */
.ss-2 .about-in, .ss-2 .about-txt { display: contents; }
.ss-2 #about { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 42svh) minmax(0, 1fr); grid-template-areas: "t t t" "p1 f p2" ". b ."; gap: 4svh 4vw; align-items: start; align-content: center; min-height: 100svh; }
.ss-2 #about-t { grid-area: t; display: flex; justify-content: space-between; }
.ss-2 .about-foto { grid-area: f; width: 100% !important; max-width: none; margin-top: -2svh; }
.ss-2 .about-txt > p:nth-of-type(1) { grid-area: p1; align-self: end; max-width: 34ch; }
.ss-2 .about-txt > p:nth-of-type(2) { grid-area: p2; align-self: end; max-width: 34ch; justify-self: end; }
.ss-2 .about-txt > .fila { grid-area: b; justify-self: center; }
/* s3 · la foto llena media hoja, de orilla a orilla */
.ss-3 #about { min-height: 100svh; padding-left: calc(50% + 5vw); }
.ss-3 .about-in { grid-template-columns: minmax(0, 1fr); }
.ss-3 .about-foto { position: absolute; left: 0; top: 0; bottom: 0; width: 50% !important; height: 100% !important; max-width: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 30%; border-radius: 24px 0 0 24px !important; padding: 0 !important; background: none !important; }
/* s4 · el numero de canal enorme y transparente de fondo (como el reloj de Grail) */
.ss-4 #about::before { content: none; }   /* 13 nov v18.124: quitado el 06 gigante (antes content "06", 26vw, opacity .06). Respaldo: borrador-respaldo-124-con-06.css */
.ss-4 .about-in { position: relative; z-index: 1; }
.ss .g-cap { z-index: 2; }
@media (max-width: 760px) {
    .ss-2 #about { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "f" "p1" "p2" "b"; }
    .ss-2 #about-t { flex-direction: column; } .ss-2 .ss-der { align-self: flex-end; }
    .ss-2 .about-txt > p:nth-of-type(2) { justify-self: start; } .ss-2 .about-txt > .fila { justify-self: start; }
    .ss-3 #about { padding-left: var(--pad); padding-top: calc(55svh + 6svh); }
    .ss-3 .about-foto { right: 0; bottom: auto; width: 100% !important; height: 55svh !important; border-radius: 24px 24px 0 0 !important; }
    .ss-4 #about::before { font-size: 40vw; bottom: -4vw; }
}

/* fijo (11 nov): el 2013 espera quieto detras; Philosophy (encima, con su fondo) se va hacia arriba y lo destapa */
.gg-fijo #philosophy { position: relative !important; z-index: 5; background: var(--page); }

/* 11 nov: el letrero REW / PLAY abajo a la izquierda, para que siempre se vea (mismos 18 px de aire que tenia arriba) */
.gg-fijo .b-osd { top: auto; bottom: 18px; }
@media (max-width: 760px) { .g-fondo { font-size: 40vw !important; } }   /* en cel, mas grande que el 2013 principal (56 px) */

/* v18.121: suave en el cel. El 2013 se queda con sticky (no con JavaScript) y las esquinas se quitan una vez */
.gg-fijo .gg-sobre { position: relative; z-index: 2; margin-top: -100svh; }
.gg-fijo .gg-sobre > .b-dato { position: sticky !important; top: 0; transform: none !important; }
.gg-fijo .gg-hueco { height: 230svh; }   /* v18.124: 2013 mas corto (antes 290) */   /* mismo ritmo que v18.120: 2013 solo 0.9 pantallas y luego Sobre mi entra en 1 pantalla */
.gg-fijo #about { margin-top: -100svh; }
.gg-hoja #about { will-change: transform; transition: border-radius .4s var(--lento); }
.gg-hoja #about.gg-montada { border-radius: 0; }

/* 11 nov (121e): el 2013 del alto de la pantalla grande (sin la barra de Chrome); con 100svh, al esconderse la barra el PLAY quedaba 56 px abajo, fuera y recortado */
.gg-fijo .gg-sobre > .b-dato { min-height: 100lvh; }

/* v18.124 (13 nov): la hoja de Sobre mi la mueve el navegador junto con el dedo (antes JS por cuadro).
   Entra al 84 % y girada 7 grados; queda derecha cuando su orilla de arriba llega al 20 % de la pantalla (entry 80 %). */
@supports (animation-timeline: view()) {
    .gg-hoja #about { animation: hjHoja linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
}
@keyframes hjHoja { from { transform: scale(.84) rotate(7deg); } to { transform: none; } }

/* 21 nov · borrador-hero: al regresar a Inicio con la barra de Chrome escondida se asomaban 56 px de LO QUE HAGO (el Hero medía 100svh).
   Ahora mide el alto máximo (100lvh) y la diferencia va como relleno abajo: el texto y el botón quedan en el mismo píxel. En compu lvh = svh: no cambia nada. */
.hero { min-height: calc(100lvh - var(--hdr-h)); padding-bottom: calc(6svh + 100lvh - 100svh); }

/* 21 nov · borrador-ajustes · Mis proyectos, propuesta A: el texto de cada proyecto siempre en el mismo orden y lugar.
   titulo -> descripcion -> cifra -> link (el link siempre al final, a la izquierda; antes se iba a la derecha o se caia segun el largo). */
#cli-in .cli-pie { grid-template-columns: minmax(0, 1fr); align-items: start; }
#cli-in .cli-pie .lnk { grid-row: auto; grid-column: auto; justify-self: start; }
/* compu: el bloque de texto completo (con su link) centrado a la altura de la tele (21 nov: Rodrigo no lo quiere arriba) */
/* cada renglon mide lo que su texto (antes la cifra ocupaba todo el ancho y "chocaba" con la esfera chica: el bloque se subia y dejaba hueco abajo en cel) */
#cli-in .cli-pie > *, #cli-in .cli-pie > div > * { justify-self: start; width: fit-content; max-width: 100%; }

/* 22 nov · v18.128: el año gigante de fondo (2026 -> 2013) ya no tiembla al contar. La RA no trae dígitos del mismo ancho (el 0 mide 0.91em, el 1 0.43em)
   y el año se recentraba con cada número (hasta 47 px en cel). Mismo tamaño de siempre (40vw cel, 22vw compu). */
.g-fondo { width: calc(2.582em + 1px); text-align: left; }   /* 22 nov (3): mismo tamaño y mismas letras de antes. La caja mide lo que mide "2013" y el año arranca en su orilla izquierda:
   el "20" nunca se mueve, solo cambian los ultimos digitos (como contador), y 2013 queda centrado igual que antes. (Las cajitas por digito dejaban mucho aire junto al 1.) */
