/* ========== VARIABLES Y RESET ========== */
body {
    margin: 0;
    padding: 0;
}

:root {
    --azul-profundo: #030083;
    --naranja-vibrante: #fc7f00;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --sombra: 0 10px 25px -5px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.equipo-main {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f5 100%);
    min-height: 70vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========== HEADER ========== */
.equipo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.equipo-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--azul-profundo), var(--naranja-vibrante));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.equipo-subtitle {
    color: #555;
    font-size: 1.2rem;
}

.equipo-counter {
    background: var(--azul-profundo);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.equipo-counter span:first-child {
    font-size: 1.8rem;
    color: var(--naranja-vibrante);
    margin-right: 5px;
}

/* ========== SKELETON LOADER ========== */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.skeleton-card {
    background: #e0e0e0;
    border-radius: 20px;
    height: 380px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.hidden {
    display: none;
}

/* ========== TARJETAS ========== */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.equipo-card {
    width: 100%;
    max-width: 300px;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.equipo-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: var(--sombra);
}

.equipo-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.card-front {
    background-color: var(--blanco);
    border-bottom: 5px solid var(--naranja-vibrante);
    background-image: 
        linear-gradient(135deg, var(--azul-profundo) 90px, transparent 91px),
        linear-gradient(-45deg, var(--azul-profundo) 40px, transparent 41px),
        linear-gradient(-45deg, transparent 50px, var(--naranja-vibrante) 51px, var(--naranja-vibrante) 80px, transparent 81px);
}

.card-back {
    transform: rotateY(180deg);
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.1) 40px, transparent 41px),
        linear-gradient(135deg, transparent 50px, var(--naranja-vibrante) 51px, var(--naranja-vibrante) 80px, transparent 81px),
        linear-gradient(145deg, var(--azul-profundo), #02005c);
    border-bottom: 5px solid var(--naranja-vibrante);
    color: white;
    justify-content: center;
    font-size: 0.95rem;
}

.card-back .titulo-academico {
    color: var(--naranja-vibrante);
    font-size: 1.1rem;
    margin: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.img-wrapper {
    background: #f0f0f0;
    border-radius: 50%;
    padding: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.equipo-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--naranja-vibrante);
    transition: transform 0.3s;
}
.equipo-card:hover .equipo-img {
    transform: scale(1.05);
}

.card-front h3 {
    margin: 0.5rem 0 0.25rem;
    color: var(--azul-profundo);
}
.cargo {
    color: var(--naranja-vibrante);
    font-weight: bold;
    font-size: 0.9rem;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.social-icons a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.social-icons i {
    font-size: 1.3rem;
}
.social-icons .icon-linkedin i {
    color: #0077b5;
}
.social-icons .icon-facebook i {
    color: #1877F2;
}
.social-icons .icon-whatsapp i {
    color: #25D366;
}
.social-icons .icon-twitter i {
    color: #1DA1F2;
}
.back-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ========== TOOLTIP ========== */
.custom-tooltip {
    position: fixed;
    background: var(--azul-profundo);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.2s;
    border-left: 3px solid var(--naranja-vibrante);
}

/* ========== PARTÍCULAS ========== */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--naranja-vibrante);
    border-radius: 50%;
    opacity: 0.3;
    bottom: 0;
    animation: floatUp linear infinite;
    pointer-events: none;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .equipo-title { font-size: 2rem; }
    .equipo-card { height: 340px; }
    .equipo-img { width: 100px; height: 100px; }
}
