/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Tema hijo para Espacio Colores - Centro cultural en Aranjuez
Author: Espacio Colores
Template: hello-elementor
Text Domain: hello-elementor-child
Version: 2.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ========================================
   ÍNDICE
   ========================================
   1. Header - Menú móvil
   2. Home - Figuras rotatorias
   3. Historia - Hero responsive
   4. Exposiciones - Overlay artistas
   5. Exposiciones - Botón condicional
   6. Colorteca - Tarjeta (card base)
   7. Colorteca - Iconos por tipo
   8. Colorteca - Botón play vídeos
   9. Colorteca - Hover efecto zoom
   10. Colorteca - Interactividad y pointer-events
   11. Colorteca - Enlaces internos clicables
   12. WooCommerce - Estilos globales
   13. WooCommerce - Campos visita autoguiada
   14. WooCommerce - Ocultar elementos
   15. WooCommerce - Layout páginas
   16. Eventos - Banner próximo evento
   17. Eventos - Overlay pasados (Loop Grid)
   18. Eventos - Single
   19. Eventos - Grid página
   20. Eventos - Galería WYSIWYG
   21. Elementor - Lightbox flechas navegación
   ======================================== */


/* ========================================
   1. HEADER - MENÚ MÓVIL
   ======================================== */
.elementor-menu-toggle {
    position: relative !important;
    top: 50% !important;
    transform: translateY(50%) !important;
}


/* ========================================
   2. HOME - FIGURAS ROTATORIAS
   ======================================== */
.rotating-square {
    position: absolute;
    top: 50%; left: 50%;
    width: 480px; height: 480px;
    background: #FFFFFF;
    opacity: 0.6;
    transform: translate(-50%, -50%) rotate(25deg);
    transform-origin: center center;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .rotating-square { width: 1152px; height: 1152px; }
}

.rotating-triangle {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

.rotating-triangle-mobile {
    border-left: 600px solid transparent;
    border-right: 600px solid transparent;
    border-bottom: 1040px solid rgba(159, 190, 87, 0.3);
}

.rotating-triangle-desktop { display: none; }

@media (min-width: 1024px) {
    .rotating-triangle-mobile { display: none; }
    .rotating-triangle-desktop {
        display: block;
        border-left: 1200px solid transparent;
        border-right: 1200px solid transparent;
        border-bottom: 2080px solid rgba(159, 190, 87, 0.3);
    }
}


/* ========================================
   3. HISTORIA - HERO RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    #hero-historia {
        min-height: auto !important;
        background-color: #000000 !important;
    }
    #hero-historia > .elementor-background-slideshow {
        position: relative !important;
        height: 40vh !important;
    }
}


/* ========================================
   4. EXPOSICIONES - OVERLAY ARTISTAS
   ======================================== */
.overlay-artista {
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.e-loop-item:hover .overlay-artista {
    opacity: 1 !important;
}


/* ========================================
   5. EXPOSICIONES - BOTÓN CONDICIONAL
   ======================================== */
a.elementor-button:not([href]) {
    display: none !important;
}


/* ========================================
   6. COLORTECA - TARJETA (CARD BASE)
   ======================================== */
.colorteca-card { cursor: pointer; }
.colorteca-card a { position: static; }

.colorteca-card a::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
}

.e-loop-item.tipo-cita .colorteca-card { cursor: default; }

.e-loop-item.tipo-galeria .colorteca-card a[href="https://galeria"] {
    cursor: pointer;
}

.colorteca-card .elementor-widget-image img {
    width: 100% !important;
    min-width: 100% !important;
}


/* ========================================
   7. COLORTECA - ICONOS POR TIPO
   ======================================== */
.icono-video,
.icono-audio,
.icono-galeria,
.icono-enlace-externo,
.icono-documento {
    display: none !important;
}

.e-loop-item.tipo-video .icono-video,
.e-loop-item.tipo-audio .icono-audio,
.e-loop-item.tipo-galeria .icono-galeria,
.e-loop-item.tipo-enlace-externo .icono-enlace-externo,
.e-loop-item.tipo-documento .icono-documento {
    display: flex !important;
}


/* ========================================
   8. COLORTECA - BOTÓN PLAY VÍDEOS
   ======================================== */
.colorteca-play {
    display: none !important;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.e-loop-item.tipo-video .colorteca-play {
    display: flex !important;
}


/* ========================================
   9. COLORTECA - HOVER EFECTO ZOOM
   ======================================== */
.colorteca-card img { transition: transform 0.3s ease; }
.colorteca-card:hover img { transform: scale(1.05); }


/* ========================================
   10. COLORTECA - INTERACTIVIDAD Y POINTER-EVENTS
   ======================================== */
.colorteca-card .icono-video,
.colorteca-card .icono-audio,
.colorteca-card .icono-galeria,
.colorteca-card .icono-enlace-externo,
.colorteca-card .icono-documento {
    pointer-events: none;
}

.colorteca-textos {
    pointer-events: none;
}


/* ========================================
   11. COLORTECA - ENLACES INTERNOS CLICABLES
   Autor (url_autor_fuente) y taxonomías
   z-index 11 > overlay z-index 10
   ======================================== */
.colorteca-textos a {
    pointer-events: auto;
    position: relative;
    z-index: 11;
}


/* ========================================
   12. WOOCOMMERCE - ESTILOS GLOBALES
   ======================================== */

/* Botones */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: #ED7457 !important;
    color: #FFFFFF !important;
    font-family: 'Josefin Sans', sans-serif !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #d4603f !important;
}

/* Títulos */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #2D2D2D !important;
}

/* Precio */
.woocommerce .price {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #ED7457 !important;
    font-size: 1.25rem !important;
}

/* Tabla carrito y checkout */
.woocommerce table.shop_table {
    border-color: #E5E5E5 !important;
    border-radius: 8px !important;
}

.woocommerce table.shop_table th {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #2D2D2D !important;
}

/* Mi Cuenta - navegación */
.woocommerce-MyAccount-navigation ul li a {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #2D2D2D !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ED7457 !important;
    font-weight: 700 !important;
}

/* Mensajes */
.woocommerce-message { border-top-color: #ED7457 !important; }
.woocommerce-message::before { color: #ED7457 !important; }

/* Formularios */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
    border: 1px solid #E5E5E5 !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-family: 'Josefin Sans', sans-serif !important;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #ED7457 !important;
    outline: none !important;
}


/* ========================================
   13. WOOCOMMERCE - CAMPOS VISITA AUTOGUIADA
   ======================================== */
.visita-campos { margin-bottom: 20px; }

.visita-campos label {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.visita-campos input[type="date"],
.visita-campos select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
}

.visita-campos input[type="date"]:focus,
.visita-campos select:focus {
    border-color: #ED7457;
    outline: none;
}

.visita-campos .form-row { margin-bottom: 15px; }

.visita-campos abbr.required {
    color: #ED7457;
    text-decoration: none;
}


/* ========================================
   14. WOOCOMMERCE - OCULTAR ELEMENTOS
   ======================================== */
.woocommerce-breadcrumb { display: none !important; }
.product_meta, .posted_in { display: none !important; }


/* ========================================
   15. WOOCOMMERCE - LAYOUT PÁGINAS
   ======================================== */
.woocommerce div.product {
    margin-bottom: 0;
    position: relative;
    margin-top: 80px;
}

.woocommerce div.product div.images .flex-control-thumbs {
    margin: 30px 0 0 0;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
.wc-block-cart-item__remove-link,
.wc-block-components-product-metadata {
    font-size: 16px !important;
    line-height: 1.3em !important;
}

body.woocommerce-page.page-template-default .site-main {
    margin-top: 60px;
}


/* ========================================
   16. EVENTOS - BANNER PRÓXIMO EVENTO
   ======================================== */
.banners-evento-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.banners-evento-lista .banner-evento + .banner-evento {
    border-top: 1px solid rgba(84, 89, 95, 0.15);
}

.banner-evento {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.banner-evento-fecha {
    width: 180px;
    min-width: 180px;
    text-align: center;
    border: 0px solid #ED7457;
    border-radius: 8px;
    padding: 14px 16px;
}

.fecha-dia {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    color: #ED7457;
}

.fecha-mes {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-top: 2px;
}

.fecha-dia-rango {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ED7457;
}

.fecha-sep {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.banner-evento-cartel {
    width: 80px;
    height: 110px;
    min-width: 80px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-evento-cartel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-evento-info { flex: 1; }

.banner-evento-tipo {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.banner-evento-titulo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2D2D2D;
    margin: 0 0 6px 0;
}

.banner-evento-titulo a {
    color: #2D2D2D;
    text-decoration: none;
}

.banner-evento-titulo a:hover {
    color: #ED7457;
}

.banner-evento-detalle {
    display: block;
    font-size: 0.95rem;
    color: #666;
}

.banner-evento-link {
    display: inline-block;
    margin-top: 10px;
    color: #ED7457;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.banner-evento-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .banner-evento {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }
    .banner-evento-fecha {
        min-width: 70px;
        padding: 10px 12px;
    }
    .fecha-dia { font-size: 2.2rem; }
    .banner-evento-cartel {
        width: 60px;
        height: 84px;
        min-width: 60px;
    }
    .banner-evento-titulo { font-size: 1.25rem; }
}


/* ========================================
   17. EVENTOS - OVERLAY PASADOS (Loop Grid)
   ======================================== */
.e-loop-item.evento-pasado { position: relative; }

.e-loop-item.evento-pasado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    z-index: 5;
    pointer-events: none;
}

.e-loop-item.evento-pasado img {
    filter: grayscale(100%);
}


/* ========================================
   18. EVENTOS - SINGLE
   ======================================== */
.evento-single-detalles { margin-top: 16px; }

.evento-single-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(84, 89, 95, 0.15);
}

.evento-meta-item {
    display: flex;
    gap: 16px;
}

.evento-meta-label {
    min-width: 80px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.evento-meta-valor {
    font-size: 1rem;
    color: #2D2D2D;
}

.evento-single-reserva {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: white;
    background: #ED7457;
    border: none;
    border-radius: 0;
    padding: 12px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px !important;
    text-decoration: none;
}

.evento-single-reserva:hover {
    background: #EAD468;
    color: #2D2D2D;
}

.evento-single-descripcion {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 767px) {
    .evento-meta-item {
        flex-direction: column;
        gap: 2px;
    }
    .evento-meta-label { min-width: auto; }
}


/* ========================================
   19. EVENTOS - GRID PÁGINA
   ======================================== */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.evento-card {
    border: 1px solid rgba(84, 89, 95, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.evento-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.evento-card-top {
    display: flex;
    gap: 16px;
    padding: 20px 20px 12px;
    align-items: flex-start;
}

.evento-card-fecha {
    min-width: 80px;
    text-align: center;
}

.evento-card-dia {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    color: #ED7457;
}

.evento-card-mes {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-top: 2px;
}

.evento-card-anio {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.1em;
}

.evento-card-dia-rango {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ED7457;
}

.evento-card-fecha-sep {
    display: block;
    font-size: 0.75rem;
    color: #999;
}

.evento-card-cartel {
    flex: 0 0 auto;
    border-radius: 0;
    overflow: hidden;
    height: 200px;
}

.evento-card-cartel img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.evento-card-bottom {
    padding: 0 20px 20px;
}

.evento-card-tipo {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.evento-card-titulo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.evento-card-titulo a {
    color: #2D2D2D;
    text-decoration: none;
}

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

.evento-card-detalle {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Pasados - overlay + grayscale */
.evento-card-pasado { position: relative; }

.evento-card-pasado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    z-index: 5;
    pointer-events: none;
}

.evento-card-pasado img { filter: grayscale(100%); }

.evento-card-pasado .evento-card-titulo a {
    pointer-events: auto;
    position: relative;
    z-index: 6;
}

.eventos-vacio {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    color: #999;
    text-align: center;
    padding: 40px 0;
}

/* Ver más */
.eventos-ver-mas-wrap {
    text-align: center;
    margin-top: 32px;
}

.eventos-ver-mas {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: white;
    background: #ED7457;
    border: none;
    border-radius: 0;
    padding: 12px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eventos-ver-mas:hover {
    background: #EAD468;
    color: #2D2D2D;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .eventos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .eventos-grid { grid-template-columns: 1fr; }
    .evento-card-dia { font-size: 2.2rem; }
}


/* ========================================
   20. EVENTOS - GALERÍA WYSIWYG
   ======================================== */
.evento-single-descripcion .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.evento-single-descripcion .gallery-item {
    margin: 0;
    width: 100% !important;
}

.evento-single-descripcion .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

@media (max-width: 767px) {
    .evento-single-descripcion .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   21. ELEMENTOR - LIGHTBOX FLECHAS NAVEGACIÓN
   Flechas ocultas por defecto en Elementor,
   forzamos visibilidad y posicionamiento
   ======================================== */
.elementor-lightbox .elementor-swiper-button {
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100000 !important;
    color: white !important;
    cursor: pointer;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-prev {
    left: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-next {
    right: 20px !important;
}/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Tema hijo para Espacio Colores - Centro cultural en Aranjuez
Author: Espacio Colores
Template: hello-elementor
Text Domain: hello-elementor-child
Version: 2.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ========================================
   ÍNDICE
   ========================================
   1. Header - Menú móvil
   2. Home - Figuras rotatorias
   3. Historia - Hero responsive
   4. Exposiciones - Overlay artistas
   5. Exposiciones - Botón condicional
   6. Colorteca - Tarjeta (card base)
   7. Colorteca - Iconos por tipo
   8. Colorteca - Botón play vídeos
   9. Colorteca - Hover efecto zoom
   10. Colorteca - Interactividad y pointer-events
   11. Colorteca - Enlaces internos clicables
   12. WooCommerce - Estilos globales
   13. WooCommerce - Campos visita autoguiada
   14. WooCommerce - Ocultar elementos
   15. WooCommerce - Layout páginas
   16. Eventos - Banner próximo evento
   17. Eventos - Overlay pasados (Loop Grid)
   18. Eventos - Single
   19. Eventos - Grid página
   20. Eventos - Galería WYSIWYG
   21. Elementor - Lightbox flechas navegación
   ======================================== */


/* ========================================
   1. HEADER - MENÚ MÓVIL
   ======================================== */
.elementor-menu-toggle {
    position: relative !important;
    top: 50% !important;
    transform: translateY(50%) !important;
}


/* ========================================
   2. HOME - FIGURAS ROTATORIAS
   ======================================== */
.rotating-square {
    position: absolute;
    top: 50%; left: 50%;
    width: 480px; height: 480px;
    background: #FFFFFF;
    opacity: 0.6;
    transform: translate(-50%, -50%) rotate(25deg);
    transform-origin: center center;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .rotating-square { width: 1152px; height: 1152px; }
}

.rotating-triangle {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

.rotating-triangle-mobile {
    border-left: 600px solid transparent;
    border-right: 600px solid transparent;
    border-bottom: 1040px solid rgba(159, 190, 87, 0.3);
}

.rotating-triangle-desktop { display: none; }

@media (min-width: 1024px) {
    .rotating-triangle-mobile { display: none; }
    .rotating-triangle-desktop {
        display: block;
        border-left: 1200px solid transparent;
        border-right: 1200px solid transparent;
        border-bottom: 2080px solid rgba(159, 190, 87, 0.3);
    }
}


/* ========================================
   3. HISTORIA - HERO RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    #hero-historia {
        min-height: auto !important;
        background-color: #000000 !important;
    }
    #hero-historia > .elementor-background-slideshow {
        position: relative !important;
        height: 40vh !important;
    }
}


/* ========================================
   4. EXPOSICIONES - OVERLAY ARTISTAS
   ======================================== */
.overlay-artista {
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.e-loop-item:hover .overlay-artista {
    opacity: 1 !important;
}


/* ========================================
   5. EXPOSICIONES - BOTÓN CONDICIONAL
   ======================================== */
a.elementor-button:not([href]) {
    display: none !important;
}


/* ========================================
   6. COLORTECA - TARJETA (CARD BASE)
   ======================================== */
.colorteca-card { cursor: pointer; }
.colorteca-card a { position: static; }

.colorteca-card a::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
}

.e-loop-item.tipo-cita .colorteca-card { cursor: default; }

.e-loop-item.tipo-galeria .colorteca-card a[href="https://galeria"] {
    cursor: pointer;
}

.colorteca-card .elementor-widget-image img {
    width: 100% !important;
    min-width: 100% !important;
}


/* ========================================
   7. COLORTECA - ICONOS POR TIPO
   ======================================== */
.icono-video,
.icono-audio,
.icono-galeria,
.icono-enlace-externo,
.icono-documento {
    display: none !important;
}

.e-loop-item.tipo-video .icono-video,
.e-loop-item.tipo-audio .icono-audio,
.e-loop-item.tipo-galeria .icono-galeria,
.e-loop-item.tipo-enlace-externo .icono-enlace-externo,
.e-loop-item.tipo-documento .icono-documento {
    display: flex !important;
}


/* ========================================
   8. COLORTECA - BOTÓN PLAY VÍDEOS
   ======================================== */
.colorteca-play {
    display: none !important;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.e-loop-item.tipo-video .colorteca-play {
    display: flex !important;
}


/* ========================================
   9. COLORTECA - HOVER EFECTO ZOOM
   ======================================== */
.colorteca-card img { transition: transform 0.3s ease; }
.colorteca-card:hover img { transform: scale(1.05); }


/* ========================================
   10. COLORTECA - INTERACTIVIDAD Y POINTER-EVENTS
   ======================================== */
.colorteca-card .icono-video,
.colorteca-card .icono-audio,
.colorteca-card .icono-galeria,
.colorteca-card .icono-enlace-externo,
.colorteca-card .icono-documento {
    pointer-events: none;
}

.colorteca-textos {
    pointer-events: none;
}


/* ========================================
   11. COLORTECA - ENLACES INTERNOS CLICABLES
   Autor (url_autor_fuente) y taxonomías
   z-index 11 > overlay z-index 10
   ======================================== */
.colorteca-textos a {
    pointer-events: auto;
    position: relative;
    z-index: 11;
}


/* ========================================
   12. WOOCOMMERCE - ESTILOS GLOBALES
   ======================================== */

/* Botones */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: #ED7457 !important;
    color: #FFFFFF !important;
    font-family: 'Josefin Sans', sans-serif !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #d4603f !important;
}

/* Títulos */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #2D2D2D !important;
}

/* Precio */
.woocommerce .price {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #ED7457 !important;
    font-size: 1.25rem !important;
}

/* Tabla carrito y checkout */
.woocommerce table.shop_table {
    border-color: #E5E5E5 !important;
    border-radius: 8px !important;
}

.woocommerce table.shop_table th {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #2D2D2D !important;
}

/* Mi Cuenta - navegación */
.woocommerce-MyAccount-navigation ul li a {
    font-family: 'Josefin Sans', sans-serif !important;
    color: #2D2D2D !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ED7457 !important;
    font-weight: 700 !important;
}

/* Mensajes */
.woocommerce-message { border-top-color: #ED7457 !important; }
.woocommerce-message::before { color: #ED7457 !important; }

/* Formularios */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
    border: 1px solid #E5E5E5 !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-family: 'Josefin Sans', sans-serif !important;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #ED7457 !important;
    outline: none !important;
}


/* ========================================
   13. WOOCOMMERCE - CAMPOS VISITA AUTOGUIADA
   ======================================== */
.visita-campos { margin-bottom: 20px; }

.visita-campos label {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.visita-campos input[type="date"],
.visita-campos select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
}

.visita-campos input[type="date"]:focus,
.visita-campos select:focus {
    border-color: #ED7457;
    outline: none;
}

.visita-campos .form-row { margin-bottom: 15px; }

.visita-campos abbr.required {
    color: #ED7457;
    text-decoration: none;
}


/* ========================================
   14. WOOCOMMERCE - OCULTAR ELEMENTOS
   ======================================== */
.woocommerce-breadcrumb { display: none !important; }
.product_meta, .posted_in { display: none !important; }


/* ========================================
   15. WOOCOMMERCE - LAYOUT PÁGINAS
   ======================================== */
.woocommerce div.product {
    margin-bottom: 0;
    position: relative;
    margin-top: 80px;
}

.woocommerce div.product div.images .flex-control-thumbs {
    margin: 30px 0 0 0;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
.wc-block-cart-item__remove-link,
.wc-block-components-product-metadata {
    font-size: 16px !important;
    line-height: 1.3em !important;
}

body.woocommerce-page.page-template-default .site-main {
    margin-top: 60px;
}


/* ========================================
   16. EVENTOS - BANNER PRÓXIMO EVENTO
   ======================================== */
.banners-evento-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.banners-evento-lista .banner-evento + .banner-evento {
    border-top: 1px solid rgba(84, 89, 95, 0.15);
}

.banner-evento {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.banner-evento-fecha {
    width: 180px;
    min-width: 180px;
    text-align: center;
    border: 0px solid #ED7457;
    border-radius: 8px;
    padding: 14px 16px;
}

.fecha-dia {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    color: #ED7457;
}

.fecha-mes {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-top: 2px;
}

.fecha-dia-rango {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ED7457;
}

.fecha-sep {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.banner-evento-cartel {
    width: 80px;
    height: 110px;
    min-width: 80px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-evento-cartel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-evento-info { flex: 1; }

.banner-evento-tipo {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.banner-evento-titulo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2D2D2D;
    margin: 0 0 6px 0;
}

.banner-evento-titulo a {
    color: #2D2D2D;
    text-decoration: none;
}

.banner-evento-titulo a:hover {
    color: #ED7457;
}

.banner-evento-detalle {
    display: block;
    font-size: 0.95rem;
    color: #666;
}

.banner-evento-link {
    display: inline-block;
    margin-top: 10px;
    color: #ED7457;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.banner-evento-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .banner-evento {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }
    .banner-evento-fecha {
        min-width: 70px;
        padding: 10px 12px;
    }
    .fecha-dia { font-size: 2.2rem; }
    .banner-evento-cartel {
        width: 60px;
        height: 84px;
        min-width: 60px;
    }
    .banner-evento-titulo { font-size: 1.25rem; }
}


/* ========================================
   17. EVENTOS - OVERLAY PASADOS (Loop Grid)
   ======================================== */
.e-loop-item.evento-pasado { position: relative; }

.e-loop-item.evento-pasado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    z-index: 5;
    pointer-events: none;
}

.e-loop-item.evento-pasado img {
    filter: grayscale(100%);
}


/* ========================================
   18. EVENTOS - SINGLE
   ======================================== */
.evento-single-detalles { margin-top: 16px; }

.evento-single-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(84, 89, 95, 0.15);
}

.evento-meta-item {
    display: flex;
    gap: 16px;
}

.evento-meta-label {
    min-width: 80px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.evento-meta-valor {
    font-size: 1rem;
    color: #2D2D2D;
}

.evento-single-reserva {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: white;
    background: #ED7457;
    border: none;
    border-radius: 0;
    padding: 12px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px !important;
    text-decoration: none;
}

.evento-single-reserva:hover {
    background: #EAD468;
    color: #2D2D2D;
}

.evento-single-descripcion {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 767px) {
    .evento-meta-item {
        flex-direction: column;
        gap: 2px;
    }
    .evento-meta-label { min-width: auto; }
}


/* ========================================
   19. EVENTOS - GRID PÁGINA
   ======================================== */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.evento-card {
    border: 1px solid rgba(84, 89, 95, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.evento-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.evento-card-top {
    display: flex;
    gap: 16px;
    padding: 20px 20px 12px;
    align-items: flex-start;
}

.evento-card-fecha {
    min-width: 80px;
    text-align: center;
}

.evento-card-dia {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    color: #ED7457;
}

.evento-card-mes {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-top: 2px;
}

.evento-card-anio {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.1em;
}

.evento-card-dia-rango {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ED7457;
}

.evento-card-fecha-sep {
    display: block;
    font-size: 0.75rem;
    color: #999;
}

.evento-card-cartel {
    flex: 0 0 auto;
    border-radius: 0;
    overflow: hidden;
    height: 200px;
}

.evento-card-cartel img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.evento-card-bottom {
    padding: 0 20px 20px;
}

.evento-card-tipo {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.evento-card-titulo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.evento-card-titulo a {
    color: #2D2D2D;
    text-decoration: none;
}

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

.evento-card-detalle {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Pasados - overlay + grayscale */
.evento-card-pasado { position: relative; }

.evento-card-pasado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    z-index: 5;
    pointer-events: none;
}

.evento-card-pasado img { filter: grayscale(100%); }

.evento-card-pasado .evento-card-titulo a {
    pointer-events: auto;
    position: relative;
    z-index: 6;
}

.eventos-vacio {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    color: #999;
    text-align: center;
    padding: 40px 0;
}

/* Ver más */
.eventos-ver-mas-wrap {
    text-align: center;
    margin-top: 32px;
}

.eventos-ver-mas {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: white;
    background: #ED7457;
    border: none;
    border-radius: 0;
    padding: 12px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eventos-ver-mas:hover {
    background: #EAD468;
    color: #2D2D2D;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .eventos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .eventos-grid { grid-template-columns: 1fr; }
    .evento-card-dia { font-size: 2.2rem; }
}


/* ========================================
   20. EVENTOS - GALERÍA WYSIWYG
   ======================================== */
.evento-single-descripcion .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.evento-single-descripcion .gallery-item {
    margin: 0;
    width: 100% !important;
}

.evento-single-descripcion .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

@media (max-width: 767px) {
    .evento-single-descripcion .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   21. ELEMENTOR - LIGHTBOX FLECHAS NAVEGACIÓN
   Flechas ocultas por defecto en Elementor,
   forzamos visibilidad y posicionamiento
   ======================================== */
.elementor-lightbox .elementor-swiper-button {
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100000 !important;
    color: white !important;
    cursor: pointer;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-prev {
    left: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-next {
    right: 20px !important;
}