:root {
  /* PALETA MUTARE */
  --verde: #29AE00;
  --lima: #8BBF1B;
  --amarillo: #EEC616;
  --naranja: #DC7B2C;
  --rojo: #CC3232;

  --fondo: #CC3232;
  --tinta: #111111;
  --blanco: #FFFFFF;
  --borde: 3px;
  --sombra: 6px;
  --fuente: 'Coolvetica', 'Outfit', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100%;
}

body {
  background: #F4F0E8;          /* color que se ve detrás del video */
  color: var(--tinta);
  font-family: var(--fuente);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* evita scroll horizontal si algo se sale */
}

/* VIDEO DE FONDO */

.fondo-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;                /* ← controla qué tan fuerte se ve el fondo en movimiento */
  z-index: -2;
}

.fondo-velo {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(17, 17, 17, 0) 40%, rgba(17, 17, 17, 0.12) 100%);
  z-index: -1;
  pointer-events: none;
}

.inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.5vh, 36px);   /* ← espacio entre los elementos */
  padding: 100px 16px 70px;
  text-align: center;
}

/* VIDEO DEL LOGO */

.titulo-caja {
  width: min(660px, 94vw);      /* ← controla el ANCHO del logo */
  aspect-ratio: 1100 / 432;
  margin-bottom: -40px;
  animation: entrar 0.7s cubic-bezier(.2, .8, .2, 1) both;
}

.titulo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(5px 5px 0 rgba(17, 17, 17, 0.9));
}

.titulo[hidden] {
  display: none;
}

/* SINOPSIS */
.sinopsis {
  position: relative;
  width: min(700px, calc(100% - 16px));
  margin-top: 14px;
  padding: clamp(26px, 3.5vw, 36px) clamp(20px, 3.5vw, 40px) clamp(20px, 3vw, 30px);
  background: var(--amarillo);
  border: 4px solid var(--tinta);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--tinta), 15px 15px 0 var(--rojo);
  animation: entrar 0.7s 0.1s cubic-bezier(.2, .8, .2, 1) both, latido 3.2s 1.2s ease-in-out infinite;
}

.sinopsis__etiqueta {
  position: absolute;
  top: -20px;
  left: 22px;
  padding: 5px 14px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--verde);
  border: var(--borde) solid var(--tinta);
  border-radius: 999px;
  rotate: -3deg;
}

.sinopsis p {
  font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.sinopsis mark {
  padding: 0 4px;
  color: var(--blanco);
  background: var(--rojo);
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@keyframes latido {
  0%, 100% { transform: none; }
  50% { transform: scale(1.015); }
}

/* FRASE */

.frase {
  padding: 8px 20px 10px;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--blanco);
  background: var(--rojo);
  border: var(--borde) solid var(--tinta);
  border-radius: 6px;
  box-shadow: var(--sombra) var(--sombra) 0 var(--tinta);
  rotate: -1.5deg;
  animation: entrar 0.7s 0.2s cubic-bezier(.2, .8, .2, 1) both;
}

/* ============================================
   CONTENEDOR DEL BOTÓN 3D
   Le damos un "cajón" con tamaño fijo para que
   el botón no se escape del layout.
   ============================================ */

.boton-3d-caja {
  width: 250px;
  height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 110px 30px 70px;       /* ← aire arriba y abajo del botón 3D (la tapa se abre hacia arriba) */
  animation: entrar 0.7s 0.3s cubic-bezier(.2, .8, .2, 1) both;
}

/* ============================================
   BOTÓN 3D (From Uiverse.io by escannord) 
   ============================================ */

.button {
  cursor: pointer;
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transform: rotateX(-45deg) rotateY(25deg) rotateZ(0deg);
  background-color: transparent;
  border: none;
  touch-action: manipulation;
}

.lid {
  position: absolute;
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
  transform-origin: 0 80px -120px;
  height: 80px;
  width: 250px;
  background-color: rgba(0, 0, 0, 0);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lid:hover,
.button:hover .lid {
  transform: translate(-50%, -50%) rotateX(60deg);
}

.lid .side {
  display: inline-block;
  width: 250px;
  height: 250px;
  background-color: rgba(41, 174, 0, 0.35);
  position: absolute;
  top: 50%;
  left: 50%;
  border: solid 1px rgba(17, 17, 17, 0.35);
}

.front {
  transform: translate(-50%, -50%) translateZ(125px);
  height: 80px !important;
}

.top {
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(40px);
  background-color: rgba(204, 50, 50, 0.5);
}

.left {
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(125px);
  height: 80px !important;
}

.right {
  transform: translate(-50%, -50%) rotateY(-90deg) translateZ(125px);
  height: 80px !important;
}

.back {
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(125px);
  background-color: rgba(238, 198, 22, 0.5);
  height: 80px !important;
}

.back::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 20px;
  height: 10px;
  background-color: black;
  bottom: 0;
  left: 10px;
}

.back::after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 20px;
  height: 10px;
  background-color: black;
  bottom: 0;
  right: 10px;
}

.panels {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(-40px);
}

.panel-1 {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 250px;
  width: 250px;
  background-color: rgb(166, 255, 0);
  background: repeating-linear-gradient(
    45deg,
    #EEC616 0% 2%,
    black 2% 4%
  );
  box-shadow: 0px 0px 0px 20px #CC3232;
}

.panel-2 {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 200px;
  width: 200px;
  background-color: rgb(0, 0, 0);
  background: linear-gradient(-135deg, rgb(43, 42, 42), black);
  border: solid 5px #EEC616;
}

.panel-1::after {
  content: "SELF-DESTRUCT";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 25px;
  color: white;
  font-weight: bold;
  transform: translate(-50%, -50%) translateY(170px);
  font-size: larger;
  background-color: #CC3232;
  text-align: center;
}

.panel-1::before {
  content: "WARNING: DANGER";
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 25px;
  color: white;
  font-weight: bold;
  transform: translate(-50%, -50%) rotateZ(90deg) translateY(170px);
  font-size: larger;
  background-color: #CC3232;
  text-align: center;
}

.btn-trigger {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
}

.btn-trigger-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background-color: rgb(207, 195, 195);
  box-shadow: -0px 1px 0 rgb(54, 54, 54), -0px 2px 0 rgb(54, 54, 54),
    -1px 3px 0 rgb(54, 54, 54), -1px 4px 0 rgb(54, 54, 54),
    -2px 5px 0 rgb(54, 54, 54), -2px 6px 0 rgb(54, 54, 54),
    -3px 7px 0 rgb(54, 54, 54), -3px 8px 0 rgb(54, 54, 54),
    -4px 9px 0 rgb(54, 54, 54), -4px 10px 0 rgb(54, 54, 54),
    -5px 11px 0 rgb(54, 54, 54), -5px 12px 0 rgb(54, 54, 54),
    -6px 13px 0 rgb(54, 54, 54), -6px 14px 0 rgb(54, 54, 54),
    -7px 15px 0 rgb(54, 54, 54), -7px 16px 0 rgb(54, 54, 54),
    -8px 17px 0 rgb(54, 54, 54), -8px 18px 0 rgb(54, 54, 54),
    -9px 19px 0 rgb(54, 54, 54), -9px 20px 0 rgb(54, 54, 54),
    -10px 21px 0 rgb(54, 54, 54), -10px 22px 0 rgb(54, 54, 54),
    -11px 23px 0 rgb(54, 54, 54), -11px 24px 0 rgb(54, 54, 54),
    -12px 25px 0 rgb(54, 54, 54), -12px 26px 0 rgb(54, 54, 54);
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(50px);
}

.btn-trigger-2 {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #CC3232;
  box-shadow: -0px 1px 0 rgb(128, 5, 5), -0px 2px 0 rgb(128, 5, 5),
    -1px 3px 0 rgb(128, 5, 5), -1px 4px 0 rgb(128, 5, 5),
    -2px 5px 0 rgb(128, 5, 5), -2px 6px 0 rgb(128, 5, 5),
    -3px 7px 0 rgb(128, 5, 5), -3px 8px 0 rgb(128, 5, 5),
    -4px 9px 0 rgb(128, 5, 5), -4px 10px 0 rgb(128, 5, 5),
    -5px 11px 0 rgb(128, 5, 5), -5px 12px 0 rgb(128, 5, 5),
    -6px 13px 0 rgb(128, 5, 5), -6px 14px 0 rgb(128, 5, 5),
    -7px 15px 0 rgb(128, 5, 5), -7px 16px 0 rgb(128, 5, 5);
  border-radius: 50%;
  transition: all 0.3s;
  transform: translate(-40%, -70%) translateZ(100px);
}

.btn-trigger-2:active {
  transform: translate(-50%, -50%) translateZ(100px);
  box-shadow: none;
}

/* ENLACE A LA EXPERIENCIA */

.enlace-experiencia {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 24px);
  margin-bottom: 20px;
  padding: clamp(20px, 2.8vw, 32px) clamp(26px, 4vw, 54px);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.1;
  color: var(--tinta);
  text-decoration: none;
  background: var(--naranja);
  border: 4px solid var(--tinta);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--tinta), 14px 14px 0 var(--amarillo);
  transition: translate 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  animation: entrar 0.7s 0.4s cubic-bezier(.2, .8, .2, 1) both, llamar 2.4s 1.4s ease-in-out infinite;
}

/* etiqueta "¡Empezá acá!" pegada arriba del botón */
.enlace-experiencia::before {
  content: "¡Empezá acá!";
  position: absolute;
  top: -18px;
  right: 18px;
  padding: 4px 12px;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--rojo);
  border: 2px solid var(--tinta);
  border-radius: 999px;
  rotate: 4deg;
}

/* anillo que late alrededor para llamar la atención */
.enlace-experiencia::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 4px solid var(--naranja);
  border-radius: 14px;
  pointer-events: none;
  animation: onda 2.4s 1.4s ease-out infinite;
}

.enlace-experiencia__flecha {
  display: inline-block;
  animation: empujar 1.2s ease-in-out infinite;
}

.enlace-experiencia:hover {
  background: #E88A3A;
  translate: -3px -3px;
  box-shadow: 11px 11px 0 var(--tinta), 17px 17px 0 var(--amarillo);
}

.enlace-experiencia:active {
  translate: 6px 6px;
  box-shadow: 2px 2px 0 var(--tinta), 6px 6px 0 var(--amarillo);
}

@keyframes llamar {
  0%, 100% { scale: 1; }
  50% { scale: 1.05; }
}

@keyframes onda {
  0% { opacity: 0.9; scale: 1; }
  100% { opacity: 0; scale: 1.18 1.45; }
}

@keyframes empujar {
  0%, 100% { translate: 0 0; }
  50% { translate: 8px 0; }
}

/* =====================================================
   NAVEGACIÓN
   ===================================================== */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(1100px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--borde) solid var(--tinta);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--tinta);
  z-index: 5;
  transition: translate 0.35s ease;
}

.nav.oculta {
  translate: -50% -140%;
}

.nav__marca img {
  display: block;
  height: 46px;
  width: auto;
  transition: rotate 0.2s ease;
}

.nav__marca:hover img {
  rotate: -6deg;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  padding: 9px 14px;
  font-size: 16px;
  color: var(--tinta);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.nav__links a:hover {
  background: rgba(17, 17, 17, 0.08);
}

.nav__links .nav__boton {
  color: var(--blanco);
  background: var(--verde);
  border: 2px solid var(--tinta);
  box-shadow: 3px 3px 0 var(--tinta);
}

.nav__links .nav__boton:hover {
  background: var(--verde);
  translate: -1px -1px;
  box-shadow: 4px 4px 0 var(--tinta);
}

/* =====================================================
   MARQUESINA
   ===================================================== */

.marquesina {
  overflow: hidden;
  margin: 10px 0 30px;
  background: var(--amarillo);
  border-block: var(--borde) solid var(--tinta);
  rotate: -1.5deg;
  scale: 1.04;
}

.marquesina__pista {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: deslizar var(--duracion, 28s) linear infinite;
}

.marquesina span {
  padding: 14px 28px;
  font-size: clamp(20px, 2.6vw, 30px);
  white-space: nowrap;
  color: var(--tinta);
}

.marquesina span:nth-child(4n + 1) { background: var(--amarillo); }
.marquesina span:nth-child(4n + 2) { background: var(--rojo); color: var(--blanco); }
.marquesina span:nth-child(4n + 3) { background: var(--naranja); }
.marquesina span:nth-child(4n + 4) { background: var(--verde); color: var(--blanco); }

/* la pista tiene dos mitades idénticas: al llegar a -50% vuelve a 0 sin que se note */
@keyframes deslizar {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* =====================================================
   SECCIONES
   ===================================================== */

.seccion {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 0;
}

.seccion__cabecera {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.seccion__etiqueta {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--rojo);
  border: 2px solid var(--tinta);
  border-radius: 999px;
  rotate: -2deg;
}

.seccion__etiqueta--lima {
  color: var(--tinta);
  background: var(--lima);
}

.seccion__titulo {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0 var(--blanco);
}

.seccion__bajada {
  margin-top: 16px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: #2A2620;
}

/* ---------- CREDENCIALES DE ESPECIALISTAS ---------- */

.credenciales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 290px));
  row-gap: clamp(40px, 5vw, 64px);
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
  list-style: none;
}

.credencial {
  --color: var(--rojo);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px 24px;
  text-align: center;
  background: var(--blanco);
  border: var(--borde) solid var(--tinta);
  border-top: 46px solid var(--color);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--tinta);
  transition: rotate 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
}

.credencial:nth-child(3n + 1) { rotate: -2deg; }
.credencial:nth-child(3n + 2) { rotate: 1deg; translate: 0 18px; }
.credencial:nth-child(3n + 3) { rotate: -1deg; }

.credencial:hover {
  rotate: 0deg;
  translate: 0 -6px;
  box-shadow: 10px 12px 0 var(--tinta);
}

.credencial--naranja { --color: var(--naranja); }
.credencial--verde { --color: var(--verde); }
.credencial--amarillo { --color: var(--amarillo); }
.credencial--lima { --color: var(--lima); }

.credencial__agujero {
  position: absolute;
  top: -32px;
  width: 54px;
  height: 14px;
  background: #F4F0E8;
  border: 2px solid var(--tinta);
  border-radius: 999px;
}

.credencial__entidad {
  margin: 14px 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A635A;
}

.credencial__foto {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #E8E1D4;
  border: var(--borde) solid var(--tinta);
  border-radius: 8px;
}

.credencial__nombre {
  margin-top: 16px;
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.1;
}

.credencial__placa {
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 20px;
  letter-spacing: 0.08em;
  background: var(--amarillo);
  border: 2px solid var(--tinta);
  border-radius: 6px;
}

.credencial__placa span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ---------- FORMULARIO ---------- */

.formulario-caja {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 60px);
  color: var(--blanco);
  background:
    radial-gradient(circle at 15% 20%, rgba(41, 174, 0, 0.25), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(204, 50, 50, 0.28), transparent 50%),
    rgba(17, 17, 17, 0.92);
  border: var(--borde) solid var(--tinta);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--lima);
}

.formulario-caja__titulo {
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--lima);
}

.formulario-caja__bajada {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
  color: #E9E4DA;
}

.formulario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.campo--ancho {
  grid-column: 1 / -1;
}

.campo label {
  font-size: 15px;
  color: var(--lima);
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--fuente);
  font-size: 16px;
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.campo textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.campo input:focus,
.campo textarea:focus {
  border-color: var(--lima);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(139, 191, 27, 0.25);
}

.campo.con-error input,
.campo.con-error textarea {
  border-color: var(--rojo);
  box-shadow: 0 0 0 4px rgba(204, 50, 50, 0.3);
  animation: temblor 0.35s ease;
}

.campo__error {
  min-height: 0;
  font-size: 14px;
  color: #FF8A80;
}

.campo__error:empty {
  display: none;
}

.clausulas {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #D9D3C8;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.clausulas summary {
  color: var(--amarillo);
  cursor: pointer;
}

.clausulas ol {
  margin: 10px 0 2px 20px;
  display: grid;
  gap: 6px;
}

.casilla {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}

.casilla input {
  width: 22px;
  height: 22px;
  accent-color: var(--verde);
  cursor: pointer;
}

.formulario__enviar {
  margin-top: 6px;
  padding: 16px 20px;
  font-family: var(--fuente);
  font-size: 20px;
  color: var(--tinta);
  background: var(--lima);
  border: var(--borde) solid var(--tinta);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--lima), 5px 5px 0 2px var(--blanco);
  cursor: pointer;
  transition: translate 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.formulario__enviar:hover {
  background: #A2D62A;
  translate: -2px -2px;
}

.formulario__enviar:active {
  translate: 3px 3px;
  box-shadow: 0 0 0 2px var(--lima);
}

.formulario__enviar:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.formulario__estado {
  font-size: 17px;
  line-height: 1.45;
}

.formulario__estado:empty {
  display: none;
}

.formulario__estado.bien {
  padding: 14px 16px;
  color: var(--tinta);
  background: var(--lima);
  border-radius: 8px;
}

.formulario__estado.mal {
  color: #FF8A80;
}

@keyframes temblor {
  25% { translate: -6px 0; }
  50% { translate: 5px 0; }
  75% { translate: -3px 0; }
}

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

.pie {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding: 40px max(24px, calc((100% - 1100px) / 2)) 28px;
  color: var(--blanco);
  background: var(--tinta);
  border-top: 6px solid var(--verde);
  box-shadow: inset 0 6px 0 var(--amarillo);
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: #D9D3C8;
}

.pie__marca strong {
  font-weight: 400;
  font-size: 20px;
  color: var(--blanco);
}

.pie__marca img {
  height: 64px;
  width: auto;
}

.pie__redes {
  display: flex;
  gap: 12px;
  list-style: none;
}

.red {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 12px 18px;
  color: var(--tinta);
  text-decoration: none;
  border: 2px solid var(--blanco);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--blanco);
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}

.red:hover {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 var(--blanco);
}

.red--ig { background: var(--naranja); }
.red--x { background: var(--lima); }

.red__nombre {
  font-size: 20px;
}

.red__usuario {
  font-size: 14px;
  opacity: 0.8;
}

.pie__legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  font-size: 14px;
  color: #8A8277;
  border-top: 1px solid #2E2A26;
}

/* ---------- CELULAR (secciones nuevas) ---------- */

@media (max-width: 760px) {
  .nav__links a:not(.nav__boton) {
    padding: 8px 8px;
    font-size: 14px;
  }

  .nav__marca img {
    height: 38px;
  }

  .credencial:nth-child(n) {
    rotate: 0deg;
    translate: none;
  }

  .formulario-caja {
    grid-template-columns: 1fr;
    box-shadow: 6px 6px 0 var(--lima);
  }

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

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

  .pie__redes {
    flex-wrap: wrap;
  }

  .red {
    flex: 1;
    min-width: 130px;
  }
}

@media (max-width: 420px) {
  .nav__links a[href="#especialistas"] {
    display: none;
  }
}

/* =====================================================
   INICIO: DATOS Y LLAMADOS A LA ACCIÓN
   ===================================================== */

.datos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(820px, calc(100% - 16px));
  list-style: none;
  background: var(--blanco);
  border: var(--borde) solid var(--tinta);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--tinta);
  overflow: hidden;
  animation: entrar 0.7s 0.25s cubic-bezier(.2, .8, .2, 1) both;
}

.datos li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 14px 16px;
  text-align: left;
}

.datos li + li {
  border-left: 2px dashed #B9B0A2;
}

.datos__icono {
  grid-row: 1 / 3;
  font-size: 24px;
}

.datos__rotulo {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6A635A;
}

.datos__valor {
  font-size: 17px;
  line-height: 1.2;
}

.acciones {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 12px;
}

.enlace-secundario {
  font-size: 18px;
  color: var(--tinta);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

.enlace-secundario:hover {
  background: var(--blanco);
}

/* =====================================================
   QUIÉNES SOMOS / MANIFIESTO
   ===================================================== */

.manifiesto {
  max-width: 820px;
  text-align: center;
}

.manifiesto__texto {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.92);
  border: var(--borde) solid var(--tinta);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--tinta);
  text-align: left;
}

.manifiesto__texto p {
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.5;
}

.manifiesto__texto p + p {
  margin-top: 16px;
}

.manifiesto__destacado {
  padding-top: 16px;
  border-top: 2px dashed #B9B0A2;
}

.manifiesto mark {
  padding: 0 4px;
  color: var(--blanco);
  background: var(--rojo);
  border-radius: 3px;
}

/* =====================================================
   LO QUE TE VA A PASAR (RELATO)
   ===================================================== */

.leyenda {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
}

.lugar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 2px solid var(--tinta);
  border-radius: 999px;
}

.lugar::before {
  font-size: 15px;
}

.lugar--aula {
  background: #F3E3C8;
}

.lugar--aula::before {
  content: "📍";
}

.lugar--pantalla {
  color: var(--blanco);
  background: #2E3A59;
}

.lugar--pantalla::before {
  content: "🖥";
}

.lugar--final {
  color: var(--blanco);
  background: var(--verde);
}

.lugar--final::before {
  content: "✓";
}

.leyenda__retroceso {
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  color: var(--blanco);
  background: var(--rojo);
  border: 2px solid var(--tinta);
  border-radius: 999px;
}

.momentos {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  list-style: none;
}

/* línea del recorrido */
.momentos::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  translate: -50% 0;
  background: repeating-linear-gradient(to bottom, var(--tinta) 0 14px, transparent 14px 24px);
  z-index: -1;
}

.momento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.momento:nth-child(even of .momento) .momento__media {
  order: 2;
}

.momento__media {
  margin: 0;
  overflow: hidden;
  border: var(--borde) solid var(--tinta);
  box-shadow: 7px 7px 0 var(--tinta);
}

.momento__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* IRL: foto tipo polaroid */
.momento--aula .momento__media {
  padding: 12px 12px 42px;
  background: var(--blanco);
  border-radius: 4px;
  rotate: -1.5deg;
}

/* UNREAL: captura dentro de una pantalla */
.momento--pantalla .momento__media {
  padding: 12px;
  background: #1B1F2B;
  border-radius: 14px;
  rotate: 1deg;
}

.pendiente {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 4 / 3;
  padding: 22px;
  font-size: 16px;
  line-height: 1.4;
  color: #4A443C;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(17, 17, 17, 0.04) 12px 24px),
    #EDE6DA;
  border: 2px dashed #9E9586;
}

.momento--pantalla .pendiente {
  color: #C9CFDA;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.04) 12px 24px),
    #2A3042;
  border-color: #5A6480;
}

.pendiente strong {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rojo);
}

.momento--pantalla .pendiente strong {
  color: var(--lima);
}

.pendiente code {
  font-size: 12px;
  opacity: 0.7;
}

.momento__texto {
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.94);
  border: var(--borde) solid var(--tinta);
  border-radius: 12px;
}

.momento__texto h3 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1;
}

.momento__texto p {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

.sentidos {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin-top: 16px;
  padding-top: 14px;
  font-size: 15px;
  line-height: 1.4;
  border-top: 2px dashed #B9B0A2;
}

.sentidos dt {
  white-space: nowrap;
  color: #6A635A;
}

.sentidos dd {
  margin: 0;
}

.momento--final .momento__texto {
  background: #E3F6C9;
  border-color: var(--verde);
  box-shadow: 7px 7px 0 var(--verde);
}

.retroceso {
  justify-self: center;
  padding: 12px 26px;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--blanco);
  background: var(--rojo);
  border: var(--borde) solid var(--tinta);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--tinta);
  rotate: -2deg;
}

.relato__cierre {
  display: flex;
  justify-content: center;
  margin-top: clamp(50px, 7vw, 80px);
}

/* =====================================================
   PROBÁ CÓMO ES ENTRAR
   ===================================================== */

.probar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.probar__texto {
  max-width: 640px;
}

.probar .boton-3d-caja {
  margin: 120px 30px 60px;
}

/* ---------- CELULAR (secciones nuevas) ---------- */

@media (max-width: 860px) {
  .datos {
    grid-template-columns: 1fr 1fr;
  }

  .datos li:nth-child(3) {
    border-left: 0;
  }

  .datos li:nth-child(n + 3) {
    border-top: 2px dashed #B9B0A2;
  }

  .momentos::before {
    left: 18px;
  }

  .momento {
    grid-template-columns: 1fr;
    padding-left: 34px;
  }

  .momento:nth-child(even of .momento) .momento__media {
    order: 0;
  }

  .nav__links a[href="#manifiesto"] {
    display: none;
  }
}

@media (max-width: 600px) {
  .probar .boton-3d-caja {
    margin: 50px 0 10px;
  }

  .nav__links a[href="#relato"] {
    display: none;
  }
}

/* =====================================================
   ORDEN NUEVO: portada · quiénes somos · experiencia · especialistas · anotarme · entrar
   ===================================================== */

.inicio--portada {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-bottom: 40px;
}

.inicio--portada .titulo-caja {
  width: min(900px, 94vw);
}

.inicio--portada .frase {
  font-size: clamp(28px, 5vw, 60px);
}

.bajar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 10px 18px;
  font-size: 18px;
  color: var(--tinta);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--tinta);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--tinta);
}

.bajar__flecha {
  font-size: 22px;
  animation: rebotar 1.4s ease-in-out infinite;
}

@keyframes rebotar {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 6px; }
}

.manifiesto__propuesta {
  width: 100%;
  margin: 46px auto 0;
  text-align: center;
}

.datos--inscripcion {
  margin: 0 auto 36px;
}

.probar .enlace-experiencia {
  margin-top: 10px;
}

/* TRANSICION DE PANTALLA */

.cortina {
  position: fixed;
  inset: 0;
  background: var(--verde);
  clip-path: circle(0% at var(--x, 50%) var(--y, 80%));
  pointer-events: none;
  z-index: 10;
}

.cortina.activa {
  clip-path: circle(150% at var(--x, 50%) var(--y, 80%));
  transition: clip-path 0.7s cubic-bezier(.7, 0, .3, 1);
}

/* ANIMACIONES */

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}



/* CELULAR: el botón 3D se achica para no taparse con nada */

@media (max-width: 600px) {
  .boton-3d-caja {
    scale: 0.62;
    margin: 40px 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}