/* ============================================================
   PupiloChess — Estilo común de las páginas que ve el cliente
   (catálogo, ficha del curso, carrito, clases grupales, panel del alumno, certificados, login…)
   Mismo lenguaje que «Sobre mí» y «Contacto» (styles.css): Bebas Neue en los títulos, Inter en el texto,
   franja azul noche con el título de la página (como .page-hero de Contacto), animación de entrada (.fade-in)
   y contenido claro con tarjetas blancas.
   Decisiones de la usuaria (2026-10-08): fondo claro, íconos de línea (includes/iconos.php), tamaños NORMALES
   (texto 16 px, botones moderados, números discretos) y botones azules: el rojo NO se usa como fondo de botones.
   Se carga con asset_v('/cliente.css') (versión en la URL). Encabezado y pie: includes/sitio.php.
============================================================ */

:root {
    --navy:       #060e1e;
    --navy-mid:   #0b1a32;
    --blue:       #1a3a6b;
    --blue-claro: #eef3fb;
    --primario:   #2f6db5;          /* botones principales: azul (blanco encima: 5,3:1) */
    --primario-h: #24599a;
    --red:        #EE283B;          /* solo acentos (avisos, burbujas), nunca fondo de botones */
    --red-dark:   #c81e2f;
    --gold:       #f0c040;
    --white:      #ffffff;
    --fondo:      #f5f7fa;
    --borde:      #d9dfe9;
    --text:       #1a202c;
    --text-mid:   #4a5568;          /* 7:1 sobre blanco */
    --verde:      #1e7e45;
    --amarillo-f: #fff8e1;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --sombra:     0 1px 3px rgba(10,22,40,0.06), 0 4px 14px rgba(10,22,40,0.05);
    --sombra-hov: 0 10px 28px rgba(10,22,40,0.12);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.sitio {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--fondo);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}
body.sitio > main { flex: 1; }
/* :where() = sin peso: así las reglas del encabezado, el pie y los botones siempre ganan (antes los enlaces del
   menú heredaban el color oscuro del texto y casi no se veían sobre el azul) */
:where(.sitio) a { color: inherit; text-decoration: none; }
:where(.sitio) img { max-width: 100%; display: block; }
.sitio :focus-visible { outline: 2px solid var(--primario); outline-offset: 2px; }
.icono { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* Animación de entrada (la de «Sobre mí» y «Contacto»); la activa el script de sitio_pie() */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ── Encabezado (includes/sitio.php) ─────────────────────── */
.sitio-header { background: var(--navy); position: sticky; top: 0; z-index: 500; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.sitio-header__inner { max-width: var(--max); margin: 0 auto; padding: 8px 24px; min-height: 68px; display: flex; align-items: center; gap: 16px; }
.sitio-logo img { height: 60px; width: auto; filter: brightness(0) invert(1); }
.sitio-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.sitio-nav__link { color: rgba(255,255,255,0.88); font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 8px 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s, box-shadow .2s; }
.sitio-nav__link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.sitio-nav__link.activo { color: #fff; background: rgba(255,255,255,0.12); box-shadow: inset 0 -2px 0 #6ea8e8; }
.sitio-acciones { display: flex; align-items: center; gap: 4px; }
.sitio-icono-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: rgba(255,255,255,.85); transition: background .2s; }
.sitio-icono-btn:hover, .sitio-icono-btn.activo { background: rgba(255,255,255,0.1); color: #fff; }
.sitio-burbuja { position: absolute; top: 1px; right: 0; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
@media (max-width: 760px) {
    .sitio-header__inner { flex-wrap: wrap; padding: 6px 12px; gap: 4px 8px; }
    .sitio-logo img { height: 46px; }
    .sitio-acciones { margin-left: auto; }
    .sitio-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 4px; }
}

/* ── Franja del título: la de «Contacto» (.page-hero de styles.css) ─── */
.sitio-hero { position: relative; background: var(--navy); overflow: hidden; padding: 56px 0 50px; text-align: center; color: #fff; }
.sitio-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26,58,107,0.7) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 80% 80%, rgba(238,40,59,0.12) 0%, transparent 60%); }
.sitio-hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sitio-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; padding: 5px 14px; }
.sitio-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 400; letter-spacing: .04em; line-height: 1; margin: 12px 0 10px; }
.sitio-hero p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; line-height: 1.75; }
.sitio-hero a { color: #fff; text-decoration: underline; }

/* ── Contenido ───────────────────────────────────────────── */
.sitio-contenido { max-width: var(--max); margin: 0 auto; padding: 32px 24px 56px; width: 100%; }
.sitio-titulo { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 34px); font-weight: 400; letter-spacing: .03em; color: var(--navy); line-height: 1.05; margin-bottom: 12px; }
.sitio-texto-suave { color: var(--text-mid); }

.tarjeta { background: var(--white); border: 1px solid var(--borde); border-radius: var(--r-md); box-shadow: var(--sombra); min-width: 0; }
.tarjeta--pad { padding: 20px; }

/* Botones: azul (principal) o blanco con borde azul (secundario). El rojo no es fondo de botones. */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; max-width: 100%; padding: 7px 16px; border: 1.5px solid transparent; border-radius: var(--r-sm); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.25; cursor: pointer; text-align: center; transition: background .2s, border-color .2s, color .2s; text-decoration: none; }
.boton--primario, .boton--rojo, .boton--azul { background: var(--primario); border-color: var(--primario); color: #fff !important; }
.boton--primario:hover, .boton--rojo:hover, .boton--azul:hover { background: var(--primario-h); border-color: var(--primario-h); }
.boton--contorno { background: #fff; border-color: var(--primario); color: var(--blue) !important; }
.boton--contorno:hover { background: var(--blue-claro); }
.boton--ancho { width: 100%; }
.boton--grande { min-height: 44px; font-size: 15px; padding: 10px 20px; }

/* Etiquetas */
.etiqueta { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; line-height: 1.5; }
.etiqueta--azul { background: var(--blue-claro); color: var(--blue); }
.nivel-principiante { background: #e6f4ec; color: #166534; }
.nivel-intermedio { background: #fff4d6; color: #7a5200; }
.nivel-avanzado { background: #fdecea; color: #8f1d12; }
.nivel-todos { background: #f1eaf7; color: #5b2a86; }
.estrellas { color: #b7791f; }

/* Formularios (como «Contacto») */
.campo-texto { width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--borde); border-radius: var(--r-sm); font: 15px var(--font-body); color: var(--text); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.campo-texto:focus { border-color: var(--primario); box-shadow: 0 0 0 3px rgba(47,109,181,0.14); }

/* Avisos */
.aviso { border-radius: var(--r-sm); padding: 11px 14px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.aviso--exito { background: #e8f6ee; border-color: #9fd3b4; color: #14532d; }
.aviso--error { background: #fdecea; border-color: #e3a49b; color: #7a1d12; }
.aviso--info  { background: var(--amarillo-f); border-color: #e8cf7c; color: #5c4400; }

/* ── Pie ─────────────────────────────────────────────────── */
.sitio-pie { background: var(--navy); color: rgba(255,255,255,0.7); font-size: 14px; }
.sitio-pie__inner { max-width: var(--max); margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.sitio-pie a { color: rgba(255,255,255,0.85); }
.sitio-pie a:hover { color: #fff; text-decoration: underline; }
.sitio-pie__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ── Páginas de acceso (login, registro, recuperar y restablecer contraseña) ── */
body.acceso { align-items: center; justify-content: center; padding: 28px 16px; }
.acceso .card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--borde); border-radius: var(--r-lg); box-shadow: var(--sombra-hov); overflow: hidden; padding: 0 28px 28px; }
.acceso .logo { margin: 0 -28px 22px; padding: 18px; text-align: center; background: var(--navy); }
.acceso .logo img { height: 56px; width: auto; margin: 0 auto; filter: brightness(0) invert(1); }
.acceso h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: .04em; color: var(--navy); text-align: center; line-height: 1.05; margin-bottom: 14px; }
.acceso .intro { font-size: 15px; color: var(--text-mid); text-align: center; margin-bottom: 16px; line-height: 1.6; }
.acceso .alerta { padding: 10px 13px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.acceso .alerta.error { background: #fdecea; border-color: #e3a49b; color: #7a1d12; }
.acceso .alerta.exito { background: #e8f6ee; border-color: #9fd3b4; color: #14532d; }
.acceso .alerta.aviso { background: var(--amarillo-f); border-color: #e8cf7c; color: #5c4400; }
.acceso .alerta.info { background: var(--blue-claro); border-color: #b6cdea; color: #1d3f6b; }
.acceso .alerta ul { margin: 6px 0 0 20px; }
.acceso .campo { margin-bottom: 14px; }
.acceso label { display: block; color: var(--navy); font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.acceso input[type=text], .acceso input[type=email], .acceso input[type=password] { width: 100%; min-height: 42px; padding: 9px 12px; border: 1.5px solid var(--borde); border-radius: var(--r-sm); background: #fff; color: var(--text); font: 15px var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s; }
.acceso input:focus { border-color: var(--primario); box-shadow: 0 0 0 3px rgba(47,109,181,.14); }
.acceso .hint { display: block; font-size: 13px; color: var(--text-mid); margin-top: 5px; }
.acceso .btn-primary { width: 100%; min-height: 42px; padding: 9px; background: var(--primario); color: #fff; border: none; border-radius: var(--r-sm); font: 600 15px var(--font-body); cursor: pointer; transition: background .2s; margin-top: 4px; }
.acceso .btn-primary:hover { background: var(--primario-h); }
.acceso .olvidaste { text-align: right; margin: -4px 0 14px; }
.acceso .olvidaste a { color: var(--primario); font-size: 13px; }
.acceso .olvidaste a:hover { text-decoration: underline; }
.acceso .separador { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-mid); font-size: 13px; }
.acceso .separador::before, .acceso .separador::after { content: ''; flex: 1; height: 1px; background: var(--borde); }
.acceso .btn-oauth { width: 100%; min-height: 42px; padding: 8px; border-radius: var(--r-sm); border: 1.5px solid var(--borde); background: #fff; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; text-decoration: none; transition: background .2s, border-color .2s; }
.acceso .btn-oauth:hover { background: var(--blue-claro); border-color: var(--primario); }
.acceso .pie { text-align: center; margin-top: 18px; color: var(--text-mid); font-size: 14px; }
.acceso .pie a { color: var(--primario); font-weight: 600; }
.acceso .pie a:hover { text-decoration: underline; }
@media (max-width: 480px) { .acceso .card { padding: 0 18px 22px; } .acceso .logo { margin: 0 -18px 18px; } }
