/* Kevin De la Zota · sistema visual v2 (30/09/2026)
   Dirección: editorial y "hecho a mano". Papel cálido, tinta azul noche, serif con carácter
   para titulares, notas manuscritas para la voz de Kevin y fotos reales en formas propias.
   Colores de marca: #023ABF (azul) · #0296DF (cielo) · #0C112E (tinta). */

:root {
  --papel: #F4F0E8;
  --papel-2: #EAE3D6;
  --blanco: #FFFDF9;
  --tinta: #0C112E;
  --tinta-2: #3A4062;
  --tinta-3: #6B7090;
  --azul: #023ABF;
  --cielo: #0296DF;
  --linea: rgba(12, 17, 46, .14);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mano: 'Caveat', 'Segoe Print', cursive;
  --ancho: 1200px;
  --radio: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--tinta); background: var(--papel); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--azul); color: var(--blanco); }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; border-radius: 6px; }

/* Grano de papel muy sutil: le quita el acabado "plástico" */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 28px; }
.seccion { padding: 120px 0; position: relative; }
.tinta { background: var(--tinta); color: var(--papel); }
.tinta .antetitulo { color: var(--cielo); }

/* Tipografía */
.antetitulo { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--azul); }
.antetitulo::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(3.4rem, 9.5vw, 8.6rem); line-height: .9; }
h2 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: .98; margin: 18px 0 22px; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; }
em, .it { font-style: italic; }
h1 em, h2 em { color: var(--azul); }
.tinta h2 em { color: var(--cielo); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--tinta-2); max-width: 560px; }
.tinta .lead { color: #C3C8DD; }
.nota { font-family: var(--mano); font-size: 1.55rem; line-height: 1.1; color: var(--azul); font-weight: 600; }
.tinta .nota { color: var(--cielo); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: 600 1rem var(--sans); padding: 17px 30px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease; will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn .flecha { transition: transform .25s ease; }
.btn:hover .flecha { transform: translateX(4px); }
.btn-azul { background: var(--azul); color: var(--blanco); }
.btn-azul:hover { background: #0231A3; }
.btn-tinta { background: var(--tinta); color: var(--papel); }
.btn-papel { background: var(--papel); color: var(--tinta); }
.enlace { font-weight: 600; color: var(--tinta); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .3s ease; }
.enlace:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* Encabezado */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 232, .86); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.cabecera.con-borde { border-bottom-color: var(--linea); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.cabecera .logo img { height: 34px; width: auto; }
.cabecera nav { display: flex; align-items: center; gap: 34px; }
.cabecera nav a:not(.btn) { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--tinta-2); }
.cabecera nav a:not(.btn):hover { color: var(--azul); }
.cabecera .btn { padding: 11px 22px; font-size: .9rem; }

/* Insignia giratoria con texto en círculo */
.insignia { position: absolute; z-index: 2; width: 150px; height: 150px; display: grid; place-items: center; background: var(--papel); border-radius: 50%; box-shadow: 0 14px 30px -16px rgba(12,17,46,.45); }
.insignia svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: girar 22s linear infinite; }
.insignia text { font: 600 11.5px var(--sans); letter-spacing: .28em; text-transform: uppercase; fill: var(--tinta); }
.insignia .centro { width: 64px; height: 64px; border-radius: 50%; background: var(--azul); display: grid; place-items: center; }
.insignia .centro img { width: 30px; height: auto; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Foto en arco */
.arco { border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--papel-2); }
.arco img { width: 100%; height: 100%; object-fit: cover; }

/* Cinta de texto en movimiento */
.cinta { background: var(--tinta); color: var(--papel); overflow: hidden; padding: 26px 0; border-block: 1px solid rgba(255,255,255,.08); }
.cinta .pista { display: flex; width: max-content; animation: deslizar 38s linear infinite; }
.cinta span { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 3rem); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.cinta span::after { content: "✳"; font-style: normal; color: var(--cielo); font-size: .6em; }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* Boleto (la entrada al curso) */
.boleto { position: relative; display: grid; grid-template-columns: 1fr 260px; background: var(--blanco); border-radius: 22px; box-shadow: 0 1px 0 rgba(12,17,46,.05), 0 40px 70px -40px rgba(12,17,46,.45); }
.boleto::before, .boleto::after { content: ""; position: absolute; right: 247px; width: 26px; height: 26px; border-radius: 50%; background: var(--papel); }
.boleto::before { top: -13px; }
.boleto::after { bottom: -13px; }
.boleto .cuerpo { padding: 34px 38px; }
.boleto .talon { padding: 34px 30px; border-left: 2px dashed var(--linea); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.campo-dato { display: grid; gap: 2px; }
.campo-dato small { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-3); }
.campo-dato b { font-weight: 500; font-size: 1.02rem; }
.precio { font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--azul); }
.precio small { font-family: var(--sans); font-size: .8rem; color: var(--tinta-3); display: block; margin-top: 6px; letter-spacing: .06em; }

/* Revelados al hacer scroll (solo con JS y sin "reducir movimiento") */
.anim .rv { opacity: 0; transform: translateY(34px); }

/* Pie */
.pie { background: var(--tinta); color: #AEB3CC; padding: 90px 0 120px; font-size: .92rem; }
.pie .contenedor { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.pie img { height: 32px; width: auto; margin-bottom: 18px; }
.pie h4 { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--papel); margin-bottom: 16px; }
.pie ul { list-style: none; display: grid; gap: 10px; }
.pie a { text-decoration: none; color: #AEB3CC; }
.pie a:hover { color: var(--papel); }
.pie button.enlace-cookies { background: none; border: 0; font: inherit; color: #AEB3CC; cursor: pointer; padding: 0; text-align: left; }
.pie button.enlace-cookies:hover { color: var(--papel); }
.pie .derechos { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; font-size: .8rem; color: #7E84A3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Barra fija en móvil */
.barra-movil { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--tinta); color: var(--papel); border-radius: 18px; padding: 10px 10px 10px 18px; box-shadow: 0 18px 40px -12px rgba(12,17,46,.55); transition: transform .35s ease, opacity .35s ease; }
.barra-movil small { display: block; font-size: .7rem; color: #AEB3CC; letter-spacing: .08em; text-transform: uppercase; }
.barra-movil b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.barra-movil .btn { padding: 12px 20px; font-size: .92rem; }
.barra-movil.oculta { transform: translateY(140%); opacity: 0; }

/* Aviso de cookies */
.cookies { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: 380px; background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); border-radius: 18px; padding: 20px 20px 18px; box-shadow: 0 24px 50px -20px rgba(12,17,46,.4); font-size: .88rem; line-height: 1.5; display: none; }
.cookies.visible { display: block; }
.cookies p { margin-bottom: 14px; color: var(--tinta-2); }
.cookies a { color: var(--azul); }
.cookies .acciones { display: flex; gap: 10px; }
.cookies button { flex: 1; font: 600 .88rem var(--sans); padding: 11px 14px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--tinta); background: transparent; color: var(--tinta); }
.cookies button.aceptar { background: var(--tinta); color: var(--papel); }

@media (max-width: 900px) {
  .seccion { padding: 88px 0; }
  .cabecera nav a:not(.btn) { display: none; }
  .boleto { grid-template-columns: 1fr; }
  .boleto::before, .boleto::after { display: none; }
  .boleto .talon { border-left: 0; border-top: 2px dashed var(--linea); }
  .pie .contenedor { grid-template-columns: 1fr 1fr; }
  .pie .marca { grid-column: 1 / -1; }
  .barra-movil { display: flex; }
  .cookies { left: 12px; right: 12px; bottom: 86px; max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .contenedor { padding: 0 20px; }
  .seccion { padding: 72px 0; }
  .cabecera .contenedor { height: 64px; }
  .cabecera .logo img { height: 28px; }
  .boleto .cuerpo, .boleto .talon { padding: 26px 22px; }
  .pie .contenedor { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .insignia svg, .cinta .pista { animation: none; }
  .anim .rv { opacity: 1; transform: none; }
}
