/* --- VARIABLES --- */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --accent: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #cbd5e1;
}

/* --- SECCIÓN EQUIPO --- */
.equipo-section {
    padding: 120px 5%; /* Más espacio arriba para que la card no se salga al subir */
    background-color: var(--bg-dark);
    text-align: center;
    position: relative;
    /* Eliminamos overflow: hidden para permitir que las sombras y el movimiento se vean */
}

.equipo-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 80px;
    font-weight: 700;
}

.equipo-title .brand { 
    color: var(--accent); 
}

/* --- GRID --- */
.equipo-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px; /* Espacio para que la sombra no se corte a los lados */
    /* overflow-x: auto; */ /* Activar solo si en móvil se amontonan */
}

/* --- TARJETA INDIVIDUAL --- */
.equipo-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 25px;
    width: 320px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* --- SOLUCIÓN AL CORTE Y HOVER --- */
.equipo-card:hover {
    transform: translateY(-20px); /* Sube la tarjeta */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
    z-index: 10; /* Se pone por encima de las otras */
}

/* --- CONTENEDOR DE FOTO --- */
.foto-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(45deg, var(--bg-dark), var(--accent));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.foto-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark); /* Por si la imagen no carga */
}

.equipo-card h3 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.rol {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 25px;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* --- TECNOLOGÍAS (SKILLS) --- */
.persona-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    min-height: 80px; /* Mantiene la altura constante entre cards */
}

.skill-badge {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
}

.equipo-card:hover .skill-badge {
    border-color: rgba(0, 210, 255, 0.4);
    color: var(--text-main);
    background: rgba(0, 210, 255, 0.1);
}

/* --- TEXTO DESCRIPTIVO --- */
.equipo-card p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 60px;
}

/* --- SOCIAL LINKS --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.3rem;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .equipo-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
}