/* ==========================================================================
   ÍNDICE
   3. HERO
   4. SECCIÓN STATS
   5. SECCIÓN 1 TEXTO
   6. SECCIÓN 2 TEXTO CON IMAGEN
   7. SECCIÓN 3 TEXTO CON IMAGEN
   8. SECCIÓN 4 TEXTO CON IMAGEN
   9. SECCIÓN 5 TEXTO CON IMAGEN INTERACTIVA
   10. MARQUESINA PAÍSES
   11. MAPA INTERACTIVO
   12. EQUIPO
   ========================================================================== */

/* ─── SISTEMA DE MÁRGENES CENTRALIZADO ─────────────────────── */
/* Cambiar --page-margin en los @media para controlar TODA la página */
:root {
    --page-margin: 8vw;   /* Desktop */
}

html,
body {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* pag_thex.html — Estilos específicos de la página "El Estudio" */
body.about-page {
    background-color: #ffffff;
    color: #111111;
}

/* ==========================================================================
   3. HERO
   ========================================================================== */
.about-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--page-margin) 8vh;
    position: relative;
    background-color: #0a0a0a;
    overflow: hidden;
}

.about-hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.about-hero-title {
    color: #ffffff;
}

.about-hero-title em {
    font-style: normal;
    color: #AB998A;
}

.about-hero-scroll {
    position: absolute;
    right: var(--page-margin);
    bottom: 8vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.about-hero-scroll span {
    color: #888;
    writing-mode: vertical-rl;
}

.about-hero-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #d4c8b8, transparent);
}

/* ==========================================================================
   4. SECCIÓN STATS
   ========================================================================== */
.about-stats {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eeeeee;
    background-color: #ffffff;
    padding: 0 var(--page-margin, 8vw);
}

.about-stat {
    flex: 1;
    padding: 4rem 2vw;
    border-right: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
    text-align: center;
}

.about-stat:last-child {
    border-right: none;
}

.about-stat:hover {
    background-color: #f9f8f5;
}

.stat-number {
    display: block;
    margin-bottom: 0.75rem;
    color: #111;
}

.stat-label {
    color: #888;
}

/* ==========================================================================
   5. SECCIÓN 1 TEXTO
   ========================================================================== */

/* ==========================================================================
   6. SECCIÓN 2 TEXTO CON IMAGEN
   ========================================================================== */
.column-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    width: 100%;
}

.column-image>div {
    flex: 1;
}

/* El overflow:hidden solo se aplica al contenedor de imagen, no al de texto */
.column-image>div:has(img) {
    overflow: hidden;
}

.column-image img {
    width: 180%;
    height: 80%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.column-image>div:hover img {
    transform: scale(1.03);
}

.column-image--row-layout {
    align-items: center !important;
    gap: 6vw !important;
    flex-direction: row !important;
}


.flex-grow-1 {
    flex: 1 !important;
}

.editorial-img-60vh {
    width: 100% !important;
    height: 60vh !important;
    object-fit: cover !important;
}

.text-align-right {
    text-align: left !important;
}

/* ==========================================================================
   7. SECCIÓN 3 TEXTO CON IMAGEN
   ========================================================================== */

.about-full-image {
    width: 100%;
    margin: 0 auto;
    height: 70vh;
    overflow: hidden;
    border-radius: 0;
}

.about-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-full-image:hover img {
    transform: scale(1.03);
}

.about-full-image--65vh {
    height: 65vh !important;
}


/* ==========================================================================
   8. SECCIÓN 4 TEXTO CON IMAGEN
   ========================================================================== */
.column-image--row-reverse {
    flex-direction: row-reverse !important;
    gap: 8vw !important;
    justify-content: center;
    text-align: left;
}

.flex-column-center {
    justify-content: center;
    text-align: left;
}


/* ─── TABLET (768px – 1024px) ──────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {

    :root {
        --page-margin: 6vw;  /* Margen lateral tableta */
    }

    /* Tipografías tablet */
    .about-page h2 {
        font-size: clamp(2.4rem, 5vw, 3.4rem) !important;
    }

    .about-page h3 {
        font-size: clamp(2rem, 4.5vw, 2.8rem) !important;
    }

    /* Stats: 4 columnas en tablet */
    .about-stats {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }

    .about-stat {
        flex: 1 !important;
        border-right: 1px solid #eeeeee !important;
        border-top: none !important;
        padding: 3rem 2vw !important;
        text-align: center !important;
    }

    .about-stat:last-child {
        border-right: none !important;
    }

    .about-stat .stat-number {
        font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    }

    .about-stat .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
    }

    /* Imágenes editoriales en tablet → apilar */
    .column-image--row-layout,
    .column-image--row-reverse {
        flex-direction: column !important;
        gap: 3rem !important;
    }

    .editorial-img-60vh {
        height: 45vh !important;
    }

    .about-full-image {
        height: 55vh !important;
    }

    /* Mapa */
    .about-global-map {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2rem !important;
    }

    .map-section-header {
        flex: none !important;
        width: 100% !important;
    }

    .map-wrapper,
    .world-map-container,
    #world-map {
        width: 100% !important;
    }

    #world-map {
        max-height: none !important;
    }

    /* Tarjetas de equipo en tablet */
    .team-card-back {
        padding: 1.5rem 1rem !important;
    }

    .team-card-back .back-role {
        margin-bottom: 0.8rem !important;
    }

    .team-card-back .back-bio {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
    }

    /* Evitar recortes de texto en columna-imagen */
    .column-image>div:not(:has(img)) {
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

}

/* ─── MOBILE (≤ 767px) ─────────────────────────────────────── */
@media (max-width: 767px) {

    :root {
        --page-margin: 5vw;  /* Margen lateral móvil */
    }

    /* Tipografías móvil */
    .about-page h2 {
        font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
    }

    .about-page h3 {
        font-size: clamp(1.6rem, 7vw, 1.9rem) !important;
    }

    /* Hero: alineación inferior + márgenes de variable */
    .about-hero {
        justify-content: flex-end !important;
        align-items: flex-start !important;
        min-height: 100svh !important;
        padding-bottom: 8vh !important;
    }

    .about-hero-content {
        text-align: left !important;
        width: 100%;
    }

    .about-hero-scroll {
        display: none;
    }

    /* Stats 2x2: padding en el contenedor padre, celdas con espacio solo vertical */
    .about-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
    }

    .about-stat {
        flex: 1 1 50% !important;
        width: 50% !important;
        border-right: 1px solid #eeeeee !important;
        border-bottom: 1px solid #eeeeee !important;
        padding: 2rem 3vw !important;
        text-align: center !important;
    }

    .about-stat:nth-child(2n) {
        border-right: none !important;
    }

    .about-stat:nth-child(3),
    .about-stat:nth-child(4) {
        border-bottom: none !important;
    }

    .about-stat .stat-number {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        margin-bottom: 0.4rem !important;
    }

    .about-stat .stat-label {
        font-size: 0.6rem !important;
        letter-spacing: 1.5px !important;
    }

    /* Imagen full: ocupa todo el ancho del contenedor (el section padre tiene el margen) */
    .about-full-image {
        width: 100%;
        height: 50vh;
        margin: 0;
    }

    .spacer-12vh {
        margin-bottom: 2vh !important;
    }

    /* Nuestra esencia y otras fotos editoriales tamaño original */
    .editorial-img-60vh {
        height: auto !important;
        aspect-ratio: auto !important;
    }

    /* Equipo */
    .about-team {
        padding: 6vh var(--page-margin);
    }

    .map-section-header h3,
    .about-hand-title {
        text-align: center !important;
        width: 100% !important;
    }

    .sensory-line {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .team-header {
        flex-direction: column;
        align-items: center !important;
        gap: 1rem;
        margin-bottom: 1.8rem !important;
        text-align: center !important;
    }

    .team-filter {
        display: none !important;
    }

    .team-filter-mobile-wrapper {
        display: block !important;
        width: 100%;
        margin-bottom: 2rem;
    }

    .team-filter-select {
        width: 100%;
        background: #ffffff;
        border: 1px solid #ccc;
        color: #111111;
        padding: 0.8rem 1.2rem;
        font-family: inherit;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1.2rem center;
        background-size: 1.2rem;
    }

    .team-card {
        margin-bottom: 1.8rem !important;
        min-width: 0;
    }

    .team-card-front {
        background: transparent !important;
        overflow: visible !important;
    }

    .team-card-inner {
        transform: none !important;
        transform-style: flat !important;
    }

    .team-card.is-flipped .team-card-inner {
        transform: none !important;
    }

    .team-card-front img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        filter: grayscale(100%) !important;
        transition: transform 0.5s ease, filter 0.5s ease !important;
    }

    .team-card:active .team-card-front img,
    .team-card:hover .team-card-front img {
        transform: scale(1.08) !important;
    }

    .team-card-info {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 0.6rem 0 0 0 !important;
        background: transparent !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        text-align: center !important;
        opacity: 1 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .team-card-name {
        color: #111111 !important;
        font-size: clamp(0.72rem, 3.2vw, 0.85rem) !important;
        font-weight: 400 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    .team-card-role {
        display: none !important;
    }

    /* Fila de columnas row → columna */
    .column-image--row-layout,
    .column-image--row-reverse {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Sección inmersiva: apilar en columna */
    .immersive-sensory {
        flex-direction: column;
    }

    /* Mapa: apilar en columna */
    .about-global-map {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2rem !important;
    }

    /* Evitar que el texto se corte en las secciones de columna-imagen */
    .column-image>div:not(:has(img)) {
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* En móvil los textos siempre a la izquierda */
    .text-align-right,
    .text-align-right p {
        text-align: left !important;
    }

    /* Responsividad del mapa en móvil */
    #world-map {
        max-height: none !important;
    }

    /* Adaptar y centrar la tarjeta emergente en móvil */
    .map-popup {
        width: calc(100% - 2rem) !important;
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        box-sizing: border-box !important;
    }

}

/* ─── MOBILE S (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {

    /* Heading sizes and spacing on mobile S */
    .about-page h2 {
        font-size: 1.65rem !important;
    }

    .about-page h3 {
        font-size: 1.5rem !important;
    }



    .about-stat {
        padding: 1.5rem var(--page-margin) !important;
    }

    .about-hero {
        min-height: 100svh !important;
        padding-bottom: 8vh !important;
    }


    .about-full-image {
        height: 38vh;
    }

    .editorial-img-60vh {
        height: 35vh !important;
    }

    .about-team {
        padding: 5vh var(--page-margin);
    }

    .team-filter {
        gap: 0.5rem;
    }

    .team-filter-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.65rem;
    }

    .team-card-name {
        font-size: clamp(0.65rem, 3vw, 0.78rem) !important;
    }

    .immersive-sensory {
        flex-direction: column;
    }

    .sensory-image-wrapper img {
        height: 40vh;
    }

}

/* ==========================================================================
   9. SECCIÓN 5 TEXTO CON IMAGEN INTERACTIVA
   ========================================================================== */
.immersive-sensory {
    padding: 15vh var(--page-margin) 10vh;
    background-color: #0a0a0a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8vw;
    overflow: hidden;
}

.about-sensory-text {
    color: #ffffff;

}

.sensory-image-wrapper {
    flex: 1.2;
    position: relative;
    perspective: 1200px;
}

.sensory-image-wrapper img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.sensory-content {
    flex: 1;
}

.sensory-line {
    width: 40px;
    height: 1px;
    background-color: #d4c8b8;
    margin-bottom: 2rem;
}

.sensory-content h2 {
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #ffffff;
}

.sensory-content p {
    line-height: 1.9;
    color: #ffffffe1;
    font-weight: 150;
}

@media (max-width: 992px) {
    .immersive-sensory {
        flex-direction: column;
    }

    .sensory-image-wrapper {
        width: 100%;
    }

    .sensory-image-wrapper img {
        height: 50vh;
    }
}

/* ==========================================================================
   10. MARQUESINA PAÍSES
   ========================================================================== */
.countries-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    border-bottom: 1px solid #000000;
    border-top: 1px solid #000000;
    padding: 1.1rem 0;
    margin-top: 2.5rem;
    margin-bottom: 0;
    background-color: #ffffff;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: countriesLoop 25s linear infinite;
    width: max-content;
    /*lo he puesto yo*/
}


.marquee-inner span {
    font-size: 0.95rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #111111;
    display: inline-block;
}

.countries-marquee {
    mask-image: linear-gradient(to right,
            transparent,
            black 8%,
            black 92%,
            transparent);
}

@keyframes countriesLoop {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   11. MAPA INTERACTIVO
   ========================================================================== */
.about-global-map {
    padding: 5vh var(--page-margin) 10vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5vw;
}

.map-section-header {
    flex: 0 0 12%;
    padding: 0;
    display: block;
}

.map-section-header h3 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 200;
    text-transform: uppercase;
    line-height: 1.1;
    color: #111;
    margin: 1.5rem 0 0;
    text-align: left;
}

.world-map-container {
    flex: 1;
    position: relative;
    background-color: #ffffff;
    overflow: visible;
    border: none;
    border-radius: 4px;
    padding: 0;
    box-shadow: none;
}

#world-map {
    width: 100%;
    display: block;
    overflow: hidden;
    max-height: 32vw;
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
        radial-gradient(ellipse at top left, transparent 0%, black 25%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
        radial-gradient(ellipse at top left, transparent 0%, black 25%);
    mask-composite: intersect;
}

#world-map svg {
    display: block;
}

.map-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-wrapper .social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.map-wrapper .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-wrapper .social-links img {
    filter: brightness(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.map-wrapper .social-links a:hover img {
    opacity: 0.6;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .map-wrapper .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .map-wrapper .social-links img {
        width: 28px;
        height: 28px;
    }
}

.map-popup {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e8e4de;
    padding: 2rem 1.8rem 1.8rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, left 0.35s cubic-bezier(0.25, 1, 0.5, 1), top 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.map-popup.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.map-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s;
}

.map-popup-close:hover {
    color: #111;
}

.map-popup-tag {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.6rem;
}

.marker-label-bg {
    fill: #111111;
    stroke: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.marker-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    fill: #ffffff;
    pointer-events: none;
}

.map-popup-title {
    color: #111;
    margin: 0 0 1rem;
}

.map-popup-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #666;
    font-weight: 300;
    margin: 0 0 1.5rem;
}

.map-popup-link {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.map-popup-link:hover {
    color: #666;
    border-color: #666;
}

@media (max-width: 992px) {
    .about-global-map {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 3rem !important;
    }

    .map-section-header {
        flex: none !important;
        width: 100% !important;
    }

    .map-wrapper {
        width: 100% !important;
    }

    .world-map-container {
        width: 100% !important;
    }

    #world-map {
        width: 100% !important;
    }

    .map-popup {
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        bottom: 1rem !important;
    }
}

/* ==========================================================================
   12. TEXTO PREVIO EQUIPO
   ========================================================================== */



/* ==========================================================================
   13. EQUIPO
   ========================================================================== */
.about-team {
    padding: 10vh var(--page-margin);
    background-color: #f9f8f5;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.team-header h2 {
    color: #111;
    margin: 0;
}

/* Filtros de departamento */
.team-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.team-filter-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #888;
    padding: 0.5rem 1.4rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.team-filter-btn:hover {
    border-color: #111;
    color: #111;
}

.team-filter-btn.is-active {
    background: #111;
    border-color: #111;
    color: #ffffff;
}

/* Filtrado de tarjetas por departamento */
.team-card.is-hidden {
    display: none;
}

.team-card {
    transition: opacity 0.3s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.team-card {
    position: relative;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    perspective: 1200px;
    min-width: 0;
}

.team-card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.4, 1.25);
    transform-style: preserve-3d;
}

.team-card.is-flipped .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.team-card-front {
    background-color: #e0e0e0;
}

.team-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.team-card:hover .team-card-front img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.team-card:hover .team-card-info {
    opacity: 1;
    transform: translateY(0);
}

.team-card-name {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    display: block;
}

.team-card-role {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4c8b8;
    display: block;
    margin-top: 0.3rem;
}

.team-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-placeholder span {
    font-size: 4rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.team-card-back {
    background-color: #111111;
    color: #ffffff;
    transform: rotateY(180deg);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card-back .back-name {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.team-card-back .back-role {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4c8b8;
    margin-bottom: 1.5rem;
}

.team-card-back .back-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aaa;
    font-weight: 300;
}

/* Dropdown select wrapper reset for desktop/tablet */
.team-filter-mobile-wrapper {
    display: none;
}

/* ==========================================================================
   14. VENTANA EMERGENTE EQUIPO (MODAL)
   ========================================================================== */
.team-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: fadeInModal 0.3s forwards;
}

.team-modal-overlay.fade-out {
    animation: fadeOutModal 0.3s forwards;
}

.team-modal-card {
    background-color: #ffffff;
    color: #111111;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 85vh;
    max-height: 85dvh;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #111111;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.2s;
}

.team-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.team-modal-img-container {
    width: 140px;
    aspect-ratio: 3 / 4;
    margin: 2rem auto 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
}

.team-modal-info {
    padding: 1.5rem 1.5rem;
    overflow-y: auto;
    text-align: center;
}

.team-modal-info h3 {
    font-size: 1.4rem !important;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111111;
    margin-bottom: 0.5rem;
    text-align: center !important;
}

.team-modal-info h6 {
    font-size: 0.75rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #88786a;
    margin-bottom: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center !important;
}

.team-modal-info p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    color: #555555;
    font-weight: 300;
    text-align: justify;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOutModal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ─── MOBILE LANDSCAPE (Horizontal) ────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .about-hero {
        min-height: 400px !important;
        padding-top: 100px !important;
    }


}