:root {
    --color-primario: #4e73df;
    --color-secundario: #224abe;
    --color-activo: #1cc88a;
    --color-inactivo: #e74a3b;
    --color-texto: #5a5c69;
    --color-fondo: #f8f9fc;
    --sombra: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --degradado: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Contenido principal */
.container__background-triangle{
    max-width: 1200px;
    height: 600px;
    margin: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1; /* También para los triángulos individuales */

}

.triangle{
    width: 300px;
    height: 300px;
    background: red;
    position: absolute;
}

.triangle1{
    width: 250px;
    height: 250px;
    background: linear-gradient(to left, #062b50, #1e67c7);
    right: 100px;
    top: 100px;
    animation: t1 8s ease infinite;
}

.triangle2{
    width: 200px;
    height: 200px;
    background: linear-gradient(to left, #1e67c7, #fff);
    top: 350px;
    animation: t2 9s ease infinite;
}

.triangle3{
    width: 300px;
    height: 300px;
    background: linear-gradient(to left, #1b8fc5, #df0f8f);
    left: 200px;
    animation: t3 7s ease infinite;
}

@keyframes t1 {
    0%{
        transform: rotate(45deg) translateY(0px);
    }
    50%{
        transform: rotate(45deg) translateY(20px);
    }
    100%{
        transform: rotate(45deg) translateY(0px);
    }
}

@keyframes t2 {
    0%{
        transform: rotate(65deg) translateY(0px);
    }
    50%{
        transform: rotate(65deg) translateY(20px);
    }
    100%{
        transform: rotate(65deg) translateY(0px);
    }
}

@keyframes t3 {
    0%{
        transform: rotate(45deg) translateY(0px);
    }
    50%{
        transform: rotate(45deg) translateY(20px);
    }
    100%{
        transform: rotate(45deg) translateY(0px);
    }
}

/* Fondo con efecto de partículas */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-fondo);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(78, 115, 223, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(231, 74, 59, 0.05) 0%, transparent 20%);
    z-index: -1;
}

/* Estilos para el encabezado */
.logo-asociacion {
    height: 60px; /* Reducido de 80px */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-asociacion:hover {
    transform: scale(1.05);
}

/* Estilos para el contenedor del encabezado */
.header-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Estilos para el botón de admin */
.admin-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.admin-btn:hover::after {
    transform: translateX(0);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .logo-asociacion {
        height: 50px;
    }
    
    .header-container {
        padding: 0.75rem;
    }
}

/* Tarjetas con efecto vidrio (glassmorphism) */
.card-asociado {
    border: none;
    border-radius: 15px;
    box-shadow: var(--sombra);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-asociado:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Encabezado con degradado */
.card-header-asociado {
    background: var(--degradado);
    color: white;
    border-radius: 0 !important;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: none;
}

.card-header-asociado::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.13);
    transform: rotate(30deg);
    pointer-events: none;
}

/* Foto de perfil con borde animado */
.img-asociado {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-asociado:hover .img-asociado {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Badge de estado con efecto */
.badge-estado {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Efecto para el enlace */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
    border-radius: 15px;
}

/* Barra de búsqueda con efecto */
.card-search {
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--sombra);
    border-left: 4px solid var(--color-primario);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-asociados {
    animation: fadeIn 0.6s ease-out;
}

/* Efecto hover para botones */
.btn-hover-effect {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-hover-effect:hover::after {
    transform: translateX(0);
}

/* Responsive design */
@media (max-width: 768px) {
    
    .card-header-asociado {
        padding: 1rem;
    }
    
    .img-asociado {
        width: 50px;
        height: 50px;
    }
}
/* Estilos para la información en tarjetas */
.info-item {
    display: flex;
    align-items: center;
    padding: 0.3rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.info-item:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--color-primario);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: var(--color-texto);
    font-weight: 600;
}

/* Ajuste para stretched-link que no cubra el footer */
.card-body-asociado {
    position: relative;
    padding-bottom: 60px; /* Espacio para el footer */
}

.card-footer-asociado {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2; /* Asegura que esté sobre el stretched-link */
}

/* Nuevos estilos para botones consistentes con detalle_asociado.css */
.btn-accion {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
}



.btn-accion::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-accion:hover::after {
    transform: translateX(0);
}

.btn-primary-accion {
    background: var(--degradado);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-accion:hover {
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-secondary-accion {
    background: white;
    color: var(--color-primario);
    border: 2px solid var(--color-primario);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary-accion:hover {
    background: var(--color-primario);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Ajustes para los botones en el footer de la tarjeta */
.card-footer-asociado .btn {
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .card-footer-asociado .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-footer-asociado .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Agrega al final del archivo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplica animación a cada tarjeta con retardo progresivo */
.card-asociado {
    opacity: 0; /* Inicia oculto */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Retardo escalonado para cada tarjeta */
.card-asociado:nth-child(1) { animation-delay: 0.1s; }
.card-asociado:nth-child(2) { animation-delay: 0.2s; }
.card-asociado:nth-child(3) { animation-delay: 0.3s; }