/* ==========================================
   DASHBOARD PRINCIPAL (HOME)
   ========================================== */

.home-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.home-dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.2), rgba(255, 30, 0, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(255, 30, 0, 0.3);
}

.home-dashboard-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.dashboard-tagline {
    color: #aaa;
    font-size: 1.2rem;
}

/* Next GP Countdown Header */
.next-gp-countdown-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-gp-countdown-container .next-gp-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: bold;
}

.next-gp-countdown-container .next-gp-title a {
    color: #ff1e00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.next-gp-countdown-container .next-gp-title a:hover {
    color: #fff;
    text-decoration: underline;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.countdown .cd-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 30, 0, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.countdown .cd-box span {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ff1e00;
    line-height: 1;
    font-family: 'AutobusOmnibus', sans-serif;
}

.countdown .cd-box small {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Dashboard Cards Grid */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 30, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    min-width: 70px;
    text-align: center;
}

.card-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #aaa;
}

.card-arrow {
    font-size: 2rem;
    color: #ff1e00;
}

/* Status Badges */
.card-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-complete {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00 !important;
    border: 1px solid #00ff00;
}

.status-pending {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00 !important;
    border: 1px solid #ffff00;
}

.status-empty {
    background: rgba(255, 255, 255, 0.1);
    color: #888 !important;
    border: 1px solid #666;
}

/* Card Stats */
.card-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff1e00 !important;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* Card Leader Info */
.card-leader {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.leader-label {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.leader-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.leader-points {
    color: #ff1e00;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Action Text */
.card-action {
    margin-top: 1rem;
}

.action-text {
    color: #ff1e00;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Quick Access Section */
.quick-access-section {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 30, 0, 0.5), transparent);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 30, 0, 0.1);
    border-color: rgba(255, 30, 0, 0.5);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 2.5rem;
    border: 2px solid #ff1e00;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    color: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 30, 0, 0.2);
}

.close-modal {
    color: #888;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #ff1e00;
    transform: rotate(90deg);
}

.modal-header {
    border-bottom: 2px solid rgba(255, 30, 0, 0.3);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #ff1e00;
    font-size: 1.8rem;
}

.modal-info {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #bbb;
}

.modal-info a {
    color: #ff1e00;
    text-decoration: underline;
}

.modal-body h4 {
    color: #ff1e00;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
    border-left: 4px solid #ff1e00;
    padding-left: 10px;
}

.modal-body ol {
    margin-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.app-screenshot {
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.download-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.download-btn-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.download-btn-modal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.4);
    color: #fff;
}

/* ==========================================
   HERO SLIDER — USUARIO NO LOGUEADO
   Agregar al final de home.css
   ========================================== */

/* ── Wrapper: altura FIJA, nunca cambia ────────────────────────── */
.hero-slider-wrapper {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 30, 0, 0.3);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.12), rgba(255, 30, 0, 0.06));
    height: 360px;   /* altura suficiente para el countdown */
}

@media (max-width: 768px) {
    .hero-slider-wrapper { height: 500px; }
}

/* Barra de progreso */
.hero-progress-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 10;
}
.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e10600, #ff6b35);
    border-radius: 0 2px 2px 0;
}

/* ── Slides: SIEMPRE absolute, nunca tocan el flujo ────────────── */
.hero-slide {
    position: absolute;
    inset: 0;
    padding: 2.5rem 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    transition: opacity 0.48s ease, transform 0.48s ease;
    will-change: opacity, transform;
    z-index: 1;
}

/* Activo: visible, tamaño normal */
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Saliente: se desvanece hacia afuera (clase efímera gestionada por JS) */
.hero-slide.leaving {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.48s ease, transform 0.48s ease;
}

/* ── Contenido interno ─────────────────────────────────────────── */
.hero-slide-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.hero-slide-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 0 12px rgba(255, 30, 0, 0.4));
}
.hero-slide.active .hero-slide-icon {
    animation: heroIconPulse 2.5s ease-in-out infinite;
}
@keyframes heroIconPulse {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.08); }
}

.hero-slide-badge {
    display: inline-block;
    background: rgba(225, 6, 0, 0.2);
    border: 1px solid rgba(225, 6, 0, 0.4);
    color: #ff6b6b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.hero-slide-title {
    font-family: 'AutobusOmnibus', sans-serif;
    font-size: 1.9rem;
    color: #ffffff;
    margin: 0.3rem 0 0;
    line-height: 1.2;
}

.hero-slide-desc {
    color: #bbb;
    font-size: 0.93rem;
    line-height: 1.72;
    max-width: 560px;
    font-family: 'Poppins', sans-serif;
    margin: 0.3rem 0;
}

/* Feature tags */
.hero-slide-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
}
.hero-feature-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
}
.hero-feature-tag:hover {
    background: rgba(225, 6, 0, 0.15);
    border-color: rgba(225, 6, 0, 0.4);
    color: #fff;
}

/* CTA buttons */
.hero-cta-group,
.hero-final-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}
.hero-cta-btn {
    display: inline-block;
    padding: 0.7rem 1.7rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'AutobusOmnibus', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}
.hero-cta-primary {
    background: linear-gradient(90deg, #e10600, #ff1e00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.35);
}
.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.5);
    color: #fff;
}
.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-cta-secondary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hero-cta-ghost {
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-cta-ghost:hover { background: rgba(255, 255, 255, 0.05); color: #ccc; }

/* ── Dots ──────────────────────────────────────────────────────── */
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}
.hero-dot.active {
    background: #ff1e00;
    width: 22px;
    border-radius: 4px;
}
.hero-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.5); }

/* ── Flechas ───────────────────────────────────────────────────── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
    padding: 0;
}
.hero-arrow:hover {
    background: rgba(225, 6, 0, 0.5);
    border-color: rgba(225, 6, 0, 0.6);
}
.hero-arrow-prev { left: 14px; }
.hero-arrow-next { right: 14px; }

/* Slide 0: header original sin márgenes extra */
.hero-slide[data-index="0"] .home-dashboard-header {
    width: 100%;
    margin-bottom: 0;
    border: none;
    background: transparent;
    padding: 0;
}

/* Scramble */
.alqv-highlight {
    display: inline-block;
    color: #ffffff;
    font-family: 'AutobusOmnibus', sans-serif;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-slide { padding: 1.8rem 1.2rem 3.5rem; }
    .hero-slide-title { font-size: 1.35rem; }
    .hero-slide-icon { font-size: 2.6rem; }
    .hero-slide-desc { font-size: 0.85rem; }
    .hero-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
    .hero-cta-group, .hero-final-cta { flex-direction: column; align-items: center; }
    .hero-cta-btn { width: 100%; max-width: 280px; text-align: center; }
}