/* ============================================
   TENNERY® — Registro de clientas · misma familia que tennery.com.mx y el estado de cuenta
   © TENNERY®. Todos los derechos reservados.
   ============================================ */
:root {
    --pink: #FF4FAE;
    --pink-2: #FF2E9A;
    --rose: #E0157A;
    --ink: #1F1023;
    --ink-soft: #5B3A4B;
    --muted: #7A6570;
    --line: #FFD0E8;
    --line-soft: #FFE8F3;
    --soft: #FFF3F9;
    --glow: 0 0 0 2px #FF4FAE, 0 0 22px rgba(255, 79, 174, 0.35);
    --bad: #C62828;
    --font: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body { font-family: var(--font); color: var(--ink); background: #FFFFFF; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rose); }

/* Barra rosa */
.top { position: sticky; top: 0; z-index: 30; background: var(--pink); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 6vw; transition: padding 0.3s; }
.top.scrolled { padding: 8px 6vw; }
.brand img { height: 58px; width: auto; display: block; transition: height 0.3s; }
.top.scrolled .brand img { height: 40px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav.right { justify-content: flex-end; padding-right: calc(300px - 6vw); }
.nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.wa-pill { background: #25D366; border-radius: 999px; padding: 8px 16px; font-weight: 700 !important; }

/* Gato */
.mascota { position: fixed; right: 0; top: 0; z-index: 40; pointer-events: none; transition: right 0.3s, top 0.3s; }
.mascota img { width: 230px; height: auto; display: block; transform: rotate(3deg); filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.22)); animation: flotar 2.8s ease-in-out infinite; transition: width 0.3s; }
.mascota.scrolled img { width: 160px; }
@keyframes flotar { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .mascota img { animation: none; } }

.wrap { max-width: 760px; margin: 0 auto; padding: 18px 20px 30px; display: flex; flex-direction: column; gap: 14px; }
.hero { text-align: center; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--pink); }
.title { font-weight: 900; font-size: clamp(26px, 4vw, 36px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 4px; color: var(--pink-2); }
.lead { margin: 8px auto 0; max-width: 520px; color: var(--ink-soft); font-size: 14.5px; }
.lead b { color: var(--ink); }

.box { background: #fff; border-radius: 26px; box-shadow: var(--glow); }
.card { padding: 22px 24px 24px; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line-soft); color: var(--rose); font-weight: 800; flex: none; }
.steps li.on { color: var(--ink); }
.steps li.on span { background: var(--pink); color: #fff; box-shadow: 0 6px 14px -6px rgba(255, 46, 154, 0.9); }
.steps li.done span { background: var(--rose); color: #fff; }
.bar { width: 100%; height: 6px; margin-bottom: 16px; accent-color: var(--pink); appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.bar::-webkit-progress-bar { background: var(--line-soft); border-radius: 99px; }
.bar::-webkit-progress-value { background: var(--pink); border-radius: 99px; }
.bar::-moz-progress-bar { background: var(--pink); border-radius: 99px; }

fieldset { border: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.f i { font-style: normal; font-weight: 500; color: var(--muted); }
.f input, .f select, .tel select, .col-sel {
    height: 48px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); outline: none; width: 100%;
}
.col-sel { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E0157A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.f input + input, .col-sel + input { margin-top: 6px; }
.f input:focus, .f select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--line-soft); }
.f input.bad, .f select.bad, .col-sel.bad { border-color: var(--bad); }
.box, .card, fieldset, .row, .f { min-width: 0; max-width: 100%; }
.err a { color: var(--rose); font-weight: 700; }
.tel { display: flex; gap: 6px; }
.tel select { width: 118px; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-msg { font-size: 11.5px; font-weight: 600; color: var(--rose); min-height: 14px; }
.err { font-style: normal; font-size: 12px; font-weight: 600; color: var(--bad); }
.err:empty { display: none; }
.err.general { text-align: center; font-size: 13px; }
.dir { display: flex; flex-direction: column; gap: 12px; }
.dir.alt { border: 1.5px dashed var(--line); border-radius: 18px; padding: 14px; background: var(--soft); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; left: 0; top: 0; }
.chip span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; background: #fff; }
.chip input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--line-soft); }
.pagos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pago { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 8px; cursor: pointer; background: #fff; }
.pago input { position: absolute; opacity: 0; pointer-events: none; }
.pago .pi { font-size: 22px; }
.pago b { font-size: 12.5px; color: var(--ink); }
.pago small { font-size: 11px; font-weight: 500; color: var(--muted); }
.pago:has(input:checked) { border-color: var(--pink); background: var(--soft); box-shadow: var(--glow); }

.acts { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.acts .btn.main:only-child { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; padding: 0 26px; font-weight: 800; font-size: 14.5px; text-decoration: none; border: 0; white-space: nowrap; }
.btn.main { background: var(--pink); color: #fff; box-shadow: 0 10px 22px -12px rgba(255, 46, 154, 0.9); }
.btn.main:disabled { opacity: 0.6; cursor: wait; }
.btn.ghost { background: #fff; color: var(--pink-2); box-shadow: 0 0 0 2px var(--line); }

.listo { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; }
.listo-ico { font-size: 52px; line-height: 1; }
.listo h2 { font-size: 24px; font-weight: 900; color: var(--pink-2); }
.listo p { color: var(--ink-soft); font-size: 14.5px; max-width: 440px; }
.listo .small { font-size: 12px; color: var(--muted); }
.ya { text-align: center; font-size: 13.5px; color: var(--ink-soft); }

.foot { background: var(--pink); color: rgba(255, 255, 255, 0.92); text-align: center; padding: 16px 16px 18px; font-size: 10.5px; line-height: 1.45; margin-top: 16px; }
.foot .social { margin-bottom: 6px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.foot a { color: #fff; font-weight: 600; font-size: 12px; text-decoration: none; }

@media (max-width: 749px) {
    .top { grid-template-columns: auto 1fr auto; padding: 12px 16px; }
    .top .brand { justify-self: center; grid-column: 2; }
    .top .nav.right { grid-column: 3; }
    .brand img { height: 46px; }
    .nav.right { padding-right: 0; }
    .nav.left { display: none; }
    .top { grid-template-columns: 1fr auto 1fr; }
    .wa-pill span { display: none; }
    .mascota { right: 2px; top: 70px; }
    .mascota img { width: 92px; }
    .mascota.scrolled img { width: 70px; }
    .mascota.scrolled { top: 56px; }
    .card { padding: 18px 16px 20px; }
    .steps li { flex-direction: column; text-align: center; font-size: 11px; gap: 4px; }
    .row { grid-template-columns: 1fr; }
    .pagos { grid-template-columns: repeat(2, 1fr); }
    .acts .btn { padding: 0 14px; flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; font-size: 14px; }
    .acts .btn.main:only-child { flex: 0 1 auto; }
}
