/*=================================
   Coordinador Cards Enhanced Styles
==================================*/

.coordinador-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 
        0 15px 35px rgba(17, 124, 130, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 124, 130, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    backdrop-filter: blur(10px);
}

.coordinador-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #E6322E 0%, 
        #117C82 25%, 
        #c2df93 50%, 
        #117C82 75%, 
        #E6322E 100%);
    background-size: 200% 100%;
    z-index: 1;
    animation: shimmer 3s ease-in-out infinite;
}

.coordinador-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(17, 124, 130, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(17, 124, 130, 0.2);
    border-color: rgba(17, 124, 130, 0.3);
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 1; 
        background-position: -200% 0;
    }
    50% { 
        opacity: 0.8; 
        background-position: 200% 0;
    }
}

.card-header {
    position: relative;
    padding: 25px 25px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(17, 124, 130, 0.02) 0%, rgba(230, 50, 46, 0.02) 100%);
}

.serial-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #E6322E 0%, #117C82 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 
        0 6px 20px rgba(230, 50, 46, 0.3),
        0 2px 8px rgba(17, 124, 130, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.coordinador-card:hover .serial-badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 8px 25px rgba(230, 50, 46, 0.4),
        0 4px 12px rgba(17, 124, 130, 0.3);
}

.image-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 
        0 10px 30px rgba(17, 124, 130, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.coordinador-card:hover .image-container {
    border-color: #E6322E;
    transform: scale(1.08);
    box-shadow: 
        0 15px 40px rgba(17, 124, 130, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(230, 50, 46, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.1);
}

.coordinador-card:hover .profile-image {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(17, 124, 130, 0.9) 0%, 
        rgba(230, 50, 46, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.image-overlay i {
    color: #ffffff;
    font-size: 28px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.coordinador-card:hover .image-overlay {
    opacity: 1;
}

.coordinador-card:hover .image-overlay i {
    transform: scale(1);
}

.role-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #E6322E 0%, #117C82 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    /* letter-spacing: 0.5px; */
    box-shadow: 0 4px 15px rgba(230, 50, 46, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 2;
    width: 85%;
    justify-content: center;
}

.role-badge i {
    font-size: 10px;
}

.coordinador-card:hover .role-badge {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 50, 46, 0.4);
}

.card-body {
    padding: 0 25px 25px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.coordinador-name {
    color: #117C82;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(17, 124, 130, 0.1);
}

.coordinador-card:hover .coordinador-name {
    color: #E6322E;
    transform: translateY(-2px);
}

.coordinador-position {
    color: #6c757d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    line-height: 1.4;
    background: linear-gradient(135deg, 
        rgba(17, 124, 130, 0.08) 0%, 
        rgba(194, 223, 147, 0.08) 100%);
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid rgba(17, 124, 130, 0.1);
    position: relative;
    overflow: hidden;
}

.coordinador-position::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.coordinador-card:hover .coordinador-position::before {
    left: 100%;
}

.contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    border: 1px solid rgba(17, 124, 130, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(17, 124, 130, 0.05) 0%, 
        rgba(230, 50, 46, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #edfbfb 100%);
    border-color: #E6322E;
    transform: translateX(8px) scale(1.02);
    box-shadow: 
        0 4px 15px rgba(17, 124, 130, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item i {
    color: #E6322E;
    font-size: 14px;
    margin-right: 10px;
    width: 18px;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.contact-item:hover i {
    color: #117C82;
    transform: scale(1.1);
}

.contact-item span {
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.contact-item:hover span {
    color: #117C82;
    font-weight: 700;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: linear-gradient(135deg, 
        rgba(17, 124, 130, 0.05) 0%, 
        rgba(194, 223, 147, 0.05) 100%);
    border-top: 1px solid rgba(17, 124, 130, 0.1);
    position: relative;
}

.status-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(17, 124, 130, 0.1) 0%, rgba(194, 223, 147, 0.1) 100%);
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(17, 124, 130, 0.2);
    transition: all 0.3s ease;
}

.experience-badge:hover {
    background: linear-gradient(135deg, rgba(17, 124, 130, 0.15) 0%, rgba(194, 223, 147, 0.15) 100%);
    transform: scale(1.05);
}

.experience-badge i {
    color: #117C82;
    font-size: 11px;
}

.experience-badge span {
    color: #495057;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(17, 124, 130, 0.2) 50%, 
        transparent 100%);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 
        0 0 15px rgba(40, 167, 69, 0.6),
        0 0 5px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

.status-indicator.active {
    background: #28a745;
}

.status-indicator.inactive {
    background: #6c757d;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.4);
}

.status-text {
    color: #495057;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.coordinador-card:hover .status-text {
    color: #117C82;
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 0 0 0 rgba(40, 167, 69, 0.7),
            0 0 15px rgba(40, 167, 69, 0.6);
    }
    70% {
        box-shadow: 
            0 0 0 10px rgba(40, 167, 69, 0),
            0 0 15px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 
            0 0 0 0 rgba(40, 167, 69, 0),
            0 0 15px rgba(40, 167, 69, 0.6);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coordinador-card {
        margin-bottom: 25px;
        border-radius: 20px;
    }
    
    .card-header {
        padding: 20px 20px 0;
    }
    
    .serial-badge {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 15px;
        right: 15px;
    }
    
    .image-container {
        width: 110px;
        height: 110px;
        margin-bottom: 20px;
    }
    
    .role-badge {
        font-size: 10px;
        padding: 5px 10px;
        bottom: 10px;
    }
    
    .card-body {
        padding: 0 20px 20px;
    }
    
    .coordinador-name {
        font-size: 18px;
    }
    
    .coordinador-position {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .contact-item {
        padding: 8px 14px;
    }
    
    .contact-item span {
        font-size: 11px;
    }
    
    .card-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .status-section {
        justify-content: center;
    }
    
    .experience-badge {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .coordinador-card {
        border-radius: 18px;
    }
    
    .image-container {
        width: 100px;
        height: 100px;
    }
    
    .role-badge {
        font-size: 9px;
        padding: 4px 8px;
        bottom: -15px;
    }
    
    .coordinador-name {
        font-size: 16px;
    }
    
    .coordinador-position {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .contact-item {
        padding: 6px 12px;
    }
    
    .contact-item span {
        font-size: 10px;
    }
    
    .experience-badge {
        padding: 4px 8px;
    }
    
    .experience-badge span {
        font-size: 10px;
    }
}

/* Efectos adicionales para mejorar la experiencia */
.coordinador-card {
    will-change: transform, box-shadow;
}

.coordinador-card:hover {
    will-change: auto;
}

/* Efecto de brillo en hover */
.coordinador-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.coordinador-card:hover::after {
    left: 100%;
}

/* Efectos adicionales para mejorar la experiencia visual */
.coordinador-card {
    perspective: 1000px;
}

.coordinador-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(2deg);
}

/* Animación de entrada para las cartillas */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.coordinador-card {
    animation: cardEntrance 0.6s ease-out forwards;
}

.coordinador-card:nth-child(1) { animation-delay: 0.1s; }
.coordinador-card:nth-child(2) { animation-delay: 0.2s; }
.coordinador-card:nth-child(3) { animation-delay: 0.3s; }
.coordinador-card:nth-child(4) { animation-delay: 0.4s; }

/* Mejora del efecto shimmer */
@keyframes shimmer {
    0%, 100% { 
        opacity: 1; 
        background-position: -200% 0;
    }
    50% { 
        opacity: 0.8; 
        background-position: 200% 0;
    }
}

/* Efecto de hover para los iconos de contacto */
.contact-item i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Efecto de hover para el badge de experiencia */
.experience-badge:hover i {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
