.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

/* botón whatsapp flotante original */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slide-in 0.4s ease-out forwards;
}

/* ===== HERO OVERLAY OSCURO CON DEGRADADO ===== */
.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

/* ===== ESTILOS PARA MISIÓN, VISIÓN Y VALORES ===== */
#mision-vision {
    position: relative;
    overflow: hidden;
}

#mision-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /*background: linear-gradient(90deg, #10B981 0%, #e4b023 50%, #f50b0b 100%);*/
}

/* ===== TOAST PROFESIONAL ===== */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.95); /* verde éxito */
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: rgba(220, 38, 38, 0.95); /* rojo error */
}

.toast-icon {
    font-size: 28px;
    line-height: 1;
}

.toast-content strong {
    font-size: 16px;
    display: block;
}

.toast-content p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Error de campo obligatorio */
.input-error {
    border-color: #ef4444;
}

/* Responsive */
@media (max-width: 640px) {
    .toast {
        right: 16px;
        left: 16px;
        top: 20px;
    }
}

.bn-category-item {
    position: relative;
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bn-category-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.bn-cate-head .icon {
    transition: transform 0.3s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Fondo para íconos según categoría */
.bn-category-item:nth-child(1) .bn-cate-head .icon {
    background-color: rgba(16, 185, 129, 0.1);
}

.bn-category-item:nth-child(2) .bn-cate-head .icon {
    background-color: rgba(139, 92, 246, 0.1);
}

.bn-category-item:nth-child(3) .bn-cate-head .icon {
    background-color: rgba(245, 158, 11, 0.1);
}

.bn-category-item:hover .bn-cate-head .icon {
    transform: scale(1.1);
}

/* Estilos para la lista de valores */
.values-content ul {
    margin-top: 0.5rem;
}

.values-content li {
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

.values-content li:hover {
    padding-left: 0.5rem;
    color: #1e3a8a;
}

/* Clase activa para categorías (opcional) */
.active-category {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border-top-width: 6px !important;
}

/* Badge de compromiso */
.badge-compromiso {
    background: linear-gradient(90deg, #1e3a8a 0%, #10B981 100%);
    animation: badgePulse 3s infinite alternate;
}

@keyframes badgePulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
    #mision-vision .grid {
        gap: 1.5rem;
    }
    
    .bn-category-item {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    #mision-vision h2 {
        font-size: 2rem;
    }
    
    .bn-category-item {
        min-height: auto;
    }
}