/* 
==========================================================================
   COOKIES BY JACKIE - DESIGN SYSTEM V3 (BROOKI UX + JACKIE COLORS)
========================================================================== 
*/

:root {
    /* Colors (Original Jackie Palette) */
    --color-bg: #fffbf2;      /* Cream Background */
    --color-primary: #d12529; /* Logo Red */
    --color-secondary: #f5b64c; /* Logo Gold */
    --color-text: #2d2d2d;    /* Dark Coffee */
    --color-white: #ffffff;
    --text-secondary: #888888; /* Secondary text (details, subtitles) */

    /* Typography */
    --font-logo: 'Playfair Display', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    
    /* Effects - Brooki Inspired Extreme Border Radius */
    --radius-pill: 50px;
    --radius-card: 40px; 
    --radius-img: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-spacing {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

/* Announcement Bar (Marquee) */
.announcement-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1100;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee span {
    margin-right: 3rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Top Bar (Zaro-inspired header — visible by default, hides on scroll) */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9001;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 1.1rem 0 0.9rem;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

.top-bar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.top-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.top-bar-brand-block {
    text-align: center;
    line-height: 1.3;
}

.top-bar-logo-img {
    height: 5.5rem;
    width: auto;
    object-fit: contain;
}

.top-bar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 0.75rem;
    width: 100%;
}

.top-bar-nav .nav-link {
    color: var(--color-bg);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.top-bar-nav .nav-link-pickup {
    color: var(--color-secondary);
}

.top-bar-nav .nav-link::after {
    background: var(--color-secondary);
}

/* Header (Cookies by Jackie — hidden by default, appears on scroll) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background: var(--color-bg);
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.header.scrolled {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

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

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex: 1;
}

.nav-link {
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    color: var(--color-text);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-pickup {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text);
}

/* --- Delivery Dropdown --- */
.nav-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
    text-transform: uppercase;
}

.nav-dropdown-arrow {
    font-size: 0.58rem;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.nav-dropdown-wrapper:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
    z-index: 2000;
    min-width: 148px;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    inset: 12px 0 0 0;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    z-index: -1;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: var(--color-bg);
}

.nav-dropdown-icon {
    font-size: 1rem;
    opacity: 0.75;
}

/* el trigger no necesita underline animation */
.nav-dropdown-trigger::after { display: none; }

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    line-height: 1;
    flex: 1;
    text-align: left;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img {
    height: 2.8rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-main {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
}

.logo-sub {
    font-family: 'Cookie', cursive;
    font-style: normal;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--color-primary);
    text-transform: none;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    flex: 1;
    font-size: 1.2rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(45, 45, 45, 0.08);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 5px 11px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.45;
    transition: all 0.22s ease;
}

.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
    opacity: 1;
}

.lang-btn:hover:not(.active) {
    opacity: 0.75;
}

/* Search button */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.search-btn:hover { color: var(--color-primary); }

/* Account button (login/cuenta) — header compacto */
.account-btn-wrapper { position: relative; }

.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.account-btn:hover { color: var(--color-primary); }
.account-btn.logged-in { color: var(--color-primary); }

/* Account button — top-bar estilo Zaro */
.top-bar-actions {
    position: absolute;
    top: 1.1rem;
    right: 2rem;
}

.top-bar-actions .account-btn {
    color: var(--color-bg);
}
.top-bar-actions .account-btn:hover,
.top-bar-actions .account-btn.logged-in {
    color: var(--color-secondary);
}

/* Dropdown de sesión iniciada */
.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    padding: 1rem 1.2rem;
    min-width: 200px;
    z-index: 9500;
    text-align: left;
}
.account-dropdown.active { display: block; }

.account-dropdown-greeting {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.account-dropdown-orders,
.account-dropdown-logout {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0;
}
.account-dropdown-orders:hover { color: var(--color-primary); }

.account-dropdown-logout {
    color: var(--color-primary);
}
.account-dropdown-logout:hover { text-decoration: underline; }

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 45, 0.45);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-box {
    background: var(--color-white);
    border-radius: 20px;
    width: 90%;
    max-width: 620px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    overflow: hidden;
    transform: translateY(-12px);
    transition: transform 0.25s ease;
}

.search-overlay.open .search-overlay-box {
    transform: translateY(0);
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.search-input-icon {
    color: var(--color-text);
    opacity: 0.35;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
}

.search-input::placeholder { opacity: 0.4; }

.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0.4;
    font-size: 0.95rem;
    padding: 4px;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}
.search-close-btn:hover { opacity: 0.8; }

.search-results {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: var(--color-text);
}

.search-result-item:hover { background: var(--color-bg); }

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.search-result-text { flex: 1; min-width: 0; }

.search-result-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-sub {
    font-size: 0.75rem;
    opacity: 0.45;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    text-align: center;
    padding: 2rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.4;
}

.search-hint {
    text-align: center;
    padding: 1.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    opacity: 0.35;
}

.cart-toggle {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efecto de Relleno (como el del Hero original) */
.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn:hover::before {
    height: 100%;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

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

.btn-primary:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(209, 37, 41, 0.15);
}

/* Botones secundarios (como el de Instagram) ahora también serán rojos para coherencia */
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

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

.btn-outline:hover {
    color: var(--color-white);
    border-color: var(--color-primary);
}

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

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

.btn-outline-primary:hover {
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Single Asymmetric Hero */
.single-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
    margin-top: 0;
    padding: clamp(100px, 8rem, 160px) 8% 0 8%;
}

/* Carrusel del hero: 3 imágenes en loop con crossfade suave, sin degradado */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-1 { background-image: url('assets/Hero/hero-1-desktop.webp'); background-position: center 15%; }
.hero-slide-2 { background-image: url('assets/Hero/hero-2-desktop.webp'); }
.hero-slide-3 { background-image: url('assets/Hero/hero-3-desktop.webp'); }

.hero-content {
    flex: 0 0 auto;
    max-width: 620px;
    z-index: 2;
    padding-left: 4%;
}

/* Logo grande en el hero (reemplaza al texto) */
.hero-content--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 420px;
}

.hero-logo-demo {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}

.hero-label {
    font-size: 1.2rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.hero-title {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    text-shadow: 0 1px 12px rgba(253,246,236,0.7), 0 2px 24px rgba(253,246,236,0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    text-shadow: 0 1px 8px rgba(253,246,236,0.9), 0 2px 16px rgba(253,246,236,0.7);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 0 0 55%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Canvas Layer */
.canvas-3d-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.product-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations para "Gravedad Cero" Sutil */
@keyframes float-subtle {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -15px; }
}

@keyframes float-shadow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(0.85); opacity: 0.4; }
}

.main-product {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: float-subtle 6s ease-in-out infinite;
}

.product-shadow {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    animation: float-shadow 6s ease-in-out infinite;
}

/* Particles System */
.particle {
    position: absolute;
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.1));
    animation: float-subtle 8s ease-in-out infinite;
}

/* Variedad orgánica en la animación de las partículas */
.particle:nth-child(even) { animation-duration: 9s; animation-direction: reverse; }
.particle:nth-child(3n) { animation-duration: 11s; animation-delay: -2s; }
.particle:nth-child(5n) { animation-duration: 7s; animation-delay: -4s; }

/* Tamaños para profundidad (Frente = Grande, Atrás = Pequeño) */
.p-xxl { width: 160px; z-index: 5; } /* Muy cerca de la cámara */
.p-xl { width: 120px; z-index: 4; }
.p-large { width: 90px; z-index: 3; }
.p-medium { width: 60px; z-index: 2; }
.p-small { width: 35px; z-index: 1; opacity: 0.8; }
.p-tiny { width: 20px; z-index: 0; opacity: 0.5; }

/* Efecto Bokeh / Profundidad de Campo solo para las lejanas */
.p-blur-far { filter: drop-shadow(0 2px 5px rgba(0,0,0,0.05)) blur(4px); }
.p-blur-mid { filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)) blur(2px); }

.panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-panel:hover .panel-content {
    transform: translateY(-10px);
}

.panel-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.panel-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
}

.panel-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-panel:hover .panel-description {
    opacity: 0.9;
    transform: translateY(0);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-text);
    padding: 1rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.hero-panel:hover .btn-white {
    opacity: 1;
    transform: translateY(0);
}

/* ── Favorites / Bestsellers ─────────────────────────────────────────── */

.fav-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.fav-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text);
    opacity: 0.4;
    border: 1px solid currentColor;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.favorites-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.favorites-subtitle {
    font-size: 0.95rem;
    opacity: 0.5;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

/* Grid de 4 tarjetas */
.fav-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

/* Tarjeta — estilo product card app con bg de color */
.fav-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.12);
}

/* Zona de imagen con color de fondo por card */
.fav-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--card-bg, #f5f0e8);
    overflow: hidden;
    flex-shrink: 0;
}

.fav-card-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.fav-card:hover .fav-card-img img {
    transform: scale(1.06);
}

/* Precio — pill flotante en esquina superior derecha */
.fav-price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 13px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text);
    z-index: 2;
    line-height: 1;
}

/* Strip coloreado al pie de la imagen */
.fav-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--strip-bg, #b8a08a);
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info inferior */
.fav-card-body {
    padding: 1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex-grow: 1;
}

.fav-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.fav-card-name {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Botón "Ver más ↗" */
.fav-view-btn {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    width: auto;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.fav-view-btn:hover {
    opacity: 0.65;
}

/* Pills de ingredientes */
.fav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fav-pill {
    background: rgba(0,0,0,0.055);
    padding: 4px 11px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.75;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .fav-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Carrusel horizontal en móvil */
@media (max-width: 600px) {
    .fav-cards-grid {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1.2rem;
        padding-right: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fav-cards-grid::-webkit-scrollbar {
        display: none;
    }
    .fav-card {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }
    .fav-card-name { font-size: 1rem; }
}

/* Reviews Section */
.press-section {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.press-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.press-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Product Grid */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-lg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    cursor: pointer;
}

.product-img-wrapper {
    position: relative;
    border-radius: var(--radius-img);
    overflow: hidden;
    aspect-ratio: 4/5;
    margin-bottom: 1rem;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-hover-action {
    position: absolute;
    bottom: -100px; /* Hidden by default */
    left: 0;
    width: 100%;
    padding: 1rem;
    transition: bottom 0.4s ease;
    display: flex;
    justify-content: center;
}

.product-hover-action .btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-card:hover .product-hover-action {
    bottom: 0; /* Slide up on hover */
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.product-price {
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.8;
}

/* Testimonial Slider */
.testimonial-slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.slider-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary); /* Red arrows */
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.2s;
}

.slider-btn:hover {
    transform: scale(1.2);
}

.testimonial-track-wrapper {
    overflow: hidden;
    flex-grow: 1;
    margin: 0 1rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-quote {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-weight: 300;
}

.testimonial-author {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    opacity: 0.7;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-primary);
}

/* Tabbed Shop Section */
.shop-tabs {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 4rem;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    background: transparent;
}

.shop-tab {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.55;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    outline: none;
}

.shop-tab:hover {
    opacity: 0.85;
}

.shop-tab.active {
    opacity: 1;
    color: #D12529;
}

.shop-tab::after {
    content: '';
    position: absolute;
    bottom: -1.05rem;
    left: 0;
    width: 0;
    height: 1px;
    background: #D12529;
    transition: width 0.3s ease;
}

.shop-tab.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .shop-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 1.5rem 1rem;
        margin: 0 -1.5rem 2rem;
        gap: 1.5rem;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
    }
    
    .shop-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .shop-tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 1rem;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tabbed-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem 0;
    transition: all 0.5s ease;
}

/* Ocultar productos después de la 2da fila (8 productos) por defecto */
.tabbed-product-grid:not(.show-all) .tab-product-card:nth-child(n+9) {
    display: none;
}

.tab-product-card {
    cursor: pointer;
    background: #ffffff;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03), 0 1px 4px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Estilos Botón Cargar Más */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-load-more.hidden {
    display: none;
}

/* Responsivo y Carrusel Móvil */
@media (max-width: 1024px) {
    .tabbed-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tabbed-product-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 1rem 1rem 2rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Ocultar scrollbar en Firefox */
        margin: 0 -1rem; /* Margen negativo para que llegue al borde */
    }
    
    .tabbed-product-grid::-webkit-scrollbar {
        display: none; /* Ocultar scrollbar en Chrome/Safari */
    }
    
    .tab-product-card {
        flex: 0 0 75%; /* La tarjeta ocupa el 75% del ancho para que se vea la siguiente */
        scroll-snap-align: center;
    }

    .tabbed-product-grid:not(.show-all) .tab-product-card:nth-child(n+9) {
        display: flex; /* Mostrar todos en móvil ya que es carrusel horizontal */
    }

    .load-more-container {
        display: none; /* No necesitamos cargar más en el carrusel horizontal */
    }
}

.product-variants {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.variant-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    font-family: var(--font-body);
    font-size: 0.8rem;
    background: #fcfcfc;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.variant-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
}

.tab-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: #f9f6f0;
    border-radius: 26px; /* Imagen redondeada dentro de la card */
    display: block;
    flex-shrink: 0;
}

.tab-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1); /* Sin zoom inicial para apreciar la imagen completa */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-product-card:hover .tab-img-wrapper img {
    transform: scale(1.05); /* Zoom adicional muy sutil al pasar el mouse */
}

/* --- Carousel de Productos --- */
.product-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 0;
    /* Se mantienen scale y transform de tab-img-wrapper img */
}

.product-carousel img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.carousel-dots .dot.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    text-transform: uppercase;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(209, 37, 41, 0.3);
}

.tab-product-info {
    padding: 1.25rem 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.4rem;
    text-align: left;
}

.tab-product-info h3 {
    font-family: var(--font-body); /* Outfit - estilo favoritos */
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0;
    min-height: auto;
    display: block;
}

.tab-product-desc {
    font-family: var(--font-body); /* Igual que favorites-subtitle */
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.tab-product-price {
    font-family: var(--font-body); /* Outfit - estilo favoritos */
    font-size: 1rem;
    font-weight: 400;
    color: #666; /* Gris como en favoritos */
    margin-bottom: 0.75rem;
}

.tab-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #2d2d2d;
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tab-add-btn:hover {
    background-color: var(--color-primary);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(209, 37, 41, 0.2);
}

.tab-add-btn i {
    font-size: 0.7rem;
    opacity: 0.8;
}



/* Promo Banner */
.promo-banner {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    /* Grid de 150px con lunares sutiles (color crema semi-transparente) para no competir con el texto */
    background-image: 
        radial-gradient(rgba(246, 200, 121, 0.25) 12%, transparent 13%),
        radial-gradient(rgba(246, 200, 121, 0.15) 6%, transparent 7%),
        radial-gradient(rgba(246, 200, 121, 0.20) 9%, transparent 10%);
    background-size: 150px 150px;
    background-position: 0 0, 75px 50px, 40px 110px;
    color: var(--color-white);
    text-align: center;
}

.promo-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-bg);
    padding: 4rem 5rem;
    border-radius: var(--radius-card);
    color: var(--color-text);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.promo-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

/* Botón de suscripción heredará btn-primary global */

/* Story Section */
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.story-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 2rem;
}

.story-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.story-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

/* Cart Sidebar (UI Update) */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    z-index: 9500; /* Just below the sidebar, but above the header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: #fff;
    box-shadow: -15px 0 50px rgba(0,0,0,0.1);
    z-index: 10000; /* Higher than header (9000) */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-header h2 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    color: var(--color-text);
    margin: 0;
    text-transform: lowercase;
}

#close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

#close-cart:hover {
    color: var(--color-primary);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

/* Tarjeta de Item en Carrito */
.cart-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    align-items: center;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tarjeta de Item en Carrito */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.cart-item img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.cart-item-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    padding: 5px 15px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid #eee;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.cart-item-qty span {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 15px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    color: #ddd;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.remove-item-btn:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

/* Footer del Carrito */
.cart-footer {
    padding: 1.5rem 2rem 2rem;
    background: #fff;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cart-total-row span:first-child {
    font-size: 0.9rem;
    color: #999;
}

.cart-total-row #cart-total-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 10px 20px rgba(209, 37, 41, 0.1);
}

.checkout-btn:hover {
    background-color: #b01f22;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(209, 37, 41, 0.2);
}

/* Newsletter Section - Card Design */
.newsletter-section {
    background-color: #d12529;
    background-image: radial-gradient(rgba(255,255,255,0.15) 15%, transparent 16%);
    background-size: 80px 80px;
    padding: 6rem 0;
    text-align: center;
}

.newsletter-card {
    background-color: #fefaf0; /* Creamy white */
    padding: 4rem 2rem;
    border-radius: 60px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.newsletter-title {
    font-family: var(--font-heading);
    color: #d12529;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.newsletter-desc {
    color: #4a4a4a;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    width: 350px;
    font-size: 1rem;
    outline: none;
    background: white;
}

.newsletter-form .btn-submit {
    background-color: #d12529;
    color: white;
    border: none;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.newsletter-form .btn-submit:hover {
    background-color: #b01f22;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .newsletter-card {
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }
    .newsletter-form input {
        width: 100%;
    }
    .newsletter-form .btn-submit {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: var(--color-bg);
    color: var(--color-text);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-logo {
    font-family: var(--font-logo);
    text-transform: none;
    letter-spacing: normal;
}

.footer-list {
    margin-top: 1.5rem;
    line-height: 2.5;
}

.footer-list a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 15px;
    color: #9ca3af;
}

/* Smart Chat Widget */
.smart-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-body);
}

.chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(-5deg);
}

.chat-notification {
    position: absolute;
    top: 0;
    right: 0;
    background: #000;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none; /* Se activa con JS */
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: bottom right;
}

.chat-window.active {
    display: flex;
}

@keyframes slideUp {
    from { transform: scale(0.5) translateY(100px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.chat-header {
    background: var(--color-primary);
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.chat-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-transform: lowercase;
}

.chat-header span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    padding: 1.2rem;
    max-height: 400px;
    overflow-y: auto;
}

.chat-msg {
    background: #f3f4f6;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #374151;
    width: fit-content;
    max-width: 90%;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-opt-btn {
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-weight: 500;
}

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

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.rating-stars {
    color: #f5b64c; /* Logo Gold */
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-score {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Trending Products Section */
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centrado vertical con el título */
    margin-bottom: 3rem;
}

.trending-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.trending-nav {
    display: flex;
    gap: 0.8rem;
}

.trend-nav-btn {
    width: 38px; /* Tamaño más reducido */
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.trend-nav-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.trending-slider-wrapper {
    overflow: visible; /* Permitir que se vea el item que asoma */
    position: relative;
    padding-right: 15%; /* Espacio para que asome el siguiente */
}

.trending-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 3rem;
}

.trending-item {
    flex: 0 0 85%; /* El secreto para que asome el siguiente */
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.trend-img-box {
    flex: 1.2; /* Imagen más grande */
    aspect-ratio: 4/5; /* Formato más imponente */
    border-radius: var(--radius-card);
    overflow: hidden;
}

.trend-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.trend-content {
    flex: 1; /* Texto un poco más compacto */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.trend-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trend-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.trend-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.trend-divider {
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin-bottom: 1.5rem;
}

.trend-desc {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 400px;
}

@media (max-width: 992px) {
    .trending-slider-wrapper {
        padding-right: 10%;
    }
    
    .trending-item {
        flex: 0 0 90%;
        flex-direction: column;
        gap: 1.5rem; /* Menos espacio */
        padding: 1.5rem;
    }
    
    .trend-img-box {
        width: 100%;
        max-width: 100%; /* Que ocupe todo el ancho disponible */
        aspect-ratio: 3/2; /* Más ancha y menos alta para no alargar la tarjeta */
    }
    
    .trend-content {
        align-items: center;
        text-align: center;
    }

    .trend-name {
        font-size: 1.4rem; /* Título más pequeño */
        margin-bottom: 0.5rem;
    }

    .trend-desc {
        font-size: 0.9rem; /* Texto más pequeño */
        margin-bottom: 1.5rem;
    }

    .trending-item .btn-primary {
        padding: 0.6rem 1.5rem; /* Botón más compacto */
        font-size: 0.85rem;
        min-width: auto;
    }

    .trend-price {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
}

/* Instagram Feed */
.insta-post {
    position: relative;
    display: block;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 1/1;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    transform: scale(1.3); /* Zoom 30% para ocultar marcas de agua */
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-overlay i {
    color: var(--color-white);
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insta-post:hover img {
    transform: scale(1.4);
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

.insta-post:hover .insta-overlay i {
    transform: scale(1);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* FAQ Section - New Layout */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.faq-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(209, 37, 41, 0.08);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.faq-badge i {
    margin-right: 0.5rem;
}

.faq-main-title {
    font-family: var(--font-heading);
    font-weight: 300; /* Estilo ligero y elegante */
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.faq-main-title .text-accent {
    color: inherit; /* Sin rojo, todo uniforme como en la imagen */
    display: block;
}

.faq-description {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.6;
    max-width: 400px;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-question {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    text-transform: uppercase;
}

.faq-circle-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(209, 37, 41, 0.08);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
    background-color: transparent;
}

.faq-answer p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* FAQ Active State */
.faq-item.active {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(209, 37, 41, 0.1);
}

.faq-item.active .faq-circle-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

/* Visit info cards */
.visit-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

.visit-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.visit-info-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.visit-info-card i {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 0.25rem;
    width: 18px;
    flex-shrink: 0;
}

.visit-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.visit-info-card p,
.visit-info-card a {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.75;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.visit-info-card a:hover {
    opacity: 1;
}

.faq-sub-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--color-text);
    opacity: 0.55;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .faq-left {
        text-align: center;
    }
    
    .faq-description {
        margin: 0 auto;
    }
}

/* Instagram Grid Fix */

/* ── Footer credit — Estudio Xaga ─────────────────────────────── */
.footer-credit-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-credit-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.footer-credit-label {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.55;
    color: var(--color-text);
    white-space: nowrap;
}

.footer-credit-logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

/* ================================
   MOBILE MENU OVERLAY (standalone)
   ================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fefaf0;
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.mobile-menu-overlay.open {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

/* --- Modal Selector de Galletas --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-modal {
    background: var(--color-bg);
    width: 90%;
    max-width: 500px;
    height: 85vh;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .cookie-modal {
    transform: translateY(0);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    text-align: center;
}

.cookie-modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.cookie-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1;
}

.cookie-modal-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar-container {
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.cookie-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cookie-thumb {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f9f6f0;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cookie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.cookie-name {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    padding-right: 1rem;
}

.cookie-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    color: var(--color-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cookie-btn:not(:disabled):hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cookie-count {
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.cookie-modal-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cookie-confirm-btn {
    width: 100%;
    border-radius: 50px;
}

.cookie-confirm-btn:disabled {
    background: #ccc !important;
    color: var(--color-text) !important;
    cursor: not-allowed;
    border-color: #ccc !important;
    pointer-events: none;
}

.checkout-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.checkout-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(209, 37, 41, 0.1);
}

/* Checkbox "crear cuenta" en el checkout */
.checkout-create-account-group {
    background: rgba(209, 37, 41, 0.05);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.checkout-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.4;
}

.checkout-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkout-logged-in-note {
    background: rgba(209, 37, 41, 0.08);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Modal de Login / Crear Cuenta */
.account-modal { max-width: 420px; }

.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.account-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.6rem 0.3rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.account-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.account-form .form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.account-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}

.account-error {
    background: rgba(209, 37, 41, 0.1);
    color: var(--color-primary);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Modal de Historial de Pedidos */
.orders-modal { max-width: 480px; }

.orders-empty,
.orders-loading {
    text-align: center;
    opacity: 0.55;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.order-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-card-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(45, 45, 45, 0.08);
    color: var(--color-text);
}
.order-card-status[data-status="confirmado"],
.order-card-status[data-status="listo"] { background: rgba(245, 182, 76, 0.2); color: #a06b00; }
.order-card-status[data-status="entregado"] { background: rgba(46, 160, 67, 0.15); color: #1a7f37; }
.order-card-status[data-status="cancelado"] { background: rgba(209, 37, 41, 0.12); color: var(--color-primary); }

.order-card-items {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.order-card-item-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.75rem;
}

.order-card-total { font-weight: 700; font-size: 0.95rem; }

.order-reorder-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.order-reorder-btn:hover { opacity: 0.88; transform: scale(1.03); }

/* --- Estilos para el Cake Customizer Modal --- */
.cake-option-group {
    margin-bottom: 1.2rem;
}

.cake-option-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.cake-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: #fdfdfd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cake-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(209, 37, 41, 0.1);
}

.mobile-only {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    flex: 1;
    text-align: left;
}

@media (max-width: 992px) {
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }

    .top-bar {
        padding: 0.85rem 0.75rem 0.7rem;
    }

    .top-bar-logo-img {
        height: 3.4rem;
    }

    .top-bar-actions {
        top: 0.85rem;
        right: 0.9rem;
    }

    .top-bar-nav {
        gap: 0.9rem 1.4rem;
        padding-top: 0.6rem;
    }

    .top-bar-nav .nav-link {
        font-size: 0.72rem;
    }

    .mobile-menu-btn {
        display: block; 
        z-index: 3000;
        position: relative;
    }
    
    /* Ocultar nav-links original en móvil */
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn { 
        display: block;
        z-index: 9999;
        position: relative;
        flex: 1;
        text-align: left;
    }

    .logo { 
        flex: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-main {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .logo-sub {
        font-size: 0.75rem;
        margin-top: 0;
    }

    .nav-actions {
        flex: 1;
        justify-content: flex-end;
        gap: 1rem;
    }

    .nav-actions .lang-switcher {
        display: none !important;
    }
    
    .header { padding: 1rem 0; }
    
    .single-hero {
        flex-direction: column;
        height: auto;
        min-height: 70vh;
        padding-top: 180px;
        padding-bottom: 3rem;
        margin-top: 0;
        overflow: hidden;
        width: 100%;
    }
    .hero-slide { background-position: center center; }
    .hero-slide-1 { background-image: url('assets/Hero/hero-1-mobile.webp'); background-position: center 15%; }
    .hero-slide-2 { background-image: url('assets/Hero/hero-2-mobile.webp'); }
    .hero-slide-3 { background-image: url('assets/Hero/hero-3-mobile.webp'); }
    .hero-content { flex: none; padding-left: 0; text-align: center; margin-bottom: 3rem; width: 100%; }
    .hero-description { margin-left: auto; margin-right: auto; max-width: 90%; }
    .hero-actions { justify-content: center; }
    .hero-visual { flex: none; height: 50vh; width: 100%; overflow: hidden; }
    .product-wrapper { width: 80%; height: 80%; }
    .p-small { width: 30px; }
    .p-medium { width: 60px; }
    
    .story-container { grid-template-columns: 1fr; }

    /* Visit / FAQ section — extra breathing room on small screens */
    .faq-section .container { padding: 0 1.5rem; }
    .faq-left { padding: 0 0.25rem; }
    .visit-info-card { padding: 1.2rem 1.2rem; }
    .faq-main-title { font-size: clamp(2rem, 8vw, 2.8rem); }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { flex-direction: column; align-items: center; }
    .delivery-partners { display: flex; flex-direction: column; align-items: center; }
    .footer-list li { justify-content: center; }
    .social-links { justify-content: center; }
    .payment-methods { justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 0.5rem; }
    .footer-credit-link { flex-direction: column; align-items: center; gap: 0.4rem; }
    
    .promo-content { padding: 3rem 1.5rem; }
    .subscribe-form { flex-direction: column; }
    .press-logos { gap: 2rem; }

    /* Horizontal scrolling para listas de productos en móviles */
    .product-grid,
    .tabbed-product-grid,
    .insta-grid {
        display: flex;
        overflow-x: auto;
        width: 100%;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .product-grid::-webkit-scrollbar,
    .tabbed-product-grid::-webkit-scrollbar,
    .insta-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .product-card,
    .tab-product-card,
    .insta-post {
        flex: 0 0 80%; /* Deja que asome el siguiente producto */
        scroll-snap-align: start;
    }

    /* Arreglo para Testimonios en móviles (Evitar texto muy estrecho) */
    .testimonial-slider-container {
        padding: 0 0.5rem; 
    }
    
    .slider-btn {
        display: none; /* Ocultar flechas en móvil para no estorbar el texto */
    }
    
    .testimonial-track-wrapper {
        margin: 0;
    }
    
    .testimonial-slide {
        padding: 0;
    }
    
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.8rem;
        line-height: 1;
        white-space: nowrap;
        width: auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .favorites-title {
        font-size: 2.2rem;
    }
    
    .favorites-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ============================================================
   POLÍTICA DE PRIVACIDAD — MODAL
   ============================================================ */
.policy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(40, 28, 15, 0.7);
    z-index: 100000;
    overflow-y: auto;
    padding: 2rem 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.policy-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.policy-modal {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    max-width: 760px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    margin: auto;
    animation: policySlideIn 0.3s ease;
}
@keyframes policySlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.policy-modal-header {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    padding: 1.4rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    z-index: 1;
}
.policy-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.policy-modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0 0.2rem;
    flex-shrink: 0;
}
.policy-modal-close:hover { opacity: 1; }
.policy-modal-body {
    padding: 2rem 2.5rem 3rem;
}
.policy-modal-body .policy-updated {
    font-family: var(--font-body);
    font-size: 0.8rem;
    opacity: 0.45;
    margin-bottom: 2rem;
}
.policy-modal-body h3 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin: 2rem 0 0.5rem;
}
.policy-modal-body p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.82;
    margin-bottom: 0.6rem;
}
.policy-modal-body ul {
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}
.policy-modal-body li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    opacity: 0.82;
    margin-bottom: 0.25rem;
}
.policy-modal-body strong { font-weight: 700; }
.policy-modal-body a { color: var(--color-primary); text-decoration: underline; }
.policy-modal-body a:hover { opacity: 0.75; }
.policy-stripe-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 91, 255, 0.07);
    border: 1px solid rgba(99, 91, 255, 0.18);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    margin: 0.4rem 0 1rem;
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: #635bff;
    font-weight: 600;
}
.policy-modal-body hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin: 2rem 0;
}
.footer-policy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    opacity: 0.55;
    color: var(--color-text);
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
    line-height: 1;
}
.footer-policy-btn:hover { opacity: 1; }
@media (max-width: 600px) {
    .policy-modal-body { padding: 1.5rem 1.2rem 2.5rem; }
    .policy-modal-header { padding: 1.2rem 1.2rem; }
}

/* ============================================================
   Ajustes finales aprobados por el cliente (17-06-2026)
   Botones secundarios en MAYÚSCULAS, títulos del footer y
   corrección del hover del botón de pago Stripe.
   ============================================================ */

/* Botones que no usan la clase base .btn */
.tab-add-btn,
.fav-view-btn,
.btn-submit,
.cookie-confirm-btn,
.footer-policy-btn,
.trend-nav-btn,
.add-to-cart-btn,
.checkout-btn,
.newsletter-form button,
button[data-btn-key],
button[data-i18n] {
    text-transform: uppercase;
}

/* Títulos de sección del footer (Contact Us, Let's Connect, Payment Methods) */
footer h4,
.footer-col h4 {
    text-transform: uppercase;
}

/* Botón de pago Stripe: el ::before de .btn-primary se expandía en blanco
   al hacer hover. Lo dejamos morado para conservar el color de la marca Stripe. */
#stripe-checkout-btn::before {
    background-color: #4f46e5;
}
#stripe-checkout-btn:hover {
    background-color: #635bff;
    color: white;
}

/* ==========================================================================
   PÁGINA MI CUENTA (mi-cuenta.html)
   ========================================================================== */

.account-page-body {
    background: var(--color-bg);
    min-height: 100vh;
}

.account-page-header {
    background: var(--color-primary);
    padding: 1.2rem 0;
}

.account-page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-page-header .logo-main { color: var(--color-bg); }
.account-page-header .logo-sub { color: var(--color-secondary); }

.account-page-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.account-page-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.account-page-back:hover { opacity: 0.75; }

.account-page-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem var(--spacing-md) 5rem;
}

.account-page-main .container { max-width: 720px; padding: 0; }

/* Estado invitado (sin sesión) */
.account-guest-state {
    text-align: center;
    padding: 4rem 1rem;
}
.account-guest-state i {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}
.account-guest-state h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}
.account-guest-state p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* Encabezado de la página */
.account-page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.account-page-title-row h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}
.account-page-greeting {
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.account-page-logout-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.account-page-logout-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Tarjeta de datos de la cuenta */
.account-info-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    padding: 1.3rem 1.6rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
}
.account-info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}
.account-info-row i { color: var(--color-primary); width: 16px; }

/* Sugerencias */
.account-suggestions { margin-bottom: 2.5rem; }
.account-suggestions h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}
.account-suggestions-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.suggestion-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    text-align: center;
}
.suggestion-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.suggestion-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.suggestion-add-btn {
    background: none;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.suggestion-add-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Historial de pedidos */
.account-orders-section h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 600px) {
    .account-page-main { padding: 2rem 1rem 4rem; }
    .account-page-header-inner { justify-content: center; text-align: center; }
    .account-info-card { flex-direction: column; gap: 0.7rem; }
}
