/* ============================================
   ESTILOS GLOBALES
   ============================================ */

* {
    font-family: 'Inter', sans-serif;
}

.font-title {
    font-family: 'Montserrat', sans-serif;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Estado inicial: elementos ocultos */
.animate-on-scroll {
    opacity: 0;
}

/* ============================================
   ESTILOS ESPECÍFICOS DE BOTONES ACTIVOS
   ============================================ */

.proyecto-btn.proyecto-active {
    background-color: white;
}

.servicio-btn.servicio-active {
    background-color: white;
}

/* ============================================
   DROPDOWN PERSONALIZADO - PROYECTOS
   ============================================ */

#dropdown-custom {
    border: none;
}

#dropdown-options {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(calc(-50% - 10px)) scale(0.95);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    top: 50% !important;
}

#dropdown-options.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

#dropdown-options:not(.hidden) {
    display: flex !important;
}

.dropdown-option.selected {
    background-color: #f3f4f6;
    transition: background-color 0.3s ease-out;
}

.dropdown-option {
    transition: background-color 0.2s ease-out, transform 0.15s ease-out;
    transform: translateX(0);
}

.dropdown-option:hover {
    transform: translateX(4px);
}

.dropdown-option:active {
    transform: translateX(2px) scale(0.98);
}

#dropdown-custom svg {
    transition: transform 0.3s ease-out;
}

#dropdown-custom.active svg {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .dropdown-option {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ============================================
   DROPDOWN PERSONALIZADO - SERVICIOS
   ============================================ */

#servicio-dropdown-custom {
    border: none;
}

#servicio-dropdown-options {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(calc(-50% - 10px)) scale(0.95);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    top: 50% !important;
}

#servicio-dropdown-options.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

#servicio-dropdown-options:not(.hidden) {
    display: flex !important;
}

.servicio-dropdown-option.selected {
    background-color: #f3f4f6;
    transition: background-color 0.3s ease-out;
}

.servicio-dropdown-option {
    transition: background-color 0.2s ease-out, transform 0.15s ease-out;
    transform: translateX(0);
}

.servicio-dropdown-option:hover {
    transform: translateX(4px);
}

.servicio-dropdown-option:active {
    transform: translateX(2px) scale(0.98);
}

#servicio-dropdown-custom svg {
    transition: transform 0.3s ease-out;
}

#servicio-dropdown-custom.active svg {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .servicio-dropdown-option {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

