/* Custom Styles for Visión Total Theme */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

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

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

/* WhatsApp Button Animation */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Line Clamp Utility */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeIn 0.2s ease-in;
}

/* Ensure videos are responsive */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specialists carousel */
.specialist-slide {
    width: 100%;
}

@media (min-width: 768px) {
    .specialist-slide {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .specialist-slide {
        width: 33.333333%;
    }
}

/* Header Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* Nav links hover - funciona en ambos estados (transparente y scrolleado) */
.nav-link:hover {
    color: #14b8a6 !important;
    transform: translateY(-2px);
}

/* FORZAR fondo oscuro cuando está scrolleado - máxima prioridad */
header.header-scrolled,
#main-header.header-scrolled,
header#main-header.header-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Asegurar que los nav links se mantengan blancos cuando está scrolleado */
.header-scrolled .nav-link,
header.header-scrolled .nav-link,
#main-header.header-scrolled .nav-link,
header#main-header.header-scrolled .nav-link {
    color: #ffffff !important;
}

.header-scrolled .nav-link:hover,
header.header-scrolled .nav-link:hover,
#main-header.header-scrolled .nav-link:hover {
    color: #14b8a6 !important;
}

/* Efecto de línea inferior al hacer hover cuando está scrolleado */
.header-scrolled .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #14b8a6;
    transition: width 0.3s ease;
}

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

/* Asegurar que el logo se mantenga blanco cuando está scrolleado */
.header-scrolled .header-logo-text,
header.header-scrolled .header-logo-text,
#main-header.header-scrolled .header-logo-text {
    color: #ffffff !important;
}

.header-scrolled .header-logo-text span,
header.header-scrolled .header-logo-text span,
#main-header.header-scrolled .header-logo-text span {
    color: #14b8a6 !important;
}

