:root {
    /* Paleta oficial de marca "Más beneficios. Más experiencias. Más vida."
       (guía de marca, public/images/Guia.png): azul profundo #174A7E, turquesa
       #18A6A6, naranjo cálido #F28C28 y amarillo suave #F4C95D, con texto
       principal #17324D y texto secundario #5F6B76 sobre fondo gris azulado
       #EEF3F6. --brand-secondary es una versión del turquesa un poco más
       oscura que la exacta de la guía, para asegurar buen contraste con
       texto blanco; el turquesa exacto (--brand-turquesa) se usa igual para
       colores de categoría, donde no lleva texto encima. */
    --brand-primary: #174A7E;
    --brand-primary-light: #2E6BA8;
    --brand-primary-dark: #0F3459;
    --brand-secondary: #127C7C;
    --brand-turquesa: #18A6A6;
    --brand-accent: #F28C28;
    --brand-amarillo: #F4C95D;
    --brand-dark: #17324D;
    --brand-muted: #5F6B76;
    --brand-bg: #EEF3F6;
    --brand-white: #ffffff;
    --radius: 14px;
    --shadow: 0 4px 16px rgba(23, 74, 126, 0.12);
}

* { box-sizing: border-box; }

/* Oculta visualmente pero deja disponible para lectores de pantalla. */
.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;
}

/* Tamaño de letra ajustable: html[data-font-size] sube la base de 18px.
   El controlador vive en el navbar y recuerda la preferencia del visitante. */
html { font-size: 18px; }
html[data-font-size="grande"] { font-size: 21px; }
html[data-font-size="xgrande"] { font-size: 24px; }

/* ---- Widget flotante de accesibilidad ---- */
.a11y-widget { position: fixed; left: 20px; bottom: 20px; z-index: 250; display: flex; align-items: center; gap: 10px; }
.a11y-widget__fab {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
    background: var(--brand-primary-dark); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28);
    display: flex; align-items: center; justify-content: center;
}
.a11y-widget__fab:hover, .a11y-widget__fab[aria-expanded="true"] { background: var(--brand-primary); }
/* Etiqueta visible junto al botón: un ícono solo no basta para nuestro
   público (adultos mayores) — el texto debe verse sin depender de un
   lector de pantalla ni de pasar el mouse por encima. */
.a11y-widget__fab-label {
    background: #fff; color: var(--brand-dark); font-weight: 700; font-size: .85rem;
    padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.18); white-space: nowrap;
}
.a11y-widget__panel {
    position: absolute; bottom: 68px; left: 0; width: 270px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.22); padding: 20px;
}
.a11y-widget__panel[hidden] { display: none; }
.a11y-widget__panel h3 { margin: 0 0 14px; color: var(--brand-dark); font-size: 1.2rem; }
.a11y-widget__label { color: var(--brand-secondary); font-weight: 700; font-size: .95rem; margin: 0 0 10px; }
.a11y-widget__tamano-grupo { display: flex; gap: 8px; margin-bottom: 18px; }
.a11y-widget__tamano-grupo button {
    flex: 1; min-height: 44px; border: 2px solid var(--brand-secondary); border-radius: 10px; background: #fff;
    color: var(--brand-secondary); font-weight: 800; cursor: pointer;
}
.a11y-widget__tamano-grupo button:hover, .a11y-widget__tamano-grupo button.is-active { background: var(--brand-secondary); color: #fff; }
.a11y-widget__check {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-top: 1px solid #eef0f4; color: var(--brand-dark); font-weight: 600; cursor: pointer;
}
.a11y-widget__check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; }
@media (max-width: 480px) {
    .a11y-widget { left: 14px; bottom: 14px; }
    .a11y-widget__fab-label { font-size: .78rem; padding: 7px 12px; }
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--brand-bg);
    color: var(--brand-dark);
    line-height: 1.6;
}

a { color: var(--brand-primary); }

/* Tipografía de marca (guía): Montserrat Bold para títulos, SemiBold
   para subtítulos/etiquetas destacadas, Regular para el texto normal. */
h1, h2, h3, h4 { color: var(--brand-primary); line-height: 1.25; margin-top: 0; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- Navbar ----
   Fondo verde (color predominante de la marca): además resuelve que el
   isotipo oficial "YO MAYOR" es blanco y no se veía sobre fondo claro.
   En pantallas angostas los enlaces se agrupan en un menú desplegable
   (hamburguesa) en vez de amontonarse en varias filas, y los enlaces de
   uso ocasional para socios (Viajes, Eventos, Encuestas, Invita a un
   amigo) se agrupan en un submenú "Para socios" para no saturar la
   barra principal. Ambos usan <details>/<summary> nativos: sin JS. */
.navbar {
    background: var(--brand-primary);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.navbar__inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; max-width: 1440px; margin: 0 auto; }
.navbar__logo img { height: 48px; }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.navbar__menu-wrap { flex: 1; min-width: 0; }
.navbar__toggle {
    display: none;
    align-items: center; justify-content: flex-end; gap: 8px;
    color: #fff; font-weight: 600; padding: 8px; border-radius: 8px;
}
.navbar__toggle:hover, .navbar__toggle:focus-visible { background: rgba(255,255,255,.15); }
.navbar__toggle-label { font-size: .95rem; }

/* Los enlaces se centran en el espacio libre entre el logo y los botones
   de la derecha, para que no queden pegados al isotipo. */
.navbar__menu { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.navbar__links { display: flex; flex: 1; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: center; }
.navbar__links a { text-decoration: none; color: #fff; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.navbar__links a:hover { color: var(--brand-accent); }
.navbar__cta { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.navbar .btn-outline { border-color: #fff; color: #fff; }
.navbar .btn-outline:hover { background: #fff; color: var(--brand-primary); }

/* Fondo tipo "píldora" para que se note que es un submenú con más opciones
   adentro, y no un enlace normal (antes se confundía con los demás). */
.navbar__dropdown-toggle {
    display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; font-size: 1rem; white-space: nowrap;
    background: rgba(255,255,255,.28); padding: 6px 14px; border-radius: 999px;
}
.navbar__dropdown-toggle:hover, .navbar__dropdown[open] .navbar__dropdown-toggle { background: rgba(255,255,255,.42); color: #fff; }
.navbar__dropdown-panel {
    display: flex; flex-direction: column; gap: 2px;
    background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.2);
    padding: 8px; margin-top: 8px;
}
.navbar__dropdown-panel a { color: var(--brand-dark); font-weight: 600; padding: 8px 12px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.navbar__dropdown-panel a:hover { background: var(--brand-bg); }
@media (min-width: 881px) {
    .navbar__dropdown { position: relative; }
    .navbar__dropdown-panel { position: absolute; top: 100%; left: 0; z-index: 60; }
}

@media (max-width: 880px) {
    .navbar__toggle { display: inline-flex; }
    .navbar__menu { display: none; }
    .navbar__menu-wrap.is-open > .navbar__menu {
        display: flex; flex-direction: column; align-items: stretch;
        margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25);
    }
    .navbar__links { flex: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; width: 100%; }
    .navbar__links a { padding: 10px 4px; }
    .navbar__cta { justify-content: flex-start; margin-left: 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.25); width: 100%; }
    .navbar__dropdown-toggle { align-self: flex-start; margin: 4px 0; }
    .navbar__dropdown-panel { background: rgba(255,255,255,.08); box-shadow: none; }
    .navbar__dropdown-panel a { color: #fff; }
    .navbar__dropdown-panel a:hover { background: rgba(255,255,255,.15); }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px; font-size: 1.05rem; font-weight: 700;
    text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 52px;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; }
.btn-accent { background: var(--brand-accent); color: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; min-height: 44px; }
.btn-danger { background: #dc2626; color: #fff; }

/* ---- Carrusel de bienvenida (3 banners) ----
   Pensado para adultos mayores: textos grandes, controles amplios y visibles,
   avance automático lento con pausa disponible, y respeta prefers-reduced-motion. */
/* Las tres diapositivas son piezas gráficas completas (texto, íconos y
   botón ya incluidos en la imagen), por eso cada una es simplemente un
   link con la imagen a ancho completo — no hay texto ni degradado propio
   que mantener. Las tres comparten proporción 3:2, así el alto del
   carrusel queda fijo y no "salta" al cambiar de diapositiva. */
.banner-carousel {
    position: relative;
    overflow: hidden;
    background: #fff;
}
.banner-carousel__track {
    display: grid;
}
/* El tamaño del banner se define acá, en el slide (ancho 100% siempre, sin
   franjas vacías a los costados, y alto = 100% de la pantalla visible menos
   el navbar, para aprovecharla sin scroll); la imagen de adentro solo se
   ajusta a ese tamaño ya definido (width/height:100% + object-fit:cover).
   En pantallas anchas y bajas esto recorta un poco la imagen — se prioriza
   mantener visible la parte de arriba (logo y titular) con object-position:
   top. */
.banner-carousel__slide {
    grid-area: 1 / 1;
    height: calc(100vh - 90px); min-height: 380px; max-height: 900px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}
.banner-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
}
.banner-carousel__link { display: block; height: 100%; line-height: 0; }
.banner-carousel__img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
}

.banner-carousel__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(23,74,126,.8); color: #fff; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.banner-carousel__arrow:hover, .banner-carousel__arrow:focus-visible { background: rgba(23,74,126,.95); }
.banner-carousel__arrow--prev { left: 16px; }
.banner-carousel__arrow--next { right: 16px; }

.banner-carousel__footer {
    position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5;
    display: flex; align-items: center; justify-content: center; gap: 18px;
}
.banner-carousel__dots { display: flex; gap: 12px; }
.banner-carousel__dot {
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff;
    background: transparent; opacity: .8; cursor: pointer; padding: 0;
    box-shadow: 0 1px 5px rgba(0,0,0,.4);
}
.banner-carousel__dot.is-active { background: #fff; opacity: 1; }
.banner-carousel__pause {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(23,74,126,.5);
    color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 720px) {
    .banner-carousel__arrow { width: 44px; height: 44px; }
    .banner-carousel__slide { height: calc(100vh - 64px); min-height: 320px; max-height: 640px; }
}

@media (prefers-reduced-motion: reduce) {
    .banner-carousel__slide { transition: none; }
}

.btn-lg { min-height: 60px; padding: 16px 32px; font-size: 1.2rem; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; border: 1px solid #eef0f4;
}
.icon-circle {
    width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem; color: #fff; flex-shrink: 0;
}

/* ---- Categorías destacadas (home) ----
   Ícono en tarjeta redondeada con fondo suave del color de la categoría
   (guía de marca), con la imagen que suba el admin; si no hay imagen sube,
   se usa el círculo de color de siempre como respaldo. */
.category-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 40px; }
.category-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; text-align: center; width: 120px; }
.category-tile__icon {
    width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease;
}
.category-tile:hover .category-tile__icon, .category-tile:hover .icon-circle { transform: translateY(-3px); }
.category-tile__icon img { width: 42px; height: 42px; object-fit: contain; }
.category-tile__label { font-weight: 700; color: var(--brand-dark); font-size: .98rem; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge-activo { background: #dcfce7; color: #166534; }
.badge-proximo_vencer { background: #fef9c3; color: #854d0e; }
.badge-vencido, .badge-suspendido { background: #fee2e2; color: #991b1b; }
.badge-agotado { background: #e2e8f0; color: #334155; }
.badge-bonda { background: #ede9fe; color: #5b21b6; }
.badge-pendiente_aprobacion { background: #dbeafe; color: #1e40af; }
.badge-propio { background: #dbeafe; color: #1e3a8a; }

/* ---- Etiquetas de beneficio (guía de marca: ETIQUETAS/BADGES) ----
   Colores tomados de la guía; el verde, el celeste y el rojo se oscurecieron
   un poco respecto del muestrario (los tonos originales, con texto blanco,
   no llegaban al contraste mínimo de accesibilidad). */
.beneficio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.beneficio-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; }
.beneficio-tag--activo { background: #0A7D53; }
.beneficio-tag--nuevo { background: var(--brand-amarillo); color: var(--brand-dark); }
.beneficio-tag--exclusivo { background: var(--brand-primary-light); }
.beneficio-tag--limitado { background: #D93A2E; }

/* ---- Tarjeta de beneficio (guía de marca: EJEMPLOS DE TARJETAS DE
   BENEFICIOS) — categoría + logo del comercio arriba, descuento grande y
   resumen en el color de la categoría, etiquetas, y ubicación abajo. */
.beneficio-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.beneficio-card__categoria { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.beneficio-card__logo { max-height: 34px; max-width: 110px; object-fit: contain; }
.beneficio-card__descuento { font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin: 0; }
.beneficio-card__descuento span { font-size: 1.05rem; }
.beneficio-card__resumen { font-weight: 700; margin: 2px 0 4px; }
.beneficio-card__footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef0f4;
    color: var(--brand-muted); font-size: .88rem;
}

/* ---- Encabezado de página interior (Quiénes somos, Requisitos, Contacto...) ---- */
.page-header {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff; padding: 52px 0; text-align: center;
}
.page-header .eyebrow {
    display: inline-block; background: rgba(255,255,255,.2); padding: 6px 16px;
    border-radius: 999px; font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { font-size: 1.15rem; font-weight: 600; max-width: 640px; margin: 0 auto; }

/* ---- Pasos numerados (Requisitos) ---- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li {
    counter-increment: paso; display: flex; gap: 18px; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid #eef0f4; font-size: 1.1rem;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
    content: counter(paso); flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-primary); color: #fff; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---- Tarjetas de contacto ---- */
.contact-info { list-style: none; margin: 0; padding: 0; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #eef0f4; }
.contact-info li:last-child { border-bottom: none; }
.contact-info .icon-badge {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-bg);
    color: var(--brand-primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800;
}
.contact-info strong { display: block; color: var(--brand-dark); }

/* ---- Tarjetas de programas hermanos ---- */
.program-card { display: block; text-decoration: none; height: 100%; }
.program-card .card { height: 100%; border-top: 4px solid var(--brand-primary); }
.program-card h3 { margin-bottom: 8px; }
.program-card p { color: var(--brand-muted); margin: 0; }

/* ---- Preguntas frecuentes (acordeón nativo, accesible sin JS) ---- */
.faq-item {
    background: #fff; border: 1px solid #eef0f4; border-radius: var(--radius);
    margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
    cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; font-size: 1.1rem;
    color: var(--brand-dark); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.6rem; color: var(--brand-primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--brand-primary); }
.faq-item .faq-answer { padding: 0 24px 20px; font-size: 1.05rem; color: var(--brand-muted); line-height: 1.7; }

/* ---- Categorías (admin): acordeón con miniatura, igual patrón que las FAQ ---- */
.categoria-item {
    background: #fff; border: 1px solid #eef0f4; border-radius: var(--radius);
    margin-bottom: 10px; overflow: hidden; padding: 4px 16px;
}
.categoria-item summary {
    cursor: pointer; list-style: none; padding: 12px 0; font-weight: 700;
    color: var(--brand-dark); display: flex; align-items: center; gap: 12px;
}
.categoria-item summary::-webkit-details-marker { display: none; }
.categoria-item__thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.categoria-item__thumb--vacio { display: inline-block; }
.categoria-item__nombre { flex: 1; }

/* ---- Contenido legal (Términos, Privacidad) ---- */
.legal-content h2 { font-size: 1.3rem; margin-top: 32px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--brand-muted); line-height: 1.8; }
.legal-content .legal-updated { color: var(--brand-muted); font-size: .95rem; margin-bottom: 30px; }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--brand-muted); font-size: 1.1rem; }

/* ---- Fotografías de contenido (secciones editoriales con imagen real) ---- */
.content-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; object-fit: cover; }

/* ---- Forms ---- */
label { display: block; font-weight: 700; margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 13px 14px; border: 2px solid #cbd5e1; border-radius: 10px;
    font-size: 1rem; font-family: inherit; margin-bottom: 18px; background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--brand-secondary);
    outline-offset: 1px;
    border-color: var(--brand-primary);
}
.field-error { color: #dc2626; font-size: .9rem; margin-top: -14px; margin-bottom: 14px; display: block; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-check input { width: auto; margin: 4px 0 0; }

/* ---- Login / Registro: panel de marca + formulario ---- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.auth-split__panel {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff; padding: 44px 48px; display: flex; flex-direction: column; justify-content: flex-start;
}
.auth-split__panel::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.09) 2px, transparent 2px);
    background-size: 28px 28px; opacity: .6;
}
.auth-split__panel::after {
    content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.06); right: -100px; bottom: -120px; pointer-events: none;
}
.auth-split__panel > * { position: relative; z-index: 1; }
.auth-split__icon-badge {
    width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 16px;
}
.auth-split__panel h1 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.auth-split__panel p { font-size: 1.05rem; font-weight: 600; margin: 0; }
.auth-split__benefits { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-split__benefits li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 1rem; }
.auth-split__benefits li .tick {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.auth-split__trust {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 16px;
    background: rgba(255,255,255,.12); border-radius: 999px; font-size: .9rem; font-weight: 600; width: fit-content;
}
.auth-split__form { display: flex; align-items: flex-start; justify-content: center; padding: 44px 24px; background: var(--brand-bg); }
.auth-split__form .card { width: 100%; box-shadow: none; border: none; }
.auth-split__form-inner { width: 100%; max-width: 460px; }
.auth-split__form-inner.is-wide { max-width: 560px; }
.auth-split__form h1 { margin-bottom: 6px; font-size: 1.7rem; }
.auth-split__form .auth-subtitle { color: var(--brand-muted); margin-bottom: 18px; }
.auth-split__footer-link { text-align: center; margin-top: 14px; font-size: 1.02rem; }
/* ---- Registro paso a paso ---- */
.wizard-progress { display: flex; align-items: center; margin-bottom: 24px; }
.wizard-progress__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.wizard-progress__circle {
    width: 34px; height: 34px; border-radius: 50%; background: #e2e8f0; color: var(--brand-muted);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
    border: 2px solid #e2e8f0;
}
.wizard-progress__label { font-size: .82rem; color: var(--brand-muted); font-weight: 600; }
.wizard-progress__step.is-active .wizard-progress__circle { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.wizard-progress__step.is-active .wizard-progress__label { color: var(--brand-primary); }
.wizard-progress__step.is-done .wizard-progress__circle { background: var(--brand-primary-light); border-color: var(--brand-primary-light); color: #fff; }
.wizard-progress__line { flex: 0 0 auto; width: 40px; height: 2px; background: #e2e8f0; margin: 0 4px 20px; }
.wizard-progress__line.is-done { background: var(--brand-primary-light); }
.wizard-step[hidden] { display: none; }
.wizard-nav { display: flex; gap: 12px; margin-top: 6px; }
.wizard-nav .btn { flex: 1; }
@media (max-width: 480px) {
    /* Se oculta visualmente (los círculos numerados igual comunican el
       progreso), pero se mantiene disponible para lectores de pantalla. */
    .wizard-progress__label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
}

.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-toggle {
    position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    border: none; background: transparent; color: var(--brand-muted); font-size: 1.2rem; cursor: pointer;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { background: var(--brand-bg); color: var(--brand-primary); }
@media (max-width: 880px) {
    .auth-split { grid-template-columns: 1fr; min-height: auto; }
    .auth-split__panel { padding: 40px 24px; text-align: center; }
    .auth-split__icon-badge { margin-left: auto; margin-right: auto; }
    .auth-split__benefits { text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
    .auth-split__trust { margin-left: auto; margin-right: auto; }
}

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ---- Tarjeta digital ---- (guía de marca: tarjeta navy con logo, nombre,
   N° socio, QR en caja blanca y una franja turquesa abajo con la vigencia) */
.tarjeta-digital-wrap { max-width: 320px; }
.tarjeta-digital-wrap__eyebrow {
    text-align: center; font-weight: 800; color: var(--brand-primary); letter-spacing: 1px;
    text-transform: uppercase; font-size: .92rem; margin: 0 0 14px;
}
.tarjeta-digital {
    background: var(--brand-primary); color: #fff; border-radius: 24px; overflow: hidden;
    box-shadow: var(--shadow); text-align: center;
}
.tarjeta-digital__body { padding: 28px 24px 22px; }
.tarjeta-digital__logo { height: 32px; margin-bottom: 22px; }
.tarjeta-digital__nombre { font-weight: 700; font-size: 1.1rem; margin: 0 0 16px; }
.tarjeta-digital__label { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; opacity: .75; margin: 0; }
.tarjeta-digital__numero { font-weight: 800; font-size: 1.05rem; letter-spacing: 1px; margin: 2px 0 22px; }
.tarjeta-digital__qr { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; line-height: 0; }
.tarjeta-digital__footer { background: var(--brand-secondary); padding: 14px 24px; }
.tarjeta-digital__footer-label {
    display: block; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; opacity: .85; margin-bottom: 2px;
}
.tarjeta-digital__footer strong { font-size: 1rem; }

/* ---- Paginación (vista propia: resources/views/pagination/tarjeta-yo-mayor.blade.php) ---- */
.pagination-nav { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.pagination-nav__pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination-nav__arrow, .pagination-nav__page {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px;
    border: 2px solid var(--brand-primary); color: var(--brand-primary);
    text-decoration: none; font-weight: 700; background: #fff;
}
.pagination-nav__arrow:hover, .pagination-nav__page:hover { background: var(--brand-primary); color: #fff; }
.pagination-nav__page.is-current { background: var(--brand-primary); color: #fff; cursor: default; }
.pagination-nav__arrow.is-disabled {
    opacity: .5; border-color: #cbd5e1; color: var(--brand-muted); background: #f8fafc; cursor: default;
}
.pagination-nav__dots { color: var(--brand-muted); padding: 0 4px; }

/* ---- Table ---- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
/* Tablas del admin/comercio: si no caben en pantallas angostas (tablet),
   que haga scroll horizontal la tarjeta que la contiene, no toda la página. */
.card:has(table) { overflow-x: auto; }
.card:has(table) table { min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef0f4; font-size: .95rem; }
th { background: var(--brand-bg); color: var(--brand-primary); }

/* ---- Panel layout (admin / comercio) ---- */
.panel { display: flex; min-height: 100vh; }
.panel__sidebar { width: 260px; background: var(--brand-primary); color: #fff; padding: 22px 0; flex-shrink: 0; }
.panel__sidebar .logo { padding: 0 22px 22px; }
.panel__sidebar .logo img { height: 40px; filter: brightness(0) invert(1); }
.panel__sidebar a { display: block; color: #dfe1ff; text-decoration: none; padding: 12px 22px; font-weight: 600; }
.panel__sidebar a:hover, .panel__sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.panel__main { flex: 1; padding: 28px 32px; max-width: 1400px; }
.panel__topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .95rem; color: var(--brand-muted); }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: #cbd5e1; }
.breadcrumbs a { color: var(--brand-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.kpi { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.kpi .value { font-size: 2.1rem; font-weight: 800; color: var(--brand-primary); }
.kpi .label { color: var(--brand-muted); font-weight: 600; }

.footer { background: var(--brand-dark); color: #cbd5e1; padding: 56px 0 24px; margin-top: 40px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--brand-accent); }

.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer__logo { height: 38px; margin-bottom: 16px; }
.footer__brand p { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: #cbd5e1; }
.footer__brand p a { text-decoration: underline; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.footer__social a:hover { background: var(--brand-primary); color: #fff; }

.footer__col h3 { color: #fff; font-size: 1.05rem; margin: 0 0 16px; }
.footer__col a, .footer__col span { display: block; padding: 5px 0; font-size: .95rem; color: #cbd5e1; }
.footer__col a:hover { color: var(--brand-accent); }

.footer__bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
}
.footer__bottom p { margin: 0; font-size: .85rem; color: #cbd5e1; opacity: .8; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: .85rem; color: #cbd5e1; }
.footer__legal a:hover { color: var(--brand-accent); }

@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .footer__top { grid-template-columns: 1fr; text-align: center; }
    .footer__social { justify-content: center; }
    .footer__bottom { flex-direction: column; text-align: center; }
    /* Deja espacio libre abajo para que el botón flotante de accesibilidad
       (fixed, bottom-left) no quede tapando el texto del pie de página. */
    .footer { padding-bottom: 100px; }
}

/* ---- Onboarding guiado (primera visita al panel del socio) ---- */
.onboarding-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.onboarding-overlay[hidden] { display: none; }
.onboarding-card {
    background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%;
    padding: 36px 32px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.onboarding-card .icon { font-size: 3.2rem; margin-bottom: 14px; }
.onboarding-card h2 { margin-bottom: 12px; }
.onboarding-card p { font-size: 1.1rem; color: var(--brand-muted); margin-bottom: 24px; }
.onboarding-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.onboarding-dot { width: 12px; height: 12px; border-radius: 50%; background: #e2e8f0; }
.onboarding-dot.is-active { background: var(--brand-primary); }
.onboarding-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.onboarding-skip { background: none; border: none; color: var(--brand-muted); font-size: 1rem; cursor: pointer; text-decoration: underline; }

/* ---- Modo alto contraste ----
   Se activa con html[data-contraste="alto"], controlado desde el navbar y
   guardado en localStorage junto con el tamaño de letra. */
html[data-contraste="alto"] body { background: #fff; color: #000; }
html[data-contraste="alto"] .navbar { background: #000; }
html[data-contraste="alto"] .navbar__links a { color: #fff; }
html[data-contraste="alto"] .navbar__links a:hover { color: #ffe066; }
html[data-contraste="alto"] .navbar__toggle,
html[data-contraste="alto"] .navbar__dropdown-toggle { color: #fff; }
html[data-contraste="alto"] .navbar__dropdown-toggle:hover { color: #ffe066; }
html[data-contraste="alto"] .navbar__dropdown-panel { background: #fff; }
html[data-contraste="alto"] .navbar__dropdown-panel a { color: #000; }
html[data-contraste="alto"] a { color: #000; text-decoration: underline; }
html[data-contraste="alto"] .card, html[data-contraste="alto"] .kpi, html[data-contraste="alto"] table {
    background: #fff; border: 2px solid #000; box-shadow: none;
}
html[data-contraste="alto"] .btn-primary, html[data-contraste="alto"] .btn-accent { background: #000; color: #fff; border: 2px solid #000; }
html[data-contraste="alto"] .btn-outline { background: #fff; color: #000; border: 2px solid #000; }
html[data-contraste="alto"] .section-alt, html[data-contraste="alto"] body { background: #fff; }
html[data-contraste="alto"] h1, html[data-contraste="alto"] h2, html[data-contraste="alto"] h3, html[data-contraste="alto"] h4 { color: #000; }
html[data-contraste="alto"] .kpi .value { color: #000; }
html[data-contraste="alto"] th { background: #000; color: #fff; }
html[data-contraste="alto"] .footer { background: #000; }
html[data-contraste="alto"] .footer a,
html[data-contraste="alto"] .footer__bottom p,
html[data-contraste="alto"] .footer__col span { color: #fff; }
html[data-contraste="alto"] .footer__social a { background: #333; }
html[data-contraste="alto"] .panel__sidebar { background: #000; }
