/* ===== IMPORTS Y CONFIGURACIÓN BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores principales - Basados en el flyer */
    --primary-green: #1a5f3c; /* Verde oscuro del flyer */
    --primary-green-light: #2d7a4f; /* Verde más claro */
    --accent-green: #4ade80; /* Verde claro del flyer */
    --cream: #fefcf7; /* Color crema/off-white del flyer */
    --cream-dark: #f5f1e8;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Bordes redondeados */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* ===== CONFIGURACIÓN BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cream);
    color: var(--gray-800);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HEADER FIXED ===== */
header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 768px) {
    header .flex {
        padding: 0 1rem;
    }
    
    /* Asegurar que el menú hamburguesa y carrito estén juntos */
    header .flex > div:last-child {
        display: flex;
        align-items: center;
        gap: 1rem; /* Espacio entre menú y carrito */
    }
    
    /* Logo más pequeño en móviles */
    header img {
        height: 2rem;
    }
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    display: inline-block; /* Asegurar que se muestre */
}

/* Asegurar que el menú horizontal sea visible en desktop */
.desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
}

@media (min-width: 1024px) {
    header nav {
        display: flex !important;
    }
    
    .nav-link {
        display: inline-block !important;
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    background-color: var(--cream);
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-green);
    background-color: var(--cream);
}

/* ===== CART SIDEBAR ===== */
#cart-sidebar {
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

#cart-overlay {
    backdrop-filter: blur(4px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px; /* Altura mínima menor en móviles */
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 60, 0.3) 0%, rgba(74, 222, 128, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-top: 15vh; /* Logo más arriba */
}

.logo-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    margin: 0 auto; /* Centrado perfecto */
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MEDIA QUERIES PARA HERO ===== */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 12vh; /* Logo aún más arriba en móviles */
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        max-width: 250px; /* Logo más pequeño en móviles */
    }
    
    .hero-title {
        font-size: 2.5rem; /* Título más pequeño en móviles */
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-top: 10vh; /* Logo muy arriba en móviles pequeños */
    }
    
    .hero-logo {
        max-width: 200px; /* Logo aún más pequeño */
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== MAIN CONTAINER ===== */
main {
    background: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTIONS ===== */
.products-section,
.benefits-section,
.checkout-section,
.faq-section,
.nosotros-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 2px;
}

.section-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #ffe066 0%, #ffb347 100%);
    color: #7c4700;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-lg);
    z-index: 10;
    box-shadow: var(--shadow-md);
    line-height: 1.2;
    text-align: center;
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
    width: 100%;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--gray-100);
}

.gallery-track {
    display: flex;
    transition: transform var(--transition-normal);
}

.gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: var(--gray-50);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    font-size: 1rem;
    color: var(--gray-700);
}

.gallery-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.product-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.product-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.precio-tachado {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: 1.5rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.precio-descuento {
    color: var(--primary-green);
    font-size: 2.2rem;
    font-weight: 700;
}

.promo-message {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ===== QUANTITY CONTROLS ===== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.quantity-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.quantity-decrease {
    background: var(--gray-500);
}

.quantity-decrease:hover {
    background: var(--gray-600);
}

.quantity-increase:hover {
    background: var(--primary-green-light);
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--white);
    color: var(--gray-800);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 95, 60, 0.1);
}

.discount-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    min-height: 1.5em;
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: block;
    transition: all var(--transition-normal);
}

.benefit-card:hover .benefit-icon {
    color: var(--accent-green);
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.benefit-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== CHECKOUT SECTION ===== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.shipping-form,
.order-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.form-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.address-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.address-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.address-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 95, 60, 0.1);
}

.check-button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.check-button:hover {
    background: var(--primary-green-light);
    transform: translateY(-2px);
}

.delivery-result {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    min-height: 1.5em;
}

.shipping-options {
    margin-top: 1.5rem;
}

.options-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-green);
}

.option-label {
    font-size: 1rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ===== ORDER SUMMARY ===== */
.summary-details {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--gray-700);
}

.summary-value {
    font-weight: 600;
    color: var(--gray-800);
}

.savings {
    color: var(--accent-green);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid var(--primary-green);
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.total-price {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.combo-suggestion {
    text-align: center;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 1.5em;
}

/* ===== COUPON SECTION ===== */
.coupon-section {
    margin-bottom: 1.5rem;
}

.coupon-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.coupon-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.coupon-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 95, 60, 0.1);
}

.coupon-button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.coupon-button:hover {
    background: var(--primary-green-light);
}

.coupon-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.25em;
}

/* ===== CUSTOMER SECTION ===== */
.customer-section {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--white);
    color: var(--gray-800);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 95, 60, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-help {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ===== DELIVERY DATE ===== */
.delivery-date {
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===== CHECKOUT BUTTON ===== */
.checkout-button {
    width: 100%;
    background: #25d366;
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-button:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.checkout-error {
    color: #dc2626;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    min-height: 1.5em;
}

.checkout-note {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== FAQ SECTION ===== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    background: var(--cream);
}

.faq-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    transition: all var(--transition-normal);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.6;
    transition: all var(--transition-normal);
}

.faq-answer.hidden {
    display: none;
}

/* ===== NOSOTROS SECTION ===== */
.nosotros-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-photo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nosotros-photo-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-green);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    margin: 0 auto; /* Centrado horizontal adicional */
}

.nosotros-photo-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.nosotros-text {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.nosotros-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.nosotros-text p:last-child {
    margin-bottom: 0;
}

/* Responsive para la foto */
@media (max-width: 768px) {
    .nosotros-photo-img {
        width: 150px;
        height: 150px;
    }
    
    .nosotros-text {
        padding: 2rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: var(--gray-100);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-200);
    font-size: 0.9rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-100);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.social-link:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

/* ===== CART ITEMS ===== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cart-item-total {
    font-weight: 600;
    color: var(--primary-green);
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== POPUP DE ABANDONO ===== */
.abandonment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.abandonment-popup-overlay.show {
    opacity: 1;
}

.abandonment-popup-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.abandonment-popup-overlay.show .abandonment-popup-content {
    transform: scale(1);
}

.popup-header {
    margin-bottom: 1.5rem;
}

.popup-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.popup-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.popup-message {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-btn.primary {
    background: var(--primary-green);
    color: var(--white);
}

.popup-btn.primary:hover {
    background: var(--primary-green-light);
    transform: translateY(-2px);
}

.popup-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.popup-btn.secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.popup-btn.close {
    background: var(--gray-200);
    color: var(--gray-600);
}

.popup-btn.close:hover {
    background: var(--gray-300);
    color: var(--gray-700);
}

/* Responsive para el popup */
@media (max-width: 768px) {
    .abandonment-popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-emoji {
        font-size: 2.5rem;
    }
    
    .popup-header h3 {
        font-size: 1.3rem;
    }
    
    .popup-message {
        font-size: 1rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .address-form {
        flex-direction: column;
    }
    
    .address-input {
        min-width: auto;
    }
    
    .coupon-input-group {
        flex-direction: column;
    }
    
    .gallery-slide img {
        height: 250px;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    /* Tag del combo más pequeño en móviles */
    .product-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        top: 0.5rem;
        left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .shipping-form,
    .order-summary {
        padding: 1.5rem;
    }
    
    .gallery-slide img {
        height: 200px;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SAFARI / IPHONE SPECIFIC FIXES ===== */
@supports (-webkit-touch-callout: none) {
    .hero-video {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .gallery-slide img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .quantity-btn,
    .gallery-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .quantity-input {
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    button {
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    @media screen and (max-width: 480px) {
        .hero-section {
            height: 100vh;
            height: -webkit-fill-available;
        }
    }
}