/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --primary-color: #008C2B;
    --primary-hover: #04AF38;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --background: #f9fafb;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --badge: #2563eb;
    --background-light-green: #dbeccd;
    
    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejorar renderizado de fuentes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }

button, input, textarea, select {
    font-family: var(--font-family);
}

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

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

a:hover {
    text-decoration: underline;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main > .container {
    padding: 24px 24px 0;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* ==========================================
   HEADER - MOBILE FIRST
   ========================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
}

/* Menu Toggle (Hamburger) - IZQUIERDA en mobile */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    border-radius: 12px;
    transition: background 0.2s;
    order: 1;
}

.menu-toggle:hover {
    background: var(--background);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación hamburger a X */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Logo - CENTRADO en mobile */
.header-logo {
    display: flex;
    justify-content: center;
    order: 2;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 20px;
    transition: color 0.2s;
}

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

.logo-icon {
    font-size: 28px;
    line-height: 1;
}

.logo-text {
    color: #2b5544;
    text-transform: uppercase;
}

/* Acciones del Header - DERECHA */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    order: 3;
}

/* Botón de Carrito */
.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--background);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.cart-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cart-button:active {
    transform: translateY(0);
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    border: 2px solid var(--white);
}

/* Navegación - MOBILE FIRST (desliza desde izquierda) */
.main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    padding: 80px 0 20px;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 999;
}

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

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    background: var(--background);
    color: var(--primary-color);
    padding-left: 32px;
}

.nav-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

/* Overlay para cerrar menú */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   HEADER - TABLET (min-width: 640px)
   ========================================== */
@media (max-width: 767px) {
    /* Logo más grande en tablet */
    .logo-image {
        height: 24px;
    }
    
    .logo-text {
        font-size: 16px;
        color: #2b5544;
        text-transform: uppercase;
    }
}

/* ==========================================
   HEADER - DESKTOP (min-width: 768px)
   ========================================== */
@media (min-width: 768px) {
    .header-wrapper {
        display: flex;
        justify-content: space-between;
        padding: 16px 0;
    }
    
    .header-logo {
        order: 1;
        justify-content: flex-start;
    }
    
    /* Logo horizontal en desktop */
    .header-logo a {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        font-size: 20px;
        font-weight: 700;
        text-transform: none;
        letter-spacing: -0.02em;
        color: #2b5544;
        text-transform: uppercase;
    }
    
    /* Ocultar hamburger en desktop */
    .menu-toggle {
        display: none;
    }
    
    /* Ocultar "Inicio" en desktop */
    .nav-item-mobile-only {
        display: none;
    }
    
    /* Navegación horizontal en desktop */
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
        flex: 1;
        margin: 0 0 0 60px; /* Más espacio entre logo y primer link */
        order: 2;
    }
    
    .nav-list {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: flex-end;
    }
    
    .nav-item {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 15px;
    }
    
    .nav-link:hover {
        background: var(--background);
        padding-left: 16px;
    }
    
    /* Ocultar iconos en desktop (opcional) */
    .nav-icon {
        display: none;
    }
    
    /* Overlay no necesario en desktop */
    .nav-overlay {
        display: none;
    }
    
    .header-actions {
        order: 3;
    }
}

@media (min-width: 1024px) {
    .main-nav {
        margin: 0 0 0 80px; /* Aún más espacio en pantallas grandes */
    }
    
    .nav-list {
        gap: 4px;
    }
    
    .nav-link {
        padding: 10px 20px;
    }
}

/* ==========================================
   NOTIFICACIÓN
   ========================================== */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    max-width: 300px;
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
}

/* ==========================================
   CATEGORÍAS
   ========================================== */
.categories-section {
    margin-bottom: 60px;
}

.categories-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.category-header {
    margin-bottom: 40px;
    text-align: center;
}

.category-header h1 {
    margin-bottom: 16px;
}

.category-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.6;
}

.category-description p {
    margin-bottom: 12px;
}

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

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-placeholder {
    width: 100%;
    height: 150px;
    background: var(--background);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 15px;
}

/* ==========================================
   PRODUCTOS
   ========================================== */
.products-section {
    margin-bottom: 60px;
}

.products-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 250px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-card h3 {
    padding: 15px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.product-price {
    padding: 0 20px;
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-compare {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 10px;
}

.stock-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 20px 15px;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: var(--success-color);
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: var(--danger-color);
}

.product-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* ==========================================
   DETALLE DE PRODUCTO
   ========================================== */
.breadcrumb {
    margin-bottom: 30px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.product-placeholder-large {
    width: 100%;
    height: 500px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}

.product-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.product-sku {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.price-large {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.price-compare-large {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.product-availability {
    margin-bottom: 30px;
}

.product-description {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.product-description h3 {
    margin-bottom: 15px;
}

.product-description-content {
    color: var(--text-color);
    line-height: 1.8;
}

/* Estilos para HTML de Directus */
.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
}

.product-description-content h1 { font-size: 28px; }
.product-description-content h2 { font-size: 24px; }
.product-description-content h3 { font-size: 20px; }
.product-description-content h4 { font-size: 18px; }

.product-description-content p {
    margin-bottom: 16px;
}

.product-description-content ul,
.product-description-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.product-description-content li {
    margin-bottom: 8px;
}

.product-description-content strong,
.product-description-content b {
    font-weight: 600;
    color: var(--text-color);
}

.product-description-content em,
.product-description-content i {
    font-style: italic;
}

.product-description-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-description-content a:hover {
    color: var(--primary-hover);
}

.product-description-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--background);
    font-style: italic;
}

.product-description-content code {
    background: var(--background);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.product-description-content pre {
    background: var(--background);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.product-description-content pre code {
    background: none;
    padding: 0;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.product-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-description-content th,
.product-description-content td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.product-description-content th {
    background: var(--background);
    font-weight: 600;
}

.product-description-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 24px 0;
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 10px;
    display: inline-block;
    text-align: center;
}

/* ==========================================
   CARRITO
   ========================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Título del carrito con más espacio */
.container > h1 {
    margin-bottom: 40px;
}

.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
    padding: 20px;
    text-align: left;
}

.cart-table thead {
    background: var(--background);
}

.cart-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.cart-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.quantity-input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-remove:hover {
    opacity: 1;
}

/* Resumen del carrito */
.cart-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    align-self: start;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.discount {
    color: var(--success-color);
}

.summary-row.total {
    font-size: 20px;
    border-bottom: none;
    padding-top: 20px;
}

.coupon-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.coupon-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.coupon-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: none;
}

.coupon-message.show {
    display: block;
}

.coupon-message.success {
    background: #d1fae5;
    color: var(--success-color);
}

.coupon-message.error {
    background: #fee2e2;
    color: var(--danger-color);
}

.btn-remove-coupon {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

/* ==========================================
   CHECKOUT
   ========================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-section h2, .checkout-summary h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    align-self: start;
    position: sticky;
    top: 100px;
}

.summary-products {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.summary-product {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.summary-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-product-info span {
    font-size: 14px;
    color: var(--text-light);
}

.summary-totals {
    margin-bottom: 20px;
}

.payment-info {
    background: var(--background);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
    color: #991b1b;
}

.alert ul {
    margin: 10px 0 0 20px;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* ==========================================
   ESTADO VACÍO
   ========================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h2 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 30px;
    color: var(--text-light);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   BLOG - HOME SECTION
   ========================================== */
.blog-section {
    margin: 60px 0;
}

.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.blog-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-view-all {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all:hover {
    gap: 12px;
}

.blog-cards-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card-home {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-home-image {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-placeholder-home {
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.featured-badge-small {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--badge);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.blog-card-home-content {
    padding: 24px;
}

.blog-date-small {
    display: inline-block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.blog-card-home-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-home-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card-home-content h3 a:hover {
    color: var(--primary-color);
}

.blog-card-home-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-read-more-small {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.btn-read-more-small:hover {
    gap: 10px;
}

/* ==========================================
   BLOG - INDEX PAGE
   ========================================== */
.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.blog-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.blog-header p {
    font-size: 18px;
    color: var(--text-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-featured {
    border: 2px solid var(--primary-color);
}

.blog-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}

.blog-card-content {
    padding: 28px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-author {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.btn-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.btn-read-more:hover {
    gap: 12px;
}

/* ==========================================
   BLOG - SINGLE POST
   ========================================== */
.blog-post-container {
    background: var(--white);
    padding: 40px 0;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

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

.featured-badge-large {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-featured-image {
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
}

.blog-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 48px;
}

.blog-post-content p {
    margin-bottom: 24px;
}

.blog-post-content h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-post-content h3 {
    font-size: 26px;
    margin-top: 36px;
    margin-bottom: 16px;
}

/* CTA Producto en Blog */
.blog-cta-product {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
}

.blog-cta-content {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-cta-info {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.blog-cta-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-cta-label {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-cta-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.blog-cta-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.blog-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.blog-tag {
    background: var(--background);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
}

/* Artículos relacionados */
.related-posts {
    margin: 80px 0 40px;
}

.related-posts h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.blog-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.blog-card-small {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.blog-card-small:hover {
    transform: translateY(-4px);
}

.blog-card-small img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-placeholder-small {
    width: 100%;
    height: 180px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.blog-card-small h3 {
    padding: 20px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-card-small a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card-small a:hover {
    color: var(--primary-color);
}

.blog-back {
    text-align: center;
    margin: 40px 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    /* Ajustes para mobile */
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Blog ajustes mobile */
    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .blog-cards-home {
        grid-template-columns: 1fr;
    }
    
    .blog-header h1 {
        font-size: 32px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-post-header h1 {
        font-size: 32px;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .blog-cta-content {
        flex-direction: column;
    }
    
    .blog-cta-info {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-cta-actions {
        width: 100%;
    }
    
    .blog-cta-actions .btn {
        width: 100%;
    }
    
    .blog-grid-small {
        grid-template-columns: 1fr;
    }
    
    .product-detail,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .product-card h3 {
        font-size: 16px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .cart-summary,
    .checkout-summary {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Tabla de carrito responsive */
    .cart-table {
        font-size: 14px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 12px 8px;
    }
    
    .cart-product {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
    
    /* Ocultar columnas en mobile */
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-selector input {
        flex: 1;
        max-width: 120px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Ajustes para tablet */
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Hero section */ 

/* Hero Section - Layout de dos columnas */

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Columna izquierda - Contenido de texto */
.hero-content {
    padding: 20px 0;
}
.hero-section {
    background: #dbeccd;
    padding: 32px;
    color: #2d5544;
    margin-bottom: 32px;
    border-radius: 12px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-caption {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 500px;
}

/* Responsive - Tablets */
@media (max-width: 968px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Responsive - Móviles */
@media (max-width: 640px) {
    .hero-section {
        padding: 4px 16px 16px;
    }
    .hero-content {
        padding: 20px 0 0;
    }
}

@media (min-width: 768px) and (max-width: 910px) {
    .logo-text {
        display: none;
    }
}

/* ==========================================
   PÁGINAS LEGALES
   ========================================== */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
    color: var(--text-color);
    font-size: 32px;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.legal-page .last-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.legal-section h3 {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul,
.legal-section ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.legal-section li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--text-color);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.legal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    background: var(--background);
    padding: 30px;
    border-radius: 8px;
}

.legal-footer p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 15px;
        margin: 20px 10px;
    }
    
    .legal-page h1 {
        font-size: 24px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 16px;
    }
}

/* ==========================================
   PÁGINA ACERCA DE
   ========================================== */

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.about-hero {
    text-align: center;
    padding: 60px 20px;
    background: #dbeccd;
    color: #2d5544;
    border-radius: 16px;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2d5544;
}

.about-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-content h2 {
    color: var(--text-color);
    font-size: 32px;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-section {
    margin-bottom: 80px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.mission-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mission-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 16px;
}

.mission-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.6;
}

.why-choose-section {
    background: var(--background);
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 80px;
}

.why-choose-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

.commitment-section {
    margin-bottom: 80px;
}

.commitment-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 36px;
    margin-bottom: 50px;
}

.commitment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.commitment-text h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.commitment-text h3:first-child {
    margin-top: 0;
}

.commitment-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.commitment-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: #dbeccd;
    color: #2d5544;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
}

.sustainability-section {
    background: var(--background);
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 80px;
}

.sustainability-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.sustainability-section > p {
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sustainability-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.sustainability-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.sustainability-item h4 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.sustainability-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

.team-section {
    text-align: center;
    margin-bottom: 80px;
}

.team-section h2 {
    color: var(--text-color);
    font-size: 36px;
    margin-bottom: 24px;
}

.team-intro {
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
}

.contact-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 80px;
    color: white;
    text-align: center;
}

.contact-cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
}

.contact-cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.contact-method strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-method p {
    margin: 0;
    opacity: 0.95;
}

.final-message {
    text-align: center;
    margin-bottom: 60px;
}

.final-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-content h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 24px;
}

.final-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.final-content .btn {
    margin-top: 30px;
}

.footer-link-btn {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link-btn:hover {
    color: var(--primary-hover);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commitment-content {
        grid-template-columns: 1fr;
    }
    
    .sustainability-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 32px;
    }
    
    .about-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   MODAL DE CONTACTO
   ========================================== */

.modal-contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-contact-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-contact-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-contact-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.contact-modal-header {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.contact-modal-header h2 {
    color: var(--text-color);
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-modal-header p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form-modal {
    padding: 30px 40px 40px;
}

.contact-form-modal .form-group {
    margin-bottom: 20px;
}

.contact-form-modal label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.contact-form-modal .required {
    color: var(--danger-color);
}

.contact-form-modal input,
.contact-form-modal select,
.contact-form-modal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.contact-form-modal input:focus,
.contact-form-modal select:focus,
.contact-form-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 140, 43, 0.1);
}

.contact-form-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

.contact-form-modal .btn-submit {
    width: 100%;
    margin-top: 10px;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#contactModalMessages {
    margin: 0 40px;
    margin-top: -10px;
}

#contactModalMessages .alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

#contactModalMessages .alert-success {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    color: #065f46;
}

#contactModalMessages .alert-error {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
    color: #991b1b;
}

/* Animación de entrada */
.modal-contact {
    animation: fadeIn 0.3s ease;
}

.modal-contact-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-contact-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-header {
        padding: 30px 20px 15px;
    }
    
    .contact-modal-header h2 {
        font-size: 24px;
    }
    
    .contact-form-modal {
        padding: 20px;
    }
    
    #contactModalMessages {
        margin: 0 20px;
    }
    
    .modal-contact-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}



/**
 * Estilos mejorados para botón "Add to Cart"
 * Reemplaza el emoji 🛒 con ícono SVG que se ve mejor sobre fondo verde
 */

/* Botón Add to Cart con ícono SVG */
.add-to-cart {
    position: relative;
    padding-left: 3rem !important; /* Espacio para el ícono */
}

.add-to-cart::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Versión grande del botón (página de producto) */
.add-to-cart.btn-large::before {
    width: 24px;
    height: 24px;
    left: 1.25rem;
}

/* Opcional: Animación al hover */
.add-to-cart:hover::before {
    animation: cart-shake 0.5s ease-in-out;
}

@keyframes cart-shake {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(-10deg); }
    75% { transform: translateY(-50%) rotate(10deg); }
}

/* Si prefieres un ícono de "más" (+) en lugar del carrito */
.add-to-cart.icon-plus::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

/* Si prefieres un ícono de "bolsa de compras" */
.add-to-cart.icon-bag::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

/* Si prefieres un ícono de "check" o "tick" */
.add-to-cart.icon-check::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
/* ==========================================
   MOBILE EXTRA PEQUEÑO - 414px y menos
   1 card por fila + Ocultar categorías
   ========================================== */
@media (max-width: 414px) {
    /* Grid de productos: 1 columna */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    /* Ocultar sección de categorías completa */
    .categories-section {
        display: none !important;
    }
}