/* Estilos Personalizados para IPI Santa Elena */

:root {
    --color-primary: #0F4C81;
    --color-primary-dark: #0A3256;
    --color-secondary: #DC2626;
    --color-secondary-dark: #B91C1C;
    --color-background: #F8FAFC;
    --color-text: #1E293B;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

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

/* Clases de utilidad personalizadas */
.text-ipi-primary {
    color: var(--color-primary);
}

.bg-ipi-primary {
    background-color: var(--color-primary);
}

.text-ipi-secondary {
    color: var(--color-secondary);
}

.bg-ipi-secondary {
    background-color: var(--color-secondary);
}

/* Efectos de Hover y Transiciones */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(15, 76, 129, 0.15), 0 8px 10px -6px rgba(15, 76, 129, 0.15);
}

/* Botón flotante de WhatsApp animado */
.btn-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

.btn-whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse-whatsapp 2s infinite;
    opacity: 0;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Acordeón FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 1rem;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Animaciones sutiles */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para ScrollSpy en Navbar */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.nav-link-active {
    color: var(--color-primary) !important;
    font-weight: 600;
}

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

/* Enlaces móviles activos */
.mobile-nav-link.nav-link-active {
    background-color: #F1F5F9; /* slate-100 */
    color: var(--color-primary) !important;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}

/* Animación de Burbujas de Chat */
.chat-bubble-animated {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-bubble-animated.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Indicador de Escritura (Typing Indicator) */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.6;
    } 
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

