/* 
 * DEKLIBE Custom Styles 
 * Location: t:\wp-content\themes\rock-star\css\deklive.css
 */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* =========================================
   GLOBAL RESET & LAYOUT FIXES
   (Corregir el "desmierde" en entradas)
   ========================================= */

/* Resetear reglas flex globales del Customizer que rompen las entradas */
/* Se eliminan .site-inner y .site-content de aquí para que el footer pueda anclarse abajo */
body:not(.page-biografia):not(.page-id-6):not(.page-template-biografia) .content-area,
body:not(.page-biografia):not(.page-id-6):not(.page-template-biografia) #primary,
body:not(.page-biografia):not(.page-id-6):not(.page-template-biografia) .site-main,
body:not(.page-biografia):not(.page-id-6):not(.page-template-biografia) article,
body:not(.page-biografia):not(.page-id-6):not(.page-template-biografia) .entry-content,
body:not(.page-biografia):not(.page-id-6):not(.page-template-biografia) .entry-container {
    display: block !important;
    width: 100% !important;
    float: none !important;
}

/* Estilos específicos para la página de Entrada Individual */
.single-post .site-content {
    padding-top: 150px !important;
    /* Espacio para el menú */
    min-height: 80vh;
}

.single-post .entry-container {
    max-width: 900px;
    margin: 0 auto !important;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post .entry-title {
    font-size: 2.8rem;
    color: #ff4500;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-post .entry-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #eee;
    font-family: 'Special Elite', cursive !important;
}

/* Forzar que el footer se mantenga al final del flujo */
.site-footer {
    clear: both !important;
    position: relative !important;
    width: 100% !important;
    margin-top: auto !important;
}

.single-post .entry-meta {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Ocultar autor, iconos redundantes y categorías/tags por petición del usuario */
/* Se especifica para no ocultar el botón Leer Más de la página de Actualidad */
.single-post .entry-header .byline,
.single-post .entry-header .comments-link,
.single-post .entry-footer,
.actualidad-post .entry-meta .byline,
.actualidad-post .entry-meta .cat-links,
.actualidad-post .entry-meta .comments-link {
    display: none !important;
}

.entry-meta .posted-on i,
.actualidad-post .entry-meta .posted-on i {
    display: none !important;
}

/* Asegurar que el botón Leer Más SEA visible en el listado de Actualidad */
.actualidad-post .post-content-wrapper .entry-footer {
    display: block !important;
}

.actualidad-post .post-content-wrapper .entry-footer .read-more-btn {
    font-family: 'Special Elite', cursive !important;
}

/* Estilos para la navegación entre entradas (DISEÑO PREMIUM ROCKER V2) */
.nav-links {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 2px solid rgba(255, 69, 0, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links .nav-previous,
.nav-links .nav-next {
    flex: 1;
    min-width: 280px;
}

.nav-links a {
    display: block;
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.nav-links .nav-previous a {
    border-left: 5px solid #ff4500;
    text-align: left;
}

.nav-links .nav-next a {
    border-right: 5px solid #ff4500;
    text-align: right;
}

.nav-links a:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 69, 0, 1);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 69, 0, 0.2);
}

.nav-links .nav-previous a::before {
    content: "« ANTERIOR";
    display: block;
    font-size: 0.8rem;
    color: #ff4500;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
}

.nav-links .nav-next a::before {
    content: "SIGUIENTE »";
    display: block;
    font-size: 0.8rem;
    color: #ff4500;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    text-align: right;
}

.nav-links .post-title {
    display: block;
    font-size: 1.15rem;
    color: #fff;
    font-family: 'Special Elite', cursive !important;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-links .meta-nav,
.nav-links .screen-reader-text {
    display: none !important;
}

/* OCULTAR TÍTULOS DE PÁGINA (Global) */
body.page .entry-header .entry-title,
body.page .page-header .page-title,
.actualidad-page-container .page-title {
    display: none !important;
}

/* GLOBAL TYPOGRAPHY: Special Elite for Menu & Titles */
h1,
h2,
h3,
h4,
h5,
h6,
.main-navigation a,
.menu-item a,
.site-title,
.entry-title,
.widget-title,
/* ADDED: Contact Form Elements & Footer */
.wpcf7 label,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7-submit,
.album-name,
.site-info,
.contact-sub-location,
.email-row,
.btn-whatsapp-premium,
/* ADDED: Body Text & Groups */
.entry-content p,
.wp-block-group p,
.wp-block-group__inner-container p {
    font-family: 'Special Elite', cursive !important;
}

/* CSS for Mobile Toggle - Hidden on Desktop */
#menu-toggle.menu-toggle {
    display: none !important;
}

#menu-toggle.menu-toggle:hover {
    background: #ff4500 !important;
    border-color: #ff4500 !important;
}

/* Hide 'Menu' text visually but keep it for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}




/* =========================================
   Band Page (ID 47) Layout & Styling
   ========================================= */

/* Scope styles to this page content to avoid global pollution */
.band-page-container {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 225px 2% 30px;
    /* Reducido para evitar scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    /* Dejar que el contenido mande */
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* ACCORDION WRAPPER */
.band-accordion {
    display: flex;
    width: 100%;
    height: 450px;
    /* Reducido un pelín más para mayor seguridad con el scroll */
    max-width: 1200px;
    gap: 10px;
}

.member-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.35, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.member-card:hover {
    flex: 2.5;
    border-color: #ff4500;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
}

.member-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.6s ease;
}

.member-card:hover .member-img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 1) 20%);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    /* Truly hide to avoid doubling/overlap */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.35, 1);
    z-index: 10;
    pointer-events: none;
}

.member-card:hover .member-overlay,
.member-card.is-active .member-overlay {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.member-info {
    width: 100%;
    padding: 20px 15px 10px;
    text-align: center;
    border-top: none !important;
}

.member-name {
    margin: 0;
    font-family: 'Special Elite', cursive !important;
    font-size: 1.8rem;
    font-weight: 300 !important;
    /* Avoid faux-bold doubling */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px #000;
}

.member-role {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #ff4500;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Member Bio */
.member-bio {
    width: 100%;
    padding: 0 25px 30px;
    text-align: center;
    border-top: none !important;
}

.member-bio p {
    margin: 0;
    font-family: 'Special Elite', cursive !important;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #eee;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ANIMATIONS: Alternating Slide-In Effect (Smoother & Delayed) */
/* Vertical Name on Inactive State */
.member-card::before {
    content: attr(data-name);
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: rotate(-90deg) translateX(50%);
    transform-origin: right center;
    font-family: 'Special Elite', cursive !important;
    font-size: 2.5rem;
    /* Reduced to fit the container height */
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-top: 8px;
    /* Reduced to avoid cutting at the edges */
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
    pointer-events: none;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Ensure no other pseudo-element is adding text */
.member-card::after {
    content: none !important;
}

.member-card:hover::before,
.member-card.is-active::before {
    opacity: 0;
    right: -3rem;
    /* Slide-out effect towards the right */
}

/* ANIMATIONS: Randomized Entry Effect */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-120vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(120vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Base state: Hidden initially */
.member-card {
    opacity: 0;
}

/* USE nth-of-type TO AVOID WP <P> TAG ISSUES */
.member-card:nth-of-type(1) {
    animation: slideInFromTop 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.member-card:nth-of-type(2) {
    animation: slideInFromBottom 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.member-card:nth-of-type(3) {
    animation: slideInFromTop 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.member-card:nth-of-type(4) {
    animation: slideInFromBottom 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.member-card:nth-of-type(5) {
    animation: slideInFromTop 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

/* Member Bio - Accordion Effect */
.member-card:hover .member-bio {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.member-bio p {
    font-family: 'Special Elite', cursive !important;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #eee;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* MOBILE OPTIMIZATION: Band Page Stack */
@media screen and (max-width: 768px) {
    .band-page-container {
        padding: 100px 15px 40px !important;
        height: auto !important;
        min-height: 100vh;
        overflow-y: visible;
        display: block !important;
    }

    .band-accordion {
        flex-direction: column !important;
        height: auto !important;
        gap: 20px !important;
        max-width: 100% !important;
    }

    .member-card {
        flex: none !important;
        width: 100% !important;
        height: 480px !important;
        opacity: 0;
        animation: slideInFromTop 1s ease-out forwards !important;
    }

    .member-card::after {
        display: none !important;
        /* Hide vertical names on mobile */
    }

    /* Stagger delays for vertical stack */
    .member-card:nth-child(1) {
        animation-delay: 0.2s !important;
    }

    .member-card:nth-child(2) {
        animation-delay: 0.4s !important;
    }

    .member-card:nth-child(3) {
        animation-delay: 0.6s !important;
    }

    .member-card:nth-child(4) {
        animation-delay: 0.8s !important;
    }

    .member-card:nth-child(5) {
        animation-delay: 1.0s !important;
    }

    .member-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding-bottom: 20px !important;
    }

    .member-overlay {
        transform: translateY(100%) !important;
        background: rgba(0, 0, 0, 0.95) !important;
    }

    .member-card.is-active .member-overlay {
        transform: translateY(0) !important;
    }

    .member-bio {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative !important;
        pointer-events: auto !important;
        background: transparent !important;
        padding-top: 5px !important;
    }

    /* Navigation Fixes: Show Toggle only on Mobile */
    #menu-toggle.menu-toggle {
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 69, 0, 0.6) !important;
        color: #fff !important;
        padding: 0 !important;
        font-size: 1.6rem !important;
        border-radius: 4px !important;
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
        display: flex !important;
        /* Force show on mobile */
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 48px;
        float: right;
        margin-top: 10px;
    }

    .site-header-menu {
        background: rgba(0, 0, 0, 0.98) !important;
    }

    /* Bio Page Mobile - Nuclear option: override ALL parent containers */

    /* Force wrapper to full width on bio page */
    .page-id-6 .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force content area to full width */
    .page-id-6 .content-area,
    .page-id-6 .site-main,
    .page-id-6 .entry-content,
    .page-id-6 .entry-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bio-page-container {
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 110px 0 40px 0 !important;
        box-sizing: border-box !important;
        z-index: 100 !important;
        overflow: visible !important;
        /* Allow content to break out */
    }

    .bio-text-content {
        margin-left: 5% !important;
        /* Explicit symmetric margins */
        margin-right: 5% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        z-index: 101 !important;
        width: 90% !important;
        max-width: 90% !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 30px 20px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9) !important;
        float: none !important;
        text-align: center !important;
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
    }
}



.member-card::after {
    content: attr(data-name);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    color: rgba(255, 255, 255, 0.3);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.member-card:hover::after {
    opacity: 0;
}

/* =========================================
   Biography Page Layout & Styling
   ========================================= */

.bio-page-container {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    padding: 110px 0 10px 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end !important;
    justify-content: flex-start;
    min-height: auto;
    color: #fff;
    box-sizing: border-box;
    z-index: 10;
}

.bio-text-content {
    width: 350px;
    max-width: 90% !important;
    margin-right: 0 !important;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 10px;
    margin-top: 15px;
    border-radius: 4px 0 0 4px;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.8);
    font-size: 1.15rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none !important;
    text-align: center;
}

.bio-text-content p {
    margin-bottom: 0.8em;
}

.bio-text-content p:last-child {
    margin-bottom: 0;
}

.bio-text-content h1,
.bio-text-content h2,
.bio-text-content h3 {
    font-family: 'Special Elite', cursive !important;
    color: #ff4500;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
}

/* =========================================
   Music Page Layout & Styling
   ========================================= */

.music-page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 130px 20px 20px;
    /* Reducido */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.music-social-header {
    text-align: center;
    margin-bottom: 40px;
}

.listen-on-title {
    color: #fff;
    font-family: 'Special Elite', cursive !important;
    font-weight: 600;
    /* Igualado a la descripción de Actualidad */
    text-transform: uppercase;
    font-size: 1.8rem;
    /* Ajustado para mayor elegancia */
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    /* Sombra negra sutil como en Actualidad */
    margin-bottom: 25px;
}

.social-icons-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.2);
}

.social-icon.spotify:hover {
    color: #1DB954;
    filter: drop-shadow(0 0 10px #1DB954);
}

.social-icon.youtube:hover {
    color: #FF0000;
    filter: drop-shadow(0 0 10px #FF0000);
}

.social-icon.instagram:hover,
.social-icon.instagram:hover i {
    color: #E4405F !important;
    /* Official Instagram Pink */
    background: transparent !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #E4405F !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 10px rgba(228, 64, 95, 0.8)) !important;
}

.social-icon.facebook:hover {
    color: #1877F2;
    filter: drop-shadow(0 0 10px #1877F2);
}

.social-icon.tiktok:hover {
    color: #ff0050;
    filter: drop-shadow(0 0 10px #00f2ea);
}

/* Album Row Layout */
.albums-row {
    display: flex;
    flex-wrap: nowrap;
    /* Force one row */
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    /* Allow scroll if screen is too small */
    padding-bottom: 20px;
    /* Space for scrollbar if needed */
}

.album-item {
    flex: 0 1 180px;
    /* Reducido de 200px */
    min-width: 120px;
    /* Reducido de 150px */
    max-width: 220px;
    /* Reducido de 250px */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.album-item:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.album-cover-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.album-item:hover .album-cover-wrapper {
    border-color: #ff4500;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.5);
}

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

.album-label {
    margin-top: 15px;
    text-align: center;
}

.album-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000;
}

/* =========================================
   Fire Sparks (Bonfire Effect) - Page Banda
   ========================================= */

.firefly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff4500;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px #ff4500, 0 0 20px #ff8c00;
    opacity: 0;
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        transform: translateY(80vh) translateX(-30px) rotate(45deg) scale(1.2);
    }

    50% {
        transform: translateY(50vh) translateX(40px) rotate(-45deg) scale(0.8);
    }

    75% {
        transform: translateY(20vh) translateX(-20px) rotate(15deg) scale(1.1);
    }

    100% {
        transform: translateY(-10vh) translateX(30px) rotate(-15deg) scale(0.5);
        opacity: 0;
    }
}

/* Spark Variations */
.spark:nth-child(1) {
    left: 10%;
    width: 5px;
    height: 5px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.spark:nth-child(2) {
    left: 20%;
    width: 3px;
    height: 3px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.spark:nth-child(3) {
    left: 35%;
    width: 4px;
    height: 4px;
    animation-duration: 10s;
    animation-delay: 5s;
}

.spark:nth-child(4) {
    left: 50%;
    width: 6px;
    height: 6px;
    animation-duration: 15s;
    animation-delay: 1s;
}

.spark:nth-child(5) {
    left: 65%;
    width: 3px;
    height: 3px;
    animation-duration: 9s;
    animation-delay: 4s;
}

.spark:nth-child(6) {
    left: 80%;
    width: 5px;
    height: 5px;
    animation-duration: 13s;
    animation-delay: 7s;
}

.spark:nth-child(7) {
    left: 90%;
    width: 4px;
    height: 4px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.spark:nth-child(8) {
    left: 15%;
    width: 2px;
    height: 2px;
    animation-duration: 14s;
    animation-delay: 8s;
}

.spark:nth-child(9) {
    left: 45%;
    width: 5px;
    height: 5px;
    animation-duration: 7s;
    animation-delay: 2s;
}

.spark:nth-child(10) {
    left: 75%;
    width: 4px;
    height: 4px;
    animation-duration: 10s;
    animation-delay: 6s;
}

.spark:nth-child(11) {
    left: 5%;
    width: 3px;
    height: 3px;
    animation-duration: 12s;
    animation-delay: 1s;
}

.spark:nth-child(12) {
    left: 95%;
    width: 6px;
    height: 6px;
    animation-duration: 9s;
    animation-delay: 5s;
}

.spark:nth-child(13) {
    left: 30%;
    width: 4px;
    height: 4px;
    animation-duration: 15s;
    animation-delay: 0s;
}

.spark:nth-child(14) {
    left: 60%;
    width: 2px;
    height: 2px;
    animation-duration: 11s;
    animation-delay: 9s;
}

.spark:nth-child(15) {
    left: 85%;
    width: 5px;
    height: 5px;
    animation-duration: 8s;
    animation-delay: 4s;
}

.spark:nth-child(16) {
    left: 40%;
    width: 3px;
    height: 3px;
    animation-duration: 13s;
    animation-delay: 2s;
}

.spark:nth-child(17) {
    left: 55%;
    width: 4px;
    height: 4px;
    animation-duration: 14s;
    animation-delay: 6s;
}

.spark:nth-child(18) {
    left: 25%;
    width: 5px;
    height: 5px;
    animation-duration: 10s;
    animation-delay: 3s;
}

.spark:nth-child(19) {
    left: 70%;
    width: 3px;
    height: 3px;
    animation-duration: 12s;
    animation-delay: 7s;
}

.spark:nth-child(20) {
    left: 48%;
    width: 4px;
    height: 4px;
    animation-duration: 9s;
    animation-delay: 1s;
}

/* Responsive */
@media (max-width: 768px) {
    .albums-row {
        flex-wrap: wrap;
        /* Wrap on mobile */
    }

    .bio-page-container {
        padding-top: 150px;
    }
}

/* =========================================
   Contact Page (ID 8) Compact No-Scroll
   ========================================= */

/* Parent Wrapper - Flex center */
.contact-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 80px 20px 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Compact Premium Card - Refactored to Grid */
.contact-centered-wrapper {
    background: rgba(0, 0, 0, 0.85);
    /* Unificado con Actualidad */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 30px 5px;
    /* Reducido drásticamente el padding inferior */
    width: 95%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: auto;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

/* Top accent */
.contact-centered-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4500, transparent);
}

.contact-header-section {
    text-align: center;
    margin-bottom: 12px;
    /* Reduced */
}

.contact-main-title {
    color: #fff;
    font-family: 'Special Elite', cursive !important;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1);
    /* Limpio, sin rosa/naranja */
}

.contact-intro-text {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Special Elite', cursive !important;
}

.contact-sub-location {
    display: none;
}

.contact-sub-location {
    color: #ff4500;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 2px;
    opacity: 0.8;
}

.contact-direct-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 0;
    align-items: center;
    /* Centrado solicitado */
}

.btn-whatsapp-premium {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    text-decoration: none !important;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.email-row {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Special Elite', cursive !important;
}

.email-row i {
    color: #ff4500;
    margin-right: 10px;
}

/* Compact Form Styling */
.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tighter gap */
}

/* Form Response Output */
.wpcf7-response-output {
    font-size: 0.8rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: #ff4500 !important;
}

/* Footer Fix: Force layout reset */
/* Footer Fix: Force layout reset */
#colophon,
#footer,
.site-footer,
#site-generator {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 20px !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    background: #000 !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    /* Prevent flex growth */
}

/* Footer Fix: Force fixed position at bottom */
body.page-id-8 #colophon,
body.page-id-8 .site-footer,
.page-template-contact-premium .site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    margin: 0 !important;
    padding: 15px 0 !important;
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure content is centered and doesn't get hidden behind footer */
body.page-id-8 .site-inner,
.page-template-contact-premium .site-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding-bottom: 60px !important;
    /* Space for fixed footer */
    box-sizing: border-box !important;
}

body.page-id-8 .site-content,
.page-template-contact-premium .site-content {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.page-id-8 .contact-page-container,
.page-template-contact-premium .contact-page-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}


#site-generator .wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    /* Standard content width */
    margin: 0 auto !important;
    padding: 0 15px !important;
    text-align: center;
}

@media (max-width: 600px) {
    .contact-centered-wrapper {
        padding: 30px 20px;
        width: 90%;
    }
}

/* ============================================
   ACTUALIDAD PAGE STYLES
   ============================================ */

.actualidad-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 190px 20px 60px;
    /* Bajar texto debajo del menú */
    /* Reducido para evitar que el footer lo tape si el contenido es corto */
    min-height: calc(100vh - 200px);
    /* Asegura espacio para header y footer */
    position: relative;
    z-index: 10;
}

.actualidad-content {
    width: 100%;
}

/* Page Header */
.actualidad-page-container .page-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
}

.actualidad-page-container .page-title {
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 900;
}

.actualidad-page-container .page-description {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Special Elite', cursive !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Layout Grid 2 Columns */
.actualidad-layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .actualidad-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Wrapper Compact */
.actualidad-blog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Reducido de 40px */
}

/* Individual Post Card */
.actualidad-post {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    gap: 0;
    position: relative;
    max-height: 280px;
    /* Limitamos altura máxima para compactar */
}

.actualidad-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 69, 0, 0.4);
    border-color: rgba(255, 69, 0, 0.5);
}

/* Hacer que el enlace de cobertura técnica ocupe toda la tarjeta */
.actualidad-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    /* Por encima de todo */
}

/* Asegurar que el título y otros enlaces internos NO bloqueen el clic global */
.actualidad-post .post-thumbnail a,
.actualidad-post .entry-title a,
.actualidad-post .read-more-btn {
    position: relative;
    z-index: 5;
}

/* Post Thumbnail */
.actualidad-post .post-thumbnail {
    flex: 0 0 350px;
    overflow: hidden;
    position: relative;
}

.actualidad-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) brightness(0.8);
    transition: all 0.5s ease;
}

.actualidad-post:hover .post-thumbnail img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* Post Content Wrapper */
.post-content-wrapper {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Entry Header */
.actualidad-post .entry-header {
    margin-bottom: 20px;
}

.actualidad-post .entry-title {
    font-size: 2rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.actualidad-post .entry-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actualidad-post .entry-title a:hover {
    color: #ff4500;
}

/* Entry Meta */
.actualidad-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

.actualidad-post .entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actualidad-post .entry-meta i {
    color: #ff4500;
}

.actualidad-post .entry-meta a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actualidad-post .entry-meta a:hover {
    color: #ff4500;
}

/* Entry Summary Compact */
.actualidad-post .entry-summary {
    color: #ddd;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Styling */
.actualidad-sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-widget .widget-title {
    font-family: 'Special Elite', cursive !important;
    color: #ff4500;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
    padding-bottom: 10px;
    letter-spacing: 1.5px;
}

.archives-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archives-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.archives-list li:last-child {
    border-bottom: none;
}

.archives-list a {
    color: #eee;
    text-decoration: none;
    font-family: 'Special Elite', cursive !important;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}

.archives-list a:hover {
    color: #ff4500;
}

.actualidad-post .entry-summary p {
    margin-bottom: 15px;
    font-family: 'Special Elite', cursive !important;
}

/* Ocultar el enlace "Read More..." automático del extracto */
.actualidad-post .entry-summary .more-link {
    display: none !important;
}

/* Entry Footer */
.actualidad-post .entry-footer {
    margin-top: auto;
}

.actualidad-post .read-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff4500, #ff6347);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    font-family: 'Special Elite', cursive !important;
}

.actualidad-post .read-more-btn:hover {
    background: linear-gradient(135deg, #ff6347, #ff4500);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
}

.actualidad-post .read-more-btn i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.actualidad-post .read-more-btn:hover i {
    margin-left: 12px;
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-posts-message p {
    font-size: 1.3rem;
    color: #aaa;
    margin: 0;
}

/* =========================================
   Contact Form 7 (Premium Rocker Design)
   ========================================= */

.wpcf7 {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 20px 2px;
    /* Casi sin espacio inferior dentro del form */
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.wpcf7 label {
    display: block;
    color: #ff4500;
    font-family: 'Special Elite', cursive !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
    /* Mínimo espacio con el input */
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    margin-bottom: 6px !important;
    /* Espacio entre bloques reducido */
}

.wpcf7 textarea {
    height: 100px !important;
    /* El doble (aprox) del resto para que se vea mejor */
    min-height: 80px !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #ff4500 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.3) !important;
    outline: none !important;
}

.wpcf7-submit {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
    /* Un pelín más bajo */
    background: linear-gradient(135deg, #ff4500, #ff6347) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-family: 'Special Elite', cursive !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-top: 2px !important;
    /* Pegado al campo anterior */
    border: none !important;
    cursor: pointer !important;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-wrapper .page-numbers a:hover {
    background: #ff4500;
    border-color: #ff4500;
    transform: translateY(-2px);
}

.pagination-wrapper .page-numbers .current {
    background: #ff4500;
    border-color: #ff4500;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-centered-wrapper {
        padding: 20px;
    }

    .contact-main-title {
        font-size: 2rem;
    }

    .contact-page-container {
        padding: 100px 10px 20px;
        overflow-y: auto;
    }

    .wpcf7 textarea {
        height: 100px !important;
    }
}

/* =========================================
   Conciertos (Gira) Page Layout & Styling
   ========================================= */

/* --- THE EVENTS CALENDAR (PREMIUM ROCKER) --- */

/* Contenedor Principal: Sincronizar con el Flex Layout Global de Deklibe */
body.tribe-events-page-template .site-inner {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

body.tribe-events-page-template .site-content {
    flex: 1 0 auto !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}

body.tribe-events-page-template #primary.content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* Forzar que los wrappers centren el contenido dentro de los bloques */
body.tribe-events-page-template .wrapper {
    max-width: 1200px !important;
    width: 95% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 20px 0 !important;
    display: block !important;
}

.tribe-events-page-template #primary,
.tribe-events-page-template .site-main {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 !important;
}

.tribe-events,
.tribe-events-l-container,
.tribe-events-view {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Bajar drásticamente el bloque de eventos para liberar el menú fijo */
.tribe-events-page-template .actualidad-page-container,
.tribe-events-page-template .tribe-events-l-container,
.tribe-events {
    padding-top: 20px !important;
    margin-top: 160px !important;
    /* AHORA EL MARGEN ES GLOBAL PARA EL BLOQUE */
    position: relative !important;
    z-index: 1 !important;
}

/* Cabecera maestra: Unificar en una sola fila y sincronizar ancho */
.tribe-events-header {
    margin-top: 0 !important;
    /* Ya lo baja el contenedor padre */
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    /* Separar buscador de fechas */
    align-items: center !important;
    gap: 20px !important;
    padding: 10px 20px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    max-width: 1000px !important;
    /* SINCRONIZADO CON EL PAPEL */
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2000 !important;
    /* Por encima del resto de la página */
    overflow: visible !important;
    /* IMPORTANTE para que el datepicker no se corte */
}

/* Forzar que los contenedores internos no ocupen el 100% y fluyan en fila */
.tribe-events-header__events-bar,
.tribe-events-c-events-bar,
.tribe-events-header__top-bar,
.tribe-events-c-top-bar,
.tribe-events-c-events-bar__search-container,
.tribe-events-c-events-bar__search {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    /* Permitir que crezcan para ocupar espacio */
    overflow: visible !important;
    /* PARA EL DATEPICKER */
}

/* Forzar que el buscador ocupe más espacio */
.tribe-events-header__events-bar,
.tribe-events-c-events-bar {
    flex: 2 1 auto !important;
    order: 1 !important;
    /* Buscador a la IA (porque flex-start/order manejan el flujo) */
}

/* Mover Hoy/Próximos a la derecha */
.tribe-events-header__top-bar,
.tribe-events-c-top-bar {
    order: 2 !important;
    justify-content: flex-end !important;
}

/* ============================================
   EVENTOS: CONTENEDOR LEGIBLE TIPO ACTUALIDAD
   ============================================ */

/* Contenedor principal de lista de eventos */
.tribe-events-view--list .tribe-events-calendar-list,
.tribe-events-view--list .tribe-common-l-container {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-top: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    /* Un poco más de aire */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Forzar que el wrapper no limite el ancho del papel */
.tribe-events-calendar-list__event-wrapper {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

/* TARJETA DE EVENTO (LISTA) - Centrada y ensanchada */
.tribe-events-calendar-list__event {
    background: #fdfaf0 !important;
    background-image:
        linear-gradient(rgba(0, 150, 255, 0.1) 1px, transparent 1px),
        linear-gradient(135deg, transparent 45%, rgba(0, 0, 0, 0.03) 50%, transparent 55%),
        linear-gradient(45deg, transparent 48%, rgba(0, 0, 0, 0.02) 50%, transparent 52%) !important;
    background-size: 100% 25px, 200% 200%, 150% 150% !important;

    clip-path: polygon(0% 0.5%, 15% 0%, 35% 1.5%, 55% 0.2%, 75% 1%, 90% 0.3%, 100% 1%,
            99.5% 15%, 100% 35%, 98.5% 55%, 100% 75%, 99.2% 90%, 100% 100%,
            90% 99.5%, 75% 100%, 55% 98.8%, 35% 100%, 15% 99.3%, 0% 100%,
            1% 90%, 0.5% 75%, 1.2% 55%, 0% 35%, 0.8% 15%) !important;

    border-left: 2px solid rgba(255, 69, 0, 0.3) !important;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.6) !important;
    padding: 40px !important;
    /* Damos el padding aquí para el texto */
    margin-bottom: 65px !important;
    margin-top: 35px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: visible !important;
    display: block !important;
    width: 95% !important;
    /* Ligeramente menos del 100% para centrar */
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    z-index: 1 !important;
    transform: rotate(0.4deg);
    cursor: pointer !important;
    /* Indicamos que es cliqueable */
}

/* Hacer que el enlace del título cubra toda la tarjeta (Stretched Link) */
.tribe-events-calendar-list__event-title-link::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 20 !important;
    /* Por encima del contenido pero debajo de elementos interactivos extra si los hubiera */
}

.tribe-events-calendar-list__event:nth-child(even) {
    transform: rotate(-1.2deg);
}

.tribe-events-calendar-list__event:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Efecto Cinta de Carrocero (Masking Tape) Macarra */
.tribe-events-calendar-list__event::before {
    content: "" !important;
    position: absolute !important;
    top: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(3deg) !important;
    width: 140px !important;
    height: 40px !important;
    background: rgba(245, 245, 220, 0.6) !important;
    /* Beige translúcido */
    backdrop-filter: blur(1px) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Sombras de cinta pegada */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
    /* Bordes rascados de cinta */
    clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%) !important;
}

.tribe-events-calendar-list__event:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Contenedor interno del evento - ELIMINAMOS PADDING PARA QUE EL PAPEL LLEGUE AL BORDE */
.tribe-events-calendar-list__event-row {
    background: transparent !important;
    padding: 0 !important;
    /* El padding se lo daremos al papel directamente */
    display: block !important;
    border: none !important;
    position: relative !important;
    width: 100% !important;
}

/* Fecha lateral (Clavada ENCIMA del papel - solo letras y número, sin líneas) */
.tribe-events-calendar-list__event-date-tag {
    background: transparent !important;
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    color: #D23 !important;
    font-family: 'Courier', 'Special Elite', cursive !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    z-index: 1000 !important;
    position: absolute !important;
    top: -5px !important;
    /* Más arriba */
    right: -10px !important;
    /* Más a la derecha, sobresaliendo un poco */
    left: auto !important;
    transform: rotate(25deg) !important;
    /* Rotación hacia la derecha como el recuadro rojo */

    /* EFECTO GRUNGE REAL (MÁSCARA) */
    -webkit-mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png') !important;
    mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png') !important;
    -webkit-mask-size: 944px 604px !important;
    mask-size: 944px 604px !important;
    -webkit-mask-position: 2rem 3rem !important;
    mask-position: 2rem 3rem !important;

    mix-blend-mode: multiply !important;
    /* Fusión con el papel */
    box-shadow: none !important;
    overflow: hidden !important;
    width: auto !important;
    height: auto !important;
    min-width: 150px !important;
}

/* Ocultar efectos anteriores que estorben */
.tribe-events-calendar-list__event-date-tag::after {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("https://i.imgur.com/5O74VI6.jpg") !important;
    /* Textura Grunge */
    mix-blend-mode: lighten !important;
    /* Clave para el efecto sello */
    pointer-events: none !important;
    z-index: 10 !important;
}

.tribe-events-calendar-list__event-date-tag-daynum {
    display: block !important;
    font-size: 3.5rem !important;
    /* Más grande e impactante */
    font-weight: 900 !important;
    color: inherit !important;
    line-height: 0.8 !important;
    margin: 5px 0 !important;
}

.tribe-events-calendar-list__event-date-tag-month,
.tribe-events-calendar-list__event-date-tag-weekday {
    display: block !important;
    font-size: 1.1rem !important;
    color: inherit !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-family: 'Special Elite', cursive !important;
}

/* Título del evento */
.tribe-events-calendar-list__event-title {
    margin: 0 0 15px 0 !important;
    clear: none !important;
}

/* Descripción y detalles del evento en modo papel - Refuerzo de contraste TOTAL */
.tribe-events-calendar-list__event-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.tribe-events-calendar-list__event-description,
.tribe-events-calendar-list__event-description p,
.tribe-events-calendar-list__event-datetime-wrapper,
.tribe-events-calendar-list__event-datetime,
.tribe-events-calendar-list__event-datetime *,
.tribe-events-calendar-list__event-venue,
.tribe-events-calendar-list__event-venue-address,
.tribe-events-calendar-list__event-venue-title {
    color: #000 !important;
    /* NEGRO PURO para el papel */
    font-family: 'Special Elite', cursive !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Imagen Destacada - Estilo Polaroid a la derecha */
.tribe-events-calendar-list__event-featured-image-wrapper {
    float: right !important;
    width: 250px !important;
    margin: 10px 0 20px 30px !important;
    padding: 12px 12px 50px 12px !important;
    /* Espacio para el pie de la Polaroid */
    background: #fff !important;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4) !important;
    transform: rotate(3deg) !important;
    border: 1px solid #eee !important;
    z-index: 5 !important;
    transition: transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Importe dentro del polaroid - centrado en la franja blanca inferior */
.tribe-events-calendar-list__event-cost--polaroid {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

.tribe-events-calendar-list__event-featured-image-wrapper:hover {
    transform: rotate(0deg) scale(1.05) !important;
}

.tribe-events-calendar-list__event-featured-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block !important;
    border: 1px solid #ddd !important;
    filter: sepia(20%) contrast(1.1) !important;
    /* Toque retro para la foto */
}

/* Limpiar floats en el contenedor */
.tribe-events-calendar-list__event::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Aprovechar ancho de dirección y quitar "Spain" */
.tribe-events-calendar-list__event-venue {
    display: block !important;
    width: 100% !important;
    margin-top: 15px !important;
}

.tribe-events-calendar-list__event-venue-address {
    display: block !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    max-width: 65ch !important;
    /* Recorte aproximado para quitar Spain */
}

.tribe-events-calendar-list__event-description p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.tribe-events-calendar-list__event-datetime-wrapper,
.tribe-events-calendar-list__event-venue {
    font-size: 0.95rem !important;
    margin: 8px 0 !important;
}

/* Importe entrada - fallback para eventos sin imagen */
.tribe-events-calendar-list__event-details > .tribe-events-calendar-list__event-cost {
    margin-top: 12px !important;
    text-align: left !important;
}

.tribe-events-calendar-list__event-cost .tribe-events-c-small-cta__price,
.tribe-events-c-small-cta__price {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #ff4500 0%, #cc3300 100%) !important;
    color: #fff !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 8px rgba(255, 69, 0, 0.4) !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.tribe-events-calendar-list__event-cost:hover .tribe-events-c-small-cta__price,
.tribe-events-calendar-list__event:hover .tribe-events-c-small-cta__price {
    transform: scale(1.05) !important;
    box-shadow: 3px 3px 12px rgba(255, 69, 0, 0.5) !important;
}

/* Importe también en schedule (evento individual) y meta */
.tribe-events-schedule .tribe-events-cost,
.wp-singular.single-tribe_events .tribe-events-event-cost {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #ff4500 0%, #cc3300 100%) !important;
    color: #fff !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 8px rgba(255, 69, 0, 0.4) !important;
}

/* ============================================
   EVENTO INDIVIDUAL (SINGLE): EL PÓSTER PUNK
   ============================================ */

/* Contenedor principal - flex para papel + footer, poco espacio */
.wp-singular.single-tribe_events #tribe-events-content.tribe-events-single {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 60px !important;
    margin-bottom: 15px !important;
    max-width: 980px !important;
    width: 100% !important;
}

/* La hoja de papel - efecto hoja arrancada con sombra en el rasgado */
.wp-singular.single-tribe_events .tribe-events-paper-sheet {
    background: #fdfaf0 !important;
    background-image:
        linear-gradient(rgba(0, 150, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 100% 25px, 25px 100% !important;
    padding: 80px 50px 40px 50px !important;
    border: none !important;
    color: #000 !important;
    position: relative !important;
    transform: rotate(-0.8deg) !important;
    width: 100% !important;
    max-width: 950px !important;

    /* Sombra general + sombra en el rasgado para efecto 3D */
    box-shadow:
        15px 15px 40px rgba(0, 0, 0, 0.5),
        0 12px 25px -8px rgba(0, 0, 0, 0.4) !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) !important;

    /* Efecto hoja arrancada: borde inferior irregular - botón siempre visible */
    clip-path: polygon(
        0 0, 100% 0, 100% 99%,
        98% 100%, 92% 99.2%, 85% 100%, 78% 99%, 70% 100%, 62% 99.2%, 55% 100%, 45% 99%, 38% 100%, 30% 99.2%, 22% 100%, 15% 99%, 8% 100%, 0 99%, 0 0
    ) !important;
}

/* Cinta de carrocero superior en la hoja */
.wp-singular.single-tribe_events .tribe-events-paper-sheet::before {
    content: "" !important;
    position: absolute !important;
    top: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(1deg) !important;
    width: 250px !important;
    height: 60px !important;
    background: rgba(240, 230, 190, 0.8) !important;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
    clip-path: polygon(2% 15%, 98% 10%, 100% 50%, 97% 90%, 3% 85%, 0% 50%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Forzar Título en Negro sobre el papel */
/* Header con título y stamp de fecha */
.wp-singular.single-tribe_events .tribe-events-single-header-with-stamp {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 30px !important;
    margin-bottom: 8px !important;
    margin-right: -15px !important;
    position: relative !important;
}

.wp-singular.single-tribe_events .tribe-events-single-title-wrap {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Stamp de fecha junto al título - más grande y más a la derecha */
.wp-singular.single-tribe_events .tribe-events-single-date-stamp.tribe-events-calendar-list__event-date-tag {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    flex-shrink: 0 !important;
    transform: rotate(10deg) !important;
    margin-left: auto !important;
    padding: 0.6rem 1.2rem !important;
}

.wp-singular.single-tribe_events .tribe-events-single-date-stamp .tribe-events-calendar-list__event-date-tag-daynum {
    font-size: 4rem !important;
    line-height: 0.85 !important;
}

.wp-singular.single-tribe_events .tribe-events-single-date-stamp .tribe-events-calendar-list__event-date-tag-weekday {
    font-size: 1.35rem !important;
    color: #999 !important;
    letter-spacing: 3px !important;
}

.wp-singular.single-tribe_events .tribe-events-single-date-stamp .tribe-events-calendar-list__event-date-tag-daynum {
    color: #ff4500 !important;
}

.wp-singular.single-tribe_events h1.tribe-events-single-event-title {
    color: #000 !important;
    font-size: 3.8rem !important;
    font-family: 'Special Elite', cursive !important;
    text-shadow: none !important;
    margin-bottom: 8px !important;
    border-bottom: 3px double rgba(0, 0, 0, 0.15) !important;
    padding-bottom: 10px !important;
    line-height: 1 !important;
}

/* Forzar Textos de Contenido en Negro (dentro del papel) */
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-schedule,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-schedule h2,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-single-event-description,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-content p {
    color: #000 !important;
    background: transparent !important;
    text-shadow: none !important;
    font-family: 'Special Elite', cursive !important;
    border: none !important;
}

/* Contenedor del post dentro del papel */
.wp-singular.single-tribe_events .tribe-events-paper-sheet [id^="post-"] {
    display: flex !important;
    flex-direction: column !important;
}

/* Horario (izq) + botón Añadir al calendario (dcha) en la misma fila, cada uno en su esquina */
.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar .tribe-events-schedule {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    text-align: left !important;
}

/* Fecha y horario más grandes */
.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar .tribe-events-schedule,
.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar .tribe-event-date-start,
.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar .tribe-event-time {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Botón calendario: alineado a la derecha en su esquina */
.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar .tribe-events.tribe-common {
    margin: 0 0 0 auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
    display: inline-flex !important;
}

/* Desplegable del calendario: más estrecho */
.wp-singular.single-tribe_events .tribe-events-c-subscribe-dropdown__list {
    padding: 8px 0 !important;
}

@media screen and (max-width: 768px) {
    .wp-singular.single-tribe_events .tribe-events-schedule-with-calendar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .wp-singular.single-tribe_events .tribe-events-schedule-with-calendar .tribe-events-schedule {
        text-align: center !important;
    }
}

/* 3. El Cartel (Imagen) - Primero dentro del post */
.wp-singular.single-tribe_events .tribe-events-single-event-image-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 15px !important;
}

.wp-singular.single-tribe_events .tribe-events-event-image {
    order: 1 !important;
}

/* Importe dentro de la franja blanca del polaroid */
.wp-singular.single-tribe_events .tribe-events-single-event-cost-below-poster {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    text-align: center !important;
}

.wp-singular.single-tribe_events .tribe-events-single-event-cost-below-poster .tribe-events-cost {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #ff4500 0%, #cc3300 100%) !important;
    color: #fff !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 8px rgba(255, 69, 0, 0.4) !important;
}

/* Ocultar Precio en meta detalles (ya está debajo del polaroid) */
.wp-singular.single-tribe_events .tribe-events-meta-group-details li.tribe-events-meta-item:has(.tribe-events-event-cost-label) {
    display: none !important;
}

/* 4. Descripción - Después de la imagen, poco espacio */
.wp-singular.single-tribe_events .tribe-events-single-event-description {
    order: 2 !important;
    padding: 0 0 15px 0 !important;
    margin-top: 0 !important;
}

/* 5. Meta (Detalles, Local, mapa) - último del folio, la hoja se rompe aquí */
.wp-singular.single-tribe_events .tribe-events-paper-sheet [id^="post-"] > .tribe-events-single-section,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-single-section.tribe-events-event-meta {
    order: 3 !important;
}

/* Desplegable "Añadir al calendario" visible - z-index alto para que no lo tape nada */
.wp-singular.single-tribe_events .tribe-events-c-subscribe-dropdown__container {
    position: relative !important;
    z-index: 99999 !important;
    isolation: isolate !important;
}

.wp-singular.single-tribe_events .tribe-events-c-subscribe-dropdown {
    position: relative !important;
    z-index: 99999 !important;
}

.wp-singular.single-tribe_events .tribe-events-c-subscribe-dropdown__content {
    z-index: 999999 !important;
    position: absolute !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    min-width: 160px !important;
    max-width: 220px !important;
    width: max-content !important;
}

/* Permitir que el desplegable se vea */
.wp-singular.single-tribe_events .tribe-events-paper-sheet [id^="post-"],
.wp-singular.single-tribe_events .tribe-events.tribe-common,
.wp-singular.single-tribe_events .tribe-events-schedule-with-calendar {
    overflow: visible !important;
}


/* Meta (Detalles, Local, mapa) - dentro del folio, la hoja se rompe tras esto */
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-single-section.tribe-events-event-meta,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-event-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    padding: 25px 0 15px 0 !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: #000 !important;
}

.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-single-section-title,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-meta-label,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-address,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-venue,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-meta-value,
.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-abbr {
    color: #000 !important;
}

.wp-singular.single-tribe_events .tribe-events-paper-sheet .tribe-events-event-meta a {
    color: #0066b3 !important;
}

.wp-singular.single-tribe_events #tribe-events-footer {
    z-index: 1 !important;
    margin-bottom: 5px !important;
}

/* Ajustar los avisos de Tribe a negro */
.wp-singular.single-tribe_events .tribe-events-notices {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
    border: 1px dashed #000 !important;
}

.wp-singular.single-tribe_events .tribe-events-single-section.tribe-events-event-meta .tribe-events-single-section-title {
    font-size: 1.8rem !important;
    text-decoration: underline !important;
    margin-bottom: 20px !important;
}

/* Enlaces visibles en meta de eventos (Web, etc.) - contraste adecuado */
.wp-singular.single-tribe_events .tribe-events-event-url a,
.wp-singular.single-tribe_events .tribe-events-meta-value a,
.tribe-events-event-url a,
.tribe-events-meta-value a,
.tribe-events-page-template .tribe-events-event-url a,
.tribe-events-page-template .tribe-events-meta-value a {
    color: #0066b3 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.wp-singular.single-tribe_events .tribe-events-event-url a:hover,
.wp-singular.single-tribe_events .tribe-events-meta-value a:hover,
.tribe-events-event-url a:hover,
.tribe-events-meta-value a:hover {
    color: #ff4500 !important;
}

/* Imagen Polaroid en el Cartel */
.wp-singular.single-tribe_events .tribe-events-event-image {
    position: relative !important;
    background: #fff !important;
    padding: 15px 15px 60px 15px !important;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2) !important;
    transform: rotate(2deg) !important;
    max-width: 400px !important;
    margin: 0 auto 40px auto !important;
    border: 1px solid #ddd !important;
}

.wp-singular.single-tribe_events .tribe-events-event-image img {
    filter: sepia(0.2) contrast(1.1) !important;
}

/* Ajustar botones de calendario para que no desentonen */
.wp-singular.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
    background: #333 !important;
    border: none !important;
    color: #fff !important;
}

/* Mapa como foto pegada */
.wp-singular.single-tribe_events .tribe-events-venue-map {
    border: 8px solid #fff !important;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1) !important;
    transform: rotate(-1.5deg) !important;
}

/* ============================================
   OPTIMIZACIÓN MÓVIL PARA EL CARTEL
   ============================================ */
@media screen and (max-width: 768px) {
    .wp-singular.single-tribe_events .tribe-events-paper-sheet {
        padding: 50px 20px 40px 20px !important;
    }

    .wp-singular.single-tribe_events h1.tribe-events-single-event-title {
        font-size: 2.2rem !important;
        margin-bottom: 6px !important;
        padding-bottom: 8px !important;
        letter-spacing: 1px !important;
    }

    .wp-singular.single-tribe_events .tribe-events-event-image {
        max-width: 100% !important;
        padding: 10px 10px 40px 10px !important;
        transform: rotate(1deg) !important;
    }

    .wp-singular.single-tribe_events .tribe-events-single-section.tribe-events-event-meta {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .wp-singular.single-tribe_events .tribe-events-meta-group {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .wp-singular.single-tribe_events .tribe-events-venue-map {
        height: 250px !important;
        border: 5px solid #fff !important;
    }

    .wp-singular.single-tribe_events .tribe-events-paper-sheet::before {
        width: 150px !important;
        height: 40px !important;
        top: -20px !important;
    }

    .wp-singular.single-tribe_events .tribe-events-schedule {
        font-size: 0.9rem !important;
    }
}

/* Ocultar elementos innecesarios */
.tribe-events-back,
.tribe-events-sub-nav,
.tribe-events-cal-links {
    display: none !important;
}

/* Ocultar título "PRÓXIMOS" redundante */
.tribe-events-header__content-title {
    display: none !important;
}

/* Títulos de tarjeta y Tipografía General */
.tribe-events-calendar-list__event-title,
.tribe-events-c-events-bar__search-button-text,
.tribe-common-h3,
.tribe-common-h4,
.tribe-common-h5,
.tribe-events-calendar-list__month-separator {
    font-family: 'Special Elite', cursive !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #fff !important;
}

/* El título link sobre papel se controla arriba con #000 */
.tribe-events-calendar-list__event-title a:hover,
.tribe-events-single-event-title {
    color: #ff4500 !important;
    font-family: 'Special Elite', cursive !important;
}

/* Mejorar contraste de textos pequeños en eventos */
.tribe-events-calendar-list__event-datetime,
.tribe-events-calendar-list__event-venue,
.tribe-events-event-meta,
.tribe-events-event-meta a,
.tribe-events-single-event-description p {
    color: #eee !important;
    line-height: 1.6 !important;
    font-size: 1.05rem !important;
}

/* Etiquetas de Fecha (Ascuas) */
.tribe-events-calendar-list__event-date-tag-datetime {
    color: #ff4500 !important;
    font-family: 'Special Elite', cursive !important;
}

.tribe-events-calendar-list__event-date-tag-daynum {
    color: #ff4500 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5) !important;
}

/* Forzar el footer al fondo */
.tribe-events-page-template footer.site-footer {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    margin-top: 50px !important;
}

/* Evento individual: menos espacio entre papel y footer */
.wp-singular.single-tribe_events footer.site-footer,
.wp-singular.single-tribe_events .site-footer {
    margin-top: 25px !important;
}

/* Ajustes del Buscador para evitar cortes */
.tribe-events-c-events-bar__search-container {
    width: 100% !important;
}

.tribe-events-c-search__input-group {
    flex-grow: 1 !important;
}

/* Tipografía Special Elite */
.tribe-common,
.tribe-common input,
.tribe-common select,
.tribe-common button,
.tribe-events-c-top-bar__datepicker-button,
.tribe-events-c-view-selector__button-text,
.tribe-events-c-nav__prev-label,
.tribe-events-c-nav__next-label,
.tribe-events-calendar-list__event-title-link,
.tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events-calendar-list__event-date-tag-daynum {
    font-family: 'Special Elite', cursive !important;
}

/* Títulos y Enlaces - Los de lista se han movido a la sección papel */
.single-tribe_events .tribe-events-single-event-title {
    color: #fff !important;
}

/* Fecha (Día/Mes) */
.tribe-events-calendar-list__event-date-tag-daynum {
    color: #ff4500 !important;
    font-size: 2.2rem !important;
}

.tribe-events-calendar-list__event-date-tag-weekday {
    color: #ccc !important;
    text-transform: uppercase;
}

/* Buscador de Eventos (Compacto en una sola fila) */
.tribe-events-c-search {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.tribe-events-c-search__form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

.tribe-events-c-search__input-group {
    width: 350px !important;
    /* ENSANCHADO CONSIDERABLEMENTE */
    max-width: 400px !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
}

.tribe-events-c-search__input {
    font-family: 'Special Elite', cursive !important;
    font-size: 14px !important;
    padding: 6px 15px 6px 40px !important;
    /* Más padding a la izquierda para la lupa */
    height: 38px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* Forzar fuente en el placeholder */
.tribe-events-c-search__input::placeholder {
    font-family: 'Special Elite', cursive !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Posicionar la lupa correctamente dentro del campo */
.tribe-events-c-search__input-control-icon-svg {
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    fill: rgba(255, 255, 255, 0.5) !important;
}

/* Botón Buscar Eventos */
.tribe-events-c-search__button {
    font-family: 'Special Elite', cursive !important;
    height: 38px !important;
    padding: 0 15px !important;
    min-width: 150px !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* Eliminar selector de vistas */
.tribe-events-c-view-selector {
    display: none !important;
}

/* Botón de Buscar Eventos (Sincronizado con Leer Más) */
.tribe-common .tribe-common-c-btn,
.tribe-events-c-search__button,
.tribe-events-c-subscribe-dropdown__button {
    background: linear-gradient(135deg, #ff4500 0%, #b22222 100%) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 30px !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3) !important;
    color: #fff !important;
    white-space: nowrap !important;
    min-width: 200px !important;
}

.tribe-common .tribe-common-c-btn:hover,
.tribe-events-c-search__button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5) !important;
}

/* Detalles de la Tarjeta */
.tribe-events-calendar-list__event-datetime-wrapper {
    color: #ccc !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 0.9rem !important;
    margin-top: 5px !important;
}

.tribe-events-calendar-list__event-header {
    margin-bottom: 15px !important;
}

/* Botones Premium - Ajuste para fila única */
.tribe-common .tribe-common-c-btn,
.tribe-events-c-search__button,
.tribe-events-c-subscribe-dropdown__button {
    background: linear-gradient(135deg, #ff4500 0%, #b22222 100%) !important;
    border: none !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 8px 15px !important;
    /* Más compacto */
    min-width: 160px !important;
    /* Menos ancho para que quepa */
    width: auto !important;
    border-radius: 4px !important;
    transition: transform 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

.tribe-common .tribe-common-c-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

/* Corrección de inputs de búsqueda */
.tribe-events-c-search__input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Reaparecer el botón Hoy y alinear con Próximos */
.tribe-events-c-events-bar__today-button,
.tribe-events-c-top-bar__today-button {
    font-family: 'Special Elite', cursive !important;
    display: inline-flex !important;
    padding: 6px 15px !important;
    height: 38px !important;
    align-items: center !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    /* FORZAR MAYÚSCULAS */
    order: -2 !important;
    background: #ff4500 !important;
    color: #fff !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

/* Selector de fecha (Próximos) y su desplegable */
.tribe-events-c-top-bar__datepicker {
    font-family: 'Special Elite', cursive !important;
    order: -1 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 38px !important;
    position: relative !important;
}

.tribe-events-c-top-bar__datepicker-container,
.tribe-datepicker {
    z-index: 99999 !important;
    /* VALOR ABSURDAMENTE ALTO PARA SER EL "KING" */
    position: absolute !important;
    background: #fff !important;
    /* Fondo blanco para el calendario para que se vea bien */
    color: #000 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.tribe-events-c-top-bar__datepicker-button {
    padding: 0 10px !important;
    font-size: 14px !important;
    color: #fff !important;
}

.tribe-events-c-view-selector__list-item--day {
    display: none !important;
}

.tribe-common .tribe-common-b2--bold {
    background: rgba(255, 69, 0, 0.1) !important;
    border: 1px solid #ff4500 !important;
    color: #ff4500 !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
}

/* Limpiar separadores y bullets discordantes */
.tribe-events-calendar-list__event-date-tag::after {
    display: none !important;
}

.tribe-events-calendar-list__month-separator {
    margin: 40px 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid rgba(255, 69, 0, 0.4) !important;
    width: 100% !important;
    text-align: left !important;
}

.tribe-events-calendar-list__month-separator-text {
    font-size: 1.5rem !important;
    color: #fff !important;
    /* Blanco brillante para el fondo negro */
    font-family: 'Special Elite', cursive !important;
    text-transform: uppercase !important;
}

/* ============================================
   NAVEGACIÓN DE EVENTOS (Anterior/Siguiente/Hoy)
   ============================================ */

.tribe-events-calendar-list-nav,
.tribe-events-c-nav {
    margin: 20px auto !important;
    /* Reducido verticalmente */
    padding: 10px !important;
    /* Más compacto */
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 10px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 1000px !important;
}

.tribe-events-c-nav__list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Forzar una sola fila */
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Botones de navegación compactos */
.tribe-events-c-nav__prev,
.tribe-events-c-nav__next,
.tribe-events-c-nav__today {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    /* TEXTO BLANCO */
    padding: 8px 15px !important;
    /* Reducido de 12px 25px */
    line-height: 1 !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-family: 'Special Elite', cursive !important;
    text-transform: uppercase !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.tribe-events-c-nav__prev:hover,
.tribe-events-c-nav__next:hover,
.tribe-events-c-nav__today:hover {
    background: #ff4500 !important;
    border-color: #ff4500 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Botones deshabilitados */
.tribe-events-c-nav__prev:disabled,
.tribe-events-c-nav__next:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Iconos SVG */
.tribe-events-c-nav__prev-icon-svg,
.tribe-events-c-nav__next-icon-svg {
    fill: #fff !important;
}

/* Labels */
.tribe-events-c-nav__prev-label,
.tribe-events-c-nav__next-label {
    color: #fff !important;
}

/* ============================================
   FICHA INDIVIDUAL: FONDO SEMITRANSPARENTE
   ============================================ */

/* Contenedor principal de la ficha individual */
.single-tribe_events #tribe-events-content {
    background: rgba(0, 0, 0, 0.85) !important;
    /* Semitransparente como Actualidad */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* En evento individual con papel: quitar blur del fondo debajo del recorte */
.wp-singular.single-tribe_events #tribe-events-content.tribe-events-single {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Secciones internas también semitransparentes */
.single-tribe_events .tribe-events-single-event-description,
.single-tribe_events .tribe-events-event-meta {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================
   VISTA MES: REDISEÑO DE CALENDARIO
   ============================================ */

/* Contenedor de la rejilla - Ajustado con transparencia y escala optimizada */
.tribe-events-view--month .tribe-events-calendar-month,
.tribe-events-view--month .tribe-common-l-container {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    overflow: hidden !important;

    /* Escalar al 85% para mayor legibilidad sin scroll */
    transform: scale(0.85) !important;
    transform-origin: top center !important;
    margin-bottom: -100px !important;
    /* Compensación ajustada a la nueva escala */
}

/* Cabecera de días (L, M, X...) */
.tribe-events-calendar-month__header-column {
    background: rgba(255, 69, 0, 0.1) !important;
    padding: 15px 0 !important;
    border-bottom: 2px solid #ff4500 !important;
}

.tribe-events-calendar-month__header-column-title {
    color: #ff4500 !important;
    font-family: 'Special Elite', cursive !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
}

/* Celdas de los días - Reducidas ligeramente para optimizar espacio vertical */
.tribe-events-calendar-month__day {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    min-height: 100px !important;
    /* Reducido de 120px */
    transition: background 0.3s ease !important;
}

.tribe-events-calendar-month__day:hover {
    background: rgba(255, 69, 0, 0.08) !important;
}

/* Día actual corregido */
.tribe-events-calendar-month__day--current {
    background: rgba(255, 69, 0, 0.15) !important;
    border: 1px solid #ff4500 !important;
}

/* Números de los días */
.tribe-events-calendar-month__day-date,
.tribe-events-calendar-month__day-date-link,
.tribe-events-calendar-month__day-date-daynum {
    color: #fff !important;
    font-family: 'Special Elite', cursive !important;
    font-size: 1.3rem !important;
    text-shadow: 1px 1px 2px #000 !important;
    text-decoration: none !important;
}

/* Días de otros meses */
.tribe-events-calendar-month__day--other-month {
    opacity: 0.2 !important;
}

/* Eventos dentro de la rejilla - Estilo "Post-it" */
.tribe-events-calendar-month__calendar-event-title-link {
    color: #222 !important;
    /* Texto oscuro sobre post-it */
    background: #ffdb58 !important;
    /* Amarillo Post-it */
    padding: 6px 10px !important;
    border-radius: 1px !important;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.8rem !important;
    display: block !important;
    margin-top: 10px !important;
    font-family: 'Special Elite', cursive !important;
    text-decoration: none !important;
    transform: rotate(-1deg);
    /* Ligera inclinación */
}

.tribe-events-calendar-month__calendar-event-title-link:hover {
    background: #ffed85 !important;
    transform: rotate(0deg) scale(1.05);
}

/* Tooltip de eventos en mes - Estilo Nota Arrugada */
.tribe-events-calendar-month__calendar-event-tooltip {
    background: #fdfaf0 !important;
    clip-path: polygon(2% 0%, 98% 1%, 100% 50%, 97% 99%, 3% 100%, 0% 55%) !important;
    border: none !important;
    color: #333 !important;
    padding: 25px !important;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    transform: rotate(1deg);
}

/* Asegurar texto oscuro dentro del tooltip de papel */
.tribe-events-calendar-month__calendar-event-tooltip-datetime,
.tribe-events-calendar-month__calendar-event-tooltip-title,
.tribe-events-calendar-month__calendar-event-tooltip-title-link,
.tribe-events-calendar-month__calendar-event-tooltip-description,
.tribe-events-calendar-month__calendar-event-tooltip-description p {
    color: #222 !important;
    font-family: 'Special Elite', cursive !important;
}

/* ============================================
   SOLUCIONES CRÍTICAS PARA VISTA MÓVIL
   ============================================ */

@media screen and (max-width: 768px) {

    /* Despegar del menú mejor en móvil */
    .tribe-events-page-template .actualidad-page-container,
    .tribe-events-page-template .tribe-events-l-container,
    .tribe-events {
        margin-top: 100px !important;
    }

    /* Cabecera Móvil: Apilar en columna */
    .tribe-events-header {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 15px !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 95% !important;
    }

    /* Buscador en fila interna pero adaptable */
    .tribe-events-header__events-bar,
    .tribe-events-c-events-bar {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        order: 2 !important;
        /* Buscador abajo */
    }

    .tribe-events-c-search__input-group {
        width: 100% !important;
        max-width: none !important;
    }

    .tribe-events-c-search__form {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .tribe-events-c-search__button {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Controles de fecha (Hoy/Próximos) arriba */
    .tribe-events-header__top-bar,
    .tribe-events-c-top-bar {
        width: 100% !important;
        justify-content: center !important;
        order: 1 !important;
        gap: 10px !important;
    }

    /* ARREGLAR PAPEL DE LIBRETA (TEXTO VERTICAL FIX) */
    .tribe-events-calendar-list__event {
        padding: 25px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        /* Todo en una columna */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Resetear Polaroid en móvil */
    .tribe-events-calendar-list__event-featured-image-wrapper {
        float: none !important;
        position: relative !important;
        width: 80% !important;
        max-width: 280px !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
        transform: rotate(2deg) !important;
    }

    .tribe-events-calendar-list__event-featured-image {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }

    .tribe-events-calendar-list__event-details {
        width: 100% !important;
        display: block !important;
        flex: none !important;
    }

    /* Sello is-nope más pequeño */
    .tribe-events-calendar-list__event-date-tag {
        scale: 0.65 !important;
        top: -15px !important;
        right: -15px !important;
        min-width: 120px !important;
    }

    /* Ajustar fuentes para no romper layout */
    .tribe-events-calendar-list__event-title {
        font-size: 1.1rem !important;
    }

    .tribe-events-calendar-list__event-venue-address {
        white-space: normal !important;
        max-width: none !important;
    }
}

/* ===========================================
   THE EVENTS CALENDAR: CUSTOM HIGHLIGHTS
   =========================================== */

/* 1. DATEPICKER (Dropdown from TEC Bar) */
.tribe-events-datepicker__calendar-day--has-event:not(.tribe-events-datepicker__calendar-day--selected) {
    background-color: rgba(255, 69, 0, 0.15) !important;
    color: #ff4500 !important;
    font-weight: 700 !important;
    border-radius: 50%;
}

/* Subtle dot under the date for the datepicker */
.tribe-events-datepicker__calendar-day--has-event::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #ff4500;
    border-radius: 50%;
    margin: 0 auto;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* 2. MONTH VIEW (Main Calendar Page) */
.tribe-events-calendar-month__day-cell--has-events .tribe-events-calendar-month__day-date-link {
    background-color: rgba(255, 69, 0, 0.8) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 2px 8px !important;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
    transition: all 0.3s ease;
}

.tribe-events-calendar-month__day-cell--has-events:hover .tribe-events-calendar-month__day-date-link {
    background-color: #ff4500 !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
}

/* Indicator for multi-day events or mobile dots */
.tribe-events-calendar-month__mobile-events-dot,
.tribe-common-b2--bold.tribe-events-calendar-month__mobile-events-count {
    background-color: #ff4500 !important;
}