/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #005C63;
    --primary-dark: #003F44;

    --blue: #1E85AE;

    --accent: #F2C230;
    --accent-hover: #FFD84D;

    --dark: #1A1A1A;
    --dark-soft: #242424;

    --white: #FFFFFF;
    --gray: #F2F2F2;
    --gray-2: #E8E8E8;
    --text-muted: #6B7074;

    --radius: 24px;
    --radius-small: 14px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, .14);

    --transition:
        .35s cubic-bezier(.2,.7,.2,1);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    transition: var(--transition);
}

.header.scrolled {
    background: rgba(13, 20, 21, .94);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.nav {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 5px;
}

.logo img {
    display: block;
    width: 150px;
    height: auto;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,.86);
    font-size: .88rem;
    font-weight: 600;
    transition: .25s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-header {
    padding: 13px 22px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white) !important;
}

.btn-header:hover {
    background: var(--accent);
    color: var(--dark) !important;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 820px;

    display: flex;
    align-items: center;

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(6,16,17,.97) 0%,
            rgba(5,29,31,.92) 45%,
            rgba(0,92,99,.62) 100%
        ),
        url('assets/mentoria-bg.jpg')
        center center / cover no-repeat;

    overflow: hidden;
}

.hero::after {
    content: '';

    position: absolute;
    inset: auto 0 0 0;

    height: 7px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            #ffd746,
            var(--accent)
        );
}

.hero-glow {
    position: absolute;

    width: 620px;
    height: 620px;

    right: -250px;
    top: 110px;

    border-radius: 50%;

    background:
        rgba(30, 133, 174, .25);

    filter: blur(80px);

    animation: glow 7s ease-in-out infinite alternate;
}

@keyframes glow {

    from {
        transform: scale(.85) translateY(-20px);
    }

    to {
        transform: scale(1.12) translateY(20px);
    }

}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;

    padding-top: 110px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--accent);

    font-weight: 700;
    letter-spacing: 4px;

    margin-bottom: 20px;

    opacity: 0;

    animation:
        heroUp .8s ease forwards .2s;
}

.hero-kicker::before {
    content: '';

    width: 40px;
    height: 2px;

    background: var(--accent);
}

.hero h1 {
    font-size:
        clamp(3.4rem, 8vw, 7.4rem);

    line-height: .86;

    text-transform: uppercase;
    letter-spacing: -5px;

    font-weight: 900;

    opacity: 0;

    animation:
        heroUp .9s ease forwards .35s;
}

.hero h1 span {
    display: block;

    margin-top: 25px;

    font-size:
        clamp(1.3rem, 3vw, 2.35rem);

    letter-spacing:
        clamp(8px, 1.5vw, 18px);

    color: var(--accent);
}

.hero-description {
    max-width: 680px;

    margin-top: 35px;

    color: rgba(255,255,255,.82);

    font-size: 1.1rem;
    line-height: 1.8;

    opacity: 0;

    animation:
        heroUp .9s ease forwards .5s;
}


/* =========================================================
   ACCIONES HERO
========================================================= */

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;

    margin-top: 35px;

    opacity: 0;

    animation:
        heroUp .9s ease forwards .65s;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 56px;

    padding: 0 30px;

    border-radius: 12px;

    font-weight: 800;

    transition: var(--transition);

    cursor: pointer;

    border: none;
}

.btn-primary {
    color: var(--dark);

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #ffd746
        );

    box-shadow:
        0 15px 35px rgba(242,194,48,.24);
}

.btn-primary:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 40px rgba(242,194,48,.35);
}

.btn-outline {
    color: var(--white);

    border:
        1px solid rgba(255,255,255,.35);

    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
}


/* Botón tutoriales */

.btn-tutorial {
    gap: 9px;

    color: rgba(255,255,255,.92);

    border:
        1px solid rgba(242,194,48,.55);

    background:
        rgba(242,194,48,.08);

    backdrop-filter: blur(10px);
}

.btn-tutorial:hover {
    color: var(--accent);

    background:
        rgba(242,194,48,.14);

    border-color: var(--accent);

    transform: translateY(-3px);
}

.btn-tutorial-icon {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    flex: 0 0 25px;

    border-radius: 50%;

    background: var(--accent);

    color: var(--dark);

    font-size: .62rem;

    padding-left: 2px;
}


@keyframes heroUp {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   DATOS HERO
========================================================= */

.hero-stats {
    margin-top: 55px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    opacity: 0;

    animation:
        heroUp .9s ease forwards .85s;
}

.stat {
    min-height: 110px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.07);

    backdrop-filter: blur(10px);

    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-8px);

    background:
        rgba(0,92,99,.35);

    border-color:
        rgba(242,194,48,.4);
}

.stat-icon {
    min-width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--primary);

    font-size: 1.25rem;
}

.stat strong {
    display: block;

    margin-bottom: 4px;

    font-size: .9rem;
}

.stat small {
    color:
        rgba(255,255,255,.7);

    line-height: 1.5;
}


/* =========================================================
   GENERALES
========================================================= */

.section {
    padding: 105px 0;
}

.section-title {
    text-align: center;

    max-width: 760px;

    margin: 0 auto 60px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: .85rem;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.section-title h2 {
    font-size:
        clamp(2rem, 5vw, 3.6rem);

    line-height: 1.08;

    font-weight: 900;

    letter-spacing: -2px;
}

.section-title p {
    margin-top: 18px;

    color: var(--text-muted);

    line-height: 1.8;
}


/* =========================================================
   BENEFICIOS
========================================================= */

.benefits {
    background: var(--gray);
}

.benefit-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.benefit-card {
    position: relative;

    padding: 40px 30px;

    border-radius: var(--radius);

    background: var(--white);

    overflow: hidden;

    transition: var(--transition);
}

.benefit-card::after {
    content: '';

    position: absolute;

    width: 120px;
    height: 120px;

    right: -60px;
    top: -60px;

    border-radius: 50%;

    background:
        rgba(0,92,99,.08);

    transition: .45s;
}

.benefit-card:hover {
    transform: translateY(-10px);

    box-shadow: var(--shadow);
}

.benefit-card:hover::after {
    transform: scale(2.3);
}

.benefit-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--blue)
        );

    color: var(--white);

    font-size: 1.8rem;
}

.benefit-card h3 {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--text-muted);

    line-height: 1.75;
}


/* =========================================================
   MISIÓN
========================================================= */

.mission {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--white);
}

.mission-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.mission-copy h2 {
    font-size:
        clamp(2.2rem, 5vw, 4rem);

    line-height: 1.05;

    margin-bottom: 25px;
}

.mission-copy h2 span {
    color: var(--accent);
}

.mission-copy p {
    font-size: 1.05rem;

    color:
        rgba(255,255,255,.76);

    line-height: 1.9;
}

.mission-box {
    padding: 45px;

    border-radius: var(--radius);

    background:
        rgba(255,255,255,.08);

    border:
        1px solid rgba(255,255,255,.12);

    backdrop-filter: blur(12px);
}

.mission-box h3 {
    color: var(--accent);

    margin-bottom: 18px;
}

.mission-box p {
    color: rgba(255,255,255,.78);

    line-height: 1.8;
}


/* =========================================================
   RUTA
========================================================= */

.route {
    background: var(--white);
}

.route-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px;
}

.route-item {
    padding: 22px 25px;

    display: flex;
    align-items: center;

    gap: 20px;

    background: var(--gray);

    border-radius: 15px;

    transition: var(--transition);
}

.route-number {
    min-width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--accent);

    color: var(--dark);

    font-weight: 900;
}

.route-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    min-width: 0;

    flex: 1;
}

.route-title {
    display: block;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;

    color: var(--dark);
}

.route-speaker {
    display: block;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;

    color: var(--text-muted);
}


/* =========================================================
   FOTOGRAFÍAS DE EXPOSITORES
========================================================= */

.route-photo-wrapper {
    flex: 0 0 auto;

    margin-left: auto;
}

.route-photo {
    width: 78px;
    height: 78px;

    border-radius: 50%;

    object-fit: cover;
    object-position: center top;

    border: 3px solid #FFFFFF;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .12);

    background: var(--primary-dark);
}


/* APERTURA */

.route-opening {
    width: 100%;
}

.route-opening-number {
    min-width: 130px;
}

.route-speakers-photos {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-left: auto;
}

.route-opening .route-photo {
    width: 88px;
    height: 88px;
}


/* =========================================================
   REGISTRO
========================================================= */

.registration {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #003f44,
            #00747c
        );

    color: var(--white);

    overflow: hidden;
}

.registration::before {
    content: '';

    position: absolute;

    width: 500px;
    height: 500px;

    top: -300px;
    right: -150px;

    border-radius: 50%;

    background:
        rgba(30,133,174,.3);

    filter: blur(40px);
}

.registration-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    gap: 60px;

    align-items: start;
}

.form-card {
    padding: 45px;

    border-radius: var(--radius);

    background: var(--white);

    color: var(--dark);

    box-shadow: var(--shadow);
}

.form-card h2 {
    font-size: 2.2rem;

    margin-bottom: 8px;
}

.form-card > p {
    color: var(--text-muted);

    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: .82rem;
    font-weight: 700;
}

.form-control {
    width: 100%;

    padding: 16px 17px;

    border-radius: 11px;

    border:
        1px solid #D8DDDE;

    background: #FAFBFB;

    outline: none;

    transition: .25s;
}

.form-control:focus {
    border-color: var(--primary);

    background: var(--white);

    box-shadow:
        0 0 0 4px rgba(0,92,99,.10);
}

textarea.form-control {
    min-height: 120px;

    resize: vertical;
}

select.form-control {
    width: 100%;

    cursor: pointer;

    appearance: auto;
}

select.form-control:disabled {
    cursor: not-allowed;

    opacity: 0.65;

    background-color: #f5f5f5;
}

#seccion-status {
    display: block;

    margin-top: 6px;

    font-size: .82rem;

    color: #666;
}

.checkbox {
    display: flex;
    gap: 10px;

    margin: 18px 0 24px;

    font-size: .78rem;

    color: var(--text-muted);

    line-height: 1.5;
}

.btn-form {
    width: 100%;

    font-size: 1rem;
}

.form-message {
    padding: 15px;

    margin-bottom: 20px;

    border-radius: 12px;

    font-size: .9rem;
}

.form-message.success {
    background: #E8F7ED;

    color: #176A35;
}

.form-message.error {
    background: #FFEAEA;

    color: #9C2929;
}

.hp-field {
    position: absolute !important;

    left: -9999px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   INFO REGISTRO
========================================================= */

.info-panel {
    padding-top: 30px;
}

.info-panel h3 {
    color: var(--accent);

    font-size: 1.8rem;

    margin-bottom: 25px;
}

.info-row {
    display: flex;

    gap: 18px;

    padding: 22px 0;

    border-bottom:
        1px solid rgba(255,255,255,.13);
}

.info-icon {
    min-width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.1);
}

.info-row strong {
    display: block;

    margin-bottom: 6px;
}

.info-row span {
    color:
        rgba(255,255,255,.7);

    line-height: 1.5;
}


/* =========================================================
   GUÍAS Y TUTORIALES
========================================================= */

.tutorials {
    position: relative;

    background:
        linear-gradient(
            180deg,
            #F6F8F8 0%,
            #FFFFFF 100%
        );

    overflow: hidden;
}

.tutorials::before {
    content: '';

    position: absolute;

    width: 420px;
    height: 420px;

    left: -260px;
    bottom: -240px;

    border-radius: 50%;

    background:
        rgba(0, 92, 99, .07);
}

.tutorials .container {
    position: relative;

    z-index: 2;
}

.tutorials .section-title {
    margin-bottom: 45px;
}

.tutorial-grid {
    width: 100%;

    max-width: 1000px;

    margin-inline: auto;
}


/* =========================================================
   TARJETA TUTORIAL
========================================================= */

.tutorial-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(310px, .85fr);

    overflow: hidden;

    border-radius: var(--radius);

    background: var(--white);

    border:
        1px solid rgba(0, 92, 99, .10);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .10);
}


/* =========================================================
   VIDEO TUTORIAL
========================================================= */

.tutorial-video {
    display: flex;
    align-items: center;
    justify-content: center;
   
    min-width: 0;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #071819,
            #003F44
        );
}

.tutorial-video video {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: contain;

    border-radius: 14px;

    background: #000;

    box-shadow:
        0 10px 30px rgba(0,0,0,.24);
}


/* =========================================================
   CONTENIDO TUTORIAL
========================================================= */

.tutorial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 44px 40px;
}

.tutorial-number {
    display: inline-flex;

    width: fit-content;

    margin-bottom: 16px;

    padding: 7px 12px;

    border-radius: 8px;

    background:
        rgba(242, 194, 48, .20);

    color: #755900;

    font-size: .7rem;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.tutorial-content h3 {
    margin-bottom: 15px;

    color: var(--primary-dark);

    font-size: 1.7rem;
    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -.5px;
}

.tutorial-content p {
    margin-bottom: 28px;

    color: var(--text-muted);

    font-size: .92rem;

    line-height: 1.8;
}


/* =========================================================
   CTA TUTORIAL
========================================================= */

.tutorial-action {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: fit-content;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #FFD746
        );

    color: var(--dark);

    font-size: .8rem;
    font-weight: 800;

    transition: var(--transition);

    box-shadow:
        0 10px 25px rgba(242,194,48,.20);
}

.tutorial-action:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            135deg,
            var(--accent-hover),
            #FFE477
        );

    box-shadow:
        0 14px 30px rgba(242,194,48,.30);
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-strip {
    background: var(--accent);

    padding: 35px 0;
}

.contact-strip-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.contact-strip h3 {
    font-size: 1.45rem;
}

.whatsapp-button {
    display: inline-flex;

    align-items: center;
    gap: 10px;

    padding: 15px 24px;

    border-radius: 10px;

    background: var(--dark);

    color: var(--white);

    font-weight: 800;

    transition: var(--transition);
}

.whatsapp-button:hover {
    transform: translateY(-4px);

    background: var(--primary);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 65px 0 30px;

    background: var(--dark);

    color: var(--white);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr 1fr 1fr;

    gap: 50px;
}

.footer h4 {
    color: var(--accent);

    margin-bottom: 18px;
}

.footer p,
.footer a {
    color:
        rgba(255,255,255,.66);

    line-height: 1.9;

    font-size: .9rem;
}

.footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 50px;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,.1);

    color:
        rgba(255,255,255,.45);

    font-size: .78rem;
}


/* =========================================================
   ANIMACIÓN AL HACER SCROLL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}

.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}


/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
========================================================= */

.float-whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #25D366;

    color: var(--white);

    font-size: 1.6rem;

    box-shadow:
        0 12px 30px rgba(0,0,0,.25);

    animation:
        whatsappPulse 2.3s infinite;
}

@keyframes whatsappPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(37,211,102,.4);
    }

    70% {
        box-shadow:
            0 0 0 18px rgba(37,211,102,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(37,211,102,0);
    }

}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 980px) {

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;

        padding: 100px 0 80px;
    }

    .hero-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .registration-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-card {
        grid-template-columns: 1fr;
    }

    .tutorial-video {
        padding: 16px;
    }

    .tutorial-content {
        padding: 34px 32px 38px;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE MÓVIL
========================================================= */

@media (max-width: 650px) {

    .container {
        width:
            min(100% - 28px, 1180px);
    }

    .hero {
        padding-top: 125px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero h1 span {
        letter-spacing: 6px;
    }

    .logo-dec {
        top: 10px !important;
        right: 0 !important;
    }

    .logo-dec img {
        width: 190px !important;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .route-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 0;
    }

    .form-card {
        padding: 28px 20px;
    }

    .tutorials .section-title {
        margin-bottom: 30px;
    }

    .tutorial-video {
        padding: 10px;
    }

    .tutorial-video video {
        border-radius: 10px;
    }

    .tutorial-content {
        padding: 27px 22px 30px;
    }

    .tutorial-content h3 {
        font-size: 1.35rem;
    }

    .tutorial-content p {
        font-size: .88rem;
    }

    .tutorial-action {
        width: 100%;

        min-height: 52px;
    }

    .contact-strip-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .route-photo {
        width: 62px;
        height: 62px;
    }

    .route-opening .route-photo {
        width: 64px;
        height: 64px;
    }

    .route-speakers-photos {
        gap: 5px;
    }

    .route-opening-number {
        min-width: 90px;
    }

}


/* =========================================================
   APERTURA - CORRECCIÓN SOLO MÓVIL
========================================================= */

@media (max-width: 650px) {

    .route-opening {
        display: grid;

        grid-template-columns: auto 1fr;

        gap: 14px 12px;

        align-items: center;

        padding: 18px 16px;
    }

    .route-opening-number {
        min-width: 0;
        width: auto;
        height: auto;

        padding: 10px 12px;

        font-size: .78rem;
        line-height: 1;

        grid-column: 1;
        grid-row: 1;
    }

    .route-opening .route-content {
        grid-column: 2;
        grid-row: 1;

        min-width: 0;
    }

    .route-opening .route-title {
        font-size: .95rem;

        line-height: 1.3;
    }

    .route-opening .route-speaker {
        margin-top: 5px;

        font-size: .78rem;

        line-height: 1.45;
    }

    .route-opening .route-speakers-photos {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 12px;

        margin-left: 0;
        margin-top: 4px;
    }

    .route-opening .route-photo {
        width: 66px;
        height: 66px;

        flex: 0 0 66px;

        border-width: 2px;
    }

}

/* =========================================================
   SEMBLANZAS DE EXPONENTES
========================================================= */

.route-item-bio {
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.route-bio-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;

    color: #005C63;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.route-bio-hint::after {
    content: "→";
    transition: transform .2s ease;
}

.route-item-bio:hover .route-bio-hint::after {
    transform: translateX(4px);
}


/* PANEL */

.route-biography {
    position: absolute;

    z-index: 50;

    left: 50%;
    bottom: calc(100% + 14px);

    width: min(440px, calc(100vw - 40px));

    padding: 22px;

    background: #ffffff;

    border:
        1px solid
        rgba(0, 92, 99, .15);

    border-radius: 18px;

    box-shadow:
        0 24px 60px
        rgba(0, 45, 50, .18);

    color: #243438;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translate(-50%, 10px);

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}


/* FLECHA */

.route-biography::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -9px;

    width: 18px;
    height: 18px;

    background: #ffffff;

    border-right:
        1px solid
        rgba(0, 92, 99, .15);

    border-bottom:
        1px solid
        rgba(0, 92, 99, .15);

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* MOSTRAR EN HOVER / TECLADO */

@media (hover: hover) and (pointer: fine) {

    .route-item-bio:hover .route-biography,
    .route-item-bio:focus-within .route-biography {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translate(-50%, 0);
    }

}


/* ENCABEZADO */

.route-biography-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 14px;
}

.route-biography-photo {
    width: 58px;
    height: 58px;

    object-fit: cover;

    border-radius: 50%;

    background: #f2f5f5;
}

.route-biography-header small {
    display: block;

    margin-bottom: 3px;

    color: #879497;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.route-biography-header strong {
    display: block;

    color: #005C63;

    font-size: 16px;

    line-height: 1.25;
}

.route-biography p {
    margin: 0;

    color: #4e5d60;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   TABLET / MÓVIL
========================================================= */

@media (max-width: 768px) {

    .route-item-bio {
        overflow: hidden;
    }

    .route-biography {
        position: static;

        width: 100%;

        max-height: 0;

        padding: 0 18px;

        margin: 0;

        border: 0;

        border-radius: 0;

        box-shadow: none;

        opacity: 0;

        visibility: hidden;

        overflow: hidden;

        transform: none;

        transition:
            max-height .35s ease,
            opacity .25s ease,
            padding .35s ease,
            margin .35s ease;
    }


    .route-biography::after {
        display: none;
    }


    .route-item-bio.bio-open .route-biography {
        max-height: 900px;

        padding: 18px;

        margin-top: 16px;

        border-top:
            1px solid
            rgba(0, 92, 99, .12);

        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    .route-item-bio.bio-open .route-bio-hint::after {
        transform: rotate(90deg);
    }

}

.opening-speaker {
    position: relative;
    cursor: pointer;
}

.opening-speaker-bio {
    position: absolute;

    right: 0;
    bottom: calc(100% + 14px);

    z-index: 60;

    width: min(390px, calc(100vw - 40px));

    padding: 20px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 22px 55px
        rgba(0, 45, 50, .20);

    opacity: 0;

    visibility: hidden;

    transform: translateY(8px);

    transition: .22s ease;
}

.opening-speaker-bio strong {
    display: block;

    margin-bottom: 9px;

    color: #005C63;

    font-size: 16px;
}

.opening-speaker-bio p {
    margin: 0;

    color: #4e5d60;

    font-size: 13px;

    line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {

    .opening-speaker:hover
    .opening-speaker-bio {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

}


/* =========================================================
   FIX RUTA FORMATIVA - MOBILE
========================================================= */

@media (max-width: 768px) {

    .route-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .route-item,
    .route-opening {
        display: grid;

        grid-template-columns: 58px 1fr;
        grid-template-areas:
            "number content"
            "photo content"
            "bio bio";

        column-gap: 16px;
        row-gap: 10px;

        width: 100%;
        min-width: 0;

        padding: 22px 18px;

        align-items: start;

        overflow: hidden;
    }


    /* NÚMERO DE SESIÓN */

    .route-number {
        grid-area: number;

        width: 54px;
        min-width: 54px;
        height: 54px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0;

        font-size: 15px;
        line-height: 1;

        border-radius: 15px;
    }


    /* APERTURA */

    .route-opening-number {
        width: auto;
        min-width: 54px;

        padding: 0 10px;

        font-size: 11px;
    }


    /* CONTENIDO */

    .route-content {
        grid-area: content;

        width: 100%;
        min-width: 0;

        padding: 0;
        margin: 0;
    }


    .route-title {
        display: block;

        width: 100%;

        margin: 0 0 8px;

        font-size: 17px;
        line-height: 1.28;

        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }


    .route-speaker {
        display: block;

        width: 100%;

        font-size: 14px;
        line-height: 1.4;

        word-break: normal;
        overflow-wrap: break-word;
    }


    .route-bio-hint {
        display: inline-flex;

        margin-top: 10px;

        font-size: 11px;
        line-height: 1.2;
    }


    /* FOTO */

    .route-photo-wrapper {
        grid-area: photo;

        position: static;

        width: 54px;
        height: 54px;

        margin: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }


    .route-photo {
        width: 54px;
        height: 54px;

        min-width: 54px;

        object-fit: cover;

        border-radius: 50%;

        display: block;
    }


    /* SEMBLANZA */

    .route-biography {
        grid-area: bio;

        position: static;

        width: 100%;
        min-width: 0;

        max-height: 0;

        padding: 0;
        margin: 0;

        opacity: 0;
        visibility: hidden;

        overflow: hidden;

        transform: none;

        border: 0;
        box-shadow: none;

        transition:
            max-height .35s ease,
            opacity .25s ease,
            padding .35s ease,
            margin .35s ease;
    }


    .route-item.bio-open .route-biography {
        max-height: 1200px;

        margin-top: 10px;
        padding-top: 18px;

        opacity: 1;
        visibility: visible;

        border-top:
            1px solid rgba(0, 92, 99, .12);
    }


    .route-biography::after {
        display: none;
    }


    .route-biography-header {
        display: flex;
        align-items: center;

        gap: 12px;

        margin-bottom: 12px;
    }


    .route-biography-photo {
        width: 50px;
        height: 50px;

        min-width: 50px;

        object-fit: cover;
        border-radius: 50%;
    }


    .route-biography p {
        font-size: 13px;
        line-height: 1.6;
    }


    /* APERTURA CON DOS FOTOS */

    .route-speakers-photos {
        grid-area: photo;

        position: static;

        display: flex;
        flex-wrap: wrap;

        gap: 5px;

        width: auto;

        margin: 0;
    }

    .route-speakers-photos .route-photo {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

}