/* =====================================================================
   ESMITAREA.COM — Estilos base y componentes globales
   ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--fuente-cuerpo);
    color: var(--gris-texto);
    background: var(--gris-suave);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--fuente-display);
    color: var(--azul-900);
    line-height: 1.2;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.seccion { padding: var(--espacio-seccion) 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--fuente-alt);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--azul-700);
    background: var(--celeste-200);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.titulo-seccion {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.subtitulo-seccion {
    color: var(--gris-texto);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.centrado { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primario {
    background: var(--gradiente-principal);
    color: var(--blanco);
    box-shadow: var(--sombra-suave);
}
.btn-primario:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(30, 123, 255, 0.4), 0 0 0 4px rgba(30,123,255,0.12);
}

.btn-secundario {
    background: rgba(255,255,255,0.6);
    color: var(--azul-700);
    border: 1.5px solid var(--celeste-200);
    backdrop-filter: blur(6px);
}
.btn-secundario:hover {
    background: var(--blanco);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(79, 195, 247, 0.35);
    border-color: var(--celeste-400);
}

.btn-oro {
    background: var(--gradiente-oro);
    color: #7A4B00;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.btn-oro:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5), 0 0 0 4px rgba(255,193,7,0.15);
}

/* ---------- Glassmorphism ---------- */
.glass {
    background: var(--gradiente-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--sombra-glass);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(30, 123, 255, 0.08);
    transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(18,87,199,0.08); }

.header .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.marca { display: flex; align-items: center; gap: 0.6rem; }
.marca img { height: 44px; width: auto; max-width: 160px; object-fit: contain; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.marca:hover img { transform: scale(1.08) rotate(-2deg); }

.menu-principal { display: flex; align-items: center; gap: 2rem; }
.menu-principal a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gris-texto);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.menu-principal a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradiente-principal);
    transition: width 0.25s ease;
}
.menu-principal a:hover { color: var(--azul-700); }
.menu-principal a:hover::after { width: 100%; }

.btn-menu-movil { display: none; font-size: 1.5rem; color: var(--azul-900); }

/* ---------- Hero / Slider (rediseño premium) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(125deg, var(--azul-900) 0%, var(--azul-700) 45%, var(--vino) 100%);
    display: flex; align-items: center;
    padding-top: 76px;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--celeste-400); top: -120px; right: -80px; }
/* Insignias de ranking: circulos sobrios, sin sombras ni brillo artificial. */
.badge-medalla {
    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,.82);
    box-shadow: none !important;
    transition: transform .18s ease, border-color .18s ease;
}
.badge-medalla::before { display: none; }
.badge-medalla i { filter: none; }
.badge-medalla:hover { transform: scale(1.06); }
.badge-medalla-diamante { border-color: #075985; animation: none; }
.badge-medalla-platino { border-color: #4338CA; }
.badge-medalla-oro { border-color: #B45309; }
.badge-medalla-plata { border-color: #64748B; }
.badge-medalla-bronce { border-color: #92400E; }
.badge-medalla-diamante::after { box-shadow: none; border: 1px solid #fff; }
@media (max-width: 640px) {
    .badge-medalla { max-width: 42px; max-height: 42px; }
    .fila-top10 .badge-medalla { width: 38px !important; height: 38px !important; }
}
.hero::after { width: 320px; height: 320px; background: var(--oro); bottom: -100px; left: -60px; opacity: 0.25; }

.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.9s ease;
    display: flex; align-items: center;
    z-index: 1;
}
.hero-slide.activo { opacity: 1; visibility: visible; }
.hero-slide img.fondo { display: none; } /* el fondo ahora es un panel visual, no una foto de fondo completa */

.hero .contenedor { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }

.hero-contenido { color: var(--blanco); max-width: 560px; animation: subirDesvanecer 0.9s ease both; }
.hero-contenido .eyebrow { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.hero-contenido h1 { color: var(--blanco); font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 1.1rem; letter-spacing: -0.01em; }
.hero-contenido p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 480px; }
.hero-acciones { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.hero-mini-stats { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.hero-mini-stats div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; opacity: 0.85; }
.hero-mini-stats i { color: var(--oro); }

.hero-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 32px;
    overflow: hidden;
    animation: subirDesvanecer 1s ease 0.15s both;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .tarjeta-flotante {
    position: absolute;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 0.9rem 1.2rem;
    box-shadow: var(--sombra-media);
    display: flex; align-items: center; gap: 0.7rem;
    animation: flotar 3.5s ease-in-out infinite;
}
.hero-visual .tarjeta-flotante.top-izq { top: 18px; left: -18px; animation-delay: 0s; }
.hero-visual .tarjeta-flotante.bottom-der { bottom: 18px; right: -18px; animation-delay: 1.2s; }
.hero-visual .tarjeta-flotante i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; }
.hero-visual .tarjeta-flotante.top-izq i { background: var(--gradiente-oro); color: #7A4B00; }
.hero-visual .tarjeta-flotante.bottom-der i { background: var(--gradiente-vino); }
.hero-visual .tarjeta-flotante strong { display: block; font-size: 0.85rem; color: var(--azul-900); }
.hero-visual .tarjeta-flotante span { font-size: 0.72rem; color: var(--gris-texto); }

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.6rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.3s ease; }
.hero-dots button.activo { width: 28px; border-radius: 6px; background: var(--oro); }

@keyframes subirDesvanecer {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-contenido { max-width: 100%; margin: 0 auto; }
    .hero-acciones, .hero-mini-stats { justify-content: center; }
    .hero-visual { max-width: 440px; margin: 0 auto; }
    .hero-visual .tarjeta-flotante { display: none; }
}

/* ---------- Efecto ripple en botones (liviano, sin librerías) ---------- */
.btn { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transform: scale(0);
    animation: animarRipple 0.6s ease-out;
    pointer-events: none;
}
@keyframes animarRipple {
    to { transform: scale(2.8); opacity: 0; }
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--gradiente-principal);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.oculto { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-spinner {
    width: 56px; height: 56px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(.22,.9,.32,1), transform 0.7s cubic-bezier(.22,.9,.32,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > * { animation: subirDesvanecer 0.6s ease both; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { animation-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { animation-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { animation-delay: 0.48s; }

/* ---------- Acentos vino / rojo ---------- */
.eyebrow.acento-vino { background: var(--gradiente-vino); color: #fff; }
.card-beneficio:nth-child(3n+2) .icono-beneficio { background: var(--gradiente-vino); }
.card-beneficio:nth-child(3n) .icono-beneficio { background: var(--gradiente-oro); color: #7A4B00; }

/* ---------- Beneficios ---------- */
.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.card-beneficio {
    padding: 2rem 1.6rem;
    border-radius: var(--radio-lg);
    background: var(--blanco);
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-beneficio:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(30,123,255,0.18); }
.icono-beneficio {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradiente-principal);
    color: var(--blanco);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.card-beneficio:hover .icono-beneficio { transform: scale(1.15) rotate(-8deg); }
.card-beneficio h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-beneficio p { font-size: 0.92rem; color: var(--gris-texto); }

/* ---------- Contadores ---------- */
.franja-contadores {
    background: var(--gradiente-principal);
    padding: 3.5rem 0;
}
.grid-contadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
    color: var(--blanco);
}
.grid-contadores .numero {
    font-family: var(--fuente-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
}
.grid-contadores .etiqueta { font-size: 0.9rem; opacity: 0.9; }

/* ---------- Tarjeta de desafío (mini VS con ambos nicks) ---------- */
.tarjeta-desafio {
    background: var(--blanco); border-radius: var(--radio-lg);
    padding: 1.4rem; box-shadow: var(--sombra-suave);
    text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tarjeta-desafio:hover { transform: translateY(-6px); box-shadow: var(--sombra-media); }
.duelo-preview { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.duelo-avatar { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.duelo-avatar img {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--celeste-200); transition: transform 0.25s ease;
}
.tarjeta-desafio:hover .duelo-avatar img { transform: scale(1.08); }
.duelo-nick { font-size: 0.68rem; font-weight: 700; color: var(--azul-700); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duelo-rayo {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gradiente-oro); color: #7A4B00;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; box-shadow: 0 3px 8px rgba(245,158,11,0.4);
    animation: pulsarRayo 1.6s ease-in-out infinite;
}
@keyframes pulsarRayo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.duelo-nombre { font-size: 0.9rem; color: var(--azul-900); margin-bottom: 0.9rem; }

/* ---------- Badge de medalla (Diamante/Platino/Oro/Plata/Bronce) ---------- */
.badge-medalla {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; flex-shrink: 0;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        0 0 0 3px rgba(255,255,255,0.55),
        inset 0 3px 4px rgba(255,255,255,0.65),
        inset 0 -3px 5px rgba(0,0,0,0.2);
    border: none;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.badge-medalla:hover { transform: scale(1.15) rotate(-6deg); }
.badge-medalla::before {
    /* brillo tipo cristal/burbuja en la parte superior */
    content: '';
    position: absolute; top: 8%; left: 18%;
    width: 45%; height: 32%;
    background: rgba(255,255,255,0.75);
    border-radius: 50%;
    filter: blur(2px);
    transform: rotate(-20deg);
}
.badge-medalla i {
    position: relative; z-index: 1;
    filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,0.35));
}

/* Resplandor de color detrás de cada medalla según su nivel */
.badge-medalla-diamante { box-shadow: 0 4px 12px rgba(14,165,233,0.5), 0 0 18px rgba(125,211,252,0.55), 0 0 0 3px rgba(255,255,255,0.6), inset 0 3px 4px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(0,0,0,0.15); animation: brilloDiamante 2.4s ease-in-out infinite; }
.badge-medalla-platino { box-shadow: 0 4px 12px rgba(129,140,248,0.4), 0 0 12px rgba(199,210,254,0.5), 0 0 0 3px rgba(255,255,255,0.6), inset 0 3px 4px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(0,0,0,0.15); }
.badge-medalla-oro { box-shadow: 0 4px 12px rgba(245,158,11,0.45), 0 0 12px rgba(253,230,138,0.5), 0 0 0 3px rgba(255,255,255,0.6), inset 0 3px 4px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(0,0,0,0.15); }
.badge-medalla-plata { box-shadow: 0 4px 10px rgba(148,163,184,0.4), 0 0 0 3px rgba(255,255,255,0.6), inset 0 3px 4px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(0,0,0,0.15); }
.badge-medalla-bronce { box-shadow: 0 4px 10px rgba(194,112,63,0.4), 0 0 0 3px rgba(255,255,255,0.6), inset 0 3px 4px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(0,0,0,0.15); }

@keyframes brilloDiamante {
    0%, 100% { box-shadow: 0 4px 12px rgba(14,165,233,0.5), 0 0 14px rgba(125,211,252,0.5), 0 0 0 3px rgba(255,255,255,0.6), inset 0 3px 4px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 4px 16px rgba(14,165,233,0.7), 0 0 24px rgba(125,211,252,0.8), 0 0 0 3px rgba(255,255,255,0.75), inset 0 3px 4px rgba(255,255,255,0.8), inset 0 -3px 5px rgba(0,0,0,0.15); }
}

/* Estrellita extra para la medalla #1 (Diamante) */
.badge-medalla-diamante::after {
    content: '\f005'; /* fa-star */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; bottom: -3px; right: -3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--oro); color: #fff;
    font-size: 0.5rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 0 2px #fff;
    z-index: 2;
}

/* Insignias de ranking sobrias: el nivel se reconoce por color y borde. */
.badge-medalla { box-sizing: border-box; border: 2px solid rgba(255,255,255,.82); box-shadow: none !important; transition: transform .18s ease, border-color .18s ease; }
.badge-medalla::before { display: none; }
.badge-medalla i { filter: none; }
.badge-medalla:hover { transform: scale(1.06); }
.badge-medalla-diamante { border-color: #075985; animation: none; }
.badge-medalla-platino { border-color: #4338CA; }
.badge-medalla-oro { border-color: #B45309; }
.badge-medalla-plata { border-color: #64748B; }
.badge-medalla-bronce { border-color: #92400E; }
.badge-medalla-diamante::after { box-shadow: none; border: 1px solid #fff; }
@media (max-width: 640px) { .badge-medalla { max-width: 42px; max-height: 42px; } .fila-top10 .badge-medalla { width: 38px !important; height: 38px !important; } }
.podio {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.podio-item {
    text-align: center;
    padding: 1.8rem 1.4rem 1.4rem;
    border-radius: var(--radio-lg);
    width: 220px;
    position: relative;
    transition: transform 0.3s ease;
}
.podio-item:hover { transform: translateY(-6px); }
.podio-item.top1 {
    order: 2; padding-top: 2.8rem; transform: scale(1.08);
    background: linear-gradient(160deg, #FFF9E6, #FFFFFF);
    border: 2px solid #FFD54F;
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.28);
}
.podio-item.top1:hover { transform: scale(1.08) translateY(-6px); }
.podio-item.top2 { order: 1; background: linear-gradient(160deg, #F1F5F9, #FFFFFF); border: 2px solid #CBD5E1; }
.podio-item.top3 { order: 3; background: linear-gradient(160deg, #FFF1E6, #FFFFFF); border: 2px solid #F0A868; }

.podio-medalla-base {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fuente-display); font-weight: 800; font-size: 0.95rem;
    margin: 0 auto 0.6rem; color: #fff;
}
.podio-item.top2 .podio-medalla-base { background: linear-gradient(135deg, #B0BEC5, #78909C); }
.podio-item.top3 .podio-medalla-base { background: linear-gradient(135deg, #D7915A, #A9642E); }

.podio-foto {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    border: 4px solid var(--oro);
    object-fit: cover;
}
.podio-item.top1 .podio-foto {
    width: 110px; height: 110px;
    border: 5px solid var(--oro);
    box-shadow: 0 0 0 6px rgba(255,193,7,0.2), 0 12px 24px rgba(245,158,11,0.35);
}
.podio-item.top2 .podio-foto, .podio-item.top3 .podio-foto { border-color: #CBD5E1; }
.podio-item.top3 .podio-foto { border-color: #D7915A; }

.podio-corona {
    font-size: 1.8rem; color: var(--oro);
    margin-bottom: 0.3rem;
    animation: flotarCorona 2.2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(245,158,11,0.4));
}
@keyframes flotarCorona {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.podio-nombre { font-weight: 700; color: var(--azul-900); }
.podio-puntos {
    color: var(--azul-700); font-weight: 800; font-size: 1.1rem; margin-top: 0.3rem;
    display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.podio-item.top1 .podio-puntos { color: var(--oro-oscuro); font-size: 1.3rem; }
.podio-tiempo { font-size: 0.82rem; color: var(--gris-texto); }

.lista-top10 { border-radius: var(--radio-lg); overflow: hidden; box-shadow: var(--sombra-suave); background: var(--blanco); }
.fila-top10 {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--gris-suave);
    transition: background 0.2s ease, transform 0.15s ease;
}
.fila-top10:hover { background: var(--gris-suave); transform: translateX(2px); }
.fila-top10 .puesto { font-family: var(--fuente-display); font-weight: 800; color: var(--celeste-400); width: 28px; }
.fila-top10 img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: var(--sombra-suave); transition: transform 0.25s ease; }
.fila-top10:hover img { transform: scale(1.1) rotate(-3deg); }
.fila-top10 .info { flex: 1; }
.fila-top10 .info .nombre { font-weight: 700; color: var(--azul-900); font-size: 0.95rem; }
.fila-top10 .info .meta { font-size: 0.78rem; color: var(--gris-texto); }
.fila-top10 .puntos { font-weight: 800; color: var(--azul-700); white-space: nowrap; }

/* Chip de estado moderno */
.chip-estado {
    font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
}
.chip-estado::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-activo { background: #22C55E1A; color: #16A34A; }
.chip-inactivo { background: #EF44441A; color: #DC2626; }

/* Botones de acción circulares para filas de tabla */
.acciones-fila { display: flex; gap: 0.4rem; margin-left: 0.6rem; }
.btn-accion-fila {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gris-suave); color: var(--azul-700);
    font-size: 0.85rem; transition: all 0.2s ease;
}
.btn-accion-fila:hover { background: var(--celeste-200); transform: translateY(-2px); }
.btn-accion-fila.peligro:hover { background: #FEE2E2; color: #DC2626; }

/* ---------- Retos destacados ---------- */
.grid-retos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card-reto { border-radius: var(--radio-lg); overflow: hidden; background: var(--blanco); box-shadow: var(--sombra-suave); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-reto:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(122,30,60,0.18); }
.card-reto .imagen-reto { height: 150px; background: var(--gradiente-principal); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-reto .imagen-reto img { height: 76px; transition: transform 0.4s ease; }
.card-reto:hover .imagen-reto img { transform: scale(1.15) rotate(-4deg); }
.card-reto .cuerpo-reto { padding: 1.4rem; }
.card-reto h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card-reto .etiqueta-nivel { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--celeste-200); color: var(--azul-700); display: inline-block; margin-top: 0.6rem; }

.card-reto-destacado .imagen-reto-fondo {
    height: 170px; background-size: cover; background-position: center;
    position: relative; overflow: hidden; transition: transform 0.4s ease;
}
.card-reto-destacado:hover .imagen-reto-fondo { transform: scale(1.06); }
.card-reto-destacado .imagen-reto-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,61,145,0.1), rgba(11,61,145,0.8));
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 0.8rem; font-size: 1.4rem; color: var(--oro);
}
.puntuacion-reto {
    font-family: var(--fuente-display); font-weight: 800; font-size: 1.8rem;
    color: var(--azul-900); margin: 0.4rem 0;
}
.puntuacion-reto span { color: var(--gris-texto); font-weight: 400; font-size: 1.2rem; }

/* ---------- Testimonios ---------- */
.testimonio { max-width: 680px; margin: 0 auto; text-align: center; }
.testimonio p.frase { font-size: 1.2rem; font-style: italic; color: var(--azul-900); margin-bottom: 1.2rem; }
.testimonio .autor { font-weight: 700; color: var(--azul-700); }

/* ---------- Acordeón FAQ ---------- */
.acordeon { max-width: 760px; margin: 0 auto; }
.item-acordeon { border-radius: var(--radio-md); background: var(--blanco); box-shadow: var(--sombra-suave); margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.item-acordeon:hover { box-shadow: var(--sombra-media); transform: translateX(2px); }
.pregunta-acordeon {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem; font-weight: 700; color: var(--azul-900); text-align: left;
    transition: color 0.2s ease;
}
.pregunta-acordeon:hover { color: var(--azul-700); }
.pregunta-acordeon i { transition: transform 0.3s ease; color: var(--celeste-400); }
.item-acordeon.abierto .pregunta-acordeon i { transform: rotate(180deg); }
.respuesta-acordeon { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 1.5rem; }
.item-acordeon.abierto .respuesta-acordeon { max-height: 300px; padding-bottom: 1.3rem; }

/* ---------- Footer ---------- */
.footer { background: var(--azul-900); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; }
.grid-footer { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer h4 { color: var(--blanco); margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.75); font-size: 0.9rem; display: block; margin-bottom: 0.6rem; transition: color 0.2s ease; }
.footer a:hover { color: var(--oro); }
.redes { display: flex; gap: 0.8rem; margin-top: 1rem; }
.redes a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.redes a:hover { background: var(--oro); color: var(--azul-900); }
.footer-inferior { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem; text-align: center; font-size: 0.82rem; }

.btn-ingresar-header {
    background: linear-gradient(135deg, var(--rojo-vivo), var(--vino));
    color: #fff !important;
    font-size: 1.02rem;
    padding: 1rem 2.1rem;
    box-shadow: 0 8px 22px rgba(225,29,72,0.4);
    animation: latirIngresar 2.4s ease-in-out infinite;
}
.btn-ingresar-header:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(225,29,72,0.55), 0 0 0 4px rgba(225,29,72,0.15);
    animation: none;
}
@keyframes latirIngresar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}
html.tema-oscuro body { background: #0F172A; color: #E2E8F0; }
html.tema-oscuro .header { background: rgba(15,23,42,0.85); border-bottom-color: rgba(255,255,255,0.08); }
html.tema-oscuro .menu-principal a { color: #CBD5E1; }
html.tema-oscuro .menu-principal { background: #1E293B; }
html.tema-oscuro h1, html.tema-oscuro h2, html.tema-oscuro h3, html.tema-oscuro h4 { color: #F1F5F9; }
html.tema-oscuro .titulo-seccion { color: #F1F5F9; }
html.tema-oscuro .subtitulo-seccion { color: #94A3B8; }
html.tema-oscuro .seccion { background: transparent; }
html.tema-oscuro section[style*="var(--blanco)"] { background: #0F172A !important; }
html.tema-oscuro .card-beneficio,
html.tema-oscuro .card-reto,
html.tema-oscuro .item-acordeon,
html.tema-oscuro .lista-top10,
html.tema-oscuro .podio-item,
html.tema-oscuro .testimonio { background: #1E293B; color: #E2E8F0; }
html.tema-oscuro .card-beneficio p,
html.tema-oscuro .fila-top10 .meta,
html.tema-oscuro .pregunta-acordeon { color: #CBD5E1; }
html.tema-oscuro .respuesta-acordeon p { color: #94A3B8; }
html.tema-oscuro .fila-top10:hover { background: #26334A; }
html.tema-oscuro .fila-top10 { border-bottom-color: #334155; }
html.tema-oscuro .footer { background: #050B18; }
html.tema-oscuro .btn-secundario { background: rgba(255,255,255,0.08); color: #E2E8F0; border-color: #334155; }
html.tema-oscuro .btn-modo-oscuro { background: #1E293B; color: #FFC107; }

/* Botón de modo oscuro */
.btn-modo-oscuro {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gris-suave); color: var(--azul-700);
    font-size: 1rem; transition: all 0.25s ease; flex-shrink: 0;
}
.btn-modo-oscuro:hover { transform: rotate(15deg) scale(1.1); }
@media (max-width: 900px) {
    .grid-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .menu-principal { position: fixed; top: 76px; left: 0; right: 0; background: var(--blanco); flex-direction: column; padding: 1.5rem; gap: 1.2rem; box-shadow: var(--sombra-media); transform: translateY(-150%); transition: transform 0.3s ease; }
    .menu-principal.abierto { transform: translateY(0); }
    .btn-menu-movil { display: block; }
    .podio-item.top1 { transform: none; }
    .podio { align-items: center; }
}
@media (max-width: 560px) {
    .grid-footer { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .marca img { height: 34px; max-width: 120px; }
}
