/*
Theme Name: Mi Giro Saludable Theme
Theme URI: https://migirosaludable.com
Description: Tema corporativo minimalista con soporte completo para Elementor. Incluye Hero Slider, secciones de beneficios, categorias, productos WooCommerce y blog. Compatible con Elementor Page Builder.
Author: Mi Giro Saludable
Author URI: https://migirosaludable.com
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: migiro-theme
Tags: elementor, woocommerce, full-width-template, custom-logo, custom-menu
*/

/* ==========================================================================
   VARIABLES CSS - Paleta Negro y Blanco
   ========================================================================== */
:root {
    /* Colores principales */
    --color-primary: #000000;
    --color-primary-hover: #333333;
    --color-secondary: #1a1a1a;
    --color-accent: #000000;

    /* Fondos */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-bg-dark: #000000;

    /* Textos */
    --color-text-dark: #000000;
    --color-text-body: #333333;
    --color-text-light: #666666;
    --color-text-white: #ffffff;

    /* Bordes */
    --color-border: #e0e0e0;
    --color-border-dark: #000000;

    /* Tipografias */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;

    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;

    /* Tamaños de fuente */
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-medium: 1.125rem;
    --font-size-large: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.5rem;
    --font-size-hero: 3.5rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 50px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Container */
    --container-width: 1200px;
    --container-narrow: 800px;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-hero);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-xxl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-large);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ==========================================================================
   LAYOUT - CONTENEDORES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* Full Width para GeneratePress */
.full-width-content .site-content,
.full-width-content .content-area,
.no-sidebar .site-content {
    width: 100%;
    max-width: 100%;
}

/* Remover sidebar */
.site-content .widget-area,
#secondary {
    display: none !important;
}

.site-main {
    width: 100% !important;
    margin: 0 !important;
}

/* ==========================================================================
   HEADER - Diseño Profesional y Limpio
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    width: 100%;
}

/* Header transparente sobre el slider en la página de inicio */
.home .site-header,
.front-page .site-header {
    position: fixed;
    background-color: transparent;
    border-bottom: none;
}

.home .site-header .main-navigation a,
.front-page .site-header .main-navigation a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.home .site-header .main-navigation a:hover,
.front-page .site-header .main-navigation a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.home .site-header .hamburger-line,
.front-page .site-header .hamburger-line {
    background-color: #ffffff;
}

.home .site-header .theme-toggle,
.front-page .site-header .theme-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* En home mostrar logo blanco siempre (hasta scroll) */
.home .site-header .logo-light,
.front-page .site-header .logo-light {
    display: none;
}

.home .site-header .logo-dark,
.front-page .site-header .logo-dark {
    display: block;
}

/* Header con fondo al hacer scroll */
.home .site-header.scrolled,
.front-page .site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .logo-light,
.site-header.scrolled .logo-dark {
    height: 80px;
}

.site-header .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 3rem;
    min-height: 50px;
}

/* Logo/Branding - Alineado a la izquierda */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 1;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    transition: transform var(--transition-fast);
}

.custom-logo:hover {
    transform: scale(1.02);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-title a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-title a:hover {
    color: var(--color-primary-hover);
}

/* Navegacion - Alineado a la derecha */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--color-primary-hover);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.wpcf7-submit {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--font-size-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: var(--color-text-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-align: center;
}

.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Boton outline/secundario */
.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

/* ==========================================================================
   SECCIONES DE PAGINA
   ========================================================================== */
.page-section {
    padding: var(--spacing-xl) 0;
}

.page-section-lg {
    padding: var(--spacing-xxl) 0;
}

/* Seccion con fondo claro */
.section-light {
    background-color: var(--color-bg-light);
}

/* Seccion con fondo oscuro */
.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-text-white);
}

.section-dark .btn,
.section-dark .wp-block-button__link {
    background-color: var(--color-text-white);
    color: var(--color-primary);
    border-color: var(--color-text-white);
}

.section-dark .btn:hover,
.section-dark .wp-block-button__link:hover {
    background-color: transparent;
    color: var(--color-text-white);
}

/* Contenido centrado */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
}

.hero-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.hero-text {
    font-size: var(--font-size-large);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* ==========================================================================
   BLOQUES GUTENBERG - ESTILOS PERSONALIZADOS
   ========================================================================== */

/* Grupo con padding */
.wp-block-group {
    padding: var(--spacing-xl) var(--spacing-md);
}

.wp-block-group.has-background {
    padding: var(--spacing-xl) var(--spacing-md);
}

/* Grupo full width */
.wp-block-group.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Cover block */
.wp-block-cover {
    min-height: 500px;
}

/* Columnas */
.wp-block-columns {
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Separadores */
.wp-block-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-lg) auto;
    max-width: 100px;
}

.wp-block-separator.is-style-wide {
    max-width: var(--container-width);
}

/* Citas */
.wp-block-quote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-md);
    font-style: italic;
    font-size: var(--font-size-large);
}

/* Titulos de seccion (eyebrow) */
.section-label {
    font-family: var(--font-heading);
    font-size: var(--font-size-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */
.wpcf7-form,
.wpforms-form {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form p,
.wpforms-field {
    margin-bottom: var(--spacing-sm);
}

.wpcf7-form label,
.wpforms-field-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-white);
    transition: border-color var(--transition-fast);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.wpcf7-form textarea,
.wpforms-field textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit button ya esta definido arriba */

/* Mensajes de error/exito */
.wpcf7-response-output {
    margin: var(--spacing-md) 0 0 0;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Footer styles moved to end of file */

/* ==========================================================================
   PAGINA ESPECIFICAS - SERVICES
   ========================================================================== */
.stats-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-box {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-box h3 {
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   PAGINA ESPECIFICAS - ABOUT
   ========================================================================== */
.timeline-item {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    width: 2px;
    height: calc(100% + var(--spacing-lg) - 12px);
    background-color: var(--color-border);
}

.timeline-item:last-child::after {
    display: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --font-size-hero: 2.75rem;
        --spacing-xl: 4rem;
        --spacing-xxl: 6rem;
    }

    .wp-block-columns {
        gap: var(--spacing-md);
    }
}

/* ==========================================================================
   MENU HAMBURGUESA
   ========================================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animacion hamburguesa activa */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 2.25rem;
        --font-size-xxl: 2rem;
        --font-size-xl: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    /* Mostrar boton hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Menu oculto por defecto en movil */
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: var(--spacing-sm);
        font-size: var(--font-size-medium);
    }

    .main-navigation a::after {
        display: none;
    }

    .site-header .inside-header {
        position: relative;
    }

    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-text {
        font-size: var(--font-size-medium);
    }

    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }

    .page-section,
    .wp-block-group {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .btn,
    .wp-block-button__link {
        padding: 0.625rem 1.5rem;
        font-size: var(--font-size-base);
    }
}

/* Mobile small */
@media (max-width: 480px) {
    :root {
        --font-size-hero: 1.875rem;
        --spacing-md: 1.5rem;
    }

    .site-header .inside-header {
        padding: 0 1rem;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing-md) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }
.mb-4 { margin-bottom: var(--spacing-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing-md) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }
.mt-4 { margin-top: var(--spacing-xl) !important; }

.py-1 { padding-top: var(--spacing-sm) !important; padding-bottom: var(--spacing-sm) !important; }
.py-2 { padding-top: var(--spacing-md) !important; padding-bottom: var(--spacing-md) !important; }
.py-3 { padding-top: var(--spacing-lg) !important; padding-bottom: var(--spacing-lg) !important; }
.py-4 { padding-top: var(--spacing-xl) !important; padding-bottom: var(--spacing-xl) !important; }

.px-1 { padding-left: var(--spacing-sm) !important; padding-right: var(--spacing-sm) !important; }
.px-2 { padding-left: var(--spacing-md) !important; padding-right: var(--spacing-md) !important; }

.w-100 { width: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ==========================================================================
   ANIMACIONES SUTILES
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .main-navigation {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    transition: all var(--transition-fast);
    color: var(--color-text-dark);
    position: relative;
    z-index: 100;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* En modo claro: mostrar luna (para cambiar a oscuro) */
.sun-icon {
    display: none;
}

.moon-icon {
    display: flex;
}

/* ==========================================================================
   LOGOS - Cambio según tema
   ========================================================================== */
.logo-link {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-light,
.logo-dark {
    height: 140px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    transition: all var(--transition-normal);
}

@media (max-width: 768px) {
    .logo-light,
    .logo-dark {
        height: 90px;
        max-width: 240px;
    }
}

/* En modo claro: mostrar logo claro, ocultar oscuro */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* ==========================================================================
   DARK THEME
   ========================================================================== */
body.dark-theme {
    --color-bg-white: #121212;
    --color-bg-light: #1e1e1e;
    --color-bg-dark: #000000;
    --color-text-dark: #ffffff;
    --color-text-body: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-border: #333333;
}

/* Header en modo oscuro */
body.dark-theme .site-header {
    background-color: #121212;
    border-bottom-color: #333333;
}

/* Navegacion en modo oscuro */
body.dark-theme .main-navigation a {
    color: #ffffff;
}

body.dark-theme .main-navigation a:hover {
    color: #cccccc;
}

/* Toggle en modo oscuro */
body.dark-theme .theme-toggle {
    color: #ffffff;
    border-color: #444444;
}

body.dark-theme .theme-toggle:hover {
    border-color: #ffffff;
    background-color: #2a2a2a;
}

/* En modo oscuro: mostrar sol (para cambiar a claro) */
body.dark-theme .sun-icon {
    display: flex;
}

body.dark-theme .moon-icon {
    display: none;
}

/* Logos en modo oscuro */
body.dark-theme .logo-light {
    display: none;
}

body.dark-theme .logo-dark {
    display: block;
}

/* Hamburguesa en modo oscuro */
body.dark-theme .hamburger-line {
    background-color: #ffffff;
}

/* Contenido principal en modo oscuro */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #ffffff;
}

body.dark-theme .wp-block-group.has-white-background-color,
body.dark-theme .has-white-background-color {
    background-color: #121212 !important;
}

body.dark-theme .has-background[style*="background-color:#f8f8f8"],
body.dark-theme .has-background[style*="background-color: #f8f8f8"] {
    background-color: #1e1e1e !important;
}

body.dark-theme .wp-block-button__link {
    background-color: #ffffff;
    color: #000000;
}

body.dark-theme .wp-block-button__link:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Formularios en modo oscuro */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #1e1e1e;
    border-color: #444444;
    color: #ffffff;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus {
    border-color: #ffffff;
}

/* Menu mobile en modo oscuro */
@media (max-width: 768px) {
    body.dark-theme .main-navigation ul {
        background-color: #121212;
    }

    body.dark-theme .main-navigation li {
        border-bottom-color: #333333;
    }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    max-height: 850px;
    overflow: hidden;
    background: #000000;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-slider .slide-bg-default {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.hero-slider .slide.active .slide-bg {
    transform: scale(1);
}

/* Video Background */
.hero-slider .slide-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider .slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05);
    transition: transform 8s ease-out;
    object-fit: cover;
}

.hero-slider .slide.active .slide-video {
    transform: translate(-50%, -50%) scale(1);
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-slider .slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-slider .slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider .slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
    font-family: var(--font-heading);
}

.hero-slider .slide-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: sliderPulse 2s infinite;
}

@keyframes sliderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-slider .slide-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-slider .slide-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.8;
    margin: 0 0 40px 0;
    max-width: 600px;
    font-family: var(--font-body);
}

.hero-slider .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #000000 !important;
    padding: 18px 36px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.hero-slider .slide-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
    color: #000000 !important;
    background: #f0f0f0;
}

.hero-slider .slide-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-slider .slide-btn:hover svg {
    transform: translateX(6px);
}

/* Navegación del slider */
.hero-slider .slider-nav {
    position: absolute;
    bottom: 50px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.hero-slider .slider-dots {
    display: flex;
    gap: 8px;
}

.hero-slider .slider-dot {
    width: 40px;
    height: 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    border: none;
}

.hero-slider .slider-dot::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #ffffff;
}

.hero-slider .slider-dot.active::after {
    animation: dotProgress 7s linear forwards;
}

@keyframes dotProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.hero-slider .slider-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

.hero-slider .slider-counter span {
    color: #ffffff;
    font-size: 18px;
}

/* Flechas del slider */
.hero-slider .slider-arrows {
    position: absolute;
    right: 50px;
    bottom: 50px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-slider .slider-arrow {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .slider-arrow:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.hero-slider .slider-arrow svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.hero-slider .slider-arrow:hover svg {
    color: #000000;
}

/* Responsive del slider */
@media (max-width: 992px) {
    .hero-slider { min-height: 500px; }
    .hero-slider .slide-content { padding: 0 6%; }
    .hero-slider .slider-nav { left: 6%; }
    .hero-slider .slider-arrows { display: none; }
}

@media (max-width: 768px) {
    .hero-slider { height: 85vh; min-height: 480px; max-height: 700px; }
    .hero-slider .slide-content { 
        padding: 0 5%; 
        text-align: center; 
        align-items: center; 
        max-width: 100%; 
    }
    .hero-slider .slide-title { font-size: 2rem; }
    .hero-slider .slide-description { font-size: 1rem; max-width: 100%; }
    .hero-slider .slide-btn { padding: 16px 30px; font-size: 13px; }
    .hero-slider .slider-nav { 
        left: 50%; 
        transform: translateX(-50%); 
        bottom: 35px; 
    }
    .hero-slider .slider-counter { display: none; }
    .hero-slider .slider-dot { width: 30px; }
    .hero-slider .slide-badge { margin: 0 auto 24px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 80vh; min-height: 420px; }
    .hero-slider .slide-badge { font-size: 11px; padding: 8px 14px; }
    .hero-slider .slide-title { font-size: 1.7rem; }
    .hero-slider .slide-description { font-size: 0.95rem; margin-bottom: 30px; }
    .hero-slider .slider-dot { width: 24px; }
}

/* ==========================================================================
   AURA BENEFITS - Replica exacta del componente Aura.build
   ========================================================================== */
.aura-benefits {
    position: relative;
    padding: 5rem 1rem;
    background: #0a0a0a;
    overflow: hidden;
}

/* Spline 3D Background */
.spline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.spline-background iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Overlay oscuro para mejorar legibilidad */
.aura-benefits::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.aura-glass-card {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

@media (min-width: 640px) {
    .aura-glass-card {
        padding: 2rem;
    }
}

.aura-glass-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.05), transparent, rgba(255,255,255,0.1));
    pointer-events: none;
}

.aura-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .aura-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* === IMAGE GRID === */
.aura-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    order: 1;
}

@media (min-width: 1024px) {
    .aura-images {
        order: 2;
    }
}

.aura-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.aura-card:hover {
    transform: scale(1.02);
}

.aura-card-1, .aura-card-2 {
    aspect-ratio: 4/3;
}

.aura-card-3, .aura-card-4 {
    aspect-ratio: 4/5;
}

.aura-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.6) 100%);
    transition: opacity 0.3s ease;
}

.aura-card:hover .aura-card-overlay {
    opacity: 0.9;
}

.aura-card-icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.aura-card:hover .aura-card-icon {
    transform: scale(1.1);
}

.aura-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    padding: 0.4rem 0.85rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.aura-card:hover .aura-card-badge {
    background: rgba(0, 0, 0, 0.75);
    transform: translateX(4px);
}

.aura-card-title {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0;
    transition: transform 0.3s ease;
}

.aura-card:hover .aura-card-title {
    transform: translateY(-4px);
}

/* === TEXT CONTENT === */
.aura-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    order: 2;
}

@media (min-width: 1024px) {
    .aura-content {
        order: 1;
    }
}

.aura-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #94a3b8;
}

.aura-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin: 0.5rem 0 0 0;
}

@media (min-width: 640px) {
    .aura-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .aura-title {
        font-size: 4.375rem;
    }
}

/* === TIMELINE === */
.aura-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
    color: #cbd5e1;
}

.aura-step {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.aura-step-line {
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 1px;
}

.aura-line-1 {
    background: linear-gradient(to bottom, #a3e635, #10b981);
}

.aura-line-2 {
    background: linear-gradient(to bottom, #10b981, #06b6d4);
}

.aura-step-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-top: 2px;
}

.aura-dot-lime { border: 2px solid #a3e635; }
.aura-dot-emerald { border: 2px solid #10b981; }
.aura-dot-cyan { border: 2px solid #06b6d4; }

.aura-dot-lime .aura-dot-inner { background: #a3e635; }
.aura-dot-emerald .aura-dot-inner { background: #10b981; }
.aura-dot-cyan .aura-dot-inner { background: #06b6d4; }

.aura-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.aura-step-content {
    flex: 1;
    padding-bottom: 1.5rem;
}

.aura-step-last .aura-step-content {
    padding-bottom: 0;
}

.aura-step-title {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
}

.aura-text-lime { color: #bef264; }
.aura-text-emerald { color: #6ee7b7; }
.aura-text-cyan { color: #67e8f9; }

.aura-step-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

/* === CTA === */
.aura-cta {
    margin-top: 2.5rem;
    width: 100%;
}

.aura-cta-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    letter-spacing: -0.025em;
}

.aura-cta-desc {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin: 0.25rem 0 0 0;
    max-width: 24rem;
    line-height: 1.5;
}

.aura-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    margin-top: 1rem;
    background: #65a30d;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 9999px;
    transition: background 0.2s ease;
    max-width: 24rem;
}

.aura-cta-btn:hover {
    background: #84cc16;
}

.aura-cta-dot {
    display: inline-flex;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Animation */
.aura-glass-card {
    opacity: 0;
    transform: translateY(40px);
    animation: auraFadeIn 0.8s ease-out 0.1s forwards;
}

@keyframes auraFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .aura-benefits {
        padding: 3rem 1rem;
    }

    .aura-glass-card {
        padding: 1.5rem;
    }

    .aura-images {
        gap: 0.75rem;
    }

    .aura-title {
        font-size: 2.25rem;
    }

    .aura-card-1, .aura-card-2, .aura-card-3, .aura-card-4 {
        aspect-ratio: 4/3;
    }

    .aura-card-title {
        font-size: 1rem;
    }
}

/* ==========================================================================
   CATEGORIES SECTION - Tarjetas con alto contraste
   ========================================================================== */
.categories-section {
    padding: 6rem 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* Animated Beams Background */
.beams-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0a0a0a;
}

.beams-background canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.beams-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.05);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    animation: beamsPulse 8s ease-in-out infinite;
}

@keyframes beamsPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.beams-gradients {
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.beams-gradients .gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}

.beams-gradients .gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.beams-gradients .gradient-glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(60% 60% at 50% 40%, rgba(80, 120, 255, 0.08), transparent);
}

.categories-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.categories-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
}

.categories-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.categories-subtitle {
    font-size: 1.1rem;
    color: #999;
    max-width: 550px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Category Card */
.category-card {
    display: block;
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

/* Background */
.category-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .card-bg {
    transform: scale(1.08);
}

/* Video */
.category-card .card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .card-video {
    opacity: 1;
}

/* Overlay - MUY OSCURO para buen contraste */
.category-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Content */
.category-card .card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* Header */
.category-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border-radius: 12px;
    color: var(--accent);
    font-size: 1.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.category-card .card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 20px;
}

/* Info Section */
.category-card .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
}

.category-card .card-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.category-card .card-time i {
    font-size: 0.75rem;
}

.category-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-card .card-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.category-card .card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Footer */
.category-card .card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.category-card:hover .card-cta {
    gap: 0.75rem;
}

.category-card .card-cta i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.category-card:hover .card-cta i {
    transform: translateX(4px);
}

/* Animations */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    animation: catCardIn 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes catCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .categories-section {
        padding: 4rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .category-card .card-title {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   PRODUCTS SECTION - Grid de Productos para Homepage
   ========================================================================== */
.products-section {
    padding: 6rem 1rem;
    background: linear-gradient(to bottom, #0a0a0a, #111111);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #65a30d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.products-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.products-title sup {
    font-size: 0.5em;
    vertical-align: super;
}

.products-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    color: #4a5568;
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    z-index: 5;
}

.product-badge.sale {
    background: #dc2626;
    color: #ffffff;
}

.product-info {
    padding: 1.25rem;
}

.product-category {
    display: block;
    font-size: 0.75rem;
    color: #65a30d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.product-price del {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.product-price ins {
    text-decoration: none;
    color: #65a30d;
}

/* Product Actions */
.product-actions {
    padding: 0 1.25rem 1.25rem;
}

.product-actions .button,
.product-actions .add_to_cart_button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(101, 163, 13, 0.1);
    border: 1px solid rgba(101, 163, 13, 0.3);
    border-radius: 0.5rem;
    color: #65a30d;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-actions .button:hover,
.product-actions .add_to_cart_button:hover {
    background: #65a30d;
    border-color: #65a30d;
    color: #ffffff;
}

/* Products CTA */
.products-cta {
    text-align: center;
}

.products-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #65a30d;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.products-btn:hover {
    background: #84cc16;
    transform: translateY(-2px);
}

.products-btn i {
    transition: transform 0.3s ease;
}

.products-btn:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-section {
        padding: 4rem 1rem;
    }

    .products-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto 3rem;
    }
}

/* ==========================================================================
   BLOG SECTION - Masonry Grid con Image Cards Overlay
   ========================================================================== */
.blog-section {
    padding: 6rem 1rem;
    background: #0a0a0a;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Masonry Card Base */
.masonry-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
}

.masonry-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Sizes */
.masonry-large {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-tall {
    grid-row: span 2;
}

.masonry-wide {
    grid-column: span 2;
}

.masonry-normal {
    grid-row: span 1;
}

/* Image */
.masonry-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

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

.masonry-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
    font-size: 3rem;
}

/* Overlay */
.masonry-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    transition: background 0.3s ease;
}

.masonry-card:hover .masonry-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Content */
.masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.masonry-card:hover .masonry-content {
    transform: translateY(0);
}

.masonry-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    background: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.masonry-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masonry-large .masonry-title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
}

.masonry-excerpt {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.masonry-card:hover .masonry-excerpt {
    opacity: 1;
    transform: translateY(0);
}

.masonry-large .masonry-excerpt {
    -webkit-line-clamp: 3;
}

.masonry-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.masonry-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Hover Arrow */
.masonry-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.masonry-card:hover .masonry-arrow {
    opacity: 1;
    transform: translateX(0);
}

.masonry-arrow:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

/* Blog CTA */
.blog-cta {
    text-align: center;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.blog-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.blog-btn i {
    transition: transform 0.3s ease;
}

.blog-btn:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry-large {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .masonry-large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .blog-section {
        padding: 4rem 1rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .masonry-large,
    .masonry-tall,
    .masonry-wide,
    .masonry-normal {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }

    .masonry-content {
        padding: 1.25rem;
    }

    .masonry-excerpt {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    background: #000;
    color: #f8f6f3;
}

/* Main Footer */
.footer-main {
    padding: 4rem 0 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

/* Footer Brand Column */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    max-height: 80px;
    width: auto;
}

.footer-site-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* Footer Titles */
.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact-list i {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    width: 16px;
    text-align: center;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: #fff;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 1rem;
}

.newsletter-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-main .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-contact-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form input[type="email"] {
        border-radius: 4px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .newsletter-form button {
        border-radius: 4px;
        padding: 0.75rem;
    }
}

/* ========================================
   WOOCOMMERCE STYLES
   ======================================== */

/* General WooCommerce Container */
.woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.woocommerce-page .site-main {
    padding-top: 120px;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.woocommerce-breadcrumb a {
    color: #000;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   SINGLE PRODUCT PAGE
   ======================================== */

.single-product .woocommerce {
    padding-top: 2rem;
}

.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Product Gallery */
.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f8f8f8;
}

.single-product .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.single-product .flex-control-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.single-product .flex-control-thumbs li {
    width: 80px;
    height: 80px;
}

.single-product .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs img.flex-active {
    opacity: 1;
}

/* Product Summary */
.single-product .summary {
    padding: 1rem 0;
}

.single-product .product_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
    line-height: 1.2;
}

.single-product .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
}

.single-product .price del {
    color: #999;
    font-weight: 400;
    font-size: 1.25rem;
}

.single-product .price ins {
    text-decoration: none;
    color: #000;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

/* Add to Cart Form */
.single-product form.cart {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.single-product .quantity {
    display: flex;
    align-items: center;
}

.single-product .quantity .qty {
    width: 80px;
    height: 50px;
    text-align: center;
    font-size: 1rem;
    border: 2px solid #000;
    border-radius: 4px;
    background: #fff;
}

.single-product .single_add_to_cart_button {
    flex: 1;
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.single-product .single_add_to_cart_button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Product Meta */
.single-product .product_meta {
    font-size: 0.875rem;
    color: #666;
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

.single-product .product_meta a {
    color: #000;
    text-decoration: none;
}

.single-product .product_meta a:hover {
    text-decoration: underline;
}

/* Product Tabs */
.single-product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.single-product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
}

.single-product .woocommerce-tabs ul.tabs li {
    margin: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #000;
    border-bottom-color: #000;
}

.single-product .woocommerce-tabs .panel {
    padding: 2rem 0;
}

.single-product .woocommerce-tabs .panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Related Products */
.single-product .related.products {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

.single-product .related.products h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.single-product .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========================================
   SHOP PAGE / PRODUCT ARCHIVE
   ======================================== */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    color: #000;
}

.woocommerce ul.products li.product .price {
    padding: 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 0.875rem;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.75rem;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: #333;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale,
.single-product .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
}

/* Shop Page Header */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.woocommerce-products-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Result Count & Ordering */
.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: 2rem;
}

.woocommerce-ordering select {
    padding: 0.75rem 1rem;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 3rem;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
    background: #000;
    color: #fff;
}

/* ========================================
   CART PAGE
   ======================================== */

.woocommerce-cart .woocommerce {
    padding-top: 2rem;
}

.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce table.shop_table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.woocommerce table.shop_table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.woocommerce table.shop_table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.woocommerce table.shop_table .product-name a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce table.shop_table .product-remove a {
    color: #999;
    font-size: 1.5rem;
    text-decoration: none;
}

.woocommerce table.shop_table .product-remove a:hover {
    color: #000;
}

.woocommerce .cart-collaterals {
    margin-top: 2rem;
}

.woocommerce .cart_totals {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
}

.woocommerce .cart_totals h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.woocommerce .cart_totals table {
    width: 100%;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    background: #333;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */

.woocommerce-checkout .woocommerce {
    padding-top: 2rem;
}

.woocommerce form.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000;
}

.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #000;
    outline: none;
}

.woocommerce #order_review {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
}

.woocommerce #order_review_heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.woocommerce #payment {
    background: transparent;
}

.woocommerce #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.woocommerce #payment ul.payment_methods li {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.woocommerce #place_order {
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce #place_order:hover {
    background: #333;
}

/* ========================================
   MY ACCOUNT PAGE
   ======================================== */

.woocommerce-account .woocommerce {
    padding-top: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 250px;
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #000;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    margin-left: 280px;
}

/* ========================================
   WOOCOMMERCE MESSAGES
   ======================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.woocommerce-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.woocommerce-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    list-style: none;
    padding-left: 1.5rem;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
    margin-left: auto;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* ========================================
   WOOCOMMERCE RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .woocommerce form.checkout {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        float: none;
        margin-bottom: 2rem;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .woocommerce {
        padding: 1rem;
    }

    .woocommerce-page .site-main {
        padding-top: 100px;
    }

    .single-product .product_title {
        font-size: 1.75rem;
    }

    .single-product .price {
        font-size: 1.5rem;
    }

    .single-product form.cart {
        flex-direction: column;
    }

    .single-product .quantity .qty {
        width: 100%;
    }

    .single-product .single_add_to_cart_button {
        width: 100%;
    }

    .single-product .related.products ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .woocommerce ul.products li.product a img {
        height: 200px;
    }

    .woocommerce table.shop_table {
        font-size: 0.875rem;
    }

    .woocommerce table.shop_table img {
        width: 60px;
        height: 60px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .single-product .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   ELEMENTOR COMPATIBILITY STYLES
   ========================================================================== */

/* Reset container widths for Elementor */
.elementor-full-width-template .entry-content,
.elementor-full-width-template .elementor-entry-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.elementor-full-width-template .elementor-content-wrapper {
    max-width: 100%;
    width: 100%;
}

/* Elementor Canvas template */
.elementor-canvas {
    margin: 0;
    padding: 0;
}

/* Remove default margins for Elementor sections */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

.elementor-section.elementor-section-full_width {
    max-width: 100%;
    width: 100%;
}

/* Ensure Elementor widgets respect theme fonts */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Barlow Condensed', sans-serif;
}

.elementor-widget-text-editor {
    font-family: 'Nunito Sans', sans-serif;
}

/* Button styles for Elementor */
.elementor-button {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.elementor-button:hover {
    transform: translateY(-2px);
}

/* Full width sections */
.elementor-full-width-template .site-main {
    padding: 0;
    margin: 0;
}

.elementor-full-width-template article.elementor-content-wrapper {
    padding: 0;
    margin: 0;
}

/* Remove spacing from Elementor pages */
body.elementor-page .site-content {
    padding: 0;
}

body.elementor-page .site-main {
    padding: 0;
}

/* Elementor Kit colors - use theme colors */
:root {
    --e-global-color-primary: #000000;
    --e-global-color-secondary: #333333;
    --e-global-color-text: #666666;
    --e-global-color-accent: #000000;
}

/* Responsive Elementor adjustments */
@media (max-width: 1024px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Elementor forms styling */
.elementor-form .elementor-field-group input,
.elementor-form .elementor-field-group textarea {
    font-family: 'Nunito Sans', sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}

.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus {
    border-color: #000000;
    outline: none;
}

.elementor-form .elementor-button {
    background-color: #000000;
    border-radius: 50px;
    padding: 15px 30px;
}

.elementor-form .elementor-button:hover {
    background-color: #333333;
}
