/* =========================================================
   SEEI STUDIO — PÁGINA DE INSTRUCTORES
========================================================= */

.instructors-hero{
    position:relative;
    min-height:650px;
    padding:calc(var(--header-height) + 80px) 8% 90px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    color:#fff;
    background:
        linear-gradient(115deg,rgba(26,42,56,.86),rgba(26,42,56,.28)),
        url('../assets/images/instructores/instructores-hero.jpg') center/cover no-repeat;
    text-align:center;
}

.instructors-hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 75% 28%,rgba(160,176,151,.3),transparent 34%),
        linear-gradient(180deg,transparent 58%,rgba(18,30,40,.24));
}

.instructors-hero-content{
    position:relative;
    z-index:1;
    width:min(780px,100%);
}

.instructors-hero h1{
    margin:14px 0 18px;
    font-size:clamp(4rem,9vw,7.4rem);
    font-weight:300;
    line-height:.95;
    letter-spacing:-4px;
}

.instructors-hero p{
    width:min(650px,100%);
    margin-inline:auto;
    color:rgba(255,255,255,.9);
    font-size:1.05rem;
    line-height:1.8;
}

.instructors-hero-link{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:34px;
    color:#fff;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:2px;
    text-decoration:none;
}

.instructors-hero-link span{
    font-size:1.25rem;
    transition:transform .25s ease;
}

.instructors-hero-link:hover span{
    transform:translateY(4px);
}

.instructors-lead{
    width:min(700px,100%);
    margin:16px auto 0;
    color:var(--text);
    line-height:1.8;
}

.instructors-list{
    padding:10px 5% 110px;
    background:var(--light);
}

.instructor-profile{
    width:min(1380px,100%);
    margin:0 auto 72px;
    display:grid;
    grid-template-columns:minmax(340px,.95fr) minmax(0,1.05fr);
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:34px;
    background:#fff;
    box-shadow:var(--shadow);
}

.instructor-profile.reverse{
    grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
}

.instructor-profile.reverse .instructor-photo-wrap{
    order:2;
}

.instructor-profile.reverse .instructor-info{
    order:1;
}

.instructor-photo-wrap{
    position:relative;
    min-height:650px;
    overflow:hidden;
    background:#dce4e6;
}

.instructor-photo-wrap img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

.instructor-profile:hover .instructor-photo-wrap img{
    transform:scale(1.035);
}

.instructor-number{
    position:absolute;
    top:24px;
    left:24px;
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:var(--dark);
    background:rgba(255,255,255,.92);
    font-size:.86rem;
    font-weight:600;
    letter-spacing:1px;
    box-shadow:0 10px 28px rgba(0,0,0,.14);
}

.instructor-info{
    padding:clamp(44px,6vw,86px);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.instructor-kicker{
    color:var(--secondary);
    font-size:.72rem;
    font-weight:600;
    letter-spacing:2.5px;
}

.instructor-info h2{
    margin:12px 0 8px;
    font-size:clamp(3rem,5vw,5rem);
    line-height:1;
}

.instructor-info h3{
    margin:0 0 24px;
    color:var(--primary);
    font-size:1.05rem;
    font-weight:500;
}

.instructor-info > p{
    color:var(--text);
    line-height:1.85;
}

.instructor-stats{
    margin-top:30px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.instructor-stats div{
    padding-top:16px;
    border-top:1px solid var(--border);
}

.instructor-stats span{
    display:block;
    margin-bottom:6px;
    color:#829378;
    font-size:.7rem;
    font-weight:600;
    letter-spacing:1.3px;
    text-transform:uppercase;
}

.instructor-stats strong{
    color:var(--dark);
    font-size:.92rem;
}

.instructor-specialties{
    margin-top:28px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.instructor-specialties span{
    padding:9px 14px;
    border:1px solid var(--border);
    border-radius:999px;
    color:var(--dark);
    background:#f7f9f8;
    font-size:.78rem;
}

.instructor-classes-btn{
    align-self:flex-start;
    min-height:50px;
    margin-top:34px;
    padding:13px 26px;
    border:1px solid var(--primary);
    border-radius:999px;
    color:#fff;
    background:var(--primary);
    font:inherit;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:1px;
    cursor:pointer;
    transition:transform .25s ease,background .25s ease;
}

.instructor-classes-btn:hover{
    transform:translateY(-3px);
    background:var(--secondary);
}

.instructors-cta{
    padding:0 5% 100px;
}

.instructors-cta-content{
    width:min(1380px,100%);
    margin-inline:auto;
    padding:80px 30px;
    border-radius:32px;
    color:#fff;
    background:
        linear-gradient(120deg,rgba(36,54,72,.95),rgba(103,127,155,.88)),
        url('../assets/images/instructores/instructores-hero.jpg') center/cover no-repeat;
    text-align:center;
}

.instructors-cta-content h2{
    margin:12px 0 16px;
    font-size:clamp(2.2rem,4vw,3.8rem);
}

.instructors-cta-content p{
    width:min(680px,100%);
    margin-inline:auto;
    color:rgba(255,255,255,.86);
    line-height:1.8;
}

.instructors-cta-actions{
    margin-top:30px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

.instructors-cta-actions a{
    min-height:50px;
    padding:13px 26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.78);
    border-radius:999px;
    color:#fff;
    font-size:.8rem;
    font-weight:600;
    letter-spacing:1px;
    text-decoration:none;
    transition:transform .25s ease,background .25s ease,color .25s ease;
}

.instructors-cta-actions a:hover{
    color:var(--dark);
    background:#fff;
    transform:translateY(-3px);
}

/* MODAL */

.instructor-modal{
    position:fixed;
    inset:0;
    z-index:7000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease,visibility .25s ease;
}

.instructor-modal.active{
    opacity:1;
    visibility:visible;
}

.instructor-modal-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    background:rgba(13,23,32,.9);
    backdrop-filter:blur(8px);
    cursor:pointer;
}

.instructor-modal-dialog{
    position:relative;
    z-index:1;
    width:min(760px,100%);
    max-height:calc(100dvh - 42px);
    overflow:auto;
    padding:34px;
    border-radius:28px;
    background:#fff;
    box-shadow:0 30px 80px rgba(0,0,0,.4);
    transform:translateY(18px) scale(.98);
    transition:transform .25s ease;
}

.instructor-modal.active .instructor-modal-dialog{
    transform:translateY(0) scale(1);
}

.instructor-modal-close{
    position:absolute;
    top:16px;
    right:16px;
    z-index:2;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    color:var(--dark);
    background:#eef2f2;
    font-size:1.8rem;
    cursor:pointer;
}

.instructor-modal-header{
    padding-right:54px;
    display:flex;
    align-items:center;
    gap:22px;
}

.instructor-modal-header img{
    width:112px;
    height:112px;
    border-radius:24px;
    object-fit:cover;
}

.instructor-modal-header span{
    color:var(--secondary);
    font-size:.72rem;
    font-weight:600;
    letter-spacing:1.8px;
    text-transform:uppercase;
}

.instructor-modal-header h2{
    margin:6px 0;
    font-size:2.3rem;
}

.instructor-modal-header p{
    color:var(--text);
    font-size:.86rem;
}

.instructor-modal-bio{
    margin:26px 0;
    color:var(--text);
    line-height:1.75;
}

.instructor-modal-classes{
    display:grid;
    gap:12px;
}

.instructor-modal-class{
    padding:18px 20px;
    display:grid;
    grid-template-columns:1.2fr 1fr auto;
    align-items:center;
    gap:16px;
    border:1px solid var(--border);
    border-radius:18px;
    background:#f8faf9;
}

.instructor-modal-class strong{
    color:var(--dark);
}

.instructor-modal-class span{
    color:var(--text);
    font-size:.84rem;
}

.instructor-modal-class em{
    color:var(--secondary);
    font-size:.78rem;
    font-style:normal;
    font-weight:600;
}

.instructor-modal-reserve{
    min-height:50px;
    margin-top:26px;
    padding:13px 26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    color:#fff;
    background:var(--primary);
    font-size:.8rem;
    font-weight:600;
    letter-spacing:1px;
    text-decoration:none;
}

body.instructor-modal-open{
    overflow:hidden;
}

/* REVEAL */

.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .7s ease,transform .7s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

@media (max-width:1000px){

    .instructor-profile,
    .instructor-profile.reverse{
        grid-template-columns:1fr;
    }

    .instructor-profile.reverse .instructor-photo-wrap,
    .instructor-profile.reverse .instructor-info{
        order:initial;
    }

    .instructor-photo-wrap{
        min-height:560px;
    }
}

@media (max-width:650px){

    .instructors-hero{
        min-height:520px;
        padding:calc(var(--header-height) + 55px) 18px 60px;
    }

    .instructors-hero h1{
        font-size:clamp(3.5rem,17vw,5.1rem);
        letter-spacing:-3px;
    }

    .instructors-hero p{
        font-size:.94rem;
    }

    .instructors-list{
        padding:0 16px 68px;
    }

    .instructor-profile{
        margin-bottom:30px;
        border-radius:24px;
    }

    .instructor-photo-wrap{
        min-height:0;
        aspect-ratio:4 / 5;
    }

    .instructor-number{
        top:16px;
        left:16px;
        width:54px;
        height:54px;
    }

    .instructor-info{
        padding:34px 22px 38px;
    }

    .instructor-info h2{
        font-size:3rem;
    }

    .instructor-stats{
        grid-template-columns:1fr;
    }

    .instructor-classes-btn{
        width:100%;
    }

    .instructors-cta{
        padding:0 16px 64px;
    }

    .instructors-cta-content{
        padding:56px 22px;
        border-radius:24px;
    }

    .instructors-cta-actions{
        flex-direction:column;
    }

    .instructors-cta-actions a{
        width:100%;
    }

    .instructor-modal{
        padding:12px;
    }

    .instructor-modal-dialog{
        padding:24px 18px;
        border-radius:22px;
    }

    .instructor-modal-header{
        padding-right:40px;
        align-items:flex-start;
        flex-direction:column;
    }

    .instructor-modal-header img{
        width:96px;
        height:96px;
    }

    .instructor-modal-class{
        grid-template-columns:1fr;
        gap:6px;
    }

    .instructor-modal-reserve{
        width:100%;
    }
}

/* v2.3.1: tarjetas más compactas e imágenes completas */
.instructor-profile{
    width:min(1120px,100%);
    margin-bottom:46px;
    grid-template-columns:minmax(280px,420px) minmax(0,1fr);
    border-radius:26px;
}
.instructor-profile.reverse{
    grid-template-columns:minmax(0,1fr) minmax(280px,420px);
}
.instructor-photo-wrap{
    min-height:460px;
    max-height:540px;
    background:#eef2f0;
}
.instructor-photo-wrap img{
    object-fit:contain;
    object-position:center;
}
.instructor-info{
    padding:clamp(34px,4.5vw,62px);
}
.instructor-info h2{
    font-size:clamp(2.5rem,4vw,4rem);
}
@media(max-width:800px){
    .instructor-profile,
    .instructor-profile.reverse{grid-template-columns:1fr;}
    .instructor-profile.reverse .instructor-photo-wrap,
    .instructor-profile.reverse .instructor-info{order:initial;}
    .instructor-photo-wrap{min-height:360px;max-height:480px;}
}
