/*
Theme Name: De Raiz Child
Theme URI: https://tudominio.com
Description: Tema hijo para De Raiz - Bienestar Integral
Author: Tu Nombre
Author URI: https://tudominio.com
Template: deraiz
Version: 1.0.0
*/

/* ===== VARIABLES Y CONFIGURACIÓN ===== */
:root {
    --color-primary: #4a6741;      /* Verde Bosque del logo */
    --color-secondary: #a68b6d;     /* Color Tierra */
    --color-background: #fdfcf9;     /* Blanco Crema */
    --color-background-dark: #121412; /* Negro Bosque */
    --color-text: #1e293b;
    --color-text-light: #f8fafc;
    --font-display: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-large: 1.5rem;
}

/* Modo oscuro */
.dark {
    --color-background: #121412;
    --color-text: #f8fafc;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ===== UTILIDADES ===== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }

/* ===== NAVEGACIÓN (HEADER) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e7e5e4;
    transition: all 0.3s;
}

.dark .site-header {
    background: rgba(18, 20, 18, 0.8);
    border-bottom-color: #292524;
}

.site-header.scrolled {
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    display: none;
}

@media (min-width: 1024px) {
    .logo-text {
        display: block;
    }
}

.logo-main {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.logo-slogan {
    display: block;
    color: var(--color-secondary);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Navegación */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-navigation a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Acciones del header (botones) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-button {
    padding: 0.5rem;
    border-radius: 9999px;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button:hover {
    background-color: #f1f5f9;
}

.dark .action-button:hover {
    background-color: #292524;
}

.action-button .material-icons-outlined {
    font-size: 1.25rem;
}

/* Carrito */
.cart-button {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.625rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('REEMPLAZA_CON_URL_DE_TU_IMAGEN_HERO');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    max-width: 42rem;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: rgba(74, 103, 65, 0.2);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.dark .hero-badge {
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-gradient {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1540420773420-3366772f4999?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Clases de utilidad para Tailwind (si no existen) */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hover\:shadow-primary\/30:hover {
    box-shadow: 0 10px 25px -5px rgba(74, 103, 65, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-italic {
    font-style: italic;
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 32rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background-color: rgba(74, 103, 65, 0.9);
    box-shadow: 0 10px 25px -5px rgba(74, 103, 65, 0.5);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.2);
}

.btn .material-icons-outlined {
    margin-left: 0.5rem;
    font-size: 1rem;
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--color-secondary);
    margin: 0 auto;
}

.section-header-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header-left h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header-left p {
    color: #78716c;
}

.dark .section-header-left p {
    color: #a8a29e;
}

.section-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-link:hover {
    text-decoration: underline;
}

/* ===== CATEGORÍAS GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    color: white;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.category-link {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 0.25rem;
    transition: border-color 0.3s;
}

.category-card:hover .category-link {
    border-color: white;
}

/* ===== PRODUCTOS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.dark .product-card {
    background: #1c1917;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.product-image-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f1f5f9;
}

.dark .product-image-container {
    background: #44403c;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wishlist-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--color-text);
}

.product-card:hover .wishlist-button {
    opacity: 1;
}

.wishlist-button .material-icons-outlined {
    font-size: 1rem;
}

.product-details {
    padding: 1.5rem;
}

.product-category {
    color: var(--color-secondary);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

.product-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star-filled {
    color: #facc15;
    font-size: 1rem;
}

.star-empty {
    color: #d6d3d1;
    font-size: 1rem;
}

.rating-count {
    color: #a8a29e;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.price-old {
    font-size: 0.875rem;
    color: #a8a29e;
    text-decoration: line-through;
    display: block;
}

.add-to-cart-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background-color: rgba(74, 103, 65, 0.9);
}

.add-to-cart-btn .material-icons-outlined {
    font-size: 1.25rem;
}

/* ===== FILOSOFÍA SECTION ===== */
.philosophy-section {
    padding: 6rem 0;
    overflow: hidden;
}

.philosophy-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .philosophy-grid {
        flex-direction: row;
        gap: 8rem;
    }
}

.philosophy-image-container {
    position: relative;
    flex: 1;
}

.philosophy-bg-blur {
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(74, 103, 65, 0.1);
    border-radius: 9999px;
    filter: blur(64px);
    z-index: 0;
}

.philosophy-image-wrapper {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
}

.philosophy-image {
    width: 100%;
    height: auto;
    display: block;
}

.philosophy-quote {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 20rem;
    border: 1px solid #f1f5f9;
    z-index: 2;
}

.dark .philosophy-quote {
    background: #292524;
    border-color: #44403c;
}

.philosophy-quote p {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.philosophy-quote .quote-author {
    color: #a8a29e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.philosophy-content {
    flex: 1;
}

.philosophy-subtitle {
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.philosophy-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .philosophy-title {
        font-size: 3rem;
    }
}

.philosophy-description {
    color: #57534e;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.dark .philosophy-description {
    color: #d6d3d1;
}

.philosophy-highlight {
    font-weight: 700;
    color: var(--color-primary);
}

.philosophy-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.philosophy-features li {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: rgba(74, 103, 65, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.feature-icon .material-icons-outlined {
    font-size: 1.5rem;
}

.feature-content h5 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: #78716c;
}

.dark .feature-content p {
    color: #a8a29e;
}

.philosophy-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.25rem;
    transition: color 0.3s, border-color 0.3s;
}

.philosophy-link:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f5f5f4;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.dark .site-footer {
    background-color: #1c1917;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
}

.footer-logo-slogan {
    display: block;
    color: var(--color-secondary);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-description {
    color: #78716c;
    font-size: 0.875rem;
    line-height: 1.6;
}

.dark .footer-description {
    color: #a8a29e;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: color 0.3s;
    color: var(--color-text);
}

.dark .social-link {
    background: #292524;
}

.social-link:hover {
    color: var(--color-primary);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu li a {
    color: #78716c;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: var(--color-primary);
}

.dark .footer-menu li a {
    color: #a8a29e;
}

.footer-newsletter p {
    color: #78716c;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.dark .footer-newsletter p {
    color: #a8a29e;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e7e5e4;
    border-radius: var(--radius);
    background: white;
    font-size: 0.875rem;
}

.dark .newsletter-input {
    background: #292524;
    border-color: #57534e;
    color: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.2);
}

.newsletter-submit {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-submit:hover {
    background-color: rgba(74, 103, 65, 0.9);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e7e5e4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #a8a29e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.dark .footer-bottom {
    border-top-color: #44403c;
}

.footer-payment-methods {
    display: flex;
    gap: 1.5rem;
}

.footer-payment-methods img {
    height: 1rem;
    width: auto;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s;
}

.footer-payment-methods img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ===== RESPONSIVE AJUSTES ===== */
@media (max-width: 768px) {
    .philosophy-quote {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
    }
    
    .section-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}