/*
 * Hojas de estilo principales para el tema Fan Music Fest.
 *
 * Este archivo reproduce la mayor parte del CSS proporcionado por el usuario
 * para el diseño de la página de festivales. Se incluyen reglas para el
 * encabezado, barra lateral, lista de festivales, pie de página y
 * responsividad. Algunas clases se utilizan también fuera de la plantilla
 * de festivales (por ejemplo, en index.php), por lo que se han añadido
 * selectores generales como .post-item.
 */

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

body {
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    background: #2B211B;
    background-attachment: fixed;
    min-height: 100vh;
    color: #EFE8D8;
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

/* Header cuando hace scroll */
.header.scrolled {
    background: rgba(43, 33, 27, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(176, 137, 62, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #EFE8D8;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(176, 137, 62, 0.2), transparent);
    transition: left 0.5s ease;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    background: rgba(176, 137, 62, 0.1);
    transform: translateY(-2px);
}

.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(176, 137, 62, 0.6);
}

.logo:hover .logo-text {
    color: #B0893E;
    transform: translateX(5px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #B0893E;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(176, 137, 62, 0.4);
    transition: all 0.5s ease;
    border: 2px solid #B0893E;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Mejorar contraste del header transparente */
.header:not(.scrolled) .logo-text,
.header:not(.scrolled) .search-bar input,
.header:not(.scrolled) .social-icons a {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Nuevo contenedor para las redes sociales con fondo claro redondo */
.social-container {
    background: #7A5230;
    border-radius: 25px;
    padding: 8px 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(176, 137, 62, 0.2);
}

.social-container:hover {
    box-shadow: 0 6px 20px rgba(176, 137, 62, 0.3);
    transform: translateY(-1px);
    border-color: rgba(176, 137, 62, 0.4);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #B0893E;
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.3s;
}

.social-icons a:hover {
    opacity: 1;
    color: #EFE8D8;
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    align-items: center;
    background: #7A5230;
    border-radius: 25px;
    padding: 8px 15px;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(176, 137, 62, 0.2);
}

.search-bar:hover {
    box-shadow: 0 6px 20px rgba(176, 137, 62, 0.3);
    transform: translateY(-1px);
    border-color: rgba(176, 137, 62, 0.4);
}

.search-bar:focus-within {
    box-shadow: 0 8px 25px rgba(176, 137, 62, 0.4);
    transform: translateY(-2px);
    border-color: #B0893E;
}

.search-bar i {
    font-size: 16px;
    opacity: 0.8;
    color: #B0893E;
    transition: opacity 0.3s ease;
}

.search-bar:hover i {
    opacity: 1;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #EFE8D8;
    font-size: 14px;
    width: 200px;
}

.search-bar input::placeholder {
    color: #B0893E;
    opacity: 0.6;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}


/* Hero Section */
.hero-home {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, rgba(43, 33, 27, 0.7) 0%, rgba(122, 82, 48, 0.8) 100%),
                url('../images/imagen_fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

/* Si quieres usar una imagen real, descomenta y ajusta la siguiente línea */
/* .hero-home {
    background-image: url('../images/hero-bg.jpg');
} */

.hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(43, 33, 27, 0.4), rgba(43, 33, 27, 0.7));
    padding: 40px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #EFE8D8;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: #B0893E;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-button {
    display: inline-block;
    background: #B0893E;
    color: #2B211B;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(176, 137, 62, 0.4);
    border: 2px solid #B0893E;
}

.hero-button:hover {
    background: #9A7535;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(176, 137, 62, 0.6);
}

.hero-button:active {
    transform: translateY(-1px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll span {
    font-size: 32px;
    color: #B0893E;
    opacity: 0.8;
    display: block;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Main Content */
.main-content {
    display: flex;
    padding: 40px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Añadir padding-top a páginas sin hero (para el header fijo) */
body:not(.home):not(.blog) .main-content {
    padding-top: 120px;
}

/* En la home, el main-content NO necesita padding extra porque el hero ya tiene altura */
.home .main-content {
    padding-top: 40px;
}

/* Left Sidebar */
.sidebar {
    width: 350px;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.page-title p {
    opacity: 0.8;
    font-size: 14px;
}

/* Calendar */
.calendar {
    background: #7A5230;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(176, 137, 62, 0.3);
}

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

.calendar-nav {
    background: rgba(176, 137, 62, 0.1);
    border: 1px solid rgba(176, 137, 62, 0.3);
    border-radius: 50%;
    color: #B0893E;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.calendar-nav:hover {
    opacity: 1;
    background: rgba(176, 137, 62, 0.2);
    border-color: #B0893E;
    transform: scale(1.1);
}

.calendar-month {
    font-weight: bold;
    font-size: 16px;
}

.calendar-year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(176, 137, 62, 0.1);
    border-radius: 8px;
}

.calendar-year-selector label {
    font-size: 14px;
    font-weight: bold;
    opacity: 0.9;
}

.calendar-year-selector select {
    background: #6B4226;
    border: 1px solid rgba(176, 137, 62, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    color: #EFE8D8;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-year-selector select:hover {
    background: #8D5F38;
    border-color: rgba(176, 137, 62, 0.5);
}

.calendar-year-selector select:focus {
    outline: none;
    border-color: #B0893E;
    box-shadow: 0 0 0 2px rgba(176, 137, 62, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-header {
    font-size: 12px;
    opacity: 0.7;
    padding: 8px 0;
    font-weight: bold;
}

.calendar-day {
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.calendar-day:hover {
    background: rgba(176, 137, 62, 0.2);
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(135deg, #B0893E 0%, #9A7535 100%);
    color: #2B211B;
    font-weight: bold;
    border-radius: 50% !important;
    border: 2px solid #EFE8D8;
    box-shadow: 0 0 12px rgba(176, 137, 62, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 50%;
    border: 2px solid rgba(176, 137, 62, 0.3);
    pointer-events: none;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.calendar-day.today:hover {
    background: linear-gradient(135deg, #9A7535 0%, #B0893E 100%);
    transform: scale(1.1);
}

.calendar-day.active {
    background: #B0893E;
    color: #2B211B;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(176, 137, 62, 0.5);
}

.calendar-day.week-selected {
    background: rgba(176, 137, 62, 0.5);
    color: #EFE8D8;
    font-weight: bold;
    border: 2px solid #B0893E;
}

.calendar-day.week-selected:hover {
    background: rgba(176, 137, 62, 0.6);
    transform: scale(1.05);
}

/* Día de hoy cuando está en la semana seleccionada */
.calendar-day.today.week-selected {
    background: linear-gradient(135deg, #B0893E 0%, #9A7535 100%);
    color: #2B211B;
    border-radius: 50% !important;
    border: 3px solid #EFE8D8;
    box-shadow: 0 0 16px rgba(176, 137, 62, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.other-month.week-selected {
    opacity: 0.5;
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: bold;
    opacity: 0.9;
}

.filter-select {
    background: #7A5230;
    border: 1px solid rgba(176, 137, 62, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    color: #EFE8D8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    background: #8D5F38;
    border-color: rgba(176, 137, 62, 0.5);
}

.filter-select:focus {
    outline: none;
    background: #8D5F38;
    border-color: #B0893E;
}

.filter-select option {
    background: #7A5230;
    color: #EFE8D8;
}

.filter-button {
    background: #B0893E;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: #2B211B;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(176, 137, 62, 0.4);
}

.filter-button:hover {
    background: #9A7535;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 137, 62, 0.6);
}

.filter-button:active {
    transform: translateY(0);
}

/* Festival List */
.festival-list {
    flex: 1;
}

.festival-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.festival-header > div {
    flex: 1;
}

.festival-header h2 {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 5px 0;
}

.order-filter {
    background: #7A5230;
    border: 1px solid rgba(176, 137, 62, 0.3);
    border-radius: 8px;
    padding: 8px 15px;
    color: #EFE8D8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-filter:hover {
    border-color: rgba(176, 137, 62, 0.5);
    background: #8D5F38;
}

.festival-item {
    background: #7A5230;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(176, 137, 62, 0.2);
}

.festival-item:hover {
    background: #8D5F38;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(176, 137, 62, 0.3);
    border-color: rgba(176, 137, 62, 0.4);
}

.festival-item > img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid rgba(176, 137, 62, 0.3);
}

.festival-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #B0893E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(176, 137, 62, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #B0893E;
}

.festival-item:hover .festival-image {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(176, 137, 62, 0.5);
}

.festival-info {
    flex: 1;
}

.festival-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.festival-date {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.festival-location {
    font-size: 12px;
    opacity: 0.7;
}

.festival-genre {
    background: rgba(176, 137, 62, 0.15);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    margin-right: 10px;
    font-weight: 500;
    border: 1px solid rgba(176, 137, 62, 0.3);
    transition: all 0.3s ease;
    color: #B0893E;
}

.festival-item:hover .festival-genre {
    background: rgba(176, 137, 62, 0.25);
    border-color: rgba(176, 137, 62, 0.5);
}

.festival-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(176, 137, 62, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagination-dot:hover {
    background: rgba(176, 137, 62, 0.6);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: #B0893E;
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(176, 137, 62, 0.5);
}

/* News Section */
.news-section {
    background: linear-gradient(135deg, #2B211B 0%, #3D3228 100%);
    padding: 80px 40px;
    margin-top: 0;
    position: relative;
}

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

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-title {
    font-size: 42px;
    font-weight: 700;
    color: #EFE8D8;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.news-subtitle {
    font-size: 18px;
    color: #B0893E;
    opacity: 0.9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #7A5230;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(176, 137, 62, 0.2);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(176, 137, 62, 0.4);
    border-color: rgba(176, 137, 62, 0.4);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #8D5F38;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image-placeholder {
    background: linear-gradient(135deg, #8D5F38 0%, #7A5230 100%);
}

.news-image-placeholder span {
    font-size: 48px;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.news-date {
    color: #B0893E;
    font-weight: 500;
}

.news-date i {
    margin-right: 5px;
}

.news-category {
    background: rgba(176, 137, 62, 0.2);
    color: #B0893E;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid rgba(176, 137, 62, 0.3);
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-title a {
    color: #EFE8D8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #B0893E;
}

.news-excerpt {
    color: #EFE8D8;
    opacity: 0.85;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-read-more {
    color: #B0893E;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.news-read-more:hover {
    color: #EFE8D8;
    transform: translateX(5px);
}

.news-empty {
    text-align: center;
    color: #EFE8D8;
    opacity: 0.7;
    padding: 60px 20px;
    font-size: 18px;
    grid-column: 1 / -1;
}

.news-footer {
    text-align: center;
    margin-top: 20px;
}

.news-view-all {
    display: inline-block;
    background: #B0893E;
    color: #2B211B;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(176, 137, 62, 0.3);
    border: 2px solid #B0893E;
}

.news-view-all:hover {
    background: #9A7535;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 137, 62, 0.5);
}

/* News Archive Cards (unified style for both /news/ and homepage) */
.news-archive-card-link-wrapper {
    text-decoration: none;
    display: block;
}

.news-archive-card {
    background: rgba(43, 33, 27, 0.6);
    border: 1px solid rgba(176, 137, 62, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-archive-card-link-wrapper:hover .news-archive-card {
    transform: translateY(-8px);
    border-color: rgba(176, 137, 62, 0.5);
    box-shadow: 0 12px 40px rgba(176, 137, 62, 0.3);
}

.news-archive-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: rgba(176, 137, 62, 0.1);
}

.news-archive-card-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, rgba(176, 137, 62, 0.2), rgba(176, 137, 62, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-archive-card-image-placeholder i {
    font-size: 64px;
    color: rgba(176, 137, 62, 0.3);
}

.news-badge-auto {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #B0893E, #D4A853);
    color: #2B211B;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-badge-auto i {
    margin-right: 5px;
}

.news-archive-card-content {
    padding: 28px;
}

.news-archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.news-edition-badge {
    background: rgba(176, 137, 62, 0.2);
    color: #D4A853;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(176, 137, 62, 0.3);
}

.news-edition-badge i {
    margin-right: 4px;
}

.news-archive-card-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #EFE8D8;
    transition: color 0.3s ease;
}

.news-archive-card-link-wrapper:hover .news-archive-card-title {
    color: #D4A853;
}

.news-archive-card-excerpt {
    color: rgba(239, 232, 216, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.news-archive-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #B0893E;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-archive-card-link-wrapper:hover .news-archive-card-cta {
    gap: 14px;
    color: #D4A853;
}

/* Placeholder para festivales */
.festivals-placeholder {
    text-align: center;
    padding: 80px 40px;
}

.festivals-placeholder h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #EFE8D8;
}

.festivals-placeholder p {
    font-size: 18px;
    opacity: 0.8;
    color: #B0893E;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    margin-top: 60px;
    border-top: 2px solid rgba(176, 137, 62, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #B0893E;
    padding: 5px;
    background: rgba(176, 137, 62, 0.1);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #EFE8D8;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #7A5230;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B0893E;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(176, 137, 62, 0.3);
}

.footer-social a:hover {
    background: #B0893E;
    color: #2B211B;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(176, 137, 62, 0.5);
    border-color: #B0893E;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: #EFE8D8;
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* General post item styling for index */
.post-item {
    background: #7A5230;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(176, 137, 62, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.post-item:hover {
    background: #8D5F38;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 137, 62, 0.3);
    border-color: rgba(176, 137, 62, 0.4);
}

.post-item .post-title {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
}

.post-item .post-title a {
    color: #EFE8D8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .post-title a:hover {
    color: #B0893E;
}

.post-item .entry-meta {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.post-item .entry-content {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Single festival styling */
.festival-single {
    background: #7A5230;
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(176, 137, 62, 0.2);
}

.festival-single-header {
    margin-bottom: 20px;
}

.festival-single .festival-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.festival-single .festival-date {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 5px;
}

.festival-single .festival-location {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 5px;
}

.festival-single .festival-genres {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.festival-single .festival-rating {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.festival-single .festival-thumb {
    margin-bottom: 20px;
}

.festival-single .festival-thumb img {
    width: 100%;
    border-radius: 12px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.festival-single .festival-content {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

/* =======================
   MOBILE MENU - HAMBURGER
   ======================= */

/* Botón hamburguesa - Oculto por defecto en desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #B0893E;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #EFE8D8;
}

/* Animación del botón cuando está activo */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú lateral móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #2B211B 0%, #3D3228 100%);
    z-index: 1200;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

/* Header del menú móvil */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    background: rgba(176, 137, 62, 0.1);
    border-bottom: 2px solid rgba(176, 137, 62, 0.3);
}

.mobile-menu-header h3 {
    color: #EFE8D8;
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #B0893E;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(176, 137, 62, 0.2);
    transform: rotate(90deg);
}

/* Contenido del menú móvil */
.mobile-menu-content {
    padding: 20px;
}

.mobile-search-section,
.mobile-social-section {
    margin-bottom: 30px;
    animation: slideInRight 0.5s ease forwards;
}

.mobile-search-section h4,
.mobile-social-section h4 {
    color: #B0893E;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Barra de búsqueda en móvil */
.mobile-search-bar {
    width: 100%;
    margin-bottom: 10px;
}

.mobile-search-bar input {
    width: 100%;
}

/* Iconos sociales en móvil */
.mobile-social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(176, 137, 62, 0.05);
    border: 1px solid rgba(176, 137, 62, 0.2);
    border-radius: 12px;
    color: #EFE8D8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-social-link:hover {
    background: rgba(176, 137, 62, 0.15);
    border-color: rgba(176, 137, 62, 0.4);
    transform: translateX(5px);
}

.mobile-social-link i {
    font-size: 22px;
    color: #B0893E;
    width: 30px;
    text-align: center;
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Resultados de búsqueda en menú móvil */
.mobile-menu .search-results {
    position: static;
    width: 100%;
    max-height: 300px;
    margin-top: 10px;
    border-radius: 8px;
}

.mobile-menu .search-result-item {
    border-bottom-color: rgba(176, 137, 62, 0.2);
}

.mobile-menu .search-result-item:hover {
    background: rgba(176, 137, 62, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-home {
        height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-overlay {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .hero-scroll {
        bottom: 20px;
    }
    
    .hero-scroll span {
        font-size: 24px;
    }
    
    .main-content {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    
    /* Ajustar padding en móviles */
    body:not(.home):not(.blog) .main-content {
        padding-top: 90px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .home .main-content {
        padding-top: 15px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .page-title p {
        font-size: 13px;
    }
    
    /* Calendar responsive */
    .calendar {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .calendar-header {
        margin-bottom: 15px;
    }
    
    .calendar-month {
        font-size: 14px;
    }
    
    .calendar-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 6px;
        font-size: 12px;
    }
    
    .calendar-day-header {
        font-size: 10px;
        padding: 6px 0;
    }
    
    .calendar-year-selector {
        padding: 8px;
        gap: 8px;
    }
    
    .calendar-year-selector label {
        font-size: 12px;
    }
    
    .calendar-year-selector select {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Filters responsive */
    .filters {
        gap: 12px;
    }
    
    .filter-label {
        font-size: 13px;
    }
    
    .filter-select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .filter-button {
        padding: 10px 25px;
        font-size: 14px;
        margin-top: 5px;
    }
    
    /* Festival list responsive */
    .festival-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .festival-header h2 {
        font-size: 24px !important;
    }
    
    .order-filter {
        width: 100%;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .festival-item {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        align-items: flex-start;
    }
    
    .festival-item > img {
        width: 100%;
        height: 200px;
        max-width: 100%;
    }
    
    .festival-image {
        width: 100%;
        height: 150px;
        border-radius: 8px;
    }
    
    .festival-name {
        font-size: 18px;
    }
    
    .festival-date {
        font-size: 13px;
    }
    
    .festival-location {
        font-size: 12px;
    }
    
    .festival-genre {
        font-size: 11px;
        padding: 5px 12px;
        margin-right: 0;
        margin-top: 10px;
    }
    
    .festival-info {
        width: 100%;
    }
    
    /* Single festival responsive */
    .festival-single {
        padding: 20px;
    }
    
    .festival-single .festival-name {
        font-size: 24px;
    }
    
    .festival-single .festival-date,
    .festival-single .festival-location {
        font-size: 14px;
    }
    
    .festival-single .festival-thumb img {
        border-radius: 8px;
    }
    
    /* Header responsive */
    .header {
        padding: 10px 15px;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
    }
    
    /* Asegurar que el header scrolled se vea bien en móvil */
    .header.scrolled {
        padding: 8px 15px;
    }
    
    /* Logo más pequeño en móvil */
    .logo {
        gap: 8px;
        padding: 5px 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .logo-icon img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .logo-text {
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* OCULTAR el header-right en móvil */
    .header-right {
        display: none !important;
    }
    
    /* MOSTRAR el botón hamburguesa en móvil */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* News section responsive */
    .news-section {
        padding: 40px 15px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .news-subtitle {
        font-size: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card {
        border-radius: 12px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 18px;
    }
    
    .news-excerpt {
        font-size: 14px;
    }
    
    .news-view-all {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* News Archive Cards */
    .news-archive-card {
        border-radius: 12px;
    }
    
    .news-archive-card-image,
    .news-archive-card-image-placeholder {
        height: 180px;
    }
    
    .news-archive-card-content {
        padding: 20px;
    }
    
    .news-archive-card-title {
        font-size: 20px;
    }
    
    .news-archive-card-excerpt {
        font-size: 14px;
    }
    
    .festivals-placeholder {
        padding: 40px 15px;
    }
    
    .festivals-placeholder h2 {
        font-size: 24px;
    }
    
    .festivals-placeholder p {
        font-size: 15px;
    }
    
    /* Footer responsive */
    .footer {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-text {
        font-size: 18px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 13px;
    }
    
    /* Pagination responsive */
    .pagination {
        margin-top: 20px;
        gap: 8px;
    }
    
    .pagination-dot {
        width: 8px;
        height: 8px;
    }
    
    .pagination-dot.active {
        width: 24px;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 15px 25px;
        gap: 15px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .social-container {
        padding: 7px 12px;
    }
    
    .social-icons a {
        font-size: 16px;
    }
    
    .search-bar input {
        width: 140px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Pantallas muy pequeñas - ajustes adicionales */
@media (max-width: 400px) {
    .header {
        padding: 10px;
        gap: 6px;
    }
    
    .logo {
        gap: 6px;
        padding: 4px 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .header-right {
        gap: 6px;
    }
    
    .social-container {
        padding: 5px 8px;
        gap: 6px;
    }
    
    .social-icons {
        gap: 6px;
    }
    
    .social-icons a {
        font-size: 12px;
    }
    
    .search-bar {
        padding: 5px 10px;
        gap: 6px;
    }
    
    .search-bar input {
        width: 80px;
        font-size: 12px;
    }
    
    .search-bar i {
        font-size: 11px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
/* =======================
   Buscador con autocompletado
   ======================= */
   
.search-bar-wrapper {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(43, 33, 27, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(176, 137, 62, 0.3);
    z-index: 9999;
    backdrop-filter: blur(20px);
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(176, 137, 62, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #EFE8D8;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(176, 137, 62, 0.15);
    padding-left: 25px;
}

.search-result-item.no-results {
    color: #B0893E;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    cursor: default;
    padding: 20px;
}

.search-result-item.no-results:hover {
    background: transparent;
    padding-left: 20px;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #EFE8D8;
    margin-bottom: 6px;
}

.search-result-year {
    color: #B0893E;
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #B0893E;
    opacity: 0.9;
}

.search-result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-meta i {
    font-size: 12px;
}

/* Responsive para resultados de búsqueda */
@media (max-width: 768px) {
    .search-results {
        width: 300px;
    }
    
    .search-result-item {
        padding: 12px 15px;
    }
    
    .search-result-title {
        font-size: 14px;
    }
    
    .search-result-meta {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .search-results {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* Responsive adicionales para componentes específicos */
@media (max-width: 768px) {
    /* Tablas responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* Imágenes responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* iframes responsive (mapas, videos) */
    iframe {
        max-width: 100%;
    }
    
    /* Botones responsive */
    button, .button, a.button {
        min-height: 44px; /* Touch target size */
    }
    
    /* Texto responsive */
    h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    /* Evitar overflow horizontal */
    body {
        overflow-x: hidden;
    }
    
    .main-content,
    .festival-list,
    .festival-single,
    .post-item {
        overflow-x: hidden;
    }
    
    /* Mejorar lectura en móvil */
    p, li {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Festival single edition card responsive */
    .edition-card .edition-info {
        flex: 1;
        min-width: 0;
    }
    
    .edition-card .edition-arrow {
        margin-left: auto;
    }
    
    /* Mapa responsive en festival/edición */
    .festival-map,
    .edition-map {
        border-radius: 8px;
        overflow: hidden;
        margin-top: 20px;
    }
    
    .festival-map iframe,
    .edition-map iframe {
        width: 100%;
        height: 300px !important;
    }
    
    /* Grid de artistas/bandas más compacto */
    .edition-artists-grid,
    .edition-bands-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
    
    /* Loading states */
    .loading-festivals {
        padding: 30px 15px !important;
        font-size: 14px !important;
    }
    
    .loading-festivals i {
        font-size: 36px !important;
    }
    
    /* No festivals message */
    .no-festivals {
        padding: 30px 15px !important;
        font-size: 15px !important;
    }
    
    /* Meta información */
    .entry-meta,
    .festival-meta,
    .news-meta {
        font-size: 13px !important;
        flex-wrap: wrap;
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px !important;
    }
    
    .festival-item {
        padding: 12px !important;
    }
    
    .calendar {
        padding: 12px !important;
    }
    
    .calendar-day {
        padding: 4px !important;
        font-size: 11px !important;
    }
    
    .edition-artists-grid,
    .edition-bands-grid {
        grid-template-columns: 1fr !important;
    }
}
