/* 
   equipo-premium.css 
   Diseño de vanguardia para la sección de profesionales de CENUVE
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #24597f;
    --accent-color: #4facfe;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8faff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-premium: 0 15px 35px rgba(0,0,0,0.1);
}

.equipo-section {
    font-family: 'Outfit', sans-serif;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-main);
}

.equipo-header {
    text-align: center;
    margin-bottom: 25px;
}

.equipo-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.equipo-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto;
}

.grid-equipo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 310px));
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Tarjeta Profesional */
.card-veterinario {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
}

.card-veterinario:hover {
    transform: translateY(-5px);
}

.img-container {
    width: 100%;
    aspect-ratio: 4 / 4.5; /* Un poco más corta verticalmente */
    position: relative;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Ajuste para que no corte la cara arriba */
    transition: transform 0.6s ease;
}

.card-veterinario:hover .img-container img {
    transform: scale(1.05);
}

.info-content {
    padding: 20px;
    text-align: center;
}

.info-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.especialidad-tag {
    display: inline-block;
    background: #eef2f7;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-trayectoria {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-trayectoria:hover {
    background: var(--accent-color);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

/* Modal CV */
.modal-cv {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 30px;
    padding: 50px;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cv-header {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.cv-header h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.cv-section {
    margin-bottom: 30px;
}

.cv-section h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.cv-item {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    gap: 10px;
}

.cv-item i {
    color: var(--primary-color);
    margin-top: 5px;
}

.cv-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-equipo > div {
    animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 768px) {
    .equipo-header h1 { font-size: 2.2rem; }
    .modal-content { padding: 30px; }
}
