@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

.font-serif {
    font-family: 'Libre Baskerville', serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for clean look in some overflow areas */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slow Zoom for Hero */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-slow-zoom {
    animation: slowZoom 20s ease-out infinite alternate;
}

/* Stepper Styles */
.step-circle {
    transition: all 0.3s ease;
}

.step-text {
    transition: all 0.3s ease;
}

.step-line {
    transition: background-color 0.5s ease;
}

.step-active .step-circle {
    background-color: #BF8229;
    /* Primary */
    color: white;
    border-color: #BF8229;
}

.step-active .step-text {
    color: #BF8229;
    font-weight: 700;
}

.step-inactive .step-circle {
    background-color: #f3f4f6;
    /* Gray-100 */
    color: #9ca3af;
    /* Gray-400 */
    border-color: #e5e7eb;
}

.step-inactive .step-text {
    color: #9ca3af;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    background-color: #BF8229;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cart-badge.show {
    transform: scale(1);
}

/* Add to cart pulse animation */
@keyframes addPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.add-pulse {
    animation: addPulse 0.3s ease-out;
}

/* Success checkmark animation */
@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.check-animate {
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Fade in for order items */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeSlideIn 0.3s ease-out;
}

/* Bounce animation for floating button */
@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animate-gentle-bounce {
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Video Slider - La voz de la salud */
.video-slider-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 3rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.video-slider-container .video-card-inactive,
.video-slider-container .video-card-active {
    scroll-snap-align: center;
    flex-shrink: 0;
}

#voz-salud-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#voz-salud-slider::-webkit-scrollbar {
    display: none;
}

.video-card-inactive {
    width: 220px;
    aspect-ratio: 9/16;
    border-radius: 1rem;
    overflow: hidden;
    filter: brightness(0.5) grayscale(1);
    transition: all 0.7s;
    transform: scale(0.9);
    cursor: pointer;
}

.video-card-inactive:hover {
    filter: brightness(0.75) grayscale(1);
}

.video-card-active {
    width: 320px;
    aspect-ratio: 9/16;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
    border: 6px solid #BF8229;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
    transition: all 0.7s;
    position: relative;
    cursor: default;
}

.play-overlay-active {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-main {
    height: 6rem;
    width: 6rem;
    border-radius: 9999px;
    background: rgba(191, 130, 41, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}

.play-button-main:hover {
    transform: scale(1.05);
}

.nav-dot {
    height: 6px;
    transition: all 0.3s;
    border-radius: 9999px;
}