/*
Theme Name: Tugiratiempo
Theme URI: https://tugiratiempo.com
Author: Tugiratiempo Team
Author URI: https://tugiratiempo.com
Description: Un tema premium para una tienda de afiliados de Harry Potter y productos frikis.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tugiratiempo
*/

:root {
    /* Colors - Premium Dark Mode */
    --bg-dark: #0a0a1a;
    --bg-card: #111625;
    --bg-overlay: rgba(10, 10, 26, 0.95);

    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;

    --accent-gold: #D4AF37;
    --accent-bronze: #CD7F32;
    --accent-glow: 0 0 20px rgba(212, 175, 55, 0.3);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;

    /* UI Specifics */
    --header-height: 60px;
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* Wrapper */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
.site-header {
    height: var(--header-height);
    background-color: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-logo svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    display: block;
    /* Visible on mobile by default */
}

/* Navigation - Mobile First (Hidden by default) */
.main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-card);
    padding: var(--spacing-lg);
    transition: right 0.3s ease;
    border-left: 1px solid var(--accent-bronze);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    overflow-y: auto;
}

.main-nav.active {
    right: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.main-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
    /* Added Serif font as requested */
}

.main-nav .sub-menu {
    list-style: none;
    padding: var(--spacing-sm) 0;
    display: none;
}

.main-nav .sub-menu a {
    font-size: 1rem;
    padding: 8px 15px;
    display: block;
}

.main-nav li.menu-item-has-children>a::after {
    content: ' ▾';
    font-size: 0.8em;
    opacity: 0.7;
}

.main-nav.active .sub-menu {
    display: block;
    margin-left: 15px;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.main-nav a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

/* ==========================================================================
   Hero Section - Homepage (Versión Definitiva PC & Móvil)
   ========================================================================== */

/* 1. CONFIGURACIÓN PARA PC (Escritorio) */
.hero-home {
    position: relative;
    height: 400px;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: var(--radius-md);
    display: flex;
    /* Centrado flexible */
    align-items: center;
    /* Centrado vertical */
    justify-content: center;
    /* Centrado horizontal */
    overflow: hidden;
    /* Asegúrate de que la ruta sea assets/img/... si tu style.css está en la raíz del tema */
    background: #050510 url('assets/img/hero-hogwarts-night.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    /* Asegura que el texto interno esté centrado */
    padding: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 5, 20, 0.1) 0%, rgba(5, 5, 20, 0.6) 50%, rgba(5, 5, 20, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--spacing-md);
    max-width: 1000px;
    width: 100%;
    /* Ocupa el ancho necesario para centrar el texto */
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 5px 30px rgba(0, 0, 0, 1), 0 0 10px rgba(212, 175, 55, 0.3);
    margin: 0 auto !important;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center !important;
}

.hero-tagline {
    font-size: 1.3rem;
    color: white !important;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    margin-top: 20px;
    text-align: center;
}

/* 2. CONFIGURACIÓN PARA MÓVIL (Ajustes específicos) */
@media (max-width: 768px) {
    .hero-home {
        height: 320px;
        margin: 10px auto;
        background-position: center center;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.4rem !important;
        /* Tamaño ajustado */
        letter-spacing: 1px;
        line-height: 1.2;
        max-width: 280px !important;
        /* FORZAMOS LAS 2 LÍNEAS */
        margin: 0 auto !important;
        display: block;
        text-align: center;
    }

    .hero-title span {
        display: inline !important;
        /* Evita que el span rompa la 2ª línea */
        text-transform: uppercase;
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: 1px;
        color: var(--accent-gold);
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-top: 15px;
        padding: 0 10px;
    }
}

/* Components: Buttons (Premium) */
.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
    color: var(--bg-dark);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Product Grid (Mobile First) */
.product-grid,
.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    list-style: none !important;
    padding: 0 !important;
}

.product-card,
.woocommerce ul.products li.product {
    flex: 1 1 280px;
    max-width: 320px;
    width: 100%;
}

/* Fix for WooCommerce narrow items conflict - Handled by Flex above */
.woocommerce ul.products li.product,
.product-card {
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    /* Slightly shorter box, more horizontal */
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ensures the middle part of the book is always visible */
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary) !important;
    /* Force white color as requested */
    font-weight: 700;
    text-align: center;
}

.product-price {
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    width: 100%;
    display: block;
}

.product-actions {
    margin-top: auto;
}

.btn-buy-card {
    display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-gold);
    font-weight: 600;
}

.btn-buy-card:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Footer */
.site-footer {
    background-color: #050510;
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-legal {
    font-size: 0.75rem;
    /* Slightly smaller for discretion */
    color: var(--text-secondary);
    opacity: 0.5;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
    width: 100%;
    /* Allow full width to keep it in one line */
}

/* Social Icons */
.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.instagram-link svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* Hover Effect: Elegant Gold Gradient */
.instagram-link:hover {
    transform: translateY(-3px);
}

.instagram-link:hover svg {
    /* Using a gradient fill for the SVG path on hover if supported, or color fallback */
    fill: url(#instagram-gradient);
    /* We might need to define a defs in SVG or just use text clipping for font icons, but for SVG `fill` works if we use a gradient definition, OR we can use CSS mask. 
     Simpler approach for SVG path: just change color to gold, or use the Instagram brand colors.
     User asked for: "color dorado o al degradado de Instagram" */
    color: #d62976;
    /* Fallback (Instagram Pink/Purple) */
    fill: var(--accent-gold);
    filter: drop-shadow(0 0 8px var(--accent-gold));
}

/* If we specifically want the INSTAGRAM Gradient on the icon itself, we can use a class */
.instagram-link:hover svg {
    fill: url(#gold-gradient);
    /* Requires SVG defs... let's stick to CSS color for simplicity and robustness, or mask-image */
    color: var(--accent-gold);
}

/* DESKTOP Responsive Overrides */
@media (min-width: 768px) {
    .menu-toggle {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav {
        position: static;
        height: auto;
        width: auto;
        background: none;
        padding: 0;
        box-shadow: none;
        border: none;
        overflow: visible !important;
    }

    .main-nav ul {
        flex-direction: row;
        gap: var(--spacing-lg);
    }

    .main-nav li {
        position: relative;
    }

    .main-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-card);
        min-width: 200px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-radius: var(--radius-sm);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        display: block;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .main-nav li:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .sub-menu a {
        padding: 10px 20px;
        font-size: 0.95rem;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav .sub-menu li:last-child a {
        border-bottom: none;
    }

    .main-nav .sub-menu a:hover {
        background-color: rgba(212, 175, 55, 0.1);
        color: var(--accent-gold);
        padding-left: 25px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .product-grid,
    .woocommerce ul.products {
        grid-template-columns: none !important;
        /* Disabling grid overrides from before */
    }

    /* Ensure WooCommerce archive/related prices also align right and titles are white */
    .woocommerce ul.products li.product .price,
    .product-card .price {
        text-align: right;
        display: block;
        width: 100%;
    }

    .woocommerce ul.products li.product h3,
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .product-card .product-title {
        color: var(--text-primary) !important;
    }
}

/* Single Product Page Design */
.section-single-product {
    padding: var(--spacing-lg) 0;
}

.product-single-layout {
    display: flex;
    flex-direction: row;
    /* Cambiado de column a row para ponerlos de lado */
    gap: 60px;
    /* Un poco más de espacio entre imagen y texto */
    align-items: center;
}

@media (max-width: 768px) {
    .product-single-layout {
        flex-direction: column;
        align-items: flex-start;
        /* En móvil sí queremos que sea una columna */
    }
}

.product-gallery {
    flex: 1;
    /* Esto hace que la galería ocupe su espacio */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    /* Evita que la imagen se haga gigante */
}

/* Como esta no existía, añádela justo debajo de las anteriores */
.product-summary {
    flex: 1.2;
    /* El texto tiene un poco más de espacio que la imagen */
}

.single-product-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-gold);
}

.single-product-price {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.single-product-description {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-archive-product {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.archive-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-bronze);
    display: inline-block;
    padding-bottom: 10px;
}

.btn-large {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    text-align: center;
}

/* Center button on mobile */
.single-product-actions {
    text-align: center;
    margin-top: var(--spacing-sm);
}

/* Mobile Sticky Buy Button Bar */
@media (max-width: 768px) {
    body.single-product .single-product-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: 12px 20px;
        z-index: 1001;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        margin-top: 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.single-product .single-product-actions .button,
    body.single-product .single-product-actions a.button,
    body.single-product .single-product-actions .cart button.button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: block !important;
        border-radius: 4px !important;
        padding: 16px !important;
        font-size: 1.1rem !important;
    }

    body.single-product {
        padding-bottom: 80px;
    }

    /* Ensure the form doesn't add extra margins */
    body.single-product .single-product-actions .cart {
        width: 100%;
        margin-bottom: 0;
    }
}

.woocommerce .single-product-actions .button,
.woocommerce .single-product-actions a.button {
    margin: 0 auto;
    max-width: 100%;
    display: inline-block !important;
    /* Force inline-block to respect text-align */
}

@media (min-width: 768px) {
    .product-single-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .single-product-title {
        font-size: 3rem;
    }

    .btn-large {
        width: auto;
        display: inline-block;
    }

    /* Left align on desktop */
    .single-product-actions {
        text-align: left;
    }

    .woocommerce .single-product-actions .button,
    .woocommerce .single-product-actions a.button {
        margin: 0;
    }
}

.product-gallery {
    /* Force Vertical Stack */
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.main-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.main-image-container img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-thumbnails {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.thumbnail-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

.product-gallery:hover .main-image-container img {
    transform: scale(1.02);
}

/* Simple Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* Additional Product Details */
.product-description-extra {
    margin-top: 80px;
    margin-bottom: 60px;
}

.product-description-extra h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .product-description-extra h2 {
        text-align: center;
        font-size: 1.45rem;
        line-height: 1.3;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

.product-related-wrapper {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-related-wrapper h2 {
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-align: center;
}

.product-long-description {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-long-description h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.single-product-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* WooCommerce Button Overrides */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .product-actions .button,
/* Added global selectors for homepage where .woocommerce body class might be missing */
.product-actions a.button,
.product-actions .button {
    display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    /* Fallback */
    color: var(--accent-gold);
    padding: 12px 20px;
    /* Increased side padding */
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-gold) !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .product-actions .button:hover,
.product-actions a.button:hover,
.product-actions .button:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.woocommerce a.added_to_cart {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* External / Affiliate Button - Make it pop - HIGH SPECIFICITY */
a.button.product_type_external,
button.button.single_add_to_cart_button.alt,
.product-actions a.button.product_type_external,
.woocommerce a.button.product_type_external,
.woocommerce button.button.single_add_to_cart_button.alt,
.woocommerce .product-actions a.button.product_type_external {
    background: linear-gradient(135deg, #FF9900, #FF6600) !important;
    /* Amazon-ish Orange */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 1 !important;
    /* Ensure no transparency */
}

a.button.product_type_external:hover,
button.button.single_add_to_cart_button.alt:hover,
.product-actions a.button.product_type_external:hover,
.product_type_external:hover,
.woocommerce button.button.single_add_to_cart_button.alt:hover,
.woocommerce .product-actions a.button.product_type_external:hover {
    background: linear-gradient(135deg, #FF6600, #CC5200) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5) !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.woocommerce-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce-breadcrumb a:hover {
    color: var(--accent-gold);
}

/* Professional Static Page Redesign (page.php) */
.page-static-wrapper {
    background: linear-gradient(to bottom, #0a0a1a, #050510);
    padding: 80px 0;
}

.page-static-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 25px;
}

.static-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.static-page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
}

.static-page-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    margin: 0 auto;
}

.static-page-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #f5f5f5;
    /* Off-white for readability */
    font-family: var(--font-body);
}

.static-page-content p {
    margin-bottom: 30px;
}

.static-page-content h2,
.static-page-content h3 {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    margin-top: 50px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Collector Box Contact Section */
.collector-contact-section {
    margin-top: 120px;
}

.collector-contact-box {
    background: rgba(30, 30, 50, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 60px 40px;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.collector-contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

.collector-contact-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.collector-contact-text {
    margin-bottom: 45px;
    font-size: 1.15rem;
    color: #b0b0b0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.collector-contact-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-collector-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
    color: var(--bg-dark);
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-collector-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 13px 33px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-collector-gold:hover,
.btn-collector-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-collector-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

@media (max-width: 768px) {
    .page-static-wrapper {
        padding: 50px 0;
    }

    .static-page-title {
        font-size: 2.2rem;
    }

    .collector-contact-box {
        padding: 40px 20px;
    }

    .collector-contact-title {
        font-size: 2.2rem;
    }

    .btn-collector-gold,
    .btn-collector-outline {
        width: 100%;
    }
}

/* Static Page Image and YouTube Button */
.static-page-featured-image {
    float: left;
    max-width: 300px;
    /* Reduced as requested */
    margin-right: 40px;
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .static-page-featured-image {
        float: none;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
}

.static-page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.static-page-featured-image:hover img {
    transform: scale(1.05);
}

.btn-collector-youtube {
    background: #FF0000;
    color: white;
    padding: 13px 33px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
}

.btn-collector-youtube:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .btn-collector-youtube {
        width: 100%;
    }
}

/* --- BLOG STYLES --- */

/* Home Grid */
.latest-articles {
    margin-top: 100px;
    margin-bottom: 100px;
}

.latest-articles .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
}

.home-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 400px;
    /* Contain the card width */
    margin: 0 auto;
}

.home-post-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.post-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--font-heading);
    color: var(--accent-gold);
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: white;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    overflow-wrap: break-word;
}

.read-more-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    width: fit-content;
}

.read-more-link:hover {
    color: white;
    border-bottom-color: white;
    padding-left: 5px;
}

/* Single Article View Refinements */
.single-post-container {
    padding-top: 100px;
    /* More space from menu */
    padding-bottom: 120px;
}

.container-narrow {
    max-width: 850px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    /* Reduced size */
    color: var(--accent-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.post-hero-image {
    margin: 0 auto 50px;
    text-align: center;
    /* Center the image */
}

.post-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    margin: 0 auto;
    /* Center the img element */
}

.post-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #f0f0f0;
}

.post-content p {
    margin-bottom: 30px;
    /* Space between paragraphs */
}

.post-content h2,
.post-content h3 {
    color: var(--accent-gold);
    margin-top: 60px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px auto;
    display: block;
}

/* Recommended Products in Blog */
.post-recommended-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recommended-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-recommended-products .product-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    list-style: none !important;
    padding: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
}

.post-recommended-products .product-card {
    flex: 0 0 calc(33.333% - 14px);
    /* Exactly 3 per row */
    max-width: calc(33.333% - 14px);
    width: 100%;
    float: none !important;
    margin: 0 !important;
}

.post-recommended-products .product-title {
    font-size: 0.9rem;
    margin-top: 10px;
}

.post-recommended-products .product-price {
    font-size: 0.85rem;
}

.post-recommended-products .product-actions .button {
    padding: 6px 10px;
    font-size: 0.75rem;
}

@media (max-width: 900px) {
    .post-recommended-products .product-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 per row on tablets */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .recommended-title {
        font-size: 1.4rem;
    }

    .post-recommended-products .product-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .post-recommended-products .product-card {
        flex: 0 0 100%;
        /* 1 per row on mobile */
        max-width: 100%;
    }
}


@media (max-width: 768px) {
    .latest-articles {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .latest-articles .section-title {
        font-size: 1.7rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-post-container {
        padding-top: 60px;
    }

    .post-title {
        font-size: 1.8rem;
    }
}

.question-image-container {
    width: 100%;
    max-width: 500px;
    /* O el ancho que prefieras */
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sombrero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.result-intro-text {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #c59d5f;
    /* Color dorado */
    margin-bottom: 5px;
    text-transform: uppercase;
}

.house-belong-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--ancient-ink);
    margin-bottom: 20px;
    font-weight: bold;
}

/* --- LIMPIEZA FINAL PROYECTO FRIKI --- */
.woocommerce-tabs,
.wc-tabs,
.woocommerce-tabs ul.tabs {
    display: none !important;
}