html {
    background-color: #fdfbf7;
}

:root {
    scroll-padding-top: 6rem;
}

@view-transition {
    navigation: auto;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fdfbf7;
    animation: fadeInPage 0.4s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-img {
    transform: scale(1.1);
    transition: transform 6s linear;
}

.active .hero-img {
    transform: scale(1);
}

/* Animations for hero content inside slides */
.hero-slide .max-w-4xl>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .max-w-4xl>* {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.active .max-w-4xl>span {
    transition-delay: 0.1s;
}

.hero-slide.active .max-w-4xl>h1 {
    transition-delay: 0.3s;
}

.hero-slide.active .max-w-4xl>p {
    transition-delay: 0.5s;
}

.hero-slide.active .max-w-4xl>div {
    transition-delay: 0.7s;
}

.hero-slide.active .max-w-4xl>div {
    transition-delay: 0.8s;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Quitar línea superior del header en vista móvil */
@media (max-width: 1023px) {
    #mobile-menu {
        border-top: none !important;
    }
}


/* === ESTE ES EL CSS DE LA BURBUJA DE WHATSAPP === */

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(10, 111, 41, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(10, 111, 41, 0);
    }
}

.whatsapp-pulse {
    animation: pulse-soft 2.5s infinite ease-in-out;
}

/* WhatsApp Positioning CSS */
.whatsapp-bubble {
    position: fixed;
    right: 1rem;
    bottom: 16px;
    /* móvil */
    z-index: 100;
}

/* tablet */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .whatsapp-bubble {
        right: 1.5rem;
        bottom: 24px;
    }
}

/* escritorio */
@media (min-width: 1024px) {
    .whatsapp-bubble {
        right: 1.5rem;
        bottom: 32px;
    }
}

/* === FIN DEL CSS DE LA BURBUJA DE WHATSAPP === */

.brand-logo {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

/* Modal Styles */
#quote-modal {
    display: none;
    opacity: 0;
    z-index: 100;
}

#quote-modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#quote-modal.active .modal-content {
    transform: scale(1);
}

/* ===== GALERÍA: MESA DE LUZ (LIGHTBOX) ===== */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 200;
}

#lightbox-overlay.active {
    display: flex;
}

#lightbox-content {
    position: relative;
    max-width: min(1100px, 95vw);
    max-height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

#lightbox-prev {
    left: -10px;
}

#lightbox-next {
    right: -10px;
}

@media (max-width: 640px) {
    #lightbox-prev {
        left: 6px;
    }

    #lightbox-next {
        right: 6px;
    }

    #lightbox-close {
        top: 6px;
        right: 6px;
    }
}

/* ===== FIN GALERÍA: MESA DE LUZ ===== */