/* ================================
   MODERN TEAM PAGE - Inspirado en Gustavo Paris
   Diseño limpio y minimalista sin cards
   Foto grande con nombre/cargo encima, quote aparece en hover
   ================================ */

/* Override protección de imágenes para team */
.team-modern-section .image-protected-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
}

.team-modern-section .image-protection-overlay {
    display: none !important;
}

.team-modern-section .protected-content,
.team-modern-section .no-protection {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Hero Section */
.team-modern-section {
    min-height: 100vh;
    background: var(--e-global-color-secondary);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.team-modern-hero {
    position: relative;
    padding: clamp(120px, 20vh, 200px) clamp(1.5rem, 4vw, 3rem) clamp(80px, 15vh, 120px);
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.team-modern-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.team-modern-hero-title {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: clamp(3rem, 8vw + 1rem, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--e-global-color-text);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.team-modern-title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, var(--e-global-color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-modern-hero-description {
    font-family: var(--e-global-typography-text-font-family);
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Container */
.team-modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(120px, 15vh, 180px);
    position: relative;
    z-index: 1;
}

/* Section Header */
.team-modern-section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 6rem;
    animation: fadeInUp 0.6s ease-out both;
}

.team-modern-section-header:first-of-type {
    margin-top: 0;
}

.team-modern-section-title {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 700;
    color: var(--e-global-color-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.team-modern-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--e-global-color-accent) 0%, transparent 100%);
    opacity: 0.3;
}

/* Grid */
.team-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 6rem 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .team-modern-grid-leadership {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        gap: 8rem 4rem;
    }
    
    .team-modern-grid-direction {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Member - Diseño con foto grande */
.team-modern-member {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out both;
    overflow: hidden;
}

.team-modern-member:nth-child(1) { animation-delay: 0.1s; }
.team-modern-member:nth-child(2) { animation-delay: 0.2s; }
.team-modern-member:nth-child(3) { animation-delay: 0.3s; }
.team-modern-member:nth-child(4) { animation-delay: 0.4s; }
.team-modern-member:nth-child(5) { animation-delay: 0.5s; }
.team-modern-member:nth-child(6) { animation-delay: 0.6s; }

/* Image Wrapper - Foto grande */
.team-modern-member-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: transparent;
    margin-bottom: 0;
}

.team-modern-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.1) brightness(0.95);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-modern-member:hover .team-modern-member-image {
    filter: grayscale(0) brightness(1);
}

/* Overlay con nombre, cargo y frase */
.team-modern-member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(3, 9, 29, 0.98) 0%, rgba(3, 9, 29, 0.85) 40%, rgba(3, 9, 29, 0.3) 70%, rgba(3, 9, 29, 0.05) 100%);
    padding: 2rem 1.5rem 1.5rem;
    z-index: 3;
    transition: padding-bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-modern-member:hover .team-modern-member-overlay {
    padding-bottom: 3rem;
}

.team-modern-member-info {
    margin: 0;
    opacity: 1;
    transition: none;
}

.team-modern-member-name {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--e-global-color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    opacity: 1;
}

.team-modern-member-role {
    display: inline-block;
    font-family: var(--e-global-typography-text-font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--e-global-color-text);
    background-color: transparent;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    opacity: 1;
}

.team-modern-member-role::before,
.team-modern-member-role::after {
    content: '/';
    color: var(--e-global-color-accent);
}

/* LinkedIn Link - Muy sutil */
.team-modern-member-linkedin {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.team-modern-member-linkedin:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.9);
}

.team-modern-member-linkedin svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.team-modern-member-linkedin:hover svg {
    transform: scale(1.1);
}

/* Quote/Testimonial - Dentro del overlay, oculta por defecto, aparece en hover */
.team-modern-section blockquote.team-modern-member-quote,
.team-modern-member-quote {
    font-family: var(--e-global-typography-text-font-family) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: transparent !important;
    font-style: italic !important;
    margin: 0 !important;
    margin-top: 1.25rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    quotes: none !important;
    opacity: 0 !important;
    position: relative !important;
    transform: translateY(10px) !important;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.team-modern-section blockquote.team-modern-member-quote::before,
.team-modern-section blockquote.team-modern-member-quote::after,
.team-modern-member-quote::before,
.team-modern-member-quote::after {
    content: none !important;
    display: none !important;
}

.team-modern-member:hover .team-modern-member-quote,
.team-modern-section .team-modern-member:hover blockquote.team-modern-member-quote {
    opacity: 1 !important;
    transform: translateY(0) !important;
    max-height: 300px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

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

/* Responsive */
@media (max-width: 767px) {
    .team-modern-hero {
        padding: 100px clamp(1.5rem, 4vw, 3rem) 60px;
    }
    
    .team-modern-grid {
        grid-template-columns: 1fr;
        gap: 4rem 0;
    }
    
    .team-modern-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .team-modern-section-line {
        width: 100%;
    }
    
    .team-modern-member-name {
        font-size: 1.25rem;
    }
    
    .team-modern-member-image-wrapper {
        aspect-ratio: 3 / 4;
    }
}
