/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.3
*/

/* ROOTS */

:root{
    --color-black: #000;
    --color-white: #fff;
    --color-grey: #e2e1e1;
    --initial-responsive: 1000px;

}

/* GENERAL */

.site.grid-container,
#content{
    max-width: unset;
}

.texto h1{
    font-size: clamp(20px, 32px, 44px) !important;
}

.texto h2{
    font-size: clamp(20px, 24px, 34px) !important;
}

.texto h3{
    font-size: clamp(18px, 22px, 32px) !important;
}

.gform_required_legend{
    display: none !important;
}

.gform_body *,
.gform_footer *{
    outline: none !important;
}

.gform_body input,
.gform_body textarea{
    border: 1px solid var(--color-black) !important;
}

.gform_footer input[type="submit"]{
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.gform_validation_errors{
    outline: none !important;
}

.gp-custom-switcher{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

@media (min-width: 1000px) {
    body {
        padding: 0; /* Quitamos padding global para que el footer pegue abajo */
        margin-left: 0; /* IMPORTANTE: Quitamos esto del body */
        display: flex;
        flex-direction: column;
    }

    /* El margen ahora lo lleva el contenedor del contenido, no el body */
    .home #page {
        margin-left: 300px !important;
        margin-right: 0;
        padding: 20px 30px; /* Trasladamos el padding aquí */
        min-height: 100dvh;
    }

    .site-header {
        position: fixed;
        left: 0;
        top: 0;
        width: 300px;
        z-index: 300;
        height: 100%;
        overflow: auto;
        overflow-x: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-overflow-scrolling: touch;
        transition: .1s ease;
    }
	
    .admin-bar .site-header {
        top: 32px;
    }
    .site-header .main-navigation li {
	float: none;
    }
}

#page{
    margin-left: 300px !important;
    margin-right: 0;
    padding: 60px 30px; /* Trasladamos el padding aquí */
    min-height: 100dvh;
    
}
.inside-header {
    flex-direction: column;
    align-items: flex-start;
}
.header-widget {
    order: 3;
    text-align: center;
}
.nav-float-right .inside-header .main-navigation {
    margin-top: 17dvh;
}

.dropdown-click .site-header .main-navigation ul ul {
    position: relative;
}

.main-navigation .main-nav>ul {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.main-navigation .current-menu-item a{
    font-weight: 600;
}

.main-navigation .main-nav ul li a{
    padding: 0px;
}

.nav-float-right .header-widget {
    margin-left: 0;
}

.nav-float-right .header-widget .widget {
    margin-bottom: 50px;
}

.nav-float-right #site-navigation {
    margin-right: 0;
    margin-left: 0;
}

/* OBRAS [SHORTCODE: INICIO]*/

/* Estado inicial: oculto hasta que Motion anime la entrada */
.obra-slide__imagen img,
.obra-slide__titulo,
.obra-slide__descripcion,
.obra-slide__saber-mas,
.obra-slide__premio {
    opacity: 0;
}

/* Estado inicial: oculto hasta que Motion anime la entrada */
.obra-slide__imagen img,
.obra-slide__titulo,
.obra-slide__descripcion,
.obra-slide__saber-mas,
.obra-slide__premio {
    opacity: 0;
}

.obras-slider-wrapper {
    width: 100%;
    max-width: 1600px;
    height: 100dvh;
    margin: 0 auto;
    padding: 40px 0px;
    box-sizing: border-box;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.obras-swiper {
    width: 100%;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.obras-swiper .swiper-slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    background: #fff;
    height: 100%;
}

/* Columna imagen */
.obra-slide__imagen {
    flex: 0 0 48%;
    position: relative;
    overflow: hidden;
}

.obra-slide__imagen img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Columna contenido */
.obra-slide__contenido {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.obra-slide__titulo {
    font-size: clamp(20px, 32px, 44px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0;
    line-height: 1.1;
}

.obra-slide__descripcion {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.obra-slide__saber-mas {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: fit-content;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.obra-slide__saber-mas:hover {
    border-bottom-color: #111;
}

.obra-slide__saber-mas::after {
    content: ' ›';
}

/* Premios */
.obra-slide__premios {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.obra-slide__premio {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 20px;
    width: fit-content;
}

.obra-slide__premio-icono {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.obra-slide__premio-icono svg,
.obra-slide__premio-icono img {
    width: 100%;
    height: 100%;
}



.obra-slide__premio-icono--default {
    font-size: 22px;
    line-height: 1;
}

.obra-slide__premio-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.obra-slide__premio-titulo {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
}

.obra-slide__premio-ano {
    font-size: 0.75rem;
    color: #555;
}

/* ── Responsive obras slider ──────────────────────────────────── */
@media (max-width: 1000px) {

    .timeline-content{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .timeline-item{
        padding-left: 2px !important;
    }

    .timeline-item::before{
        width: 10px !important;
        height: 10px !important;
        left: -19.59px !important;
    }
    /* Descontar la altura del header (~72px) para que todo quepa sin scroll */
    .obras-slider-wrapper {
        height: calc(100dvh - 12px);
        max-height: 86dvh;
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .obras-swiper {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    /* Slide ocupa exactamente el espacio disponible */
    .obras-swiper .swiper-slide {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        height: 100%;
    }

    /* Imagen: 46% del slide, full-bleed */
    .obra-slide__imagen {
        width: 100%;
        overflow: hidden;
        flex: unset !important;
    }

    .obra-slide__imagen img {
        width: 100%;
        object-fit: unset;
        object-position: center top;
    }
    /* Contenido: ocupa el resto exacto */
    .obra-slide__contenido {
        flex: unset;
        min-height: 0;
        padding: 0px;
        gap: 8px;
        overflow: unset;
        display: flex;
        flex-direction: column;
        justify-content: unset;
    }

    .obra-slide__titulo {
        font-size: clamp(15px, 5vw, 24px);
        line-height: 1.15;
        margin: 0;
    }

    .obra-slide__descripcion {
        font-size: 0.8rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }

    .obra-slide__saber-mas {
        font-size: 0.7rem;
    }

    /* Premios: compactos, scroll horizontal */
    .obra-slide__premios {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        margin-top: 10px;
    }
    .obra-slide__premios::-webkit-scrollbar { display: none; }

    .obra-slide__premio {
        flex-shrink: 0;
        padding: 5px 10px;
        gap: 8px;
    }

    .obra-slide__premio-icono {
        width: 20px;
        height: 20px;
    }

    .obra-slide__premio-titulo {
        font-size: 0.65rem;
    }

    .obra-slide__premio-ano {
        font-size: 0.7rem;
    }

    /* Controles: fijos al fondo, altura mínima */
    .obras-controles {
        flex: none;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 8px 20px 10px;
        border-top: 1px solid #e5e5e5;
        z-index: 2;
    }
}

/* ── Barra de controles: dots centrados + flechas a la derecha ── */
.obras-controles {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 20px 0;
}

/* Paginación (dots) */
.obras-swiper-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.obras-swiper-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 !important;
}

.obras-swiper-pagination .swiper-pagination-bullet-active {
    background: #111;
}

/* Flechas abajo a la derecha */
.obras-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.obras-nav .swiper-button-next,
.obras-nav .swiper-button-prev {
    position: static;
    transform: none;
    margin: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #111;
    background: transparent;
    --swiper-navigation-size: 14px;
    transition: background .2s, border-color .2s, color .2s;
    flex-shrink: 0;
}

.obras-nav .swiper-button-next:hover,
.obras-nav .swiper-button-prev:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Icono SVG interno del botón de Swiper */
.obras-nav .swiper-button-next svg,
.obras-nav .swiper-button-prev svg {
    width: 10px !important;
    height: 10px !important;
}

/* Fallback para el ::after cuando Swiper usa pseudoelemento en vez de SVG */
.obras-nav .swiper-button-next::after,
.obras-nav .swiper-button-prev::after {
    font-size: 10px;
}

.swiper-navigation-icon{
    width: 16px;
}

/* Portfolio shortcode */

.pf-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 60px;
    box-sizing: border-box;
    font-family: inherit;
}

/* Filtros */
.pf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.pf-filter-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1.5px solid #ccc;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    line-height: 1;
}

.pf-filter-btn:hover {
    border-color: #111;
}

.pf-filter-btn.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Grid mansory irregular (columnas tipo edwardkinsellaillustration.com)
   Columnas fijas renderizadas en PHP (round-robin) en vez de CSS column-count:
   evita que el navegador "balancee" el multi-columna y deje columnas vacías
   cuando hay pocos items. */
.pf-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pf-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 0;
    min-width: 0;
}

.pf-item {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Imagen */
.pf-item__imagen {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.pf-item__imagen img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease;
}

.pf-item:hover .pf-item__imagen img {
    transform: scale(1.03);
}

/* Título del post: overlay, visible solo en hover */
.pf-item__titulo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: clamp(18px, 22px, 32px) !important;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .3s ease;
}

.pf-item:hover .pf-item__titulo {
    opacity: 1;
}

/* Zona de contenido (cargando) */
.pf-content {
    position: relative;
    min-height: 200px;
}

.pf-content.is-loading {
    opacity: .4;
    pointer-events: none;
}

/* Paginación */
.pf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pf-pagination__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 0;
    border: 1.5px solid #ccc;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.pf-pagination__btn:hover,
.pf-pagination__btn--active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pf-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 60px 0;
}

/* Workshops */
.workshops-list-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.workshop-link-wrap {
    display: flex;
    gap: 30px;
    text-decoration: none;
    color: inherit;
}

.workshop-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.workshop-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.workshop-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilos para el Título y Subtítulo */
.workshop-title {
    margin: 0 0 5px 0;
    font-size: 24px; /* Ajusta según tu diseño */
    font-weight: 600;
}

.workshop-subtitle {
    margin: 0 0 15px 0;
    font-size: 16px; /* Tamaño menor para el subtítulo */
    color: #666; /* Color grisáceo estándar, ajústalo a tu gusto */
    font-weight: 600;
}

.workshop-excerpt {
    margin-bottom: 15px;
}

.workshop-meta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.meta-item {
    font-size: 14px;
}


.single-workshop .inside-article{
    margin: auto;
    max-width: 800px;
}

/* Woocommerce Cart */

.woocommerce-cart .return-to-shop{
    margin-top: 20px;
}

.woocommerce-cart .coupon{
    display: flex;
    flex-direction: column;
}

.woocommerce-cart .coupon #coupon_code{
    width: 300px !important;
    margin: 0px;
}

.woocommerce-cart .coupon .button{
    margin-top: 10px;
}

.woocommerce-cart .coupon+button,
.woocommerce-cart .wc-proceed-to-checkout a{
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
    opacity: unset !important;
}

.woocommerce-cart .cart_totals {
    margin-top: 20px;
}

.woocommerce-cart .cart_totals h2{
        font-size: clamp(20px, 24px, 34px) !important;

}

.woocommerce-cart .woocommerce-info{
    background-color: var(--color-black);
    border-left: 0px !important;
}

/* WooCommerce Checkout */

.woocommerce-checkout .wc-block-components-product-badge{
    display: none !important;
}

/* ============================================================
   SINGLE PRODUCT (WooCommerce)
   ============================================================ */

.sp-content-area {
    width: 100%;
}

/* Breadcrumb */
.sp-breadcrumb {
    padding: 16px 0 24px;
    font-size: 0.8rem;
    color: #888;
}

.sp-breadcrumb .woocommerce-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.sp-breadcrumb .woocommerce-breadcrumb a:hover {
    color: #111;
}

/* Grid principal: galería + info */
.sp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Galería */
.sp-gallery {
    position: sticky;
    top: 20px;
}

.sp-gallery__main {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 10px;
}

.sp-gallery__main-link {
    display: block;
    cursor: zoom-in;
}

.sp-gallery__main-img {
    width: 100%;
    height: auto;
    max-height: 70dvh;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f9f9f9;
    transition: opacity 0.25s ease;
}

.sp-gallery__main-img--fade {
    opacity: 0.4;
}

/* Links ocultos para GLightbox — visually hidden para que GLightbox los procese correctamente */
.obra-lightbox-links {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0,0,0,0);
}

/* Links ocultos para GLightbox (resto de imágenes del grupo) */
.sp-gallery__hidden-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0,0,0,0);
}

/* Flechas de GLightbox visibles también en móvil */
.gnext,
.gprev {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Strip de miniaturas */
.sp-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.sp-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}
.sp-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.sp-gallery__thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.sp-gallery__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    background: #f5f5f5;
    cursor: pointer;
    overflow: hidden;
    border-radius: 3px;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
}

.sp-gallery__thumb:hover {
    opacity: 0.85;
}

.sp-gallery__thumb.is-active {
    border-color: #111;
    opacity: 1;
}

.sp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.sp-gallery__placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

/* Summary / Resumen */
.sp-summary{
    position: sticky;
    top: 30px;
    left: 0;
}
.sp-summary__inner {
    display: flex;
    flex-direction: column;
}

/* Título */
.sp-summary__inner .product_title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: #111;
}

/* Rating */
.sp-summary__inner .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #888;
}

/* Precio */
.sp-summary__inner .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
}

.sp-summary__inner .price del {
    color: #aaa;
    font-weight: 400;
    margin-right: 8px;
}

.sp-summary__inner .price ins {
    text-decoration: none;
    color: #111;
}

/* Extracto */
.sp-summary__inner .woocommerce-product-details__short-description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
}

/* Cantidad + Añadir al carrito */
.sp-summary__inner .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-summary__inner .qty {
    width: 64px;
    height: 44px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 1rem;
    padding: 0 8px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.sp-summary__inner .qty:focus {
    border-color: #111;
}

.sp-summary__inner .single_add_to_cart_button {
    height: 44px;
    padding: 0 32px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
    flex: 1 1 auto;
}

.sp-summary__inner .single_add_to_cart_button:hover {
    background: #333;
}

.sp-summary__inner .single_add_to_cart_button:active {
    transform: scale(0.98);
}

/* Meta: categorías, tags, SKU */
.sp-summary__inner .product_meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

.sp-summary__inner .product_meta a {
    color: #555;
    text-decoration: none;
}

.sp-summary__inner .product_meta a:hover {
    color: #111;
}

/* Variaciones */
.sp-summary__inner .variations {
    width: 100%;
    border: none;
    border-collapse: collapse;
}

.sp-summary__inner .variations td,
.sp-summary__inner .variations th {
    padding: 6px 0;
    vertical-align: middle;
}

.sp-summary__inner .variations label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
}

.sp-summary__inner .variations select {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    outline: none;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sp-summary__inner .variations select:focus {
    border-color: #111;
}

.sp-summary__inner .reset_variations {
    font-size: 0.75rem;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}

/* Tabs: descripción, atributos, valoraciones */
.sp-tabs-section {
    margin-bottom: 80px;
}

.sp-tabs-section .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 0;
    border-bottom: 1px solid #e8e8e8;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li {
    margin: 0;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li.active a,
.sp-tabs-section .woocommerce-tabs ul.tabs li a:hover {
    color: #111;
    border-bottom-color: #111;
}

.sp-tabs-section .woocommerce-tabs .panel {
    padding: 32px 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
}

/* Upsells y productos relacionados */
.sp-tabs-section .up-sells,
.sp-tabs-section .related {
    margin-top: 60px;
}

.sp-tabs-section .up-sells > h2,
.sp-tabs-section .related > h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: #111;
}

/* Badge de oferta */
.sp-gallery .onsale {
    background: #111;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    top: 12px;
    left: 12px;
}

/* Single Obras */

/* ===== SINGLE OBRAS ===== */
.obra-single {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: center;
}

/* ---- COLUMNA IZQUIERDA: galería ---- */
.obra-single__galeria {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
	height: 100dvh;
	max-height: 100dvh;
	box-sizing: border-box;
	justify-content: center;
	align-items: stretch;
	padding: 40px 40px 20px;
}

/* Contenedor imagen principal: altura fija, no cambia al cambiar de imagen */
.obra-single__main-img {
	width: 100%;
	min-height: 0;         /* permite que flex respete el límite del padre      */
	overflow: hidden;
	cursor: zoom-in;
	position: relative;
	display: block;
	background: #fff;
	border-radius: 4px;
}

.obra-single__main-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	transition: transform .6s ease;
}

.obra-single__main-img:hover img {
	transform: scale(1.03);
}

/* Overlay sutil al hacer hover */
.obra-single__main-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0);
	transition: background .3s;
	pointer-events: none;
}

.obra-single__main-img:hover::after {
	background: rgba(0,0,0,.06);
}

/* ── Wrapper: contiene el strip y las flechas superpuestas ───────── */
.obra-thumbs-wrapper {
	position: relative;
	width: 100%;
	margin-top: 10px;
	user-select: none;
}

/* ── Flechas flotantes sobre el strip ───────────────────────────── */
.obra-thumbs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(15,15,15,.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	outline: none;
	transition: background .18s, opacity .22s, transform .15s;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.obra-thumbs-arrow--prev { left: 6px; }
.obra-thumbs-arrow--next { right: 6px; }
.obra-thumbs-arrow svg   { width: 13px; height: 13px; display: block; pointer-events: none; }
.obra-thumbs-arrow:hover { background: rgba(0,0,0,.9); transform: translateY(-50%) scale(1.1); }
.obra-thumbs-arrow:active { transform: translateY(-50%) scale(.93); }
.obra-thumbs-arrow.is-hidden { opacity: 0; pointer-events: none; }

/* ── Gradiente fade en los bordes del wrapper ───────────────────── */
.obra-thumbs-wrapper::before,
.obra-thumbs-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50px;
	z-index: 2;
	pointer-events: none;
	transition: opacity .25s;
}
.obra-thumbs-wrapper::before {
	left: 0;
	background: linear-gradient(to right, rgba(255,255,255,.9) 0%, transparent 100%);
}
.obra-thumbs-wrapper::after {
	right: 0;
	background: linear-gradient(to left, rgba(255,255,255,.9) 0%, transparent 100%);
}
.obra-thumbs-wrapper.at-start::before { opacity: 0; }
.obra-thumbs-wrapper.at-end::after    { opacity: 0; }

/* ── Strip scrollable ────────────────────────────────────────────── */
.obra-single__thumbs {
	display: flex;
	gap: 8px;
	padding: 6px 0px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex-shrink: 0;
	cursor: grab;
}
.obra-single__thumbs:active { cursor: grabbing; }
.obra-single__thumbs::-webkit-scrollbar { display: none; }

/* ── Cada miniatura ──────────────────────────────────────────────── */
.obra-single__thumb {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	cursor: pointer;
	border-radius: 5px;
	border: 2px solid transparent;
	transition: border-color .2s, opacity .2s, transform .2s, box-shadow .2s;
	opacity: .62;
	position: relative;
}
.obra-single__thumb:hover {
	opacity: 1;
}
.obra-single__thumb.is-active {
	border-color: #111;
	opacity: 1;
}
.obra-single__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s;
	transform: none;
}
.obra-single__thumb:hover img { transform: scale(1.06); }
.obra-single__thumb.is-active img { transform: none; }

/* ---- COLUMNA DERECHA: contenido ---- */
.obra-single__info {
	padding: 0px 64px 0px 56px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Awards */
.obra-single__awards {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.obra-single__award-item {
	display: flex;
	align-items: center;
	gap: 16px;
	border-left: 2px solid #111;
	padding-left: 16px;
}

.obra-single__award-icono {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.obra-single__award-icono img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.obra-single__award-icono span {
	font-size: 24px;
	line-height: 1;
}

.obra-single__award-texto {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.obra-single__award-titulo-premio {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #111;
}

.obra-single__award-ano {
	font-size: 0.8rem;
	color: #666;
}

/* Título */
.obra-single__titulo {
	font-size: 2rem;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	color: #111;
}

/* Descripción completa */
.obra-single__descripcion {
	font-size: 1rem;
	line-height: 1.75;
	color: #333;
}

.obra-single__descripcion p { margin-bottom: 1.2em; }
.obra-single__descripcion p:last-child { margin-bottom: 0; }

/* Volver */
.obra-single__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: #111;
	border-bottom: 1.5px solid #111;
	padding-bottom: 2px;
	transition: opacity .2s;
	align-self: flex-start;
	margin-top: auto;
}

.obra-single__back:hover { opacity: .5; }


/* CV */

.texto-cv h2,
.texto-cv p{
    opacity: 0.7;
}

.texto-cv h3{
    font-weight: 600;
}

/* Contenedor principal */
.timeline-container {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    padding-right: 0px !important;
}

/* La línea vertical */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 4px; /* Ajusta esto para mover la línea */
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #dddddd; /* Color de la línea */
}

/* Cada bloque de la cronología */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px; /* Espacio para que el texto no toque la línea */
}

/* El círculo (punto) común para todos */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px; /* Centrado con la línea */
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: #000;
    border-radius: 50%;
    z-index: 1;
}

/* Efecto pulse exclusivo para la bola del primer elemento */
.timeline-item:first-child::before {
    animation: pulse-dot 2s infinite;
}

/* Animación del efecto pulse por box-shadow */
@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Estilos de texto */
.timeline-date {
    font-family: inherit; /* Hereda de GeneratePress */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 0;
    opacity: 0.7;
}

.timeline-content p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

.timeline-content strong{
    font-weight: 600 !important;
}
/* Quitar el margen inferior del último elemento */
.timeline-item:last-child {
    margin-bottom: 0;
}

/* Footer */

.site-info{
    display: none !important;
}

.site-footer {
    width: 100%;
    clear: both;
    position: relative;
    z-index: 400; /* Para que quede por encima si es necesario */
}

#footer-widgets .footer-widgets-container{
    max-width: unset;
    padding-left: 60px;
    padding-right: 60px;
}

.adhoc-footer{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-row-one{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.footer-menu ul{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.footer-menu ul li{
    margin: 0px;
}

.footer-menu ul li a{
    text-decoration: none;
    font-weight: 600;
}

.footer-logo a>img{
    width: 110px;
}

.footer-row-two{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-row-two p,
.footer-row-two a{
    font-size: 13px;
    margin: 0px;
    text-decoration: none;
}

.footer-legal{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Si usas GeneratePress, a veces el footer está dentro de un contenedor, 
   forzamos que el contenido interno también estire */

.inside-footer-grid {
    max-width: 100% !important;
}

/* ---- CARRITO EN MENÚ ---- */

.custom-cart-item a.cart-contents {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #111;
    border-radius: 50%;
    text-decoration: none;
}

.main-navigation a.cart-contents:not(.has-svg-icon):before{
    display: none !important;
}

.cart-icon-img {
    display: block;
    width: 20px;
    height: 20px !important;
    object-fit: contain;
    padding-bottom: 2px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 17px;
    height: 17px;
    font-size: 12px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    border: 1.5px solid #111;

}

.cart-count--hidden {
    opacity: 0;
    transform: scale(0);
}

@keyframes cart-badge-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.cart-count.cart-count--bump {
    animation: cart-badge-bump .35s ease;
}

/* WooCoommerce */

.product .inside-wc-product-image img{
    height: 70dvh !important;
    object-fit: cover !important;
}
 .product .price *{
    font-size: 18px;
    font-weight: 500;
}

.product h2{
    font-size: clamp(18px, 22px, 32px) !important;
    font-weight: 300;
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
    color: #111;
    letter-spacing: -0.01em;
    margin-bottom: 5px !important;
}

.product-category-label{
    margin-bottom: 5px !important;
}

ul.products li.product .button{
    width: 100%;
    background-color: var(--color-black);
    text-align: center;
}

 .inside-wc-product-image{
    width: 100%;
}

/* Forzar que las miniaturas se vean en fila */
.woocommerce-product-gallery--with-images .flex-control-nav.flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.woocommerce-product-gallery--with-images .flex-control-nav.flex-control-thumbs li {
    width: 25%; /* 4 miniaturas por fila */
    padding: 2px;
}

.woocommerce-product-gallery--with-images .flex-control-nav.flex-control-thumbs li img {
    cursor: pointer;
    opacity: .5;
    transition: opacity .3s;
}

.woocommerce-product-gallery--with-images .flex-control-nav.flex-control-thumbs li img.flex-active {
    opacity: 1;
}

/* Single - product */

.woocommerce span.onsale{
    width: fit-content;
}

.quantity +.single_add_to_cart_button{
    background-color: var(--color-black) !important;
}

.related>h2{
    margin-bottom: 20px !important;
    
}

/* ============================================================
   HAMBURGUESA — Botón (3 líneas animadas)
   ============================================================ */

.gp-hamburger {
    display: none; /* oculto en desktop */
    width: 34px;
    height: 34px;
    background: none !important;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Wrapper que agrupa carrito + hamburguesa en el header móvil */
.gp-header-mobile-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Carrito en el header móvil — igual que el del nav lateral */
.gp-mobile-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #111;
    border-radius: 50%;
    text-decoration: none;
    flex-shrink: 0;
}

.gp-hamburger:hover,
.gp-hamburger:focus,
.gp-hamburger:active,
.gp-hamburger:focus-visible {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.gp-hamburger__line {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-black);
    border-radius: 0;
    flex-shrink: 0;
    transform: none;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* Animación → X al estar activo */
.gp-hamburger.is-active .gp-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.gp-hamburger.is-active .gp-hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.gp-hamburger.is-active .gp-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HAMBURGUESA — Panel deslizante desde la derecha
   ============================================================ */

.gp-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100%;
    background: var(--color-white);
    z-index: 9998;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gp-mobile-menu.is-open {
    transform: translateX(0);
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
}

.gp-mobile-menu__inner {
    padding: 32px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Lista de enlaces */
.gp-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-mobile-menu__list li a {
    display: block;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid var(--color-grey);
    transition: opacity 0.2s;
}
.gp-mobile-menu__list li a:hover { opacity: 0.5; }
.gp-mobile-menu__list .current-menu-item > a { font-weight: 700; }

/* Icono carrito dentro del panel móvil */
.gp-mobile-menu__list .custom-cart-item a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Overlay oscuro */
.gp-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}
.gp-mobile-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* Bloquear scroll del body cuando el menú está abierto */
body.gp-menu-open {
    overflow: hidden;
}

/* Responsive */

@media only screen and (max-width: 900px) {
    /* Aplana las columnas fijas: los .pf-item vuelven al orden real del DOM
       y se apilan en 1 sola columna, sin usar column-count del navegador. */
    .pf-grid{
        display: block;
    }
    .pf-col{
        display: contents;
    }
    .pf-item{
        margin-bottom: 24px;
    }
}

@media only screen and (max-width: 1300px) {
    .obra-single {
		grid-template-columns: 1fr;
		min-height: unset;
	}

    .obra-single__galeria {
		padding: 20px 0px;
        height: unset;
	}

    .obra-single__info {
		padding: 20px 0px;
		gap: 32px;
	}

    .obra-single__galeria{
        position: relative;
    }

}

@media only screen and (max-width: 1000px) {

    .texto br{
        display: none !important;
    }

    .obra-single__award-icono {
        width: 60px;
        height: 60px;

    }
    .obra-single__award-item{
        padding-left: 2px !important;
    }

    .texto h1{
    font-size: 1.6rem !important;
    }

    .texto h2,
    .workshop-title{
        font-size: 1.4rem !important;
    }

    .texto h3{
        font-size: 1.2rem !important;
    }



    .gp-hamburger {
        display: flex;
    }

    .gp-header-mobile-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    header .inside-header{
        padding: 16px 30px;
        flex-direction: row;
        align-items: center;
    }

    .site-header .header-image{
        width: 80px;
    }

    header .main-navigation{
        display: none !important;
    }
    
    /* El widget del header (carrito, etc.) también se oculta en la barra o se reordena */
    header .header-widget {
        display: none;
    }
    .obras-swiper .swiper-slide {
        flex-direction: column;
        gap: 20px;
        align-items: unset;
    }

    #page{
        margin: 0 !important;
        padding: 20px 30px;
        min-height: 86dvh;
    }

    .footer-row-one{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-row-two{
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    #footer-widgets .footer-widgets-container{
        padding-left: 30px;
        padding-right: 30px;
    }
    .bloque-gracias-contacto .wpb_column{
        position: relative;
        top: -50px;

    }

    .bloque-gracias-contacto lord-icon{
        display: flex;
        margin: auto;
    }

    .bloque-gracias-contacto h1,
    .bloque-gracias-contacto p{
        text-align: center;
    }

}



@media (max-width: 900px) {
    .sp-gallery{
        position: relative;
    }
    .sp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-gallery .woocommerce-product-gallery {
        position: relative;
        top: auto;
    }

	.obra-single {
		grid-template-columns: 1fr;
		min-height: unset;
	}

	/* En móvil: galeria no sticky, altura fija para la imagen */
	.obra-single__galeria {
		position: relative;
		height: auto;
		max-height: none;
		padding: 0;
		gap: 8px;
	}

	/* Imagen principal con altura fija en móvil para que no salte */
	.obra-single__main-img {
		flex: none;
		height: 52vw;
		min-height: 260px;
		max-height: 480px;
		border-radius: 0;
	}

	.obra-single__info {
		padding: 24px 0px;
		gap: 28px;
	}

	.obra-single__titulo {
		font-size: 1.4rem;
	}

    .workshop-link-wrap{
        flex-direction: column;
    }
    .workshop-image{
        max-width: 100%;
    }
    .workshop-meta{
        margin-top: 10px;
    }

    .workshop-link-wrap{
        gap: 10px;
    }
}
@media (max-width: 640px) {

    .footer-menu ul li a{
        font-size: 14px !important;
    }
    .pf-item__titulo,
    .product h2{
        font-size: 18px !important;
    }
    .product .inside-wc-product-image img{
        height: 40dvh !important;
    }

    .product .inside-wc-product-image img{
        margin: 0px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .footer-menu ul,
    .footer-legal{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-logo a>img{
        width: 80px;
    }

    .timeline-item{
        padding-left: 20px;
    }
    .timeline-content p{
        font-size: 13px;
    }

    .pf-filters{
        gap: 5px !important;
    }
    .pf-filter-btn{
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
	.obra-single__main-img {
		height: 50dvh;
	}

	.obra-single__thumb {
		width: 60px;
		height: 60px;
	}
}
