/*
Theme Name: Eventos en Jalisco
Theme URI: https://example.com
Author: Tu Nombre
Author URI: https://example.com
Description: Tema personalizado para un portal de eventos en Jalisco. Incluye tipo de contenido "Eventos" con fecha, lugar, hora y categoría.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eventos-jalisco
*/

:root {
    --primary: #1d52d8;
    --primary-dark: #153eb2;
    --secondary: #e6a100;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.logo span.highlight {
    color: var(--primary);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-left: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 20px;
    color: #0f172a;
    cursor: pointer;
    padding: 6px 4px;
}

/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 80px 24px 100px;
    text-align: center;
    color: #ffffff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero h1 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #facc15;
    display: block;
    font-size: 64px;
}

.hero p {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 36px;
}

/* SEARCH BAR */
.search-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 15px;
    outline: none;
    background: #f8fafc;
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
}

.filter-select {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* QUICK CATEGORIES NAV */
.quick-nav-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.quick-nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    min-width: 90px;
}

.nav-item:hover {
    background: #f1f5f9;
}

.nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #dbeafe;
}

.nav-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

/* SECTIONS */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.see-all {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 22px;
}

.event-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    height: 190px;
    width: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
    line-height: 1.1;
}

.date-badge .day-name {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
}

.date-badge .day-num {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.date-badge .month {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-info {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

.fav-icon {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    line-height: 1;
}

.fav-icon:hover {
    color: #ef4444;
}

/* CITIES GRID */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.city-card {
    position: relative;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.city-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.city-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2;
}

.city-card span {
    position: relative;
    z-index: 3;
}

/* BANNER ORGANIZAR */
.banner-organize {
    background: #eff6ff;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    border: 1px solid #dbeafe;
}

.banner-info {
    max-width: 550px;
}

.banner-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.banner-info p {
    color: #475569;
    font-size: 15px;
    margin-bottom: 24px;
}

/* FOOTER */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 24px 30px;
    font-size: 14px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-col h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.newsletter-box {
    display: flex;
    margin-top: 12px;
}

.newsletter-box input {
    padding: 10px 14px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
}

.newsletter-box button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    font-size: 18px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .site-header { position: sticky; }
    .header-container { position: relative; }
    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 8px 0;
        z-index: 200;
    }
    .main-nav.is-open ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav.is-open ul li a,
    .main-nav.is-open > a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid #f1f5f9;
    }
    .hero h1 { font-size: 36px; }
    .hero h1 span { font-size: 44px; }
    .search-filters { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .banner-organize { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 600px) {
    .search-filters { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}


/* ===================== FICHA DE EVENTO (single-evento.php) ===================== */
/* Estilos basados en el diseño de referencia proporcionado por el cliente. */

.ficha-evento { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.ficha-breadcrumb { font-size: 13px; color: #4e6481; padding: 25px 0; }
.ficha-breadcrumb a { color: #4e6481; }
.ficha-breadcrumb a:hover { color: var(--primary); }
.ficha-breadcrumb b { color: var(--primary); font-weight: 700; }
.ficha-breadcrumb .sep { margin: 0 6px; }

/* HERO */
.ficha-hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 42px; align-items: center; }

.ficha-poster {
    height: 530px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #061b2c, #0b4c78 50%, #030a11);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
    background-size: cover;
    background-position: center;
}
.ficha-poster.has-photo:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.75) 100%);
}
.ficha-poster:not(.has-photo):before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 25%, rgba(84,200,255,0.33), transparent 30%), radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 4%);
}

.ficha-posterText { position: relative; width: 100%; text-align: center; z-index: 1; }
.ficha-posterText h2 { font-size: 55px; line-height: 0.9; margin: 0 0 18px; font-family: 'Playfair Display', Georgia, serif; }
.ficha-posterText strong { color: #ffc400; font-size: 22px; display: block; }
.ficha-posterText p { font-size: 18px; font-weight: 800; margin: 6px 0 0; }
.ficha-tags { display: flex; gap: 8px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }
.ficha-tag { border: 1px solid #1680ff; border-radius: 18px; padding: 7px 12px; font-size: 11px; background: rgba(5,17,29,0.8); color: #fff; font-weight: 700; }

.ficha-datebox { position: absolute; top: 20px; left: 20px; background: #fff; color: #111; border-radius: 8px; padding: 8px 13px; text-align: center; font-weight: 800; z-index: 2; line-height: 1.1; }
.ficha-datebox small { display: block; background: var(--secondary); margin: -8px -13px 5px; padding: 3px; border-radius: 8px 8px 0 0; font-size: 10px; }
.ficha-datebox .fmonth { display: block; font-size: 11px; font-weight: 700; }

.ficha-eyebrow { font-size: 12px; color: var(--primary); font-weight: 800; letter-spacing: 0.5px; }
.ficha-event h1 { font-size: 38px; margin: 15px 0 12px; font-weight: 800; color: #0f172a; line-height: 1.15; }
.ficha-place { color: #45546a; margin-bottom: 22px; font-weight: 600; }
.ficha-facts { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 14px 0; }
.ficha-fact { padding: 8px 0; font-size: 15px; color: #1e293b; }
.ficha-fact a { color: var(--primary); font-weight: 700; }
.ficha-ico { color: var(--primary); display: inline-block; width: 24px; text-align: center; }
.ficha-intro { line-height: 1.7; font-size: 14px; margin: 25px 0; color: #334155; }
.ficha-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.ficha-buttons .btn { background: var(--primary); color: #fff; padding: 14px 22px; border-radius: 7px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.ficha-buttons .btn.outline { background: #fff; color: var(--text-dark); border: 1px solid #cfd7e3; }

/* CONTENT GRID */
.ficha-content { display: grid; grid-template-columns: 1.65fr 0.85fr; gap: 25px; margin-top: 42px; }
.ficha-card { border: 1px solid var(--border-color); border-radius: 10px; padding: 26px; background: #fff; box-shadow: 0 2px 7px rgba(20,33,61,0.04); margin-bottom: 20px; }
.ficha-card h2, .ficha-card h3 { margin-top: 0; color: #0f172a; }
.ficha-under:after { content: ""; display: block; width: 38px; height: 3px; background: var(--secondary); margin-top: 8px; }
.ficha-card p { font-size: 14px; line-height: 1.7; color: #334155; }

.ficha-featurebar { display: grid; grid-template-columns: repeat(4, 1fr); background: #fafcff; border: 1px solid var(--border-color); border-radius: 8px; margin: 22px 0; padding: 18px 8px; text-align: center; }
.ficha-featurebar div { font-size: 12px; padding: 5px; border-right: 1px solid var(--border-color); color: #334155; font-weight: 600; }
.ficha-featurebar div:last-child { border: 0; }
.ficha-featurebar i { display: block; font-size: 22px; color: var(--primary); margin-bottom: 7px; }

.ficha-info { display: grid; grid-template-columns: 105px 1fr; gap: 12px; font-size: 13px; margin-top: 20px; }
.ficha-info b { color: #14213d; }
.ficha-info a { color: var(--primary); font-weight: 700; }

.ficha-map { border-radius: 8px; overflow: hidden; margin-top: 22px; border: 1px solid var(--border-color); }
.ficha-map iframe { width: 100%; height: 220px; border: 0; display: block; }
.ficha-map-placeholder {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #eaf0e8;
    background-image: linear-gradient(30deg,#d3e2d0 12%,transparent 12.5%,transparent 87%,#d3e2d0 87.5%), linear-gradient(150deg,#d3e2d0 12%,transparent 12.5%,transparent 87%,#d3e2d0 87.5%);
    background-size: 80px 140px;
}
.ficha-pin { position: absolute; left: 55%; top: 42%; font-size: 34px; }
.ficha-maplabel { position: absolute; left: 20px; top: 20px; background: #fff; padding: 13px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-size: 12px; line-height: 1.5; }

/* ASIDE */
.ficha-quick { display: grid; grid-template-columns: 110px 1fr; gap: 14px 12px; font-size: 13px; }
.ficha-quick b { color: #14213d; }
.ficha-share { display: flex; gap: 12px; }
.ficha-circle { width: 38px; height: 38px; border-radius: 50%; background: #eef4fc; display: grid; place-items: center; font-weight: 800; color: var(--primary); font-size: 15px; }
.ficha-circle:hover { background: var(--primary); color: #fff; }

.ficha-promo { background: #f1f6ff; padding: 30px; text-align: left; }
.ficha-promo-icon { font-size: 52px; }
.ficha-promo h2 { font-size: 19px; font-weight: 800; margin: 10px 0 8px; }
.ficha-promo p { margin-bottom: 16px; }
.ficha-promo .btn { background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 7px; font-weight: 700; font-size: 14px; display: inline-block; }

/* RELACIONADOS */
.ficha-related { margin: 30px auto 45px; }
.ficha-sectiontitle { display: flex; justify-content: space-between; align-items: center; }
.ficha-eventgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.ficha-mini { border: 1px solid var(--border-color); border-radius: 9px; overflow: hidden; box-shadow: 0 2px 7px rgba(0,0,0,0.04); background: #fff; }
.ficha-mini a { display: block; }
.ficha-miniimg { height: 135px; position: relative; background-size: cover; background-position: center; background-color: #06203e; }
.ficha-minidate { position: absolute; top: 10px; left: 10px; background: #fff; padding: 7px; border-radius: 6px; font-weight: 800; font-size: 12px; text-align: center; line-height: 1.1; }
.ficha-minibody { padding: 15px; }
.ficha-minibody small { color: var(--primary); font-weight: 800; font-size: 11px; }
.ficha-minibody h4 { margin: 8px 0; font-size: 15px; color: #0f172a; }
.ficha-minibody p { font-size: 12px; color: var(--text-muted); margin: 5px 0; }

@media (max-width: 800px) {
    .ficha-hero, .ficha-content { grid-template-columns: 1fr; }
    .ficha-poster { height: 440px; }
    .ficha-eventgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .ficha-event h1 { font-size: 30px; }
    .ficha-eventgrid { grid-template-columns: 1fr; }
    .ficha-featurebar { grid-template-columns: 1fr 1fr; }
    .ficha-posterText h2 { font-size: 40px; }
    .ficha-info { grid-template-columns: 1fr; }
    .ficha-quick { grid-template-columns: 1fr; }
}

/* ===================== PÁGINA DE CATEGORÍA (taxonomy-categoria_evento.php) ===================== */

.catpage-hero { height: 190px; position: relative; color: #fff; overflow: hidden; background: linear-gradient(90deg,#071d3b,#163d70 45%,#194f88 70%,#07182d); }
.catpage-hero:before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 62% 12%, rgba(104,184,255,0.6), transparent 18%), radial-gradient(circle at 78% 30%, rgba(197,76,206,0.33), transparent 16%), linear-gradient(180deg, transparent, rgba(2,9,20,0.56)); }
.catpage-hero:after { content:""; position:absolute; left:0; right:0; bottom:0; height:65px; background: linear-gradient(165deg, transparent 40%, rgba(2,8,23,0.8) 42%); }
.catpage-hero-inner { max-width:1280px; margin:0 auto; padding:0 24px; height:100%; display:flex; align-items:center; position:relative; z-index:2; }
.catpage-crumb { font-size:11px; margin-bottom:15px; }
.catpage-crumb a { color:#fff; opacity:0.85; }
.catpage-hero h1 { font-size:37px; margin:0 0 8px; }
.catpage-hero p { font-size:15px; line-height:1.5; margin:0; max-width:470px; opacity:0.92; }

.catpage-layout { max-width:1280px; margin:-25px auto 0; padding:0 24px 48px; position:relative; z-index:4; display:grid; grid-template-columns:1fr 330px; gap:34px; }

.catpage-searchbox { background:#fff; border:1px solid var(--border-color); border-radius:9px; box-shadow:0 5px 18px rgba(0,0,0,0.06); padding:14px 18px; margin-bottom:18px; }
.catpage-query { height:39px; border:1px solid #d7dee8; border-radius:6px; display:flex; align-items:center; padding:0 14px; margin-bottom:10px; gap:8px; color:#7a8aa1; }
.catpage-query input { border:0; outline:0; width:100%; font-size:13px; }
.catpage-filters { display:grid; grid-template-columns:1fr 1.25fr 1.35fr 120px; gap:12px; }
.catpage-filters select { height:37px; border:1px solid #d7dee8; border-radius:6px; padding:0 12px; background:#fff; color:#33435b; font-size:13px; }
.catpage-filters .btn { padding:0; border:0; background:var(--primary); color:#fff; border-radius:6px; font-weight:750; cursor:pointer; font-size:13px; }
.catpage-chip { display:flex; align-items:center; justify-content:space-between; height:37px; border-radius:6px; padding:0 12px; background:#f2f6ff; color:var(--primary); font-weight:700; font-size:13px; }
.catpage-chip a { color: var(--primary); font-weight: 800; }

.catpage-toolbar { display:flex; justify-content:space-between; align-items:center; margin:8px 0 13px; font-size:12px; flex-wrap:wrap; gap:10px; }
.catpage-sort { display:flex; align-items:center; gap:8px; color:var(--text-muted); }
.catpage-sort select { height:32px; border:1px solid #d7dee8; border-radius:6px; padding:0 8px; }

.catpage-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:17px; }
.catpage-card { border:1px solid var(--border-color); border-radius:8px; overflow:hidden; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.05); transition: transform .2s, box-shadow .2s; }
.catpage-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.catpage-photo { height:125px; position:relative; background:linear-gradient(145deg,#07192b,#237ba8); background-size:cover; background-position:center; }
.catpage-date { position:absolute; top:10px; left:10px; background:#fff; border-radius:6px; padding:5px 8px; text-align:center; font-size:10px; font-weight:800; box-shadow:0 2px 5px rgba(0,0,0,0.12); line-height:1.2; }
.catpage-date i { display:block; font-style:normal; background:var(--secondary); margin:-5px -8px 3px; border-radius:6px 6px 0 0; padding:2px; }
.catpage-body { padding:12px; }
.catpage-cat { font-size:9px; color:var(--primary); font-weight:800; }
.catpage-body h3 { font-size:13px; margin:7px 0 10px; min-height:30px; color:#0f172a; }
.catpage-meta { font-size:10px; color:var(--text-muted); line-height:1.8; }
.catpage-fav { float:right; font-size:15px; color:#56708f; background:none; border:0; padding:0; cursor:pointer; line-height:1; }
.js-fav-toggle.is-fav { color:#ef4444 !important; }
.catpage-load { display:block; margin:22px auto 10px; padding:10px 35px; border:1px solid #cbd6e4; background:#fff; border-radius:6px; color:#33435b; font-weight:650; cursor:pointer; text-align:center; width: fit-content; }

.catpage-sidebar { padding-top:10px; }
.catpage-popular { border:1px solid var(--border-color); border-radius:9px; background:#fff; padding:20px; margin-bottom:18px; }
.catpage-popular h2 { font-size:18px; margin:0 0 15px; color:#0f172a; }
.catpage-under:after { content:""; display:block; width:35px; height:3px; background:var(--secondary); margin-top:7px; }
.catpage-pop { display:grid; grid-template-columns:70px 1fr 12px; gap:10px; padding:10px 0; border-bottom:1px solid var(--border-color); align-items:center; }
.catpage-pop:last-child { border:0; }
.catpage-thumb { height:52px; border-radius:6px; background:linear-gradient(145deg,#0c1e2d,#2d6b8e); background-size:cover; background-position:center; position:relative; }
.catpage-ptext small { font-size:9px; color:var(--primary); font-weight:800; }
.catpage-ptext b { display:block; font-size:12px; margin:4px 0; font-weight:700; color:#0f172a; }
.catpage-ptext span { font-size:10px; color:var(--text-muted); }
.catpage-arrow { color:#6d809a; }

.catpage-promo { border-radius:9px; background:#f0f6ff; padding:23px; display:grid; grid-template-columns:50px 1fr; gap:14px; align-items:center; }
.catpage-promoicon { font-size:40px; }
.catpage-promo h3 { font-size:16px; margin:0 0 6px; color:#0f172a; }
.catpage-promo p { font-size:11px; line-height:1.5; color:#475569; margin-bottom:10px; }
.catpage-promo .btn { font-size:12px; padding:9px 13px; background:var(--primary); color:#fff; border-radius:6px; font-weight:700; display:inline-block; }

@media (max-width: 950px) {
    .catpage-layout { grid-template-columns: 1fr; margin-top: 20px; }
    .catpage-sidebar { padding-top:0; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
    .catpage-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 580px) {
    .catpage-hero h1 { font-size: 30px; }
    .catpage-filters { grid-template-columns: 1fr; }
    .catpage-cards, .catpage-sidebar { grid-template-columns: 1fr; }
    .catpage-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ===================== PÁGINA "MUNICIPIOS" (template-municipios.php) ===================== */

.mun-hero { height:190px; position:relative; color:#fff; background:linear-gradient(90deg,#173b4e,#6b7f59 45%,#426c91); overflow:hidden; }
.mun-hero:before { content:""; position:absolute; inset:0; background:
    linear-gradient(90deg, rgba(6,23,44,0.6), rgba(7,24,45,0.25)),
    radial-gradient(circle at 15% 70%, rgba(93,141,113,0.33) 0 15%, transparent 16%),
    radial-gradient(circle at 65% 35%, rgba(213,183,109,0.27) 0 18%, transparent 19%); }
.mun-hero-inner { max-width:1280px; margin:0 auto; padding:0 24px; position:relative; height:100%; display:flex; align-items:center; z-index:2; }
.mun-hero h1 { font-size:38px; margin:0 0 10px; }
.mun-hero p { font-size:16px; font-weight:600; margin:0; opacity:0.95; }

.mun-layout { max-width:1280px; margin:-18px auto 0; padding:0 24px 48px; position:relative; z-index:3; display:grid; grid-template-columns:1fr 355px; gap:35px; }

.mun-search { display:flex; align-items:center; gap:10px; height:72px; background:#fff; border:1px solid var(--border-color); border-radius:9px; box-shadow:0 5px 18px rgba(0,0,0,0.07); padding:15px; margin-bottom:24px; color:#7a8aa1; }
.mun-search input { flex:1; height:40px; border:1px solid #d7dee8; border-radius:6px; padding:0 15px; font-size:13px; }

.mun-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.mun-card { height:155px; border-radius:9px; overflow:hidden; position:relative; color:#fff; background:linear-gradient(145deg,#5d8fb7,#315c73); box-shadow:0 3px 10px rgba(0,0,0,0.06); display:block; }
.mun-grid .mun-card:nth-child(8n+2) { background:linear-gradient(145deg,#a99b7c,#466a7d); }
.mun-grid .mun-card:nth-child(8n+3) { background:linear-gradient(145deg,#4b9bd1,#176078); }
.mun-grid .mun-card:nth-child(8n+4) { background:linear-gradient(145deg,#86a7bd,#667d6c); }
.mun-grid .mun-card:nth-child(8n+5) { background:linear-gradient(145deg,#547c8d,#6e784c); }
.mun-grid .mun-card:nth-child(8n+6) { background:linear-gradient(145deg,#7197ad,#6e7e7e); }
.mun-grid .mun-card:nth-child(8n+7) { background:linear-gradient(145deg,#4c87a7,#536c59); }
.mun-grid .mun-card:nth-child(8n+8) { background:linear-gradient(145deg,#5d9bc2,#59734f); }
.mun-card:after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent, rgba(6,17,29,0.91)); }
.mun-sky { position:absolute; inset:0; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.33) 0 3%, transparent 4%), linear-gradient(175deg, transparent 55%, rgba(30,59,45,0.55) 56%); }
.mun-info { position:absolute; left:14px; bottom:13px; z-index:2; }
.mun-info b { display:block; font-size:16px; margin-bottom:7px; }
.mun-info span { font-size:11px; }
.mun-extra { display:none; }
.mun-more { display:block; margin:26px auto 10px; border:1px solid #ccd6e4; background:#fff; padding:11px 38px; border-radius:6px; font-weight:650; color:#243149; cursor:pointer; }

@media (max-width: 900px) {
    .mun-layout { grid-template-columns: 1fr; margin-top: 20px; }
    .mun-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 550px) {
    .mun-hero { height: 155px; }
    .mun-hero h1 { font-size: 31px; }
    .mun-grid { grid-template-columns: 1fr; }
}

/* Variante del héroe de categoría, con tono verde/azul, para taxonomy-ciudad.php */
.catpage-hero.catpage-hero-ciudad { background: linear-gradient(90deg,#173b4e,#6b7f59 45%,#426c91); }
.catpage-hero.catpage-hero-ciudad:before { background:
    linear-gradient(90deg, rgba(6,23,44,0.6), rgba(7,24,45,0.25)),
    radial-gradient(circle at 15% 70%, rgba(93,141,113,0.33) 0 15%, transparent 16%),
    radial-gradient(circle at 65% 35%, rgba(213,183,109,0.27) 0 18%, transparent 19%); }

/* Variante del héroe "hoy", tono cálido atardecer, para template-eventos-hoy.php */
.catpage-hero.catpage-hero-hoy { height:135px; background: linear-gradient(90deg,#214a40,#79582f 33%,#315f6e 67%,#6b4c24); }
.catpage-hero.catpage-hero-hoy:before { background:
    linear-gradient(90deg, rgba(7,24,45,0.44), rgba(7,24,45,0.15)),
    radial-gradient(circle at 14% 30%, rgba(255,255,255,0.2) 0 8%, transparent 9%),
    linear-gradient(165deg, transparent 58%, rgba(23,62,45,0.6) 59%); }
.catpage-hero.catpage-hero-hoy h1 { font-size:32px; }

/* ===================== PÁGINA "PUBLICA TU EVENTO" (template-publica-evento.php) ===================== */

.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }

.pub-hero { display:grid; grid-template-columns:1fr 1fr; align-items:center; min-height:190px; padding:24px 0 22px; gap: 20px; }
.pub-hero h1 { font-size:38px; line-height:1.1; margin:0 0 12px; color:#0f172a; }
.pub-hero h1 em { display:block; color:var(--primary); font-family:'Playfair Display', Georgia, serif; font-style: italic; font-size:43px; font-weight:600; }
.pub-hero p { font-size:15px; line-height:1.6; max-width:520px; color:#475569; }

.pub-illustration { height:170px; position:relative; display:flex; align-items:center; justify-content:center; gap:42px; }
.pub-calendar { width:145px; height:125px; border:3px solid #0b1830; border-radius:14px; background:#fff; position:relative; padding:42px 16px 12px; }
.pub-calendar:before { content:""; position:absolute; left:-3px; right:-3px; top:-3px; height:39px; background:var(--primary); border:3px solid #0b1830; border-radius:14px 14px 0 0; }
.pub-rings { position:absolute; top:-15px; left:28px; right:28px; display:flex; justify-content:space-between; z-index:2; }
.pub-rings i { width:10px; height:30px; border:3px solid #0b1830; background:#8bc2ff; border-radius:5px; display:block; }
.pub-squares { display:grid; grid-template-columns:repeat(3,20px); gap:8px; }
.pub-squares i { height:18px; background:#dce7f7; border-radius:3px; display:block; }
.pub-star { position:absolute; font-size:40px; color:var(--primary); right:15px; bottom:10px; }
.pub-megaphone { font-size:90px; transform:rotate(-10deg); }
.pub-spark { position:absolute; color:var(--secondary); font-size:27px; }
.pub-s1 { top:12px; left:20%; }
.pub-s2 { right:12%; top:8px; color:var(--primary); }

.pub-formbox { border:1px solid var(--border-color); border-radius:10px; padding:28px; display:grid; grid-template-columns:1fr 290px; gap:28px; box-shadow:0 2px 9px rgba(0,0,0,0.03); }
.pub-formbox h2, .pub-tips h2 { font-size:17px; margin:0 0 22px; color:#0f172a; }
.pub-underline:after { content:""; display:block; width:34px; height:3px; background:var(--secondary); margin-top:8px; }

.pub-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:16px 18px; }
.pub-field { grid-column: span 3; }
.pub-field.pub-full { grid-column: 1/-1; }
.pub-field.pub-third { grid-column: span 2; }
.pub-field label { display:block; font-size:12px; font-weight:750; margin-bottom:7px; color:#334155; }
.pub-field input, .pub-field select, .pub-field textarea {
    width:100%; border:1px solid #cfd8e5; border-radius:6px; padding:11px 12px;
    font:inherit; font-size:13px; color:#33435b; background:#fff;
}
.pub-field textarea { height:100px; resize:vertical; }
.pub-required { color: var(--primary); }

.pub-upload { grid-column: 1/-1; border:1px dashed #aebed4; border-radius:7px; padding:17px; text-align:center; background:#fafcff; font-size:12px; color:#64748b; cursor:pointer; }
.pub-upload b { color: var(--primary); }
.pub-upload-filename { display:block; margin-top:6px; font-weight:700; color:#334155; }

.pub-tips { background:linear-gradient(145deg,#f2f7ff,#edf4ff); border-radius:8px; padding:24px 20px; align-self:start; }
.pub-tip { display:grid; grid-template-columns:38px 1fr; gap:10px; margin:18px 0; }
.pub-tipicon { font-size:22px; color:var(--primary); }
.pub-tip b { font-size:12px; color:#0f172a; }
.pub-tip p { font-size:11px; line-height:1.5; margin:4px 0; color:#35445a; }
.pub-tips .btn { width:100%; margin-top:8px; border:0; cursor:pointer; }
.pub-review { text-align:center; font-size:10px; margin:10px 0 0; color:#526175; }

.pub-alert { border-radius:8px; padding:16px 18px; font-size:14px; margin-bottom:24px; }
.pub-alert.ok { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; }
.pub-alert.error { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.pub-alert ul { margin:8px 0 0; padding-left:18px; }

@media (max-width: 850px) {
    .pub-hero { grid-template-columns: 1fr; padding: 20px 0; }
    .pub-illustration { display: none; }
    .pub-formbox { grid-template-columns: 1fr; }
    .pub-field, .pub-field.pub-third { grid-column: 1/-1; }
}
@media (max-width: 520px) {
    .pub-hero h1 { font-size: 31px; }
    .pub-hero h1 em { font-size: 35px; }
    .pub-grid { grid-template-columns: 1fr; }
    .pub-formbox { padding: 18px; }
}

/* ===================== PÁGINA "CALENDARIO" (template-calendario.php) ===================== */

.cal-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 24px 48px; }

.cal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.cal-header h1 { font-size:26px; font-weight:800; color:#0f172a; text-transform:capitalize; margin:0; }
.cal-nav { display:flex; gap:8px; align-items:center; }
.cal-nav-btn { background:#fff; border:1px solid var(--border-color); border-radius:8px; padding:8px 16px; font-weight:700; color:#334155; cursor:pointer; }
.cal-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.cal-nav-btn.cal-today { color:var(--primary); border-color:var(--primary); }

.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.cal-weekdays { margin-bottom:6px; }
.cal-weekdays div { text-align:center; font-size:12px; font-weight:800; color:var(--text-muted); text-transform:uppercase; padding:8px 0; }
.cal-days { gap:6px; }

.cal-day { min-height:110px; border:1px solid var(--border-color); border-radius:8px; padding:8px; background:#fff; display:flex; flex-direction:column; gap:4px; overflow:hidden; }
.cal-day-empty { background:transparent; border-color:transparent; }
.cal-day-num { font-size:13px; font-weight:700; color:#334155; }
.cal-day-hoy { border-color:var(--primary); box-shadow:0 0 0 1px var(--primary) inset; }
.cal-day-hoy .cal-day-num { color:var(--primary); }

.cal-event-chip {
    display:block; font-size:11px; font-weight:600; background:#eff6ff; color:var(--primary);
    border-radius:5px; padding:3px 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cal-event-chip:hover { background:var(--primary); color:#fff; }
.cal-more { font-size:10px; color:var(--text-muted); font-weight:700; padding-left:2px; }

.cal-legend { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-muted); margin-top:16px; }

@media (max-width: 800px) {
    .cal-day { min-height:80px; padding:6px; }
    .cal-event-chip { font-size:9px; padding:2px 4px; }
}
@media (max-width: 600px) {
    .cal-header h1 { font-size:20px; }
    .cal-day { min-height:52px; padding:4px; }
    .cal-day-num { font-size:11px; }
    .cal-event-chip { display:none; }
    .cal-day.has-events .cal-day-num:after { content:"•"; color:var(--primary); margin-left:3px; font-size:14px; }
}

/* ===================== SECCIONES DESTACADAS DE LA PORTADA ===================== */

.home-band {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 44px 0;
    margin-bottom: 48px;
}

.home-band-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-band-amber {
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
}

.home-band-indigo {
    background: #eef2ff;
    border-top: 1px solid #c7d2fe;
    border-bottom: 1px solid #c7d2fe;
}

.section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-right: 10px;
    font-size: 15px;
    vertical-align: middle;
}

.section-title-icon.amber { background: #fef3c7; color: #b45309; }
.section-title-icon.indigo { background: #e0e7ff; color: #4338ca; }

/* ===================== EXPLORA POR CATEGORÍA (portada) ===================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    background: linear-gradient(145deg, var(--primary), #0f2a5c);
}
.category-card:nth-child(6n+2) { background: linear-gradient(145deg,#7c3aed,#1e1b4b); }
.category-card:nth-child(6n+3) { background: linear-gradient(145deg,#059669,#022c22); }
.category-card:nth-child(6n+4) { background: linear-gradient(145deg,#dc2626,#450a0a); }
.category-card:nth-child(6n+5) { background: linear-gradient(145deg,#d97706,#451a03); }
.category-card:nth-child(6n+6) { background: linear-gradient(145deg,#0891b2,#083344); }

.category-card img { position:absolute; width:100%; height:100%; object-fit:cover; z-index:1; }
.category-card .overlay { position:absolute; inset:0; background: rgba(0,0,0,0.32); z-index:2; }
.category-card span {
    position: relative; z-index: 3; display: flex; flex-direction: column;
    align-items: center; gap: 6px; text-align: center; padding: 0 8px;
}
.category-card .cat-icon-fallback { font-size: 24px; }

/* ===================== COMENTARIOS (comments.php) ===================== */

.ej-comments { margin-top: 8px; }

.ej-comments-title {
    font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 20px;
}

.ej-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.ej-comment-list .children { list-style: none; margin: 16px 0 0 44px; padding: 0; }

.ej-comment-list .comment-body {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #fff;
}

.ej-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ej-comment-list .comment-author .avatar {
    border-radius: 50%;
    display: block;
}

.ej-comment-list .comment-author .fn {
    font-weight: 700;
    font-style: normal;
    color: #0f172a;
    font-size: 14px;
}

.ej-comment-list .comment-metadata {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ej-comment-list .comment-metadata a { color: inherit; }

.ej-comment-list .comment-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 8px;
}

.ej-comment-list .reply a {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.ej-comment-list .comment-awaiting-moderation {
    display: block;
    font-size: 12px;
    font-style: italic;
    color: #b45309;
    background: #fffbeb;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
}

.ej-comments-closed { color: var(--text-muted); font-size: 14px; }

/* Formulario de comentarios (comment_form de WordPress) */
#commentform { margin-top: 12px; }
#commentform p { margin-bottom: 16px; }
#commentform label { display:block; font-size:13px; font-weight:700; color:#334155; margin-bottom:6px; }
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    border: 1px solid #cfd8e5;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    font-size: 13px;
    color: #33435b;
    background: #fff;
}
#commentform .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
#commentform .comment-form-cookies-consent label { margin-bottom: 0; font-weight: 500; }
#commentform .form-submit input[type="submit"] {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}
#commentform .form-submit input[type="submit"]:hover { background: var(--primary-dark); }
#commentform .logged-in-as { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
#commentform .logged-in-as a { color: var(--primary); font-weight: 600; }
