/*
Theme Name:     Child Theme Astra
Template:       astra
Description:    Tema hijo Astra
Author:         Rodrigo Ruiz Diaz
Version:        1.1
*/


/*Aquí debajo agrego mis propios estilos*/

/*Efectos para el Menu*/
/* MENÚ SIMPLE PERO EFECTIVO */
a.menu-link {
    font-size: 17px !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}

/* Subrayado animado */
a.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a.menu-link:hover {
    color: #3498db !important;
}

a.menu-link:hover::after {
    transform: scaleX(1);
}

/* Elemento activo */
a.menu-link.current-menu-item {
    color: #3498db !important;
    font-weight: 600 !important;
}

a.menu-link.current-menu-item::after {
    transform: scaleX(1);
    background-color: #e74c3c; /* Rojo para elemento activo */
}
/* Efectos para tarjetas del Equipo Coordinador */
.grid-equipo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.tarjeta-miembro {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ANTES del hover: todas las tarjetas normales */
.grid-equipo:hover .tarjeta-miembro {
    filter: blur(2px);
    transform: scale(0.95);
    opacity: 0.8;
}

/* DURANTE el hover: la tarjeta específica */
.grid-equipo .tarjeta-miembro:hover {
    filter: blur(0) !important;
    transform: scale(1.05) translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
    z-index: 2;
}

/* Efecto de brillo en el borde al hacer hover */
.tarjeta-miembro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF0000, #FFFFFF, #0000FF);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 15px 15px 0 0;
    z-index: 3;
}

.tarjeta-miembro:hover::before {
    transform: scaleX(1);
}

/* Efecto especial en la imagen */
.imagen-miembro {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 4px solid #f8f9fa !important;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    filter: grayscale(40%);
}

.tarjeta-miembro:hover .imagen-miembro {
    transform: scale(1.1);
    border-color: #3498db;
    filter: grayscale(0%);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* Animación de aparición para cada tarjeta */
@keyframes aparecerTarjeta {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-miembro {
    animation: aparecerTarjeta 0.6s ease forwards;
    opacity: 0;
}

/* Retraso escalonado para cada tarjeta */
.tarjeta-miembro:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-miembro:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-miembro:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-miembro:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-miembro:nth-child(5) { animation-delay: 0.5s; }
.tarjeta-miembro:nth-child(6) { animation-delay: 0.6s; }

/* Mejorar la tipografía al hacer hover */
.tarjeta-miembro:hover .nombre-miembro {
    color: #2980b9;
    transform: translateY(-2px);
}

.tarjeta-miembro:hover .cargo-miembro {
    color: #e74c3c;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-equipo {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .grid-equipo:hover .tarjeta-miembro {
        filter: blur(0); /* No aplicar blur en móvil */
        transform: scale(1);
        opacity: 1;
    }
    
    .tarjeta-miembro:hover {
        transform: scale(1.02) !important;
    }
}