/*
Theme Name: NaturaVibe
Theme URI: https://github.com/naturavibe
Author: Antigravity AI
Author URI: https://google.com
Description: Un tema de WordPress vanguardista, rápido y elegante para tiendas naturistas y ecológicas, completamente compatible con WooCommerce y diseñado para la web moderna.
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: naturavibe
Tags: e-commerce, two-columns, responsive-layout, custom-menu, translation-ready, green, organic
*/

/* ==========================================================================
   1. VARIABLES GLOBALES Y DISEÑO DE SISTEMA (2026 AESTHETICS)
   ========================================================================== */
:root {
    /* Paleta de Colores Curada */
    --color-primary: #1e352f;      /* Verde Bosque Profundo */
    --color-secondary: #8ea885;    /* Verde Salvia */
    --color-accent: #d48c70;       /* Terracota Ocre */
    --color-bg-base: #faf7f2;      /* Crema Cálido */
    --color-bg-card: #ffffff;      /* Blanco Puro */
    --color-text-main: #2b3d36;    /* Texto Principal */
    --color-text-muted: #64748b;   /* Slate Grey */
    --color-success: #10b981;      /* Verde Éxito */
    
    /* Efecto Glassmorphism */
    --glass-bg: rgba(250, 247, 242, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
    
    /* Tipografía */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Bordes y Sombras Vanguardistas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(30, 53, 47, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(30, 53, 47, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(30, 53, 47, 0.12);
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET Y ESTILOS GENERALES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

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

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

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

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* ==========================================================================
   3. CABECERA Y MENÚ DE NAVEGACIÓN
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo span {
    color: var(--color-secondary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary);
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Carrito en Cabecera */
.header-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.header-cart-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ==========================================================================
   4. PÁGINA DE INICIO (FRONT-PAGE)
   ========================================================================== */
.hero-section {
    padding: 100px 0 80px;
    background: radial-gradient(circle at 80% 20%, rgba(142, 168, 133, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(212, 140, 112, 0.08) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(142, 168, 133, 0.15);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(120deg, var(--color-primary) 40%, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-badge h4 {
    font-size: 18px;
    margin-bottom: 2px;
}

.floating-badge p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Categorías destacadas */
.categories-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-smooth);
}

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

.category-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   5. COMPATIBILIDAD Y ESTILOS DE WOOCOMMERCE
   ========================================================================== */
/* Rejilla de productos */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 0 3em 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product img {
    border-radius: var(--radius-sm);
    margin-bottom: 15px !important;
    transition: var(--transition-smooth);
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.02);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    padding: 5px 0 10px 0 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 14px;
}

.woocommerce ul.products li.product .price ins {
    background: none;
    text-decoration: none;
}

/* Botón Añadir al carrito WooCommerce */
.woocommerce ul.products li.product .button {
    margin-top: 10px !important;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: var(--transition-smooth) !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-primary) !important;
}

.woocommerce span.onsale {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px !important;
    text-transform: uppercase;
    border-radius: 30px !important;
    min-height: 24px !important;
    min-width: 60px !important;
    line-height: 24px !important;
    padding: 0 10px !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
}

/* Ficha del Producto */
.woocommerce div.product {
    margin-top: 40px !important;
}

.woocommerce div.product div.images img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.woocommerce div.product .product_title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.woocommerce div.product .price {
    font-size: 24px !important;
    color: var(--color-accent) !important;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin: 20px 0;
    color: var(--color-text-muted);
}

.woocommerce div.product form.cart .button {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-primary) !important;
}

.woocommerce div.product form.cart .quantity input {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    padding: 8px;
    height: 48px;
}

/* Pestañas de producto */
.woocommerce-tabs ul.tabs {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    display: flex !important;
    gap: 15px !important;
}

.woocommerce-tabs ul.tabs li {
    border: none !important;
    background-color: transparent !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 20px !important;
}

.woocommerce-tabs ul.tabs li.active {
    background-color: var(--color-primary) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #ffffff !important;
}

/* ==========================================================================
   6. SECCIÓN DE ENLACE DE PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 24px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input[type="email"] {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    flex-grow: 1;
}

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

.newsletter-form button {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background-color: #ffffff;
    transform: scale(1.02);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ==========================================================================
   7. BLOG Y DISEÑO RESPONSIVO
   ========================================================================== */
.post-entry {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .floating-badge {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px 0;
    }
    .main-navigation {
        display: none; /* Para simplicidad en este tema base, los menús se adaptan */
    }
    .hero-title {
        font-size: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
