* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-r: 37 99 235;
    --primary-dark: #081a57;
    --accent: #ff4800;
    --accent-r: 255 102 0;
    --bg-100: #f8fbff;
    --bg-200: #f6f9fd;
    --surface: #ffffff;
    --surface-r: 255 255 255;
    --glass: rgba(255,255,255,0.46);
    --card-bg: rgba(255,255,255,0.92);
    --muted: #475569;
    --dark-r: 15 23 42;
}

body {
    font-family: 'Outfit', sans-serif;
    background: transparent;
    color: #111827;
    margin: 0;
    padding-top: 50px;
}

/* Fondo fijo a nivel de página para parallax */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('../images/index/banda2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0,0,0);
    pointer-events: none;
}

main {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 56px 24px 72px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.575), rgba(255,255,255,0.88));
}


#dnaCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.top-band {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin-left: 6vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--glass);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding: 22px 28px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.04);
}

.hero-content::before {
    content: "";
    width: 56px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), rgba(var(--primary-r), 0.18));
    margin-bottom: 24px;
    border-radius: 999px;
}

.hero-kicker {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4.4vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    line-height: 0.98;
    color: var(--primary-dark);
    max-width: 760px;
    margin: 0;
    text-wrap: balance;
}

.hero-subtitle {
    margin-top: 22px;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

.hero-btn-primary:hover {
    background: #1e293b;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.18);
}

/* ===== TITULOS DE SECCIÓN ===== */
.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-kicker {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--primary-dark);
    margin: 0;
}

/* ===== LINKS HOME ===== */
.home-links {
    padding: 72px 24px 84px;
    background: #ffffff;
}

.home-links-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 320px));
    justify-content: center;
    gap: 18px;
}

.home-link-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 26px 22px 24px;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.035);
}

.home-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    background: #fcfdff;
}

.home-link-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.home-link-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5b6576;
    margin: 0;
}

/* ===== TALENTO ===== */
.home-talent {
    padding: 76px 24px 90px;
    background: linear-gradient(to bottom, #f8fbff 0%, #ffffff 100%);
}

.talent-box {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.talent-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: #526071;
}

.talent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    background: #0f172a;
    color: #ffffff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.talent-btn:hover {
    transform: translateY(-1px);
    background: #1e293b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .home-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 115px;
        font-size: 16px;
        line-height: 1.6;
    }

    .hero {
        min-height: auto;
        padding: 34px 16px 48px;
        justify-content: center;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px 18px 22px;
    }

    .hero-content::before {
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        max-width: 100%;
        line-height: 1.02;
    }

    .hero-subtitle {
        margin-top: 18px;
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 75%;
    }

    .hero-btn {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-kicker {
        letter-spacing: 0.22em;
    }

    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        letter-spacing: 0.08em;
    }

    .home-links {
        padding: 52px 16px 56px;
    }

    .home-links-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-link-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .home-talent {
        padding: 56px 16px 64px;
    }

    .talent-box {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .talent-text {
        font-size: 0.98rem;
    }

    .talent-btn {
        width: 100%;
    }
}
.hero.hero-sequence {
    position: relative;
    width: 100%;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 56px 24px 72px;
    background-image: linear-gradient(rgba(167, 173, 255, 0.445), rgba(255, 255, 255, 0.473));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 30%, rgba(37, 100, 235, 0.06), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(37, 100, 235, 0.06), transparent 26%);
    pointer-events: none;
}

#dnaCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.hero-sequence-content {
    position: relative;
    z-index: 3;
    width: min(100%, 1180px);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-sequence-track {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sequence-step {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(8px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease,
        filter 0.9s ease;
    pointer-events: none;
}

.hero-sequence-step.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

.hero-sequence-step.is-exit {
    opacity: 0;
    transform: translateY(-18px) scale(0.992);
    filter: blur(10px);
}

.hero-sequence-kicker {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 18px;
}

.hero-sequence-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4.8vw, 4.8rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
    max-width: 980px;
    margin: 0;
    text-wrap: balance;
    text-shadow: 0 8px 24px rgba(255,255,255,0.18);
}

.hero-sequence-step--trust .hero-sequence-title {
    max-width: 880px;
}

.hero-sequence-logo-wrap {
    margin-top: 30px;
}

.hero-sequence-logo {
    display: block;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.14));
    transition:
        transform 1s ease,
        opacity 1s ease,
        filter 1s ease;
}

.hero-sequence-logo--medium {
    width: clamp(160px, 18vw, 260px);
    opacity: 0.96;
    transform: scale(1);
}

.hero-sequence-step--final .hero-sequence-logo--large {
    transition:
        opacity 1.2s ease,
        transform 1.2s ease,
        filter 1.2s ease;
    width: clamp(240px, 34vw, 500px);
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(0 24px 50px rgba(15, 23, 42, 0.16));
}

.hero-sequence-actions {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

.hero-btn-primary:hover {
    background: #1e293b;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.18);
}
@media (max-width: 768px) {
    .hero.hero-sequence {
        min-height: 72vh;
        padding: 28px 16px 88px;
        background-position: center;
    }

    .hero-sequence-content {
        min-height: 460px;
    }

    .hero-sequence-track {
        min-height: 260px;
    }

    .hero-sequence-title {
        font-size: clamp(1.5rem, 8vw, 2.4rem);
        line-height: 1.1;
        max-width: 100%;
    }

    .hero-sequence-kicker {
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        margin-bottom: 14px;
    }

    .hero-sequence-logo--medium {
        width: min(58vw, 220px);
    }

    .hero-sequence-step--final .hero-sequence-logo--large {
        width: min(72vw, 320px);
    }

    .hero-sequence-actions {
        width: calc(100% - 32px);
        bottom: -20%;
        gap: 10px;
        flex-direction: column;
    }

    .hero-btn {
        align-items: center;
        align-self:center;
        width: 50%;
    }
}
/* ===== EMPRESA ===== */
.company-section {
    position: relative;
    width: 100%;
    padding: 78px 24px 56px;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--surface) 0%, var(--bg-100) 100%);
}

.company-bg {
    position: absolute;
    inset: 0;
    background: url("../images/empresa/fondo.png") center/cover no-repeat;
    opacity: 0.16;
    z-index: 0;
}

.company-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
}

.company-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 100, 235, 0.08), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(37, 100, 235, 0.06), transparent 26%);
}

.company-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
}

.section-heading-left {
    text-align: center;
}

.section-title-left {
    text-align: center;
}

.about-heading {
    max-width: 820px;
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin-bottom: 56px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.14);
}

.partner-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #eef2f7;
    overflow: hidden;
}

.partner-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.35s ease;
}

.partner-item:hover .partner-photo {
    transform: scale(1.015);
}

.partner-info {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 10px;
}

.partner-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 12px;
}

.partner-line {
    width: 36px;
    height: 1px;
    background: rgba(15, 23, 42, 0.22);
    margin-bottom: 14px;
}


/* ===== MIEMBROS DE ===== */
.member-section {
    background: #ffffff;
    padding: 34px 24px 54px;
}

.member-container {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.member-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.member-logo:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* ===== BANDA EMPRESA ===== */
.company-band {
    width: 100%;
    padding: 56px 24px 70px;
    background: linear-gradient(135deg, #0f3f96 0%, #1d63cf 100%);
}

.company-band-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(1rem, 1.3vw, 1.08rem);
    line-height: 1.85;
    font-weight: 400;
}

.company-band-content p + p {
    margin-top: 18px;
}

/* ===== ANIMACIONES ===== */
.reveal-up,
.reveal-fade,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: opacity, transform;
}

.reveal-up {
    transform: translateY(35px);
}

.reveal-fade {
    transform: translateY(12px);
}

.reveal-scale {
    transform: translateY(20px) scale(0.96);
}

.reveal-up.is-visible,
.reveal-fade.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.18s;
}

.delay-3 {
    transition-delay: 0.28s;
}

.delay-4 {
    transition-delay: 0.38s;
}

/* ===== STORY SWITCH / QUIÉNES SOMOS + TIMELINE ===== */
.story-switch-section {
    position: relative;
    width: 100%;
    min-height: 590px;
    padding: 0;
    background: linear-gradient(to bottom, #fbfcff 0%, #f7f9fc 100%);
    overflow: hidden;
}

.story-switch-container {
    position: relative;
    width: 100%;
    min-height: 590px;
    overflow: hidden;

}

.story-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.985);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        visibility 0.55s ease;
}

.story-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.story-panel-inner {
    width: 100%;
    max-width: 1320px;
    min-height: 520px;
    margin: 0 auto;
    padding: 52px 36px 84px;
    bottom: 0;
}
/* ===== PANEL QUIÉNES SOMOS ===== */
.story-panel-about {
    background-image: url(../images/logo_sobre_pared.png);
    position: relative; /* contenedor posicionado para el ::before y el dropdown */
    background-size: cover; /* cubrir el área disponible */
    background-position: center right; /* imagen hacia la derecha para dejar texto a la izquierda */
    background-repeat: no-repeat;
    min-height: 520px;
}

.story-panel-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.18), transparent 35%, rgba(255,255,255,0.08) 68%, transparent 100%);
    pointer-events: none;
    z-index: 1; /* overlay debajo del contenido */
}

.story-panel-inner {
    position: relative;
    z-index: 2; /* asegurar que el contenido esté por encima del overlay */
}

.story-panel-inner-about {
    display: flex;
    align-items: center;
}

.about-split-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: center;
    gap: 72px;
    
}

/* Mejorar legibilidad del bloque de texto sobre la imagen */
.about-copy {
    background: transparent;
    padding: 28px 26px;
    border-radius: 12px;
    box-shadow: none;
    color: #000000;
    margin-top: 275px;
}

@media (max-width: 980px) {
    .story-panel-about {
        background-position: center center;
        background-size: cover;
        min-height: auto;
    }

    .about-copy {
        background: transparent; /* en móvil dejar texto sobre imagen sin caja sólida */
        padding: 0;
        box-shadow: none;
    }
}

.about-copy {
    max-width: 720px;
    text-align: left;
}

/* Variante para cuando el panel tenga una imagen oscura */
.story-panel-about.dark-bg .about-copy {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.about-kicker {
    text-align: left;
    margin-bottom: 12px;
}

.about-title {
    text-align: left;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    line-height: 1.04;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.about-lead {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.75;
    color: #0f172a;
    font-weight: 400;
    max-width: 660px;
    margin: 0 0 18px;
}

.about-text {
    max-width: 650px;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.03em;
    color: #000000;
    margin: 0 0 14px;
}

/* Mejora tipográfica para .about-text */
.about-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    line-height: 1.92;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



.about-visual {
    display: flex;
    justify-content: flex-end;
}

.about-partner-stage {
    position: relative;
    width: min(100%, 390px);
    height: 410px;
}

.about-partner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
    pointer-events: none;
}

.about-partner-slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.about-partner-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 30px;
    display: block;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.about-partner-tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22, 71, 177, 0.644);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    max-width: calc(100% - 36px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.about-partner-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

@media (max-width: 980px) {
    .about-split-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-copy {
        margin: 20px auto 0;
        max-width: none;
        text-align: center;
        padding: 20px 10px;
    }

    .about-copy p {
        margin-left: auto;
        margin-right: auto;
        font-size: large;
    }

    .about-copy h2 {
        text-align: center;
        font-size: clamp(2.6rem, 5vw, 2.4rem);
    }

    .about-kicker,
    .about-title {
        text-align: center;
    }

    .about-lead,
    .about-text {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .about-visual {
        justify-content: center;
    }

    .about-partner-stage {
        width: min(100%, 360px);
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: clamp(1.45rem, 7vw, 2rem);
        margin-bottom: 18px;
    }

    .about-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-text {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .about-partner-stage {
        width: min(100%, 310px);
        height: 360px;
    }

    .about-partner-tag {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
        padding: 10px 14px;
    }

    .about-partner-name {
        font-size: 0.84rem;
    }
}
/* ===== PANEL TIMELINE ===== */
.story-panel-timeline {
    background:
        radial-gradient(circle at 18% 24%, rgba(37, 99, 235, 0.045), transparent 26%),
        radial-gradient(circle at 82% 72%, rgba(37, 99, 235, 0.035), transparent 24%),
        linear-gradient(to bottom, #fbfcff 0%, #f7f9fc 100%);
}

/* ===== TIMELINE ===== */
.timeline-scroll-wrapper {
    position: relative;
    width: 100%;
    min-height: 250px;
    max-height: 28vh;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 30px;

}

.story-panel-inner { position: relative; }

/* Simple fixed arrows for desktop timeline scrolling */
.timeline-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: rgba(8, 52, 156, 0.822);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.timeline-arrow:hover { background: rgba(15, 23, 42, 0.993); }
.timeline-arrow:disabled { opacity: 0.44; cursor: default; }
.timeline-arrow--left { left: 10px; }
.timeline-arrow--right { right: 10px; }

@media (max-width: 900px) {
    .timeline-arrow { display: none; }
}

.timeline-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.timeline-scroll-wrapper::before,
.timeline-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 5;
    pointer-events: none;
}


.timeline-track {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 118px;
    min-width: max-content;
    padding: 8px 200px 10px;
    height: 220px;
}

.timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(var(--primary-r), 0.04),
        rgba(var(--primary-r), 0.26),
        rgba(var(--primary-r), 0.04)
    );
    z-index: 0;
}

.timeline-track::after {
    content: "";
    position: absolute;
    left: 3%;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    background: linear-gradient(
        to bottom,
        rgba(var(--primary-r), 0.014),
        rgba(var(--primary-r), 0.006),
        rgba(var(--primary-r), 0.014)
    );
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

.timeline-item {
    position: relative;
    flex: 0 0 248px;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.42s ease,
        transform 0.42s ease,
        filter 0.42s ease;
    z-index: 2;
    will-change: transform, opacity, filter;
    filter: blur(0.8px);
}

.timeline-item.is-visible {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow:
        0 0 0 4px rgba(var(--primary-r), 0.09),
        0 0 0 10px rgba(var(--primary-r), 0.03);
    z-index: 3;
}

.timeline-card {
    position: absolute;
    left: 0;
    width: 100%;
    min-height: 96px;
    padding: 12px 14px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.045);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.timeline-item:nth-child(odd) .timeline-card {
    bottom: calc(50% + 16px);
}

.timeline-item:nth-child(odd) .timeline-card::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 100%;
    width: 1px;
    height: 16px;
    background: rgba(37, 99, 235, 0.16);
}

.timeline-item:nth-child(even) .timeline-card {
    top: calc(50% + 16px);
}

.timeline-item:nth-child(even) .timeline-card::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 100%;
    width: 1px;
    height: 16px;
    background: rgba(37, 99, 235, 0.16);
}

.timeline-year {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 6px;
}

.timeline-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #000000;
    margin: 0;
}

.timeline-item.is-focus .timeline-card {
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.timeline-item:hover .timeline-card {
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.story-toggle-btn {
    position: absolute;
    right: -160px;
    bottom: -25px;
    z-index: 20;
    border: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); /* más brillante */
    color: #ffffff;
    padding: 14px 200px 34px 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 16px 16px 0 16px;
    box-shadow: 0 14px 34px rgba(3, 105, 161, 0.22), 0 6px 18px rgba(2,6,23,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}
.story-toggle-btn:hover {
    transform: translateX(-6px);
    background: linear-gradient(135deg, #10b4f0 0%, #0b74a6 100%);
    box-shadow: 0 18px 38px rgba(3, 105, 161, 0.25), 0 8px 28px rgba(2,6,23,0.14);
}
.section-description{
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    text-align: center;
}

/* Estilos para la sección inferior en páginas como 'nuestra_firma' */
.lower-section {
    padding: 48px 14px 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.lower-section .section-description {
    background: #ffffff;
    padding: 18px 10px;
    color: #334155;
    line-height: 1.9;
    text-align: justify;
}

@media (max-width: 768px) {
    .lower-section {
        padding: 28px 18px 48px;
    }

    .lower-section .section-description {
        padding: 18px 16px;
        border-radius: 10px;
    }
}
@media (max-width: 768px) {
    .story-switch-section {
        padding: 0;
    }

    .story-switch-container {
        position: relative;
        min-height: 560px;
        overflow: hidden;
    }

    .story-panel {
        position: absolute;
        inset: 0;
    }

    .story-panel-inner {
        min-height: 560px;
        padding: 26px 18px 88px;
    }

    .story-heading {
        margin-bottom: 22px;
    }

    .story-heading .section-title {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        letter-spacing: 0.09em;
    }

    .about-lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .about-text {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .about-visual {
        display: none;
    }

    .story-toggle-btn {
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 23px;
        width: auto;
        margin-top: 0;
        display: block;
        border-radius: 12px;
        padding: 10px;
    }

    .timeline-scroll-wrapper {
        min-height: 220px;
        max-height: none;
        padding: 6px 0;
    }

    .timeline-track {
        gap: 72px;
        padding: 6px 44px 8px;
        height: 358px;
    }

    .timeline-item {
        flex: 0 0 220px;
    }

    .timeline-dot {
        left: 24px;
        width: 11px;
        height: 11px;
    }

    .timeline-card {
        min-height: 92px;
        padding: 11px 12px 10px;
    }

    .timeline-item:nth-child(odd) .timeline-card {
        bottom: calc(50% + 14px);
    }

    .timeline-item:nth-child(even) .timeline-card {
        top: calc(50% + 14px);
    }

    .timeline-item:nth-child(odd) .timeline-card::after,
    .timeline-item:nth-child(even) .timeline-card::after {
        left: 24px;
        height: 14px;
    }

    .timeline-year {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .timeline-text {
        font-size: 0.82rem;
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-panel {
        transition: none;
    }

    .timeline-item {
        opacity: 1;
        transform: none !important;
        filter: none;
        transition: none;
    }

    .timeline-card {
        transition: none;
    }
}

/* ===== RESPONSIVE EMPRESA ===== */
@media (max-width: 1100px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .company-section {
        padding: 56px 16px 40px;
    }

    .section-heading-left,
    .section-title-left {
        text-align: center;
    }

    .about-heading {
        margin-bottom: 24px;
    }

    .section-subtitle {
        text-align: center;
        margin-bottom: 22px;
    }

    .partners-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 12px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .partners-grid::-webkit-scrollbar {
        height: 8px;
    }

    .partners-grid::-webkit-scrollbar-thumb {
        background: rgba(37, 99, 235, 0.18);
        border-radius: 999px;
    }

    .partner-item {
        flex: 0 0 78%;
        scroll-snap-align: center;
        padding: 22px 18px 20px;
        border-radius: 18px;
        min-width: 260px;
    }

    .partner-photo {
        width: 132px;
        height: 132px;
        margin-bottom: 16px;
    }

    .partner-role {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .member-section {
        padding: 20px 16px 40px;
    }

    .member-logo {
        max-width: 230px;
    }

    .company-band {
        padding: 42px 16px 52px;
    }

    .company-band-content {
        text-align: left;
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .reveal-up {
        transform: translateY(18px);
    }

    .reveal-fade {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-fade,
    .reveal-scale,
    .delay-1,
    .delay-2,
    .delay-3,
    .delay-4 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== RESPONSIVE EMPRESA ===== */
@media (max-width: 1100px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .company-section {
        padding: 56px 16px 40px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }

    .partner-item {
        border-radius: 16px;
    }

    .partner-info {
        padding: 18px 18px 20px;
        min-height: auto;
    }

    .partner-name {
        font-size: 1rem;
    }

    .partner-role {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}
@media (max-width: 768px) {
    .company-section {
        padding: 56px 16px 40px;
    }

    .section-heading-left,
    .section-title-left {
        text-align: center;
    }

    .about-heading {
        margin-bottom: 24px;
    }

    .section-subtitle {
        text-align: center;
        margin-bottom: 22px;
    }

    .partner-photo {
        width: 132px;
        height: 132px;
        margin-bottom: 16px;
    }

    .partner-role {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .member-section {
        padding: 20px 16px 40px;
    }

    .member-logo {
        max-width: 230px;
    }

    .company-band {
        padding: 42px 16px 52px;
    }

    .company-band-content {
        text-align: left;
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .reveal-up {
        transform: translateY(18px);
    }

    .reveal-fade {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-fade,
    .reveal-scale,
    .delay-1,
    .delay-2,
    .delay-3,
    .delay-4 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-visual-metrics {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about-info-panel {
    width: min(100%, 380px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.about-info-item {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.about-info-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.about-info-label {
    display: block;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #5b6576;
}
@media (max-width: 980px) {
    .about-visual-metrics {
        justify-content: center;
    }

    .about-info-panel {
        width: min(100%, 520px);
    }
}

@media (max-width: 768px) {

    .about-visual-metrics {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .about-info-panel {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        width: max-content;
    }

    .about-info-item {
        flex: 0 0 auto;
        padding: 12px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.75);
        border: 1px solid rgba(15,23,42,0.06);
        white-space: nowrap;
    }

    .about-info-number {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .about-info-label {
        font-size: 0.82rem;
        opacity: 0.85;
    }

    /* quitar scroll feo */
    .about-visual-metrics::-webkit-scrollbar {
        display: none;
    }
}
/*-----profesionales-----*/
.profesionales-panel {
    background-image: url(../images/fondo_adn.png);
    position: relative; /* contenedor posicionado para el ::before y el dropdown */
    background-size: cover; /* cubrir el área disponible */
    background-position: center right; /* imagen hacia la derecha para dejar texto a la izquierda */
    background-repeat: no-repeat;
    min-height: 400px;
}

.profesionales-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 0;
    background: linear-gradient(to bottom, #fbfcff 0%, #f7f9fc 100%);
    overflow: hidden;
}

.profesionales-panel-inner {
    width: 100%;
    min-height: 400px;
    margin: 0 auto;
    padding: 52px 36px 84px;
}
.profesionales-split-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: center;
    gap: 72px;
}
.profesionales-copy {
    background: transparent;
    padding: 28px 26px;
    border-radius: 12px;
    box-shadow: none;
    color: #0f172a;
}

/* Variante para cuando el panel tenga una imagen oscura */
.profesionales-panel.dark-bg .profesionales-copy {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
/* =================== */
/* ===== CONTACTO ===== */
.contact-page .company-section {
    position: relative;
    width: 100%;
    padding: 78px 24px 72px;
    overflow: hidden;
    background: linear-gradient(to bottom, #0401a11a 0%, #004ebbbd 100%);
    top: -50px;
}

.contact-page .company-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(2, 36, 172, 0.863), rgba(1, 20, 105, 0.685)),
        url("../images/contacto/fondo5.png") center/cover no-repeat;
    opacity: 5;
    z-index: 0;
}

.contact-page .company-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.384);
}

.contact-page .company-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 100, 235, 0.08), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(37, 100, 235, 0.06), transparent 26%);
}

.contact-page .company-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
}

.contact-page .contact-hero {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.contact-page .company-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: #0f172a;
    margin: 0;
    text-wrap: balance;
    position: relative;
    padding-left: 0;
}

.contact-page .contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.contact-page .contact-left,
.contact-page .contact-right {
    min-width: 0;
}

.contact-page .contact-left {
    background: rgba(255, 255, 255, 0.596);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.045);
}

.contact-page .contact-left::before {
    display: none;
}

.contact-page .contact-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
    line-height: 1.15;
}

.contact-page .contact-main-text {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 24px;
}

.contact-page .contact-list {
    display: grid;
    gap: 16px;
}

.contact-page .contact-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.035);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.contact-page .contact-block:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    background: #fcfdff;
}

.contact-page .contact-icon-wrap {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    box-shadow: none;
}

.contact-page .contact-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.contact-page .contact-block-text {
    min-width: 0;
}

.contact-page .contact-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.contact-page .contact-item {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #5b6576;
}

.contact-page .contact-link {
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    word-break: break-word;
}

.contact-page .contact-link:hover {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.35);
}

.contact-page .location-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f3f96 0%, #1d63cf 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-page .location-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,0.10), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(255,255,255,0.08), transparent 24%);
    pointer-events: none;
}

.contact-page .location-card > * {
    position: relative;
    z-index: 1;
}

.contact-page .location-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-page .location-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-page .location-icon svg {
    width: 24px;
    height: 24px;
}

.contact-page .location-label {
    margin: 0 0 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.76);
}

.contact-page .location-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.contact-page .location-address {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.contact-page .location-line {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.94);
}

.contact-page .location-note {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.16);
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
}

.contact-page .location-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    width: fit-content;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border: 1px solid rgba(255,255,255,0.28);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-page .location-map-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

.contact-page .location-map-link svg {
    width: 17px;
    height: 17px;
}

/* ===== RESPONSIVE CONTACTO ===== */
@media (max-width: 980px) {
    .contact-page .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-page .company-section {
        padding: 56px 16px 48px;
    }

    .contact-page .contact-hero {
        margin-bottom: 28px;
    }

    .contact-page .company-title {
        font-size: clamp(1.9rem, 8vw, 2.7rem);
    }

    .contact-page .company-title::before {
        margin-bottom: 16px;
    }

    .contact-page .contact-left {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .contact-page .contact-main-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }

    .contact-page .contact-block {
        padding: 18px 16px;
        border-radius: 16px;
        gap: 14px;
    }

    .contact-page .contact-icon-wrap {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .contact-page .location-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .contact-page .location-top {
        align-items: flex-start;
    }

    .contact-page .location-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

    .contact-page .location-title {
        font-size: 1.3rem;
    }

    .contact-page .location-line,
    .contact-page .contact-item {
        font-size: 0.95rem;
    }

    .contact-page .location-map-link {
        width: 100%;
    }
}

.professional-detail-section {
    padding: 90px 24px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fbff 100%);
    min-height: 80vh;
}

.professional-detail-container {
    max-width: 1100px;
    margin: 0 auto;
}

.detail-back-btn {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 28px;
}

.professional-detail-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 44px;
    align-items: center;
    background: #ffffff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.professional-detail-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
}

.professional-detail-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 400;
    color: #0f172a;
    margin: 0 0 22px;
}

.professional-detail-info p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #475569;
}

.partner-item {
    cursor: pointer;
}

@media (max-width: 768px) {
    .professional-detail-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .professional-detail-section {
        padding: 60px 16px;
    }
}