﻿/* ==========================================================================
   1. VARIABLES Y BASES
   ========================================================================== */
:root {
    --accent-orange: #ff4500;
    --bg-light-gray: #e6e7e8; 
    --text-dark: #000;
    --text-dim: #888;
}

* { box-sizing: border-box; }

/* Fuerza el fondo en todo el body */
body {
    margin: 0;
    background-color: #000 !important; /* El color que solicitaste */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a{
    color: #E41C36;
    font-weight: bold;
}

a:hover, a:focus{
    color: #E41C36;
    font-weight: bold;
}

/* Asegura que la sección de talentos también lo tenga por si hay capas encima */
.talentos-section {
    flex: 1;
    padding: 100px 5%;
    text-align: center;
    background-color: #000 !important; 
}

/* ==========================================================================
   2. SECCIÓN TABS (TALENTOS)
   ========================================================================== */
.talentos-section {
    flex: 1;
    padding: 100px 5%;
    text-align: center;
}

.talentos-title {
    color:  #E41C36 !important;
    font-size: 3rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-family: 'roboto', sans-serif !important;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: texgyreadventorbold;
}

.tab-btn.active {
    color: #ED5A1E;
    border-bottom: 3px solid var(--accent-orange);
    font-weight: 700;
    font-family: texgyreadventorbold;
}

.tab-content-talentos {
    display: none; 
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.tab-content-talentos.active {
    display: block; 
}

.tab-content-talentos h2 {
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.talento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.talento-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.talento-item:hover {
    transform: translateY(-5px);
}

.talento-foto-tab {
    width: 365px;
    height: 365px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background-color: #f0f0f0;
    margin-bottom: 15px;
}

/* ==========================================================================
   3. MODAL (POP-UP)
   ========================================================================== */
.modal-talento {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color:#e2e2e2;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;     
    gap: 20px;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.modal-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    display: none;
}

.modal-text {
    flex: 1;
    width: 100%;
}

.modal-text h3 {
    margin-top: 0;
    color: var(--accent-orange);
    font-size: 2.2rem;
    text-transform: uppercase;
    font-family: texgyreadventorbold;
}

.modal-text p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #444;
    font-family: texgyreadventorbold;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsividad */
@media (max-width: 1100px) {
    .talento-grid { grid-template-columns: repeat(2, 1fr); }
    .talento-foto-tab { width: 300px; height: 300px; }
}

@media (max-width: 850px) {
    .modal-content { flex-direction: column; text-align: center; padding: 25px; }
    .modal-img { width: 250px; height: 250px; margin: 0 auto; }
}

@media (max-width: 700px) {
    .talento-grid { grid-template-columns: 1fr; }
    .talento-foto-tab { width: 100%; height: auto; max-width: 365px; }
}