@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
    --bg-primary: #F6F4F0;
    --bg-secondary: #E2E7E3;
    --text-main: #2C3A38;
    --accent-1: #92A4B3;
    --accent-2: #B3A6BA;
    
    --bg-cream: var(--bg-primary); /* Fallback aliases to minimize breakage */
    --bg-cream-alt: var(--bg-secondary);
    --heading-color: var(--text-main);
    --body-color: var(--text-main);
    
    --border-light: rgba(44, 58, 56, 0.12);
    --shadow-soft: 0 12px 40px rgba(44, 58, 56, 0.05);
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--body-color);
    background-color: var(--bg-cream);
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
h1,
h2,
h3,
.script-text {
    font-family: var(--font-display);
    color: var(--heading-color);
    font-weight: normal;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
}

.label-lg {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.container {
    width: 100%;
    min-width: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    padding: 7rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   EL SUSURRO EFÍMERO (DEDICATORIA)
   ═══════════════════════════════════════ */
.whisper-overlay {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    text-align: center;
    z-index: 50; /* Sobre hero-video-overlay pero bajo navbar */
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.whisper-overlay.visible {
    opacity: 1;
}

.whisper-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(255,249,239,0.8);
}

.whisper-body {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--heading-color);
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(255,249,239,0.95);
    letter-spacing: 0.02em;
}

.whisper-signature {
    font-family: var(--font-display);
    font-size: 1.5em;
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: normal;
    opacity: 0.85;
}

.whisper-countdown {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 2.5rem;
    color: var(--heading-color);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(255,249,239,0.95);
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.whisper-countdown span {
    display: inline-block;
    opacity: 0;
    line-height: 1;
}

.whisper-overlay.visible .whisper-countdown .dot-1 {
    animation: whisper-pulse-vanish 2s 1 ease-in-out forwards;
}
.whisper-overlay.visible .whisper-countdown .dot-2 {
    animation: whisper-pulse-vanish 2s 2 ease-in-out forwards;
}
.whisper-overlay.visible .whisper-countdown .dot-3 {
    animation: whisper-pulse-vanish 2s 3 ease-in-out forwards;
}

@keyframes whisper-pulse-vanish {
    0% { 
        opacity: 0; 
        transform: scale(0.7); 
        text-shadow: 0 0 0px rgba(255,249,239,0);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
        text-shadow: 0 0 20px rgba(255,249,239,1);
    }
    100% { 
        opacity: 0; 
        transform: scale(0.7); 
        text-shadow: 0 0 0px rgba(255,249,239,0);
    }
}

.hero-inner, .scroll-hint {
    transition: opacity 2s ease;
}
#hero.whisper-active .hero-inner,
#hero.whisper-active .scroll-hint {
    opacity: 0 !important;
    pointer-events: none;
    transition: none !important;
}



.section-full {
    min-height: 100vh;
    justify-content: center;
}

/* ═══════════════════════════════════════
   QUOTE DIVIDERS
   ═══════════════════════════════════════ */
.quote-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-ornament {
    max-width: 280px;
    width: 60%;
    height: auto;
    opacity: 0.7;
}

.quote-ornament-flip {
    transform: scaleX(-1);
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--heading-color);
    max-width: 600px;
    line-height: 1.4;
    margin: 1.5rem auto 0.5rem auto;
    opacity: 0.75;
    font-style: italic;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--heading-color);
    opacity: 0.6;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin: 0 auto 1.5rem auto;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   SECTION DECORATIONS (Botanical Corners)
   ═══════════════════════════════════════ */
.section-decorated {
    position: relative;
}

.section-decorated::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.section-decorated--left::before {
    background-image: url('../assets/img/corner_botanical_left.webp');
    top: -20px;
    left: -30px;
}

.section-decorated--right::before {
    background-image: url('../assets/img/corner_botanical_right.webp');
    bottom: -20px;
    right: -30px;
    top: auto;
}

/* ═══════════════════════════════════════
   SECTION TEXTURED BACKGROUND
   ═══════════════════════════════════════ */
.section-textured {
    background-image: url('../assets/img/Portada-7.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-textured-hortensia {
    background-image: url('../assets/flores/hortensia10.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-textured-nomeolvides {
    background-image: url('../assets/flores/nomeolvides10.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-textured-mandarino {
    background-image: url('../assets/flores/mandarino10.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-textured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 249, 239, 0.88);
    z-index: 0;
    pointer-events: none;
}

.section-textured>* {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════
   FULL-WIDTH MAP
   ═══════════════════════════════════════ */
.map-fullwidth {
    width: 100%;
    position: relative;
    margin-top: 3rem;
}

.map-fullwidth iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: none;
    filter: saturate(0.7) brightness(1.05);
}

.map-overlay-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 4rem;
    pointer-events: none;
}

.map-overlay-card {
    background: rgba(255, 249, 239, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 40px rgba(60, 45, 37, 0.1);
    max-width: 320px;
    text-align: left;
    pointer-events: auto;
}

.map-overlay-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.map-overlay-card p {
    text-align: left;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    max-width: none;
}

/* ═══════════════════════════════════════
   GATEKEEPER (PASSWORD SCREEN)
   ═══════════════════════════════════════ */
#gatekeeper {
    position: fixed;
    inset: 0;
    background-color: var(--bg-cream);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: opacity 1s var(--ease-out), visibility 1s var(--ease-out);
    overflow-y: auto;
    overflow-x: hidden;
}

#gatekeeper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-garland {
    width: 100%;
    pointer-events: none;
    line-height: 0;
    flex-shrink: 0;
}

.gate-garland img {
    width: 100%;
    height: auto;
    max-height: 35vh;
    object-fit: cover;
    object-position: top;
}

.gate-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    margin: auto 0;
}

.gate-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.gate-content p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.gate-input-wrap {
    position: relative;
}

.gate-input-wrap input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--body-color);
    text-align: center;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--ease-out);
    outline: none;
}

.gate-input-wrap input:focus {
    border-color: var(--heading-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(156, 129, 110, 0.08);
}

.gate-input-wrap input::placeholder {
    color: rgba(156, 129, 110, 0.5);
}

#password-error {
    color: var(--accent-rose);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    display: none;
}

.gate-btn {
    margin-top: 1.5rem;
    background: none;
    border: 1.5px solid var(--heading-color);
    color: var(--heading-color);
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.gate-btn:hover {
    background: var(--heading-color);
    color: #fff;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(255, 249, 239, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
    transform: translateY(-100%);
    opacity: 0;
}

#navbar.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--heading-color);
    transition: all 0.3s var(--ease-out);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--heading-color);
    transition: all 0.3s var(--ease-out);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
#hero {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-cream);
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2rem;
}

.hero-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--heading-color);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--heading-color);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-illustration {
    max-width: 420px;
    width: 85%;
    margin: 0 auto;
    transition: transform 0.6s var(--ease-out);
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--heading-color);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: gentleBounce 3s ease-in-out infinite;
}

.scroll-hint svg {
    width: 16px;
    height: 16px;
    stroke: var(--heading-color);
}

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ═══════════════════════════════════════
   HERO BACKGROUND & PETALS
   ═══════════════════════════════════════ */
#petals-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -10%;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    /* Transparencia inicial al 10% */
    animation: fall var(--duration) linear var(--delay) infinite,
        sway 3s ease-in-out var(--delay) infinite alternate;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: rotate(0deg) scale(var(--scale, 1));
    }

    100% {
        top: 110%;
        transform: rotate(360deg) scale(var(--scale, 1));
    }
}

@keyframes sway {
    0% {
        margin-left: -25px;
    }

    100% {
        margin-left: 25px;
    }
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 249, 239, 0.45) 0%,
            rgba(255, 249, 239, 0.3) 50%,
            rgba(255, 249, 239, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

#hero .hero-inner,
#hero .scroll-hint {
    position: relative;
    z-index: 2;
}

/* Textos del hero con sombra suave para legibilidad sobre video */
#hero .hero-label,
#hero .hero-names,
#hero .hero-date {
    text-shadow: 0 2px 20px rgba(255, 249, 239, 0.8);
}

/* ═══════════════════════════════════════
   BOTANICAL FLOWER EDGE DECORATIONS
   ═══════════════════════════════════════ */
.section-flower {
    position: absolute;
    width: clamp(160px, 20vw, 280px);
    height: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    /* Animación suave de entrada al hacer scroll */
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.section-flower--left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-12%);
}

.section-flower--right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(12%);
}

/* Variaciones verticales para que no queden todas al mismo nivel */
section:nth-of-type(odd) .section-flower--left {
    top: 40%;
}

section:nth-of-type(odd) .section-flower--right {
    top: 60%;
}

section:nth-of-type(even) .section-flower--left {
    top: 60%;
}

section:nth-of-type(even) .section-flower--right {
    top: 40%;
}

/* Flores con reveal animation */
.section-flower.visible {
    opacity: 0.9;
    transform: translateY(-50%) translateX(0);
}

/* ═══════════════════════════════════════
   MAP NATIVE BOX BLOCKER
   ═══════════════════════════════════════ */
/* Cubre el cuadro nativo de Google Maps que aparece en la esquina sup-izquierda */
.map-native-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-cream) 60%, transparent);
    z-index: 5;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   SECTION HEADERS & ICONS
   ═══════════════════════════════════════ */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.section-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (min-width: 769px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .section-icon {
        width: 140px;
        height: 140px;
        margin: 0;
    }

    .section-title-wrap {
        text-align: left;
    }

    .section-title-wrap .label {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .section-title-wrap h2 {
        text-align: left;
        margin-bottom: 0;
    }

    .section-title-wrap .section-divider {
        margin: 1rem 0 0 0;
    }
}

/* ═══════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════ */
#countdown {
    padding: 7rem 0;
    background: var(--bg-cream);
}

.countdown-wrapper {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

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

.countdown-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-display);
    color: var(--heading-color);
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--body-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--heading-color);
    opacity: 0.3;
    align-self: flex-start;
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════
   VENUE (LUGAR)
   ═══════════════════════════════════════ */
#lugar {
    padding-top: 5rem;
}

.venue-illustration {
    width: 100%;
    max-width: 100%;
    margin: 3.5rem 0;
    object-fit: cover;
    display: block;
}

.venue-details {
    text-align: center;
    margin-bottom: 2rem;
}

.venue-details h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.venue-details p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Legacy map-wrapper kept for other pages */
.map-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* ═══════════════════════════════════════
   ITINERARY (TIMELINE)
   ═══════════════════════════════════════ */
.timeline {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 3rem auto 0;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-rose), var(--heading-color));
    transform: translateX(-50%);
    height: calc(var(--timeline-ratio, 0) * 100%);
    z-index: 998;
}

.timeline-pointer {
    position: absolute;
    top: calc(var(--timeline-ratio, 0) * 100%);
    left: 50%;
    width: 14px;
    height: 14px;
    background: var(--bg-cream);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.2);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-spring);
}

/* ─── EVOLUCIÓN ELEGANTE (STAGES) ─── */
.timeline-pointer.stage-1 {
    /* Inicio: formal */
    border-color: var(--accent-gold);
    background: var(--bg-cream);
}

.timeline-pointer.stage-2 {
    /* Mitad (Cena/Cóctel): Cálido y romántico */
    border-color: var(--accent-rose);
    background: var(--bg-cream);
    box-shadow: 0 0 15px rgba(212, 165, 165, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.timeline-pointer.stage-3 {
    /* Fiesta: Elegante, vibrante pero no tosco */
    border-color: var(--heading-color);
    background: var(--bg-cream-alt);
    box-shadow: 0 0 25px rgba(156, 129, 110, 0.6);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Halo sutil de fiesta */
.timeline-pointer.stage-3::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(156, 129, 110, 0.3);
    animation: fiesta-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fiesta-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* =======================================================
   VARIANTE PRUEBA: TIMELINE CON BRÚJULA (.timeline-alt)
   ======================================================= */
.timeline-pointer-img {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Quitar bordes y colores de fondo a la bolita para dejar sólo la imagen */
.timeline-alt .timeline-pointer {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Quitar el halo festivo de la variante brújula */
.timeline-alt .timeline-pointer::after {
    display: none !important;
}

/* En la fiesta, que la brújula solo se agrande y quizás rote un poco */
.timeline-alt .timeline-pointer.stage-2 .timeline-pointer-img {
    transform: translate(-50%, -50%) scale(1.15) rotate(10deg);
}

.timeline-alt .timeline-pointer.stage-3 .timeline-pointer-img {
    transform: translate(-50%, -50%) scale(1.3) rotate(-10deg);
}

/* =======================================================
   VARIANTE PRUEBA: TIMELINE FLORAL / BOTÁNICO (.timeline-floral)
   ======================================================= */
/* Línea de avance más suave para que las flores resalten */
.timeline-floral .timeline-progress {
    background: linear-gradient(to bottom, var(--accent-sage) 0%, transparent 100%) !important;
    opacity: 0.6;
}
@media (min-width: 769px) {
    .timeline-floral .timeline-progress {
        background: linear-gradient(to right, var(--accent-sage) 0%, transparent 100%) !important;
    }
}

.floral-sprout {
    position: absolute;
    width: var(--size, 24px);
    height: var(--size, 24px);
    z-index: 10;
    /* Nacen estrictamente en el centro del eje */
    top: calc(var(--prog) * 100%);
    left: 14px; /* Centro en mobile */
    /* Empiezan en scale 0 y en el centro (translate 0,0) */
    transform: translate(-50%, -50%) translate(0px, 0px) scale(0) rotate(0deg);
    opacity: 0;
    /* Transición más rápida y explosiva para efecto viento */
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.4s ease;
}

.floral-sprout img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* El modo multiply funde los bordes PNG con el fondo crema, luciendo como acuarela */
    mix-blend-mode: multiply;
    /* Reducimos saturación y agregamos un tono sepia para integrarlo a la paleta */
    filter: sepia(0.2) saturate(0.65) drop-shadow(0 1px 2px rgba(0,0,0,0.05));
    opacity: 0.85;
    transform-origin: center center;
}

.floral-sprout.is-bloomed {
    /* Salen volando hacia el lado calculado (35px de amplitud en X para mobile) */
    transform: translate(-50%, -50%) translate(calc(var(--side) * 35px), 0px) scale(1) rotate(var(--tilt));
    opacity: 1;
}

.floral-sprout.is-bloomed img {
    animation: wind-sway var(--dur, 4s) ease-in-out infinite alternate;
}

@keyframes wind-sway {
    0% { transform: rotate(-15deg) translateY(0); }
    100% { transform: rotate(15deg) translateY(-3px); }
}

/* =======================================================
   TIMELINE BOTÁNICO (DEFINITIVO)
   ======================================================= */
/* Ocultar puntero por defecto */
.timeline-floral .timeline-pointer,
.timeline-floral .timeline-pointer::after {
    display: none !important;
}

/* El progreso aumenta gradualmente, empezando transparente y solidificando */
.timeline-floral .timeline-progress {
    background: linear-gradient(to bottom, transparent 0%, var(--accent-sage) 20%, var(--accent-sage) 100%) !important;
    opacity: 0.7;
}

/* Transformación asombrosa de los hitos (círculos) a hojas/pétalos! */
.timeline-floral .timeline-dot {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-floral .timeline-dot.dot-bloomed {
    /* De ser un círculo (50%) a ser una hoja minimalista */
    border-radius: 0 60% 0 60%;
    transform: rotate(45deg) scale(1.3);
    background-color: var(--accent-sage) !important;
    border-color: var(--accent-sage) !important;
    box-shadow: 0 4px 10px rgba(100, 120, 100, 0.2);
}

/* --- ANIMACIÓN CONFETI PARA VARIANTE FIESTA --- */
.confetti-container {
    position: absolute;
    top: 50%; 
    left: 50%;
    width: 0; 
    height: 0;
    pointer-events: none;
    z-index: 20;
}
.confetti-particle {
    position: absolute;
    width: 6px; 
    height: 6px;
    border-radius: 50%;
    top: -3px; 
    left: -3px;
    opacity: 0;
    transform: rotate(var(--angle)) translateY(0px) scale(0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}
/* Cuando el dot padre florece, explota el confeti */
.dot-bloomed .confetti-particle {
    opacity: 1;
    transform: rotate(var(--angle)) translateY(var(--dist)) scale(1);
    /* Desvanece después de un pequeño retraso */
    animation: fadeOutConfetti 0.6s forwards 0.4s;
}
@keyframes fadeOutConfetti {
    to { 
        opacity: 0; 
        transform: rotate(var(--angle)) translateY(calc(var(--dist) + 10px)) scale(0); 
    }
}


.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:nth-child(even) {
    text-align: left;
}

.timeline-side {
    flex: 1;
    padding: 0 2rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--bg-cream);
    border: 2px solid var(--heading-color);
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--body-color);
    opacity: 0.7;
    text-align: inherit;
    margin: 0;
}

@media (min-width: 769px) {
    .timeline {
        max-width: 1000px;
        flex-direction: row;
        align-items: stretch;
        padding: 4rem 0;
    }

    .timeline::before {
        top: 50%;
        left: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
        transform: translateY(-50%);
    }

    .timeline-progress {
        top: 50%;
        left: 0;
        height: 2px;
        width: calc(var(--timeline-ratio, 0) * 100%);
        transform: translateY(-50%);
        background: linear-gradient(to right, var(--accent-gold), var(--accent-rose), var(--heading-color));
    }

    .timeline-pointer {
        top: 50%;
        left: calc(var(--timeline-ratio, 0) * 100%);
        transform: translate(-50%, -50%);
    }

    .floral-sprout {
        /* En desktop nace en el centro vertical (50%) */
        top: 50%;
        left: calc(var(--prog) * 100%);
    }
    
    .floral-sprout.is-bloomed {
        /* En desktop salen volando hacia arriba o abajo (65px de amplitud en Y) */
        transform: translate(-50%, -50%) translate(0px, calc(var(--side) * 65px)) scale(1) rotate(var(--tilt));
    }
    
    .timeline-floral .timeline-progress {
        background: linear-gradient(to right, transparent 0%, var(--accent-sage) 20%, var(--accent-sage) 100%) !important;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        flex: 1;
        margin-bottom: 0;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .timeline-side {
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 120px;
        flex-basis: 50%;
        width: 100%;
    }
}

/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */
.form-card {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.35);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--heading-color);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 249, 239, 0.6);
    font-family: var(--font-body);
    color: var(--body-color);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    outline: none;
    font-weight: 300;
}

.form-input:focus {
    border-color: var(--heading-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(156, 129, 110, 0.08);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-block;
    background: none;
    border: 1.5px solid var(--heading-color);
    color: var(--heading-color);
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: var(--heading-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(156, 129, 110, 0.15);
}

/* ═══════════════════════════════════════
   DRESS CODE
   ═══════════════════════════════════════ */
.color-palette {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.color-palette .color-swatch:nth-child(n+6) {
    display: none;
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s var(--ease-spring);
}

.color-swatch:hover {
    transform: scale(1.15);
}

/* ═══════════════════════════════════════
   GIFTS
   ═══════════════════════════════════════ */
.gift-card {
    background: rgba(255, 255, 255, 0.35);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    max-width: 480px;
    width: 100%;
    margin: 2rem auto 0;
    text-align: center;
}

.gift-card p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════
   SONGS LIST
   ═══════════════════════════════════════ */
#songs-list {
    margin-top: 1.5rem;
    list-style: none;
    max-width: 480px;
    width: 100%;
}

#songs-list li {
    background: rgba(255, 255, 255, 0.4);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    text-align: left;
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    animation: slideUp 0.4s var(--ease-spring);
}

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.section-divider {
    width: 40px;
    height: 1px;
    background: var(--heading-color);
    opacity: 0.25;
    margin: 1.5rem auto;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    padding: 5rem 0 0;
    text-align: center;
    position: relative;
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-names {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--heading-color);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg-cream);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.open a {
        font-size: 1rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-illustration {
        max-width: 300px;
        width: 80%;
    }

    .hero-names {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .countdown-wrapper {
        gap: 1.5rem;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .timeline {
        max-width: 500px;
        flex-direction: column;
    }

    .timeline::before {
        left: 14px; /* Alineación perfecta con el centro de timeline-dot (8px margin + 6px centro = 14px) */
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        transform: translateX(-50%);
    }

    .timeline-progress,
    .timeline-pointer {
        left: 14px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
    }

    .timeline-dot {
        margin-left: 8px;
        order: 1;
    }

    .timeline-side {
        padding: 0 0 0 1.5rem;
        min-height: auto;
        order: 2;
        width: 100%;
    }

    .timeline-side:empty {
        display: none;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .quote-divider {
        padding: 2.5rem 1.5rem;
    }

    .quote-ornament {
        max-width: 180px;
    }

    .quote-text {
        font-size: 1.3rem;
    }

    .section-decorated::before {
        width: 160px;
        height: 160px;
        opacity: 0.2;
    }

    .map-overlay-info {
        padding: 1rem;
        justify-content: center;
    }

    .map-overlay-card {
        max-width: 280px;
        padding: 1.5rem;
    }

    .map-fullwidth iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .countdown-wrapper {
        gap: 1rem;
    }

    .hero-illustration {
        max-width: 260px;
    }

    .container {
        padding: 0 1.5rem;
        min-width: 0;
    }

    /* Carousel: 1 columna en pantallas angostas */
    .store-carousel {
        grid-auto-columns: 100%;
    }

    /* Flores decorativas: más transparentes en mobile para mejor contraste */
    .section-flower {
        opacity: 0.3;
    }

    .section-flower.visible {
        opacity: 0.3;
    }

    /* Countdown: mayor contraste sobre fondos con flores */
    .countdown-number {
        text-shadow: 0 0 12px var(--bg-cream), 0 0 24px var(--bg-cream);
    }

    .countdown-label {
        text-shadow: 0 0 8px var(--bg-cream), 0 0 16px var(--bg-cream);
    }
}

/* ═══════════════════════════════════════
   TIENDA & CARRITO STYLES
   ═══════════════════════════════════════ */

/* Nav Cart Icon */
.nav-cart {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
}

.nav-cart svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c5533d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .store-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-cream-alt);
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--body-color);
    line-height: 1.4;
}

.price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    margin-top: auto;
}

.btn-add-cart {
    background: var(--heading-color);
    color: #fff;
    border-color: var(--heading-color);
}

.btn-add-cart:hover {
    background: var(--body-color);
    border-color: var(--body-color);
}

/* Mini Cart Modal */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(60, 45, 37, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s var(--ease-out);
}

.cart-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.mini-cart-panel {
    width: 100%;
    max-width: 400px;
    background: var(--bg-cream);
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateX(0);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-overlay.hidden .mini-cart-panel {
    transform: translateX(100%);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--heading-color);
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-cart-item-details {
    flex-grow: 1;
    padding-right: 1.5rem;
}

.mini-cart-item-details h4 {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.mini-cart-item-details p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    text-align: left;
}

.remove-item {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--border-light);
    color: var(--heading-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.remove-item:hover {
    background: var(--heading-color);
    color: #fff;
}

.cart-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cart-subtotal strong {
    color: var(--heading-color);
}

.cart-btn-view {
    margin-bottom: 0.5rem;
    background: var(--heading-color);
    color: #fff;
}

.cart-btn-checkout {
    background: var(--body-color);
    color: #fff;
    border-color: var(--body-color);
}

/* ═══════════════════════════════════════
   STORE NAVBAR (Regalos, Carrito, Checkout)
   ═══════════════════════════════════════ */
#store-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(255, 249, 239, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.store-nav-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--heading-color);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.store-nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.store-nav-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--heading-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    font-family: var(--font-body);
    transition: opacity 0.3s var(--ease-out);
}

.store-nav-back:hover {
    opacity: 0.6;
}

.store-nav-back svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    #store-nav {
        padding: 1rem 1.2rem;
    }

    .store-nav-brand {
        font-size: 1.3rem;
    }

    .store-nav-back span {
        display: none;
    }
}

/* Page Headers for separate pages */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

/* Cart Page Styles */
.cart-table-container {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    align-items: flex-start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}

.cart-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-product-col {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cart-product-col img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-product-name {
    font-weight: 500;
    color: var(--heading-color);
    font-size: 1rem;
}

.cart-product-price {
    font-size: 0.9rem;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f9f9f9;
    border: none;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    color: var(--heading-color);
    font-size: 1.1rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #eaeaea;
}

.qty-input {
    width: 40px;
    padding: 0.4rem 0;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-subtotal {
    font-weight: 600;
    color: var(--heading-color);
    min-width: 80px;
    text-align: right;
}

.remove-item-page {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.2s;
}

.remove-item-page:hover {
    color: #ff4d4d;
}

.cart-totals {
    width: 350px;
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.cart-totals h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.totals-row.final {
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Checkout Styles */
.checkout-container {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-form-section {
    flex: 1;
}

.checkout-form-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.checkout-order-section {
    width: 400px;
    background: rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.checkout-order-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.order-review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.order-review-table th,
.order-review-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font-size: 0.9rem;
}

.order-review-table th {
    font-weight: 500;
    color: var(--heading-color);
}

.order-review-table td.subtotal {
    text-align: right;
    color: var(--heading-color);
}

.payment-box {
    background: rgba(255, 249, 239, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.terms {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 768px) {

    .cart-table-container,
    .checkout-container {
        flex-direction: column;
    }

    .cart-totals,
    .checkout-order-section {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .cart-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cart-item-actions {
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════
   PRODUCT CARD (TIENDA Y CARRUSEL)
   ═══════════════════════════════════════ */
.product-card-store {
    background: #FAFAFA;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 12px 12px 24px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 260px;
    width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
}

.product-card-store:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image-store {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: #EAEAEA;
    margin-bottom: 1.5rem;
}

.product-image-store img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s var(--ease-out);
}

.product-info-store {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.product-info-store h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--heading-color);
    line-height: 1.3;
    margin: 0;
}

.product-info-store .product-desc {
    display: none;
}

.product-info-store .price-store {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0.5rem 0;
}

.product-info-store .btn-add-cart {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.product-info-store .btn-add-cart:hover {
    background: var(--text-main);
    color: var(--bg-primary);
}

/* ═══════════════════════════════════════
   STORE CAROUSEL (INDEX)
   ═══════════════════════════════════════ */
.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

/* Ocultar flechas en móviles si queremos que usen solo swipe, pero el usuario las pidió. Las dejaremos visibles o un poco metidas hacia adentro */
@media (max-width: 768px) {
    .carousel-prev {
        left: -10px;
        width: 36px;
        height: 36px;
    }

    .carousel-next {
        right: -10px;
        width: 36px;
        height: 36px;
    }
}

.store-carousel {
    display: grid;
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 0.75rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
}

.store-carousel::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
}

.store-carousel .product-card-store {
    width: 100%;
    max-width: none;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .store-carousel {
        /* Vista web: dos filas */
        grid-template-rows: auto auto;
    }
}

/* ─── Checkout Page Styles ───────────────── */

/* ─── Checkout Layout ────────────────────────────── */
.checkout-page {
    background: var(--bg-cream);
    min-height: calc(100vh - 65px);
    padding: 3rem 2rem 6rem;
}

.checkout-page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-page-title .label {
    margin-bottom: 0.5rem;
}

.checkout-page-title h2 {
    color: var(--heading-color);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: normal;
    margin: 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

/* ─── Form Section ───────────────────────────────── */
.checkout-form-section {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.checkout-form-section h3 {
    font-family: var(--font-display);
    color: var(--heading-color);
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

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

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-cream);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--body-color);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
    background: #fff;
}

.form-input::placeholder {
    color: rgba(156, 129, 110, 0.45);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* ── Validation ── */
.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}
.form-error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    text-align: left;
}
.form-error-msg.visible {
    display: block;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--heading-color);
    opacity: 0.6;
    margin-top: 0.3rem;
}

.char-counter.warning {
    color: #c0392b;
    opacity: 1;
}

/* ─── Order Section ──────────────────────────────── */
.checkout-order-section {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 85px;
}

.checkout-order-section h3 {
    font-family: var(--font-display);
    color: var(--heading-color);
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.order-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.order-review-table th {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--heading-color);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.order-review-table th:last-child {
    text-align: right;
}

.order-review-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--body-color);
    vertical-align: top;
}

.order-review-table td:last-child {
    text-align: right;
}

.order-item-name {
    color: var(--accent-gold);
    font-weight: 500;
}

.order-total-row td {
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: none;
    padding-top: 1rem;
}

/* ─── Payment Box ────────────────────────────────── */
.payment-box {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.payment-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.payment-box-header span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--heading-color);
}

.flow-logo {
    font-family: var(--font-display);
    color: var(--accent-gold);
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.payment-box p {
    font-size: 0.8rem;
    color: var(--heading-color);
    text-align: left;
    margin: 0;
    line-height: 1.6;
    max-width: none;
}

/* ─── Terms ──────────────────────────────────────── */
.terms {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-cream);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.terms input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-gold);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.terms label {
    font-size: 0.82rem;
    color: var(--body-color);
    line-height: 1.6;
    cursor: pointer;
}

/* ─── Submit Button ──────────────────────────────── */
.btn-place-order {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.btn-place-order:hover:not(:disabled) {
    background: #b8954f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

.btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-place-order.loading::after {
    content: ' ⏳';
}

/* ─── Toast de error ─────────────────────────────── */
.error-toast {
    display: none;
    background: #fdf0f0;
    border: 1px solid #e8a8a8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #c0392b;
    text-align: center;
}

.error-toast.visible {
    display: block;
}

/* ═══════════════════════════════════════
   GRACIAS.HTML
   ═══════════════════════════════════════ */
.gracias-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.gracias-corner {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.gracias-corner--tl {
    top: 60px;
    left: -10px;
    width: clamp(180px, 22vw, 300px);
    transform: scaleX(1) scaleY(1);
}

.gracias-corner--br {
    bottom: -20px;
    right: -20px;
    width: clamp(180px, 22vw, 300px);
    transform: scaleX(1) scaleY(1);
}

.gracias-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.gracias-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: heartBeat 1.5s ease-in-out;
    display: block;
}

@keyframes heartBeat {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }

    60% {
        transform: scale(0.95);
    }

    80% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.gracias-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s 0.3s both;
}

.gracias-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--heading-color);
    font-weight: normal;
    line-height: 1.1;
    margin: 0 0 1rem;
    animation: fadeUp 0.8s 0.5s both;
}

.gracias-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    margin: 1.5rem auto;
    opacity: 0.6;
    animation: fadeUp 0.8s 0.6s both;
}

.gracias-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--body-color);
    max-width: 420px;
    margin: 0 auto 2rem;
    animation: fadeUp 0.8s 0.7s both;
}

.gracias-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 0 auto 2.5rem;
    box-shadow: var(--shadow-soft);
    text-align: left;
    animation: fadeUp 0.8s 0.9s both;
}

.gracias-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
    margin-bottom: 1rem;
}

.gracias-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.gracias-card-row:last-child {
    border-bottom: none;
}

.gracias-card-row span:first-child {
    color: var(--heading-color);
}

.gracias-card-row strong {
    color: var(--accent-gold);
}

.gracias-status {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: none;
}

.gracias-status.loading {
    display: block;
    background: var(--bg-cream);
    color: var(--heading-color);
    border: 1px solid var(--border-light);
}

.gracias-status.error {
    display: block;
    background: #fdf0f0;
    color: #c0392b;
    border: 1px solid #e8a8a8;
}

.gracias-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 1.1s both;
}

.btn-outline {
    padding: 0.8rem 2.5rem;
    border: 1.5px solid var(--heading-color);
    border-radius: 50px;
    color: var(--heading-color);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s;
}

.btn-outline:hover {
    background: var(--heading-color);
    color: #fff;
}

.btn-gold {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-gold);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.btn-gold:hover {
    background: #b8954f;
    transform: translateY(-1px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floral-quote {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.floral-quote img {
    max-width: 220px;
    width: 50%;
    opacity: 0.6;
}

.floral-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--heading-color);
    font-style: italic;
    opacity: 0.7;
    margin: 1rem auto;
    max-width: 480px;
}

/* ═══════════════════════════════════════
   REGALOS.HTML
   ═══════════════════════════════════════ */
.store-hero {
    padding: 9rem 2rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.store-hero .label {
    margin-bottom: 0.5rem;
}

.store-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--heading-color);
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.store-hero .store-tagline {
    font-size: 0.9rem;
    color: var(--body-color);
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 0;
    line-height: 1.8;
}

.store-hero .section-divider {
    margin: 1.5rem auto 0;
}

.store-hero::before,
.store-hero::after {
    content: '';
    position: absolute;
    width: clamp(130px, 18vw, 240px);
    height: clamp(130px, 18vw, 240px);
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}

.store-hero::before {
    background-image: url('../assets/img/corner_botanical_left.webp');
    top: 60px;
    left: -20px;
}

.store-hero::after {
    background-image: url('../assets/img/corner_botanical_right.webp');
    bottom: 0;
    right: -20px;
}

.store-hero>* {
    position: relative;
    z-index: 1;
}

.store-page-section {
    padding: 3rem 1.5rem 6rem;
}

.store-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.store-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--heading-color);
    font-family: var(--font-display);
    font-size: 1.8rem;
    grid-column: 1 / -1;
}

.store-loading::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--heading-color);
    margin-left: 6px;
    animation: blink 1.2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@media (max-width: 600px) {
    .store-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .store-hero {
        padding-top: 7rem;
    }

    #store-nav {
        padding: 1rem 1.2rem;
    }

    .store-nav-brand {
        font-size: 1.3rem;
    }

    .store-nav-back span {
        display: none;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .store-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.store-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--heading-color);
    opacity: 0.5;
}

/* ═══════════════════════════════════════
   CARRITO.HTML & CHECKOUT.HTML
   ═══════════════════════════════════════ */
.page-cart {
    background: #fff;
    position: relative;
}

#nav-cart-btn {
    cursor: pointer;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--heading-color);
    /* Fallback */
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.page-cart .page-header h1 {
    font-family: var(--font-body);
    color: #475a44;
    font-weight: 300;
}

.page-cart section {
    padding-top: 0;
    z-index: 2;
    position: relative;
}

.cart-table-card {
    flex-grow: 1;
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.cart-btn-checkout-primary {
    margin-top: 1.5rem;
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

.cart-btn-checkout-primary:hover {
    background: #b8954f;
    border-color: #b8954f;
}

/* Formularios de Checkout */
.checkout-req-star {
    color: var(--accent-rose);
}

.checkout-opcional {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
}

.checkout-table-td {
    padding-top: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.checkout-table-td.right {
    text-align: right;
}

.checkout-table-total {
    text-align: right;
    color: var(--accent-gold);
}

/* ==========================================================================
   Steppers de UI
   ========================================================================== */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-cream-alt);
    border: 1px solid var(--border-light);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stepper-label {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
    font-weight: 500;
}

.stepper-step.active .stepper-circle {
    background-color: var(--heading-color);
    color: white;
    border-color: var(--heading-color);
}

.stepper-step.active .stepper-label {
    opacity: 1;
    color: var(--heading-color);
}

.stepper-step.completed .stepper-circle {
    background-color: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.stepper-step.completed .stepper-label {
    opacity: 0.8;
}

.stepper-line {
    position: absolute;
    top: 16px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: var(--border-light);
    z-index: 1;
}

@media (max-width: 768px) {
    .stepper-label {
        font-size: 0.75rem;
    }
}
/* ═══════════════════════════════════════
   HERO MARQUEE ANIMATION
   ═══════════════════════════════════════ */
.hero-carousel-marquee {
    display: flex;
    width: max-content;
    height: 100%;
    animation: marquee 12s linear infinite;
}
.carousel-img {
    height: 100%;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(100%);
    padding: 1.5rem 0.5rem;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
