/* =====================================================
   JOJUTLA.ART v2.0 — Estilos Principales
   ===================================================== */

:root {
    --azul-900: #0c1e5c;
    --azul-800: #142882;
    --azul-700: #1e3a8a;
    --azul-600: #1e40af;
    --azul-500: #2563eb;
    --azul-400: #3b82f6;
    --azul-300: #60a5fa;
    --azul-200: #93c5fd;
    --azul-100: #bfdbfe;
    --azul-50:  #eff6ff;
    --dorado-500: #f59e0b;
    --dorado-400: #fbbf24;
    --dorado-300: #fcd34d;
    --dorado-600: #d97706;
    --terracota: #dc2626;
    --verde: #16a34a;
    --gris-50:  #f8fafc;
    --gris-100: #f1f5f9;
    --gris-200: #e2e8f0;
    --gris-300: #cbd5e1;
    --gris-400: #94a3b8;
    --gris-500: #64748b;
    --gris-600: #475569;
    --gris-700: #334155;
    --gris-800: #1e293b;
    --gris-900: #0f172a;
}

* { box-sizing: border-box; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* ── NAVBAR ── */
.navbar-ja {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    transition: box-shadow 0.3s, padding 0.3s;
}
.navbar-ja.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0.3rem 0;
}
.navbar-ja .navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #1e40af !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}
.navbar-ja .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569 !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.25s;
}
.navbar-ja .nav-link:hover,
.navbar-ja .nav-link.active {
    color: #1e40af !important;
    background: #eff6ff;
}
.btn-nav-cta {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: #1e293b !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
    transition: all 0.3s !important;
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.4);
    color: #1e293b !important;
}

/* ── HERO ── */
.hero-section {
    background: linear-gradient(160deg, #0c1e5c 0%, #1e3a8a 35%, #1e40af 60%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
    min-height: 75vh;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(251,191,36,0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147,197,253,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    color: #fcd34d;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease-out;
}
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.7s ease-out 0.1s both;
}
.hero-title .text-gold {
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: #93c5fd;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s ease-out 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease-out 0.3s both;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeUp 0.7s ease-out 0.4s both;
}
.hero-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: #93c5fd;
    margin-top: 0.2rem;
    font-weight: 500;
}
.hero-img {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-img img {
    max-height: 440px;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.35));
}

/* ── BOTONES ── */
.btn-ja {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-ja-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    box-shadow: 0 6px 24px rgba(30,64,175,0.25);
}
.btn-ja-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(30,64,175,0.35);
    color: white;
}
.btn-ja-ghost {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    backdrop-filter: blur(6px);
}
.btn-ja-ghost:hover { background: rgba(255,255,255,0.2); color: white; }
.btn-ja-gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e293b;
    font-weight: 700;
}
.btn-ja-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.35);
    color: #1e293b;
}
.btn-ja-outline {
    background: transparent;
    border: 2px solid #1e40af;
    color: #1e40af;
}
.btn-ja-outline:hover { background: #1e40af; color: white; }

/* ── SECCIONES ── */
.py-sec { padding: 4.5rem 0; }
.sec-light { background: #ffffff; }
.sec-gray { background: #f8fafc; }
.sec-blue {
    background: linear-gradient(160deg, #142882 0%, #1e40af 100%);
    color: white;
}
.sec-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.sec-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}
.sec-blue .sec-title { color: white; }
.sec-sub {
    font-size: 1rem;
    color: #64748b;
    max-width: 550px;
    margin: 0 auto;
}
.sec-blue .sec-sub { color: #93c5fd; }
.sec-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #f59e0b);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.sec-blue .sec-header::after {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

/* ── DISCIPLINAS PILLS ── */
.disc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.25s;
    text-decoration: none;
}
.disc-pill:hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.1);
}

/* ── CARDS GRUPO ── */
.card-grupo {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-grupo:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: #93c5fd;
}
.card-grupo-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}
.card-grupo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.card-grupo:hover .card-grupo-img img { transform: scale(1.06); }
.badge-disc {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(6px);
    background: rgba(30,64,175,0.85);
}
.badge-star {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f59e0b;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.card-grupo-body {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-grupo-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.tag-mun {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}
.tag-mod {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
}
.card-grupo-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}
.card-grupo-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0.8rem;
}
.card-grupo-footer {
    padding: 0.7rem 1.1rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-ver {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.25s;
}
.btn-ver:hover { gap: 0.6rem; color: #1e3a8a; }

/* ── CARDS EVENTO ── */
.card-evento {
    background: white;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}
.card-evento:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: #93c5fd;
    color: inherit;
}
.ev-fecha {
    flex-shrink: 0;
    width: 54px;
    text-align: center;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    color: white;
}
.ev-fecha .dia {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.ev-fecha .mes {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ev-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.2rem;
}
.ev-lugar {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}
.tag-gratis {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}
.tag-pago {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

/* ── CARD NOTICIA ── */
.card-not {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    height: 100%;
}
.card-not:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.card-not-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.card-not-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.card-not:hover .card-not-img img { transform: scale(1.05); }
.card-not-body { padding: 1.1rem; }
.card-not-fecha { font-size: 0.78rem; color: #94a3b8; margin-bottom: 0.3rem; }
.card-not-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.card-not-resumen { font-size: 0.85rem; color: #64748b; line-height: 1.55; }

/* ── GALERÍA ── */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
}
.gal-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gal-item:hover img { transform: scale(1.08); }
.gal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15,23,42,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-overlay h6 { color: white; font-size: 0.85rem; margin: 0 0 0.1rem; }
.gal-overlay span { color: #93c5fd; font-size: 0.75rem; }

/* ── EMPTY STATES ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
    display: block;
}
.empty-state h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 0.3rem;
}
.empty-state p { color: #94a3b8; font-size: 0.9rem; }
.sec-blue .empty-state i { color: rgba(255,255,255,0.3); }
.sec-blue .empty-state h5 { color: rgba(255,255,255,0.8); }
.sec-blue .empty-state p { color: rgba(255,255,255,0.5); }

/* ── FOOTER ── */
.footer-ja {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
}
.footer-ja h5 {
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.footer-ja a { color: #94a3b8; transition: color 0.25s; }
.footer-ja a:hover { color: #60a5fa; }
.footer-ja ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; line-height: 2.1; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    transition: all 0.25s;
    font-size: 0.9rem;
}
.footer-social a:hover { background: #1e40af; color: white; transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.2rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: #475569;
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim.show { opacity: 1; transform: translateY(0); }
.anim:nth-child(2) { transition-delay: 0.05s; }
.anim:nth-child(3) { transition-delay: 0.1s; }
.anim:nth-child(4) { transition-delay: 0.15s; }
.anim:nth-child(5) { transition-delay: 0.2s; }
.anim:nth-child(6) { transition-delay: 0.25s; }

/* ── MOBILE FILTER PILLS (grupos.php) ── */
.mobile-filters {
    display: none;
    margin-bottom: 1rem;
}
.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.filter-pills-label {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    font-size: 0.8rem;
}
.filter-pills-scroll {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex: 1;
}
.filter-pills-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.filter-pill:hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #eff6ff;
}
.filter-pill.active {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}
.filter-pill.active i { color: white !important; }
.filter-pill i { font-size: 0.72rem; }

/* Desktop sidebar visibility */
.desktop-sidebar { display: block; }

/* ── RESPONSIVE ── */

@media (max-width: 991px) {
    .mobile-filters { display: block; }
    .desktop-sidebar { display: none !important; }

    .navbar-ja .navbar-collapse {
        background: white;
        border-radius: 0 0 14px 14px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        border: 1px solid #e2e8f0;
        border-top: none;
    }
    .navbar-ja .nav-link {
        padding: 0.7rem 1rem !important;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    .navbar-ja .nav-link.active { background: #eff6ff; }
    .btn-nav-cta {
        margin-top: 0.5rem;
        text-align: center;
        display: block !important;
    }
    .hero-section { min-height: auto; padding: 5.5rem 0 2.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
    .hero-stat-num { font-size: 1.6rem; }
    .hero-desc { font-size: 1rem; }
    .py-sec { padding: 3rem 0; }
    .sec-title { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .hero-section { padding: 5rem 0 2rem; }
    .hero-title { font-size: 1.7rem; }
    .hero-actions { flex-direction: column; }
    .btn-ja { width: 100%; justify-content: center; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        text-align: center;
    }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.68rem; }
    .hero-eyebrow { font-size: 0.75rem; padding: 0.3rem 0.7rem; }
    .card-evento { flex-direction: column; }
    .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .disc-pill { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .sec-sub { font-size: 0.88rem; }
    .py-sec { padding: 2.5rem 0; }
    .footer-ja { padding: 2.5rem 0 1rem; }
    .footer-ja .row > div { margin-bottom: 0.5rem; }
    .footer-ja h5 { font-size: 0.95rem; margin-bottom: 0.6rem; }
}

@media (max-width: 575px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .gal-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grupo-img { height: 160px; }
}

