/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #dd380b;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    color: #dd380b;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .site-header {
        padding: 1rem 0;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .header-content {
        justify-content: space-between;
        position: relative;
        min-height: 60px;
    }
}

.logo-link {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 100px);
        z-index: 1;
    }
}

.site-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .site-logo {
        height: 80px;
    }
}

.site-slogan {
    font-family: 'Story Script', cursive;
    font-size: 1.5rem;
    color: #dd380b;
    flex-grow: 1;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .site-slogan {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .site-slogan {
        display: none;
    }
}

.header-text {
    flex-grow: 1;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .site-title a {
        font-size: 2rem;
    }
}

.site-tagline {
    color: white;
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .site-tagline {
        font-size: 1rem;
    }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .main-nav ul {
        gap: 1.5rem;
    }
}

.main-nav a {
    color: #dd380b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Top Banner Publicitario */
.top-banner-container {
    background-color: #f5f5f5;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.top-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-banner picture {
    display: block;
    width: 100%;
    max-width: 970px;
}

.top-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .top-banner picture {
        max-width: 720px;
    }

    .top-banner-container {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
}

/* Main content */
main {
    min-height: 60vh;
    padding: 2rem 0;
}

/* Eventos */
.eventos-mes {
    margin-bottom: 3rem;
}

.eventos-mes h2 {
    color: #dd380b;
    border-bottom: 3px solid #dd380b;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eventos-mes h2 i {
    font-size: 1.2rem;
}

.eventos-lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .eventos-lista {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .eventos-lista {
        grid-template-columns: repeat(3, 1fr);
    }
}

.evento-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Estilo destacado para eventos de hoy */
.evento-card-hoy {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border: 2px solid #ffc107;
    box-shadow: 0 3px 6px rgba(255, 193, 7, 0.2);
}

.evento-card-hoy:hover {
    box-shadow: 0 5px 10px rgba(255, 193, 7, 0.3);
}

.evento-imagen-link {
    display: block;
    width: 100%;
}

.evento-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.evento-imagen-link:hover .evento-imagen img {
    transform: scale(1.05);
}

.evento-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.evento-card h3 {
    color: #dd380b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .evento-card h3 {
        font-size: 1.15rem;
    }
}

.evento-card h3 a {
    color: #dd380b;
    text-decoration: none;
}

.evento-card h3 a:hover {
    color: #990000;
}

.evento-meta-simple {
    margin-bottom: 1rem;
}

.evento-meta-simple p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

.evento-fecha {
    color: #dd380b;
}

.evento-hora,
.evento-lugar {
    color: #7f8c8d;
}

.evento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.evento-tag {
    background-color: #ecf0f1;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Colores específicos por tag - Accesibles y con buen contraste */
.evento-tag[data-tag="Arqueología"],
.evento-tag:has(i.fa-landmark) {
    color: #6b4423;
}

.evento-tag[data-tag="Baile"],
.evento-tag:has(i.fa-person-dancing) {
    color: #c2185b;
}

.evento-tag[data-tag="Conferencia"],
.evento-tag:has(i.fa-chalkboard-user) {
    color: #1565c0;
}

.evento-tag[data-tag="Concierto"],
.evento-tag:has(i.fa-guitar) {
    color: #7b1fa2;
}

.evento-tag[data-tag="Deporte"],
.evento-tag:has(i.fa-futbol) {
    color: #2e7d32;
}

.evento-tag[data-tag="Flamenco"],
.evento-tag:has(i.fa-guitar):has(i.fa-fire) {
    color: #c62828;
}

.evento-tag[data-tag="Historia"],
.evento-tag:has(i.fa-scroll) {
    color: #5d4037;
}

.evento-tag[data-tag="Infantil"],
.evento-tag:has(i.fa-child) {
    color: #e65100;
}

.evento-tag[data-tag="Literatura"],
.evento-tag:has(i.fa-book) {
    color: #4a148c;
}

.evento-tag[data-tag="Misterio"],
.evento-tag:has(i.fa-mask) {
    color: #1a237e;
}

.evento-tag[data-tag="Música"],
.evento-tag:has(i.fa-music) {
    color: #ad1457;
}

.evento-tag[data-tag="Navidad"],
.evento-tag:has(i.fa-tree) {
    color: #1b5e20;
}

.evento-tag[data-tag="Ocio"],
.evento-tag:has(i.fa-champagne-glasses) {
    color: #d84315;
}

.evento-tag[data-tag="Patrimonio"],
.evento-tag:has(i.fa-church) {
    color: #4e342e;
}

.evento-tag[data-tag="Pintura"],
.evento-tag:has(i.fa-palette) {
    color: #6a1b9a;
}

.evento-tag[data-tag="Religión"],
.evento-tag:has(i.fa-cross) {
    color: #283593;
}

.evento-tag[data-tag="Teatro"],
.evento-tag:has(i.fa-masks-theater) {
    color: #d32f2f;
}

.evento-tag[data-tag="Visita"],
.evento-tag:has(i.fa-route) {
    color: #00695c;
}

.evento-tag[data-tag="Zambomba"],
.evento-tag:has(i.fa-drum) {
    color: #b71c1c;
}

.evento-tag i {
    font-size: 0.9rem;
}

.evento-tags-detalle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.evento-tags-detalle .evento-tag {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
}

.evento-tags-detalle .evento-tag i {
    font-size: 0.9rem;
}

.tag {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    color: #dd380b;
    margin: 0;
    font-size: 2rem;
}

/* Month Navigation */
.month-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.month-nav-btn {
    background-color: #dd380b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-nav-btn i {
    font-size: 0.9rem;
}

.month-nav-btn:hover {
    background-color: #990000;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(221, 56, 11, 0.3);
}

.month-nav-btn:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .month-navigation {
        justify-content: center;
    }

    .month-nav-btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.85rem;
    }
}

/* Filter button icon in header */
.filter-btn-icon {
    background-color: #f39c12;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.filter-btn-icon:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.filter-btn-icon i {
    font-size: 1rem;
}

@media (max-width: 767px) {
    .filter-btn-icon {
        width: 40px;
        height: 40px;
        margin-left: auto;
    }

    .filter-btn-icon i {
        font-size: 1rem;
    }
}

/* Active Filters */
.active-filters {
    background-color: #e8f4f8;
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.active-filters-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.active-filters-label {
    font-weight: bold;
    color: #2c3e50;
}

#activeFilterTags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.active-filter-tag {
    background-color: #3498db;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.clear-filters-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.clear-filters-btn:hover {
    background-color: #c0392b;
}

/* Modal Filter */
.modal-filter {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-filter-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.modal-filter-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: #ecf0f1;
}

.modal-filter-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

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

.filter-category {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.filter-category:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.filter-category input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-category input[type="checkbox"]:checked + span {
    color: #3498db;
    font-weight: bold;
}

.filter-category span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.filter-category span i {
    font-size: 1rem;
}

.modal-filter-footer {
    padding: 1.5rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: flex-end;
}

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

/* Footer */
.site-footer {
    background-color: #dd380b;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    position: relative;
}

.site-footer a {
    color: white;
    text-decoration: underline;
}

.site-footer a:hover {
    opacity: 0.8;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    opacity: 1;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    margin: 0;
}

/* Botón scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f39c12;
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #e67e22;
    transform: translateY(-4px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Página de evento individual */
.evento-detalle {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.evento-imagen-principal {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .evento-imagen-principal {
        height: 500px;
    }
}

.evento-imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evento-imagen-clickable {
    cursor: pointer;
    transition: opacity 0.3s;
}

.evento-imagen-clickable:hover {
    opacity: 0.9;
}

.evento-detalle h1 {
    color: #dd380b;
    margin: 2rem 2rem 1rem 2rem;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .evento-detalle h1 {
        font-size: 2.5rem;
    }
}

.evento-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 2rem 2rem 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

@media (min-width: 768px) {
    .evento-meta {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.evento-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evento-meta-label {
    font-weight: bold;
    color: #dd380b;
    font-size: 0.95rem;
}

.evento-meta-value {
    color: #555;
    line-height: 1.6;
}

.evento-descripcion {
    margin: 0 2rem 2rem 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.evento-descripcion h2 {
    color: #dd380b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.evento-descripcion p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.evento-actions {
    margin: 0 2rem 2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .evento-actions {
        flex-wrap: nowrap;
        gap: 0.75rem;
        margin: 0 1rem 1.5rem 1rem;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

@media (max-width: 767px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

.btn-primary {
    background-color: #dd380b;
    color: white;
}

.btn-primary:hover {
    background-color: #990000;
    transform: translateY(-2px);
}

.btn-entradas {
    background-color: #27ae60;
    color: white;
}

.btn-entradas:hover {
    background-color: #1e8449;
    transform: translateY(-2px);
}

.btn-back {
    background-color: #dd380b;
    color: white;
}

.btn-back:hover {
    background-color: #990000;
    transform: translateY(-2px);
}

.btn-share {
    background-color: #0d99ff;
    color: #ffffff;
    margin-left: auto;
    border: none;
    cursor: pointer;
}

@media (max-width: 767px) {
    .btn-share {
        margin-left: 0;
    }
}

.btn-share:hover {
    background-color: #0b7cd1;
    transform: translateY(-2px);
}

.btn-share-success {
    background-color: #2ecc71;
    color: #ffffff;
}

.evento-enlace {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.evento-content {
    line-height: 1.8;
    color: #555;
    margin: 0 2rem 2rem 2rem;
}

/* Modal de imagen */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-content {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #dd380b;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal de Aviso Legal */
.modal-aviso {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-aviso-content {
    background-color: white;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-aviso-content h2 {
    color: #dd380b;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.modal-aviso-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.modal-aviso-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.modal-aviso-content ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.modal-aviso-content ul li {
    margin-bottom: 0.5rem;
}

.modal-aviso-content a {
    color: #dd380b;
    text-decoration: none;
}

.modal-aviso-content a:hover {
    text-decoration: underline;
}

.modal-aviso-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
    line-height: 1;
}

.modal-aviso-close:hover {
    color: #dd380b;
}

.modal-aviso-actions {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.footer-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-link:hover {
    border-bottom-color: white;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookies-no-tracking {
    background-color: #f0f8ff;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #dd380b;
    margin: 1.5rem 0;
}

.cookies-cta {
    background-color: #fff9f0;
    padding: 1.5rem;
    border-radius: 6px;
    border: 2px solid #dd380b;
    margin: 1.5rem 0;
    text-align: center;
}

.cookies-cta h3 {
    margin-top: 0;
    color: #dd380b;
}

.cookies-cta .btn {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .modal-aviso-content {
        padding: 1.5rem;
    }

    .modal-aviso-content h2 {
        font-size: 1.5rem;
    }

    .modal-aviso-content h3 {
        font-size: 1.15rem;
    }

    .cookies-no-tracking,
    .cookies-cta {
        padding: 1rem;
    }
}

/* Banner promocional de Halloween en home */
.halloween-promo-banner {
    display: block;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.halloween-promo-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.halloween-promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 140, 0, 0.5);
}

.halloween-promo-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .halloween-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.halloween-promo-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

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

@media (min-width: 768px) {
    .halloween-promo-icon {
        font-size: 4rem;
    }
}

.halloween-promo-text {
    flex-grow: 1;
}

.halloween-promo-title {
    color: #ff8c00;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .halloween-promo-title {
        font-size: 2rem;
    }
}

.halloween-promo-subtitle {
    color: #ffb366;
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .halloween-promo-subtitle {
        font-size: 1.2rem;
    }
}

.halloween-promo-cta {
    background-color: #ff8c00;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    transition: all 0.3s;
}

.halloween-promo-banner:hover .halloween-promo-cta {
    background-color: #ffb366;
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .halloween-promo-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Estilos especiales para Halloween */
.halloween-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.halloween-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.halloween-title {
    color: #ff8c00;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.5);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .halloween-title {
        font-size: 3.5rem;
    }
}

.halloween-subtitle {
    color: #ffb366;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .halloween-subtitle {
        font-size: 1.5rem;
    }
}

.eventos-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .eventos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .eventos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.halloween-card {
    border: 2px solid #ff8c00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.halloween-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.5);
    border-color: #ffb366;
}

.halloween-card .evento-imagen {
    height: 250px;
    border-bottom: 2px solid #ff8c00;
}

@media (min-width: 768px) {
    .halloween-card .evento-imagen {
        height: 300px;
    }
}

.halloween-card .evento-contenido {
    padding: 2rem;
}

.halloween-card .evento-titulo h2 {
    color: #ff8c00;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.halloween-card .evento-titulo a {
    color: #ff8c00;
    text-decoration: none;
    transition: color 0.3s;
}

.halloween-card .evento-titulo a:hover {
    color: #ffb366;
}

.halloween-card .evento-meta p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

.halloween-card .evento-descripcion {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
    color: #555;
    line-height: 1.8;
}

.halloween-card .evento-tags {
    margin-top: 1.5rem;
}

.halloween-card .tag {
    background-color: #ff8c00;
    color: white;
    font-weight: 500;
}

.halloween-card .evento-enlace {
    margin-top: 1.5rem;
}

.btn-mas-info {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff8c00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.btn-mas-info:hover {
    background-color: #ffb366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
}

.halloween-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border-radius: 12px;
    margin-top: 3rem;
    color: #ffb366;
}

.halloween-footer p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-volver {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff8c00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.btn-volver:hover {
    background-color: #ffb366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
}

/* ============================================
   ESTILOS ESPECIALES PARA ZAMBOMBAS 2025
   ============================================ */

/* Banner promocional de Zambombas en home */
.zambombas-promo-banner {
    display: block;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zambombas-promo-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.zambombas-promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(220, 20, 60, 0.5);
}

.zambombas-promo-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .zambombas-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.zambombas-promo-icon {
    font-size: 3rem;
    color: #FFD700;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .zambombas-promo-icon {
        font-size: 4rem;
    }
}

.zambombas-promo-text {
    flex-grow: 1;
}

.zambombas-promo-title {
    color: #FFD700;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .zambombas-promo-title {
        font-size: 2rem;
    }
}

.zambombas-promo-subtitle {
    color: #FFF8DC;
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .zambombas-promo-subtitle {
        font-size: 1.2rem;
    }
}

.zambombas-promo-cta {
    background-color: #FFD700;
    color: #8B0000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.zambombas-promo-banner:hover .zambombas-promo-cta {
    background-color: #FFF8DC;
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .zambombas-promo-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Header de la página Zambombas */
.zambombas-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.zambombas-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.zambombas-title {
    color: #FFD700;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .zambombas-title {
        font-size: 3.5rem;
    }
}

.zambombas-subtitle {
    color: #FFF8DC;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .zambombas-subtitle {
        font-size: 1.5rem;
    }
}

/* Tarjetas de eventos en página Zambombas */
.zambombas-card {
    border: 2px solid #DC143C;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
}

.zambombas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.5);
    border-color: #FFD700;
}

.zambombas-card .evento-imagen {
    height: 250px;
    border-bottom: 2px solid #DC143C;
}

@media (min-width: 768px) {
    .zambombas-card .evento-imagen {
        height: 300px;
    }
}

.zambombas-card .evento-contenido {
    padding: 2rem;
}

.zambombas-card .evento-titulo h2 {
    color: #DC143C;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.zambombas-card .evento-titulo a {
    color: #DC143C;
    text-decoration: none;
    transition: color 0.3s;
}

.zambombas-card .evento-titulo a:hover {
    color: #FFD700;
}

.zambombas-card .evento-meta p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

.zambombas-card .evento-descripcion {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
    color: #555;
    line-height: 1.8;
}

.zambombas-card .evento-enlace {
    margin-top: 1.5rem;
}

.zambombas-card .btn-mas-info {
    background-color: #DC143C;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.zambombas-card .btn-mas-info:hover {
    background-color: #FFD700;
    color: #8B0000;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.5);
}

/* Footer de la página Zambombas */
.zambombas-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    border-radius: 12px;
    margin-top: 3rem;
    color: #FFF8DC;
}

.zambombas-footer p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.zambombas-footer .btn-volver {
    background-color: #FFD700;
    color: #8B0000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.zambombas-footer .btn-volver:hover {
    background-color: #FFF8DC;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* Animación de estrellas para el header */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    color: #FFD700;
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle-2 { top: 20%; left: 80%; animation-delay: 0.5s; }
.sparkle-3 { top: 60%; left: 15%; animation-delay: 1s; }
.sparkle-4 { top: 70%; left: 85%; animation-delay: 1.5s; }
.sparkle-5 { top: 30%; left: 50%; animation-delay: 2s; }
.sparkle-6 { top: 80%; left: 50%; animation-delay: 2.5s; }
.sparkle-7 { top: 40%; left: 25%; animation-delay: 3s; }
.sparkle-8 { top: 50%; left: 75%; animation-delay: 3.5s; }

.no-eventos {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Estilos especiales para Zambombas */
.zambombas-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0d4d2a 0%, #1a6b3d 50%, #0d4d2a 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .zambombas-header {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.zambombas-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

/* Estrellitas titilando */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    font-size: 1.8rem;
    animation: twinkle 2s ease-in-out infinite;
}

@media (max-width: 767px) {
    .sparkle {
        font-size: 1.2rem;
    }
}

/* Posiciones de cada estrellita */
.sparkle-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkle-3 {
    top: 70%;
    left: 8%;
    animation-delay: 1s;
}

.sparkle-4 {
    top: 65%;
    right: 12%;
    animation-delay: 1.5s;
}

.sparkle-5 {
    top: 40%;
    left: 5%;
    animation-delay: 0.3s;
}

.sparkle-6 {
    top: 45%;
    right: 8%;
    animation-delay: 0.8s;
}

.sparkle-7 {
    top: 85%;
    left: 20%;
    animation-delay: 1.2s;
}

.sparkle-8 {
    top: 80%;
    right: 25%;
    animation-delay: 1.7s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 25px rgba(255, 215, 0, 0.5);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.8);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
}

.zambombas-title {
    color: #d4af37;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .zambombas-title {
        font-size: 3.5rem;
    }
}

.zambombas-subtitle {
    color: #f0e68c;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .zambombas-subtitle {
        font-size: 1.5rem;
    }
}

.zambombas-card {
    border: 2px solid #c41e3a;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .zambombas-card {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.zambombas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.5);
    border-color: #d4af37;
}

.zambombas-card .evento-imagen {
    height: 250px;
    border-bottom: 2px solid #c41e3a;
}

@media (min-width: 768px) {
    .zambombas-card .evento-imagen {
        height: 300px;
    }
}

.zambombas-card .evento-contenido {
    padding: 2rem;
}

.zambombas-card .evento-titulo h2 {
    color: #c41e3a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.zambombas-card .evento-titulo a {
    color: #c41e3a;
    text-decoration: none;
    transition: color 0.3s;
}

.zambombas-card .evento-titulo a:hover {
    color: #d4af37;
}

.zambombas-card .evento-meta p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

.zambombas-card .evento-descripcion {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
    color: #555;
    line-height: 1.8;
}

.zambombas-card .evento-tags {
    margin-top: 1.5rem;
}

.zambombas-card .tag {
    background-color: #c41e3a;
    color: white;
    font-weight: 500;
}

.zambombas-card .evento-enlace {
    margin-top: 1.5rem;
}

.zambombas-card .btn-mas-info {
    background-color: #c41e3a;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.zambombas-card .btn-mas-info:hover {
    background-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

.zambombas-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0d4d2a 0%, #1a6b3d 50%, #0d4d2a 100%);
    border-radius: 12px;
    margin-top: 3rem;
    color: #f0e68c;
}

.zambombas-footer p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.zambombas-footer .btn-volver {
    background-color: #c41e3a;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.zambombas-footer .btn-volver:hover {
    background-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}
