/* =============================================================================
   Elephant EOR — página de gracias (gracias.elephanteor.com)
   Misma dirección de arte que la landing de campaña: tinta y azul noche con la
   figura 3D de la marca («herd») en el héroe, secciones claras de papel, niebla y marfil.
   Colores: SOLO variables de tokens.css (copia de elephant-eor-web).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--el-font-text); font-size: 1rem; line-height: 1.6; color: var(--el-ink); background: var(--el-paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--el-eor); }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--el-sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--el-ink); color: var(--el-ivory-ink); padding: .8rem 1.2rem; border-radius: 10px; border: 2px solid var(--el-sky); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 880px; }

.rotulo { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--el-font-display); font-weight: 700; font-size: .72rem; letter-spacing: var(--el-track-caps); text-transform: uppercase; color: var(--el-eor); }
.rotulo::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.dark .rotulo { color: var(--el-sky); }
.h2 { font-family: var(--el-font-display); font-weight: 800; font-size: clamp(1.7rem, 3.3vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin-top: .8rem; max-width: 24ch; text-wrap: balance; }
.lead { margin-top: 1rem; font-size: clamp(1rem, 1.35vw, 1.1rem); color: var(--el-muted); max-width: 62ch; }
.sec { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.sec-paper { background: var(--el-paper); }
.sec-mist { background: var(--el-mist); }
.sec-ivory { background: var(--el-grad-ivory); }
.dark { background: var(--el-grad-night); color: var(--el-ivory-ink); }
.dark a { color: var(--el-sky); }
.mono { font-family: var(--el-font-mono); font-weight: 500; }

/* Figura 3D a sangre + velo */
.escena { isolation: isolate; overflow: hidden; }
.escena > .st-stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.escena > .st-stage::before { display: none; }
/* Entrada solo de opacidad: el escalado del 6 % de stage.css asoma por el
   borde y, si la animación no llega a terminar, deja barra horizontal. */
.escena > .st-stage[data-stage-ready] > canvas { animation-name: st-stage-fade; }
.escena > .velo { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(90% 60% at 50% 0%, rgba(15,26,40,0) 0%, rgba(15,26,40,.35) 100%); }
.escena > :not(.st-stage):not(.velo) { position: relative; z-index: 1; }
/* La figura acuna la marca de confirmación: centrada sobre el check y por
   encima del titular, nunca detrás del texto. */
.hero > .st-stage { top: calc(clamp(5rem, 9vw, 6rem) + 110px - 150px); left: 50%; width: min(560px, 100%); height: 300px; transform: translateX(-50%); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--el-font-display); font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2; text-align: center; background: transparent; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--el-eor); color: var(--el-white); }
.btn-primary:hover { background: var(--el-eor-2); }
.dark .btn-primary { background: var(--el-sky); color: var(--el-ink); }
.dark .btn-primary:hover { background: #9CC2E5; }
.btn-ghost { color: var(--el-eor); border-color: rgba(31,75,120,.35); }
.btn-ghost:hover { border-color: var(--el-eor); }
.dark .btn-ghost { color: var(--el-ivory-ink); border-color: rgba(246,243,236,.4); }
.dark .btn-ghost:hover { border-color: var(--el-ivory-ink); }

/* Barra: solo la marca, sin enlaces */
.barra { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.barra-in { display: flex; align-items: center; justify-content: center; min-height: 76px; }
.marca { display: inline-flex; align-items: center; gap: .7rem; }
.marca-iso { width: 52px; height: auto; }
.marca-palabra { height: 30px; width: auto; }

/* Héroe */
.hero { padding-top: clamp(5rem, 9vw, 6rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); text-align: center; }
/* El check es el núcleo: un círculo cielo con la marca en tinta, y los
   arcos 3D de la figura giran a su alrededor. Sin WebGL queda el círculo
   solo, que se lee igual. */
.check { position: relative; width: 64px; height: 64px; margin: 78px auto 104px; border-radius: 50%; display: grid; place-items: center; background: var(--el-sky); box-shadow: 0 0 0 6px rgba(122,171,217,.18), 0 18px 40px -12px rgba(0,0,0,.7); }
.check::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(239,231,218,.45); animation: pulso 2.8s ease-out infinite; }
.check svg { width: 32px; height: 32px; color: var(--el-ink); }
.check svg path { stroke-dasharray: 40; stroke-dashoffset: 0; animation: trazo .9s .3s ease-out both; }
@keyframes trazo { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes pulso { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.4); opacity: 0; } 100% { opacity: 0; } }
.hero h1 { font-family: var(--el-font-display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: .9rem auto 0; max-width: 18ch; text-wrap: balance; }
.hero h1 .sky { color: var(--el-sky); }
.hero-sub { margin: 1.2rem auto 0; max-width: 58ch; color: var(--el-muted-dark); font-size: clamp(1.02rem, 1.6vw, 1.15rem); }
.hero-sub strong { color: var(--el-ivory-ink); }

/* Tarjeta de la cita */
.cita { position: relative; max-width: 860px; margin: clamp(2rem, 5vw, 2.8rem) auto 0; padding: clamp(1.4rem, 4vw, 2.3rem); border-radius: var(--el-radius-l); text-align: left; background: var(--el-white); color: var(--el-ink); box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); overflow: hidden; }
/* La tarjeta es blanca aunque viva dentro del héroe oscuro: sus botones y
   enlaces vuelven a los colores de fondo claro. */
.cita a { color: var(--el-eor); }
.cita .btn-primary { background: var(--el-eor); color: var(--el-white); }
.cita .btn-primary:hover { background: var(--el-eor-2); }
.cita .btn-ghost { color: var(--el-eor); border-color: rgba(31,75,120,.35); }
.cita .btn-ghost:hover { border-color: var(--el-eor); }
.cita::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--el-grad-herd); }
.cita-tag { font-family: var(--el-font-display); font-weight: 700; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--el-eor); }
.cita h2 { margin-top: .4rem; font-family: var(--el-font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.15; }
.cita-rejilla { display: grid; gap: 1px; margin-top: 1.3rem; border-radius: 14px; overflow: hidden; background: var(--el-line); border: 1px solid var(--el-line); }
@media (min-width: 720px) { .cita-rejilla { grid-template-columns: 1.6fr 1fr 1fr; } }
.cita-item { background: var(--el-paper); padding: 1rem 1.15rem; min-width: 0; }
.ci-label { font-family: var(--el-font-display); font-weight: 700; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--el-muted); }
.ci-valor { margin-top: .35rem; font-family: var(--el-font-display); font-weight: 700; font-size: clamp(1.02rem, 2vw, 1.2rem); line-height: 1.3; overflow-wrap: anywhere; }
.ci-nota { margin-top: .3rem; font-size: .84rem; color: var(--el-muted); }
.cita-enlace { margin-top: 1.1rem; padding: 1rem 1.15rem; border-radius: 14px; border: 1px dashed #B9C6D6; background: rgba(122,171,217,.08); }
.cita-enlace-fila { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .5rem; }
.cita-enlace code { flex: 1 1 16rem; min-width: 0; font-family: var(--el-font-mono); font-size: .88rem; color: var(--el-ink); overflow-wrap: anywhere; user-select: all; }
.cita-enlace p { margin-top: .6rem; font-size: .86rem; color: var(--el-muted); }
.copiado { margin-left: .4rem; font-size: .8rem; color: var(--el-ok); }
.cita-acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.cita-acciones .btn { flex: 1 1 15rem; }
.cita-nota { margin-top: 1.1rem; font-size: .92rem; color: var(--el-muted); }
.cita-nota strong { color: var(--el-ink); }
.aviso-sim { margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; background: #FFF8E6; color: #6B4A0C; border: 1px dashed #C9A24A; font-family: var(--el-font-mono); font-size: .8rem; }

/* Agenda de la llamada */
.agenda { display: grid; gap: 0; max-width: 760px; }
.ag-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-bottom: 1.8rem; }
.ag-item:last-child { padding-bottom: 0; }
.ag-rail { position: relative; display: grid; justify-items: center; }
.ag-nodo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--el-font-mono); font-weight: 500; font-size: .95rem; color: var(--el-white); background: var(--el-grad-herd); box-shadow: 0 10px 22px -10px rgba(31,75,120,.8); position: relative; z-index: 1; }
.ag-item:not(:last-child) .ag-rail::after { content: ""; position: absolute; top: 46px; bottom: -1.8rem; width: 2px; background: linear-gradient(var(--el-herd), var(--el-line)); }
.ag-cuerpo h3 { font-family: var(--el-font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.ag-cuerpo p { margin-top: .3rem; color: var(--el-muted); }
.ag-tiempo { display: inline-block; margin-top: .45rem; font-family: var(--el-font-mono); font-size: .78rem; color: var(--el-eor); }

/* Preparación: lista de comprobación (no es un formulario: no envía nada) */
.prep { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 900px) { .prep { grid-template-columns: 1.2fr .8fr; } }
.checklist { border-radius: var(--el-radius-l); padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--el-white); border: 1px solid var(--el-line); box-shadow: var(--el-shadow-1); }
.checklist-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.checklist-cab h3 { font-family: var(--el-font-display); font-weight: 800; font-size: 1.15rem; }
.checklist-cuenta { font-family: var(--el-font-mono); font-size: .88rem; color: var(--el-eor); }
.checklist-barra { height: 4px; border-radius: 4px; background: var(--el-mist); overflow: hidden; margin-top: .8rem; }
.checklist-barra i { display: block; height: 100%; width: 0; background: var(--el-ok); transition: width .3s ease; }
.checklist ul { margin-top: .6rem; }
.check-item { display: flex; gap: .85rem; align-items: flex-start; min-height: 44px; padding: .75rem 0; border-bottom: 1px solid var(--el-line); cursor: pointer; }
.check-item:last-child { border-bottom: 0; }
.check-item input { flex: 0 0 auto; width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--el-ok); cursor: pointer; }
.check-item b { display: block; font-weight: 600; }
.check-item span { display: block; font-size: .9rem; color: var(--el-muted); }
.check-item input:checked ~ div b { color: var(--el-ok); }
.checklist-pie { margin-top: .8rem; font-size: .82rem; color: var(--el-muted); }
.traer { display: grid; gap: 1rem; }
.caja { border-radius: var(--el-radius-l); padding: clamp(1.2rem, 3vw, 1.6rem); background: var(--el-white); border: 1px solid var(--el-line); }
.caja h3 { font-family: var(--el-font-display); font-weight: 800; font-size: 1.05rem; }
.caja ul { margin-top: .6rem; }
.caja li { position: relative; padding-left: 1.5rem; margin-top: .5rem; font-size: .95rem; color: var(--el-ink); }
.caja-si li::before { content: ""; position: absolute; left: 0; top: .42em; width: .95rem; height: .95rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5 11-11'/%3E%3C/svg%3E") no-repeat center / contain; }
.caja-no { background: var(--el-ink); border-color: transparent; color: var(--el-ivory-ink); }
.caja-no li { color: var(--el-muted-dark); }
.caja-no li::before { content: ""; position: absolute; left: .1rem; top: .75em; width: .75rem; height: 2px; background: var(--el-sky); }

/* Cuándo decimos que no */
.nono { display: grid; gap: 1rem; }
@media (min-width: 860px) { .nono { grid-template-columns: repeat(3, 1fr); } }
.nono article { padding: 1.3rem 1.35rem 1.4rem; border-radius: var(--el-radius); background: var(--el-white); border: 1px solid var(--el-line); border-top: 3px solid var(--el-err); }
.nono h3 { font-family: var(--el-font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.nono p { margin-top: .45rem; font-size: .94rem; color: var(--el-muted); }

/* Después de la llamada */
.pasos { display: grid; gap: 1rem; }
@media (min-width: 760px) { .pasos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pasos { grid-template-columns: repeat(4, 1fr); } }
.paso { border-radius: var(--el-radius); padding: 1.3rem 1.3rem 1.4rem; background: var(--el-white); border: 1px solid var(--el-line); }
.paso-cuando { font-family: var(--el-font-mono); font-size: .8rem; color: var(--el-eor); }
.paso h3 { margin-top: .5rem; font-family: var(--el-font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.paso p { margin-top: .4rem; font-size: .93rem; color: var(--el-muted); }
.pasos-pie { margin-top: 1.3rem; font-size: .92rem; color: var(--el-muted); max-width: 74ch; }

/* Cambiar o cancelar */
.cambiar { max-width: 860px; margin-inline: auto; text-align: center; padding: clamp(1.5rem, 4vw, 2.3rem); border-radius: var(--el-radius-l); background: var(--el-white); border: 1px solid var(--el-line); }
.cambiar h2 { font-family: var(--el-font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.cambiar p { margin: .8rem auto 0; max-width: 58ch; color: var(--el-muted); }
.cambiar-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.3rem; }
.cambiar-mail { margin-top: 1rem; font-size: .9rem; color: var(--el-muted); }

/* Pie */
.pie { background: var(--el-ink); color: var(--el-muted-dark); padding-block: 2.6rem; text-align: center; font-size: .85rem; }
.pie img { width: 130px; height: auto; margin: 0 auto 1rem; }
.pie p + p { margin-top: .3rem; }
.pie a { color: var(--el-sky); }

/* Revelados con red de seguridad */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.rv.is-in, .no-js .rv, .rv-safety .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .check::before, .check svg path { animation: none; }
}
@media (max-width: 1024px) {
  .check-item { min-height: 48px; }
}
