html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* WhatsApp floating button pulse */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Phone floating button pulse */
@keyframes phone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(200, 16, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}
.phone-float {
    animation: phone-pulse 2.5s infinite;
}

/* Testimonial transitions */
.testimonial-card {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Gallery hover */
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item .gallery-overlay {
    transition: opacity 0.3s ease;
}

/* Product card hover */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Team card overlay */
.team-card .team-overlay {
    transition: opacity 0.4s ease;
}

/* Nav base background (fondo solido garantizado para legibilidad sobre el hero) */
#mainNav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

/* Nav background on scroll */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    z-index: 9999;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.92) !important;
    color: #1A1A1A;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobileMenu {
    background-color: rgba(255, 255, 255, 0.92) !important;
}
#mobileMenu > div:first-child {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    padding: 0 1rem;
    background-color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
#mobileMenu > div:first-child > div {
    display: flex;
    flex-direction: column;
}
#mobileMenu > div:first-child span:first-child {
    color: #C8102E;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}
#mobileMenu > div:first-child span:last-child {
    color: #6B7280;
    font-size: 0.625rem;
    line-height: 1.1;
}
#menuClose {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 1rem;
    color: #111827;
    background: transparent;
    border: 0;
}
#mobileMenu > div:nth-child(2) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    min-height: 0;
    padding: 2.25rem 1rem 2.5rem;
    background-color: transparent;
    font-size: 1.125rem;
    line-height: 1.75rem;
}
#mobileMenu > div:nth-child(2) a {
    color: #1A1A1A;
    font-weight: 500;
    text-decoration: none;
}
#mobileMenu > div:nth-child(2) a.font-semibold {
    color: #C8102E;
    font-weight: 700;
}
#mobileMenu > div:nth-child(2) a[href*="api.whatsapp.com"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background-color: #25D366;
    color: #ffffff;
    font-weight: 700;
}
#mobileMenu.translate-x-full {
    transform: translateX(100%) !important;
}
#mobileMenu.translate-x-0 {
    transform: translateX(0) !important;
}
#mobileMenu.opacity-0 {
    opacity: 0 !important;
    pointer-events: none;
}
#mobileMenu.opacity-100 {
    opacity: 1 !important;
    pointer-events: auto;
}
@media (min-width: 1024px) {
    #mobileMenu,
    #menuBtn {
        display: none !important;
    }
}

/* Hero parallax-like effect */
.hero-bg {
    background-attachment: scroll;
}
@media (min-width: 1024px) {
    .hero-bg {
        background-attachment: fixed;
    }
}

/* Scroll to top fade */
#scrollTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Subtle entrance animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Section divider wave */
.wave-divider {
    position: relative;
}
.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, transparent 33.33%, #FFFBF5 33.33%, #FFFBF5 66.66%, transparent 66.66%);
}
