/* ============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================ */
:root {
    /* Paleta de colores - Rosas sofisticados */
    --bg-primary: #0d0a0b;
    --bg-secondary: #1a1517;
    --bg-card: rgba(26, 21, 23, 0.8);

    /* Rosas */
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-800: #9d174d;
    --pink-900: #831843;

    /* Acentos */
    --accent-gold: #d4a574;
    --accent-rose: #e8b4b8;

    /* Texto */
    --text-primary: #fdf2f8;
    --text-secondary: rgba(253, 242, 248, 0.7);
    --text-muted: rgba(253, 242, 248, 0.5);

    /* Bordes y sombras */
    --border-color: rgba(236, 72, 153, 0.2);
    --glow-pink: rgba(236, 72, 153, 0.4);

    /* Tipografía */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Espaciado */
    --container-max: 1280px;
    --header-height: 80px;
}

/* ============================================
   RESET Y BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#inicio,
#productos,
#envios,
#contacto {
    scroll-margin-top: 90px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   PARTÍCULAS DECORATIVAS
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--pink-400), transparent);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-100px) translateX(50px) rotate(90deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-50px) translateX(-30px) rotate(180deg);
        opacity: 0.2;
    }

    75% {
        transform: translateY(-150px) translateX(20px) rotate(270deg);
        opacity: 0.4;
    }
}

/* ============================================
   CONTENEDOR
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
    padding: 20px 0;
    transition: var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 28px;
    color: var(--pink-400);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--pink-400);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--pink-400);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.cart-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--pink-500);
    box-shadow: 0 0 20px var(--glow-pink);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pink-500);
    color: white;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(190, 24, 93, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(244, 114, 182, 0.08) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-tagline {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--pink-400);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-highlight {
    display: block;
    font-style: italic;
    color: var(--pink-400);
    font-weight: 500;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--pink-600), var(--pink-500));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-base);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--pink-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 40px;
    }

    50% {
        opacity: 1;
        height: 60px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CATEGORÍAS
   ============================================ */
.categories {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-base);
}

.category-btn:hover {
    border-color: var(--pink-500);
    color: var(--text-primary);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--pink-700), var(--pink-600));
    border-color: var(--pink-500);
    color: white;
}

.category-icon {
    font-size: 14px;
}

/* ============================================
   SECCIÓN DE PRODUCTOS
   ============================================ */
.products-section {
    padding: 60px 0 100px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pink-400);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* ============================================
   TARJETA DE PRODUCTO
   ============================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease backwards;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink-600);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(236, 72, 153, 0.1);
}

.product-image-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pink-300);
}

.quick-add {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-base);
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: scale(1);
}

.quick-add:hover {
    background: var(--pink-600);
    border-color: var(--pink-500);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 18px;
    font-weight: 500;
    color: var(--pink-400);
}

.add-to-cart-btn {
    background: transparent;
    border: 1px solid var(--pink-500);
    color: var(--pink-400);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-base);
}

.add-to-cart-btn:hover {
    background: var(--pink-600);
    color: white;
}

.add-to-cart-btn:disabled {
    background: rgba(128, 128, 128, 0.3);
    border-color: rgba(128, 128, 128, 0.5);
    color: rgba(253, 242, 248, 0.4);
    cursor: not-allowed;
}

/* ============================================
   PRODUCTOS AGOTADOS
   ============================================ */
.product-agotado {
    opacity: 0.7;
}

.product-agotado:hover {
    transform: none;
    box-shadow: none;
}

.product-agotado .product-image {
    filter: grayscale(50%);
}

.product-agotado:hover .product-image {
    transform: none;
}

.sold-out {
    position: relative;
}

.sold-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 38, 38, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quick-add:disabled,
.quick-add[disabled] {
    opacity: 0 !important;
    cursor: not-allowed;
}

/* ============================================
   LOADING
   ============================================ */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-top-color: var(--pink-500);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(190, 24, 93, 0.05), transparent);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--pink-600);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--pink-700), var(--pink-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    margin-bottom: 16px;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   MODAL DEL CARRITO
   ============================================ */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-base);
}

.cart-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition-base);
}

.cart-modal.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-fast);
}

.cart-close:hover {
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--pink-400);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--pink-600);
    border-color: var(--pink-500);
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.remove-btn:hover {
    color: #ef4444;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 40px;
}

.empty-icon {
    font-size: 48px;
    color: var(--pink-400);
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.cart-total span:last-child {
    color: var(--pink-400);
}

.checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    border: 1px solid var(--pink-500);
    padding: 14px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 300;
    opacity: 0;
    transition: var(--transition-base);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    background: var(--pink-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.toast-message {
    font-size: 13px;
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    .hero {
        padding: 100px 24px 60px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .cart-panel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle {
        animation: none;
    }
}

/* =============================================
           MENÚ HAMBURGUESA
           ============================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;          /* ← ESTA LÍNEA DEBE ESTAR */
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(26, 21, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 18px !important;
        color: var(--text-primary) !important;
    }
}

/* =============================================
           TARJETAS DE PRODUCTOS
           ============================================= */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #fdf2f8;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(190, 24, 93, 0.12);
    transform: translateY(-4px);
}

.product-info {
    padding: 16px 18px 20px;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.product-name:hover {
    color: #be185d;
}

.product-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #be185d;
    white-space: nowrap;
}

.add-to-cart-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #be185d;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover:not([disabled]) {
    background: #9d174d;
}

.add-to-cart-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.product-category {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #be185d;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(190, 24, 93, 0.85);
    padding: 8px 24px;
    border-radius: 6px;
    z-index: 2;
}

.product-image-container.sold-out::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #be185d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.quick-add:hover {
    background: #be185d;
    color: #fff;
}

/* =============================================
           MODAL DETALLE DE PRODUCTO
           ============================================= */
.detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.detail-modal.open {
    display: flex;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.detail-panel {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 95vh;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: detailIn 0.35s ease;
}

@keyframes detailIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.detail-image-wrap {
    flex: 0 0 45%;
    background: #fdf2f8;
    position: relative;
    overflow: hidden;
}

.detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.detail-body {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.detail-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}

.detail-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #be185d;
    margin-bottom: 12px;
}

.detail-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.detail-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    margin: 0 0 28px 0;
    flex: 1;
}

.detail-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #be185d;
    margin-bottom: 24px;
}

.detail-price small {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
}

.detail-add-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: #be185d;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.detail-add-btn:hover {
    background: #9d174d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 24, 93, 0.3);
}

.detail-add-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.detail-add-btn svg {
    width: 20px;
    height: 20px;
}

.detail-wa-info {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 700px) {
    .detail-panel {
        flex-direction: column;
        max-height: 92vh;
        margin: 10px auto;
        border-radius: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-image-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-height: 40vh;
        min-height: 200px;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
    }

    .detail-image-wrap img {
        object-fit: contain;
        object-position: center;
        max-height: 40vh;
    }

    .detail-body {
        flex: 1 1 auto;
        padding: 20px 18px 28px;
        overflow-y: visible;
    }

    .detail-name {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .detail-description {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .detail-price {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .detail-add-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .detail-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
    }
}

/* =============================================
           BOTÓN SCROLL TO TOP
           ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #be185d;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.35);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: #9d174d;
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(190, 24, 93, 0.45);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
}

/* =============================================
           SECCIONES ENVÍOS Y CALIDAD
           ============================================= */
.shipping-info {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.shipping-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(190, 24, 93, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shipping-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.shipping-header {
    text-align: center;
    max-width: 600px;
}

.shipping-header .section-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #be185d;
    margin-bottom: 12px;
}

.shipping-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.shipping-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

.shipping-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(190, 24, 93, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.shipping-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #be185d, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.shipping-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(190, 24, 93, 0.1);
}

.shipping-card:hover::after {
    transform: scaleX(1);
}

.shipping-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #be185d;
    border: 1px solid rgba(190, 24, 93, 0.15);
}

.shipping-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.shipping-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.shipping-card .highlight-text {
    color: #be185d;
    font-weight: 500;
}

.quality-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.quality-banner::before {
    content: '✦ ✦ ✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 40px;
    pointer-events: none;
    white-space: nowrap;
}

.quality-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.quality-text {
    flex: 1;
}

.quality-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.quality-text h2 span {
    color: #f472b6;
}

.quality-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0;
}

.quality-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.quality-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.quality-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(244, 114, 182, 0.3);
}

.quality-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f472b6;
    flex-shrink: 0;
}

.quality-badge span {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* =============================================
           ERROR DE CARGA
           ============================================= */
.products-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 16px;
}

.products-error .error-icon {
    font-size: 48px;
    opacity: 0.7;
}

.products-error h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #be185d;
    margin: 0;
}

.products-error p {
    color: #6b7280;
    max-width: 400px;
    line-height: 1.6;
    margin: 0;
}

.products-error .error-details {
    font-size: 13px;
    color: #9ca3af;
    background: #fef2f2;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    max-width: 500px;
    word-break: break-word;
}

.products-error .retry-btn {
    margin-top: 12px;
    padding: 12px 32px;
    background: #be185d;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-error .retry-btn:hover {
    background: #9d174d;
    transform: translateY(-2px);
}

.products-error .retry-count {
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .shipping-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .shipping-header h2 {
        font-size: 28px;
    }

    .quality-content {
        flex-direction: column;
        gap: 32px;
        padding: 0 20px;
    }

    .quality-badges {
        width: 100%;
    }

    .quality-text h2 {
        font-size: 24px;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .quick-add {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .shipping-info {
        padding: 40px 0;
    }

    .quality-banner {
        padding: 36px 0;
    }
}