/* Página Club Fid: usa el mismo diseño de elchucao.com */

/* ===== Menú ===== */
nav.menu a[aria-current="page"] { color: var(--link); background: var(--band); }
nav.menu a[aria-current="page"]:hover { color: var(--link); }
@media (max-width: 899px) {
  nav.menu--scroll { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.menu--scroll::-webkit-scrollbar { display: none; }
  nav.menu--scroll a { flex: none; }
}
/* En celulares el menú pasa a dos filas: así "Quiero contratar" siempre se ve (antes quedaba cortado a la derecha). */
@media (max-width: 599px) {
  nav.menu--scroll { flex-wrap: wrap; overflow-x: visible; }
}

/* ===== Portada ===== */
.nfc-hero-grid { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .nfc-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.nfc-hero h1 { max-width: 12ch; }

/* ===== Celulares de ejemplo (dibujados con CSS) ===== */
.mock { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; justify-self: center; }
.mock figcaption { font-size: 14px; color: var(--muted); }
.phone { position: relative; width: min(300px, 80vw); background: var(--navy); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(27, 42, 72, .28); transform: rotate(2deg); }
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; width: 78px; height: 22px; border-radius: 12px; background: #0b1426; transform: translateX(-50%); z-index: 2; }
.phone-screen { background: #f3f6fb; border-radius: 34px; padding: 50px 16px 18px; min-height: 540px; display: flex; flex-direction: column; gap: 12px; color: #1B2A48; }
.phone-title { margin: 0; text-align: center; font-size: 14px; color: #4f5b75; }
.wcard { border-radius: 22px; padding: 18px; color: #ffffff; background: linear-gradient(135deg, var(--blue), var(--navy)); display: grid; gap: 2px; }
.wcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.logo-ca { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; color: #1B2A48; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.wk { margin: 0; font-size: 12px; line-height: 1.3; }
.wn { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.2; }
.wbig { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.wm { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.wcard .wk { color: rgba(255, 255, 255, .85); }
.stamp-row { display: flex; gap: 8px; margin: 12px 0 16px; }
.stamp-row span { position: relative; flex: 1; aspect-ratio: 1; border-radius: 50%; background: #ffffff; }
.stamp-row .ok::after { content: ""; position: absolute; left: 36%; top: 20%; width: 26%; height: 46%; border: solid var(--blue); border-width: 0 3px 3px 0; border-radius: 1px; transform: rotate(45deg); }
.stamp-row .next { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.stamp-row .next::after { content: ""; position: absolute; inset: 26%; background: rgba(255, 255, 255, .75); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.wpanel { background: #ffffff; border-radius: 18px; padding: 16px; display: grid; gap: 2px; }
.wpanel .wk { color: #4f5b75; }
.wpanel .wm { color: #1B2A48; }
.wpanel .wk:nth-of-type(2) { margin-top: 12px; }
.phone--dark { transform: rotate(-2deg); }
.phone--dark .phone-screen { background: linear-gradient(160deg, #24365c, #0b1426); }
.lock-time { margin: 8px 0 22px; text-align: center; font-size: 60px; font-weight: 300; color: #ffffff; letter-spacing: -0.03em; line-height: 1; }
.notif { background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 13px 15px; display: grid; gap: 3px; }
.notif-top { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4f5b75; }
.notif-top .logo-ca { width: 22px; height: 22px; font-size: 8px; background: #1B2A48; color: #ffffff; }
.notif-title { margin: 0; font-weight: 700; color: #1B2A48; font-size: 15px; }
.notif-body { margin: 0; font-size: 14px; color: #4f5b75; line-height: 1.4; }

/* ===== Cómo funciona ===== */
.how-grid { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: paso; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 2px 18px; counter-increment: paso; }
.steps li::before { content: counter(paso); grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast); font-weight: 700; font-size: 18px; }
.steps h3 { font-size: 23px; margin: 2px 0 0; }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }
.note { margin: 32px 0 0; color: var(--muted); font-size: 16px; max-width: 52ch; }

/* ===== Recorrido (se activa con el desplazamiento) ===== */
.tour { padding: 80px 0 0; background: var(--band); }
.tour-intro { display: grid; justify-items: start; }
.tour-intro .sub { margin-bottom: 28px; }
.tour-track { position: relative; margin-top: 40px; }
.tour-stage { padding: 8px 0 64px; }
.tour-grid { display: grid; gap: 36px 72px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) { .tour-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.tour .tour-grid { max-width: 1240px; }
.tour-groups { display: grid; gap: 28px; }
.tour-group h3 { font-size: 22px; margin-bottom: 4px; }
.tour-group > p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.tour-group ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.tour-group li { counter-increment: s; }
.tour-group li a { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 17px; line-height: 1.35; transition: background-color .2s, color .2s; }
.tour-group li a::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--link); }
.tour-group li a:hover { background: var(--surface); }
.tour-phone { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; min-width: 0; }
.tour-phone { --dev-h: clamp(300px, calc(100vh - var(--header-h) - var(--reserve, 176px)), 560px); }
.tour-devices { position: relative; width: calc(var(--dev-h) * 1.22); max-width: 100%; height: var(--dev-h); }
.tour-frame { position: absolute; bottom: 0; left: 50%; height: 100%; aspect-ratio: 585 / 1266; background: var(--navy); border-radius: 40px; box-shadow: 0 30px 60px rgba(27, 42, 72, .3); transform: translateX(-50%); transform-origin: right bottom; transition: left .55s cubic-bezier(.2, .8, .3, 1), transform .55s cubic-bezier(.2, .8, .3, 1); }
/* Desde el paso 12 (panel del dueño) se ve también en computador: el celular pasa a la esquina */
.has-desktop .tour-frame { left: 100%; transform: translateX(-100%) scale(.7); }
.tour-laptop { position: absolute; top: 0; left: 0; width: 92%; opacity: 0; transform: translateY(16px) scale(.97); transform-origin: left top; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .3, 1); pointer-events: none; }
.has-desktop .tour-laptop { opacity: 1; transform: none; }
.laptop-screen { position: relative; aspect-ratio: 1100 / 688; background: var(--navy); border: 8px solid var(--navy); border-bottom-width: 8px; border-radius: 16px 16px 4px 4px; overflow: hidden; box-shadow: 0 24px 50px rgba(27, 42, 72, .28); }
.laptop-base { height: 12px; width: 108%; margin-left: -4%; background: linear-gradient(#d3dbea, #a9b5cb); border-radius: 0 0 16px 16px; }
.shot-pc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; }
.shot { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: top; border-radius: 31px; opacity: 0; }
html:not(.tour-on) .shot:first-child { opacity: 1; }
.tour-count { margin: 0; font-size: 15px; color: var(--muted); }
.tour-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tour-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tour-fill { display: block; height: 100%; width: 0; background: var(--blue); }

/* Con JavaScript: la sección queda fija y cada tramo de desplazamiento activa un paso */
.tour-on .tour-track { height: 520vh; margin-top: 8px; }
.tour-on .tour-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 0 0 84px; }
.tour-on .tour-grid { width: 100%; }
.tour-on .tour-phone { transform: scale(var(--reveal, 1)); }
.tour-on .shot, .tour-on .shot-pc { transition: opacity .35s ease; }
.tour-on .shot.on, .tour-on .shot-pc.on { opacity: 1; }
.tour-on .tour-group { opacity: .38; transition: opacity .25s; }
.tour-on .tour-group.on { opacity: 1; }
.tour-on .tour-group ol { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility 0s .35s; }
.tour-on .tour-group.on ol { max-height: 460px; visibility: visible; transition: max-height .35s ease, visibility 0s; }
.tour-on .tour-group:not(.on) > p { display: none; }
.tour-on .tour-group li.on a { background: var(--brand); color: var(--brand-contrast); }
.tour-on .tour-group li.on a::before { background: #ffffff; color: #1B2A48; }
.tour-on .tour-fill { transition: width .15s linear; }
@media (max-width: 859px) {
  .tour-phone { --reserve: 320px; }
  .tour-on .tour-phone { order: -1; }
  .tour-on .tour-grid { gap: 22px; }
  .tour-on .tour-group:not(.on), .tour-on .tour-group > p, .tour-on .tour-group li:not(.on) { display: none; }
  .tour-on .tour-group h3 { font-size: 19px; }
}

/* ===== Lo que ves como dueño ===== */
.owner { display: grid; gap: 0 56px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 760px) { .owner { grid-template-columns: repeat(2, 1fr); } }
.owner article { border-top: 3px solid var(--ink); padding: 22px 0 32px; }
.owner h3 { font-size: 23px; margin-bottom: 8px; }
.owner p { margin: 0; color: var(--muted); max-width: 46ch; }

/* ===== Aceptación ===== */
.consent { background: var(--band); }
.consent p { max-width: 60ch; font-size: 19px; margin: 0 0 28px; }

/* ===== Precios ===== */
.prices { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: 14px; padding: 30px; }
.price-card h3 { font-size: 20px; margin: 0; }
.amount { margin: 12px 0 0; font-size: 42px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.per { margin: 4px 0 0; color: var(--muted); }
.install { margin: 26px 0 0; font-size: 19px; }

/* ===== Cierre ===== */
.closing { background: radial-gradient(70% 120% at 100% 0%, rgba(0, 112, 243, .6), transparent 62%), var(--navy); color: #ffffff; padding: 88px 0; }
.closing h2 { color: #ffffff; font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 14px; }
.closing p { margin: 0 0 30px; max-width: 46ch; font-size: 19px; color: #e3ebf8; }

/* ===== Botón flotante: siempre visible ===== */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--navy); color: #ffffff; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid #ffffff; box-shadow: 0 12px 30px rgba(3, 10, 28, .35); transition: background-color .15s; }
.fab:hover { background: var(--blue); color: #ffffff; text-decoration: none; }
.fab:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--blue), 0 12px 30px rgba(3, 10, 28, .35); }
footer { padding-bottom: 108px; }
@media (max-width: 599px) {
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 52px; padding: 0 22px; font-size: 16px; }
  .phone-screen { min-height: 500px; }
  .closing { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shot, .shot-pc, .tour-frame, .tour-laptop, .tour-group, .tour-group ol, .tour-group li a, .tour-fill, .fab,
  .tour-on .shot, .tour-on .shot-pc, .tour-on .tour-group, .tour-on .tour-group ol, .tour-on .tour-group.on ol, .tour-on .tour-fill { transition: none; }
}

/* ===== Pista para desplazarse (visible en todo el recorrido; se oculta en el último paso) ===== */
.tour-hint { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--link); transition: opacity .3s; }
.tour-hint svg { animation: tour-nudge 1.4s ease-in-out infinite; }
.tour-track.scrolled .tour-hint { opacity: 0; }
html:not(.tour-on) .tour-hint { display: none; }
@keyframes tour-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .tour-hint svg { animation: none; } .tour-hint { transition: none; } }

.fine { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
