/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Text Domain: hello-elementor-child
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
Description: Tema hijo para Espacio Colores - Centro cultural en Aranjuez
Version: 1.0
Author: Espacio Colores
Template: hello-elementor
*/

/* ========================================
   ÍNDICE
   ========================================
   1. Header - Menú móvil
   2. Home - Figuras rotatorias (cuadrado y triángulo)
   3. Historia - Hero responsive
   4. Exposiciones - Overlay artistas
   5. Exposiciones - Botón condicional
   6. Colorteca - Tarjeta (card base)
   7. Colorteca - Iconos por tipo de contenido
   8. Colorteca - Botón play para vídeos
   9. Colorteca - Hover efecto zoom
   10. Colorteca - Interactividad y pointer-events
   ======================================== */


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


/* ========================================
   2. HOME - FIGURAS ROTATORIAS
   Cuadrado blanco (#visita) y triángulo verde (#contacto)
   Animadas con JS scroll-based (ver functions.php)
   ======================================== */

/* Cuadrado blanco rotatorio */
.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;
    }
}

/* Triángulo verde rotatorio */
.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;
}

/* Triángulo - versión móvil */
.rotating-triangle-mobile {
    border-left: 600px solid transparent;
    border-right: 600px solid transparent;
    border-bottom: 1040px solid rgba(159, 190, 87, 0.3);
}

/* Triángulo - versión desktop (oculto en móvil) */
.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
   Desktop: slideshow de fondo con textos centrados
   Móvil: slideshow arriba (40vh) + fondo negro para textos
   Contenedor padre: CSS ID #hero-historia
   ======================================== */
@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
   Hover sobre tarjeta de artista muestra biografía + botón
   Clase CSS del overlay: .overlay-artista
   ======================================== */
.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
   Oculta el botón "Conoce al artista" cuando
   el campo ACF web_del_artista está vacío
   (Elementor no genera href si el campo está vacío)
   ======================================== */
a.elementor-button:not([href]) {
    display: none !important;
}


/* ========================================
   6. COLORTECA - TARJETA (CARD BASE)
   Clase CSS del contenedor padre: .colorteca-card
   La tarjeta completa es pulsable via pseudo-elemento
   ======================================== */
.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;
}

/* Citas: sin cursor pointer */
.e-loop-item.tipo-cita .colorteca-card {
    cursor: default;
}

/* Galerías: cursor pointer con URL placeholder */
.e-loop-item.tipo-galeria .colorteca-card a[href="https://galeria"] {
    cursor: pointer;
}


/* ========================================
   7. COLORTECA - ICONOS POR TIPO DE CONTENIDO
   Se muestran/ocultan según la clase tipo-X
   que genera el PHP (post_class filter)
   Clases de los widgets Icon en el Loop Template:
   .icono-video, .icono-audio, .icono-galeria,
   .icono-enlace-externo, .icono-documento
   ======================================== */

/* Ocultar todos por defecto */
.icono-video,
.icono-audio,
.icono-galeria,
.icono-enlace-externo,
.icono-documento {
    display: none !important;
}

/* Mostrar según tipo (clase añadida por PHP en e-loop-item) */
.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 PARA VÍDEOS
   Círculo semitransparente centrado en la tarjeta
   Solo visible en items tipo-video
   Clase CSS: .colorteca-play
   ======================================== */
.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
   Zoom suave en la imagen al hacer hover
   sobre el contenedor padre
   ======================================== */
.colorteca-card img {
    transition: transform 0.3s ease;
}

.colorteca-card:hover img {
    transform: scale(1.05);
}


/* ========================================
   10. COLORTECA - INTERACTIVIDAD Y POINTER-EVENTS
   Los contenedores absolute (iconos y textos)
   no bloquean los clics en la imagen/enlace
   ======================================== */
.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 a {
    pointer-events: auto;
    position: relative;
    z-index: 11;
}
/*
/* ========================================
   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;
}
/* 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;
}

/* Ocultar breadcrumb */
.woocommerce-breadcrumb {
    display: none !important;
}

/* Ocultar categoría del producto */
.product_meta,
.posted_in {
    display: none !important;
}
/* Margen superior página producto */
.woocommerce div.product
 {
    margin-bottom: 0;
    position: relative;
    margin-top: 80px;
}
/* Galería de fotos de producto */
.woocommerce div.product div.images .flex-control-thumbs
 {
    margin: 30px 0 0 0;
}
/* Resumen carrito */
.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;
}

/* Margen superior páginas WooCommerce (no Elementor) */
/* Margen superior páginas WooCommerce sin Elementor */
body.woocommerce-page.page-template-default .site-main {
    margin-top: 60px;
}