/* Base Styles */
body {
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    cursor: default;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base — ensures headings ALWAYS use serif, even in JS-rendered content */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Ensure form elements inherit body font */
input,
textarea,
select,
button {
    font-family: inherit;
}

/* Lenis Setup */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Glassmorphism General */
.glass {
    background: rgba(255, 255, 255, 0.65);
    /* Más transparencia para efecto Apple */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Borde completo sutil */
    box-shadow: 0 8px 32px 0 rgba(255, 92, 141, 0.1);
}

/* Glassmorphism Navbar Only */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    visibility: visible !important;
    color: #1a1a1a;
}

.glass-nav a,
.glass-nav button,
.glass-nav i {
    color: inherit;
}

/* Sidebars & Overlays */
.sidebar {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay {
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff5c8d;
    border-radius: 4px;
}

/* Buttons */
.btn-glossy {
    background: linear-gradient(90deg, #ff8fab 0%, #ffb3c6 100%);
    /* Brand Book Pinks */
    color: white !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Minimal Secondary CTA (Conoce Mas) */
.btn-glass-cta {
    position: relative;
    color: #ff5c8d;
    background: #ffffff;
    border: 1.5px solid #ff9dbb;
    box-shadow: 0 6px 16px rgba(255, 92, 141, 0.12);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease;
}

.btn-glass-cta:hover {
    background: #fff5f9;
    border-color: #ff7fa6;
    box-shadow: 0 10px 24px rgba(255, 92, 141, 0.18);
    transform: translateY(-1px);
}

.btn-glass-cta:active {
    transform: translateY(0);
}

.btn-glass-cta:focus-visible {
    outline: 2px solid rgba(255, 92, 141, 0.5);
    outline-offset: 3px;
}

.btn-glossy:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 143, 171, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Nav Link Hover Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff5c8d;
    transition: width 0.3s ease;
}

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

/* Tabs */
.tab-btn.active {
    color: #ff5c8d;
    border-bottom: 2px solid #ff5c8d;
}

/* Accordion */
.accordion-content {
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.accordion-content.active {
    max-height: 200px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-icon {
    transform: rotate(45deg);
}

/* Steps for Checkout */
.step.active {
    color: #ff5c8d;
    font-weight: bold;
    border-color: #ff5c8d;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-pop-in {
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Skeleton Loading Animation */
.skeleton {
    background-color: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

/* --- Marquee Animation --- */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

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

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* Pause on hover optional */
.marquee-wrapper:hover .animate-marquee {
    animation-play-state: paused;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* --- BRAND SELECTION --- */
::selection {
    background: rgba(255, 92, 141, 0.2);
    color: #2D1F23;
}

/* --- ACCESSIBILITY: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-marquee {
        animation: none !important;
    }
}

/* --- ENHANCED ANIMATIONS --- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.92);
    }
}

.animate-scale-out {
    animation: scaleOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 92, 141, 0.15);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 92, 141, 0.3);
    }
}

@keyframes subtleFloat {

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

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

.animate-slide-in-up {
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

.animate-float {
    animation: subtleFloat 4s ease-in-out infinite;
}


/* Custom Select and Date styling */
.custom-select-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23ff8fab' class='w-5 h-5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

.custom-date-input::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23ff8fab'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z' /%3E%3C/svg%3E");
    cursor: pointer;
    opacity: 1; /* override browser fade on Windows */
}

/* Google Places Autocomplete Fix */
gmp-place-autocomplete {
    --gmp-place-autocomplete-input-color: #374151;
}

.pac-target-input {
    color: #374151 !important;
}
.pac-container {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(255, 92, 141, 0.15);
    border: none;
    padding: 0.5rem;
    font-family: inherit;
    z-index: 10000 !important;
}
.pac-item {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border-top: none;
    cursor: pointer;
    transition: background 0.2s;
    color: #4b5563;
}
.pac-item-query {
    color: #1f2937;
}
.pac-item:hover, .pac-item-selected {
    background-color: #fff0f7;
}

/* --- PRODUCT CARD MICRO-INTERACTIONS --- */
.product-card-hover {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease;
}

.product-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(255, 92, 141, 0.2),
        0 8px 16px -8px rgba(0, 0, 0, 0.06);
}

/* --- LOGIN OVERLAY ENTRANCE --- */
.login-overlay-enter {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- FOCUS-VISIBLE (Keyboard Navigation) --- */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 92, 141, 0.6);
    outline-offset: 3px;
    border-radius: 8px;
}

/* --- READING PROGRESS BAR (Blog) --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff8fab 0%, #FF5C8D 50%, #ff8abe 100%);
    z-index: 9999;
    transition: width 50ms linear;
    border-radius: 0 2px 2px 0;
}

/* --- ENHANCED BLOCKQUOTE (Blog) --- */
.glossy-blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #fff0f7 0%, #fff5fa 100%);
    border-left: 4px solid #FF5C8D;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #2D1F23;
}

.glossy-blockquote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 92, 141, 0.2);
    line-height: 1;
}

/* ========================================
   THEME: GOLDEN HOUR
   ======================================== */
body.golden-hour-theme {
    background-color: #fffaf5;
    /* Warm cream */
    color: #4a362a;
    /* Deep warm brown instead of dark gray */
}

body.golden-hour-theme .btn-glossy {
    background: linear-gradient(90deg, #f5a88c 0%, #e68a73 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 168, 140, 0.4) !important;
    color: white !important;
}

body.golden-hour-theme .btn-glossy:hover {
    box-shadow: 0 10px 25px -5px rgba(245, 168, 140, 0.6) !important;
}

body.golden-hour-theme .text-glossy-pink3 {
    color: #d1785f !important;
    /* Soft terracotta */
}

body.golden-hour-theme .bg-glossy-pink3 {
    background-color: #d1785f !important;
}

body.golden-hour-theme .border-glossy-pink3 {
    border-color: #d1785f !important;
}

body.golden-hour-theme .btn-glass-cta {
    color: #d1785f !important;
    border-color: #d1785f !important;
    box-shadow: 0 6px 16px rgba(209, 120, 95, 0.12) !important;
}

body.golden-hour-theme .btn-glass-cta:hover {
    background: #fffaf5 !important;
}

body.golden-hour-theme .bg-glossy-pink1\/20 {
    background-color: rgba(245, 168, 140, 0.2) !important;
}

body.golden-hour-theme .bg-glossy-pink3\/10 {
    background-color: rgba(209, 120, 95, 0.15) !important;
}

body.golden-hour-theme h1,
body.golden-hour-theme h2,
body.golden-hour-theme h3 {
    color: #3b281f !important;
    /* Even deeper warm brown for headings */
}

body.golden-hour-theme .text-glossy-gray {
    color: #8c7365 !important;
}

body.golden-hour-theme .glass {
    background: rgba(255, 250, 245, 0.7);
    border: 1px solid rgba(255, 250, 245, 0.6);
    box-shadow: 0 8px 32px 0 rgba(209, 120, 95, 0.1);
}

body.golden-hour-theme .glass-nav {
    background: rgba(255, 250, 245, 0.85);
}

/* Warm overlay on images with golden hour */
body.golden-hour-theme #hero-media-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(245, 168, 140, 0.1), rgba(209, 120, 95, 0.2));
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
}