/* AcercaNosotros — estilos de página (no globales). No tocar .heroImpactus* */

.an-page-rail {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25%;
    padding-right: 1.25%;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .an-page-rail {
        padding-left: 2.5%;
        padding-right: 2.5%;
    }
}

.an-page-rail .home-planes__header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.an-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 2.75rem;
    padding-bottom: 2.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.an-section.an-page-rail {
    padding-left: 1.25%;
    padding-right: 1.25%;
}

@media (min-width: 1200px) {
    .an-section.an-page-rail {
        padding-left: 2.5%;
        padding-right: 2.5%;
    }
}

.an-section__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 0 2rem;
    max-width: none;
    padding: 0;
}

/* —— Atmósfera (trazos de ingenio) —— */
.an-has-atmosphere {
    isolation: isolate;
}

.an-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.an-atmosphere__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.an-atmosphere--dots {
    background:
        radial-gradient(ellipse at 8% 20%, rgba(44, 123, 182, 0.1), transparent 42%),
        radial-gradient(ellipse at 92% 80%, rgba(125, 183, 224, 0.12), transparent 48%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FBFE 100%);
}

.an-atmosphere--rails {
    background:
        radial-gradient(ellipse at 88% 18%, rgba(44, 123, 182, 0.12), transparent 45%),
        linear-gradient(180deg, #E8F3FA 0%, #F4F7FA 55%, #EEF5FA 100%);
}

.an-atmosphere--vertical {
    background:
        radial-gradient(ellipse at 12% 70%, rgba(125, 183, 224, 0.14), transparent 48%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
}

.an-atmosphere--stage {
    background: transparent;
    opacity: 0.95;
}

.an-atmosphere--cta {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(44, 123, 182, 0.1), transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F7FA 100%);
}

@keyframes anStrokeDrift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.28; }
    50% { transform: translate3d(12px, -8px, 0); opacity: 0.42; }
}

@keyframes anStrokeDriftSlow {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, 6px, 0); }
}

@keyframes anSpinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes anOrbitPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.03); }
}

.an-stroke--drift {
    transform-box: fill-box;
    transform-origin: center;
    animation: anStrokeDrift 14s ease-in-out infinite;
}

.an-stroke--drift-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: anStrokeDriftSlow 18s ease-in-out infinite;
}

.an-stroke--spin-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: anSpinSlow 42s linear infinite;
}

/* —— Intro / splits —— */
.an-intro {
    background: transparent;
}

.an-split {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .an-split {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem;
    }
}

@media (min-width: 1400px) {
    .an-split {
        max-width: 1320px;
        gap: 2.75rem;
    }
}

.an-split__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.an-orbit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
}

.an-orbit__glow {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 123, 182, 0.18) 0%, transparent 70%);
    z-index: 0;
    animation: anOrbitPulse 6s ease-in-out infinite;
}

.an-orbit__ring {
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    border: 1px solid rgba(44, 123, 182, 0.28);
    box-shadow: 0 0 0 10px rgba(232, 243, 250, 0.55);
    z-index: 0;
}

.an-orbit__arc {
    position: absolute;
    inset: -4%;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: #2C7BB6;
    border-right-color: rgba(125, 183, 224, 0.55);
    opacity: 0.65;
    z-index: 0;
    animation: anSpinSlow 28s linear infinite;
}

.an-orbit__arc--flip {
    animation-direction: reverse;
    border-top-color: #7DB7E0;
    border-right-color: rgba(44, 123, 182, 0.45);
}

.an-orbit--soft .an-orbit__ring {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.45);
}

.an-orbit lottie-player,
.an-split__visual lottie-player {
    position: relative;
    z-index: 1;
    width: 86%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: min(380px, 52vw);
}

@media (min-width: 992px) {
    .an-orbit {
        width: min(100%, 440px);
    }

    .an-orbit lottie-player,
    .an-split__visual lottie-player {
        max-height: 400px;
    }
}

.an-split__copy {
    min-width: 0;
}

.an-split__title {
    margin: 0 0 0.85rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 700;
    color: #0F172A;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.25;
}

.an-split__title::after {
    content: "";
    display: block;
    width: 3.25rem;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2C7BB6, #7DB7E0);
}

.an-split__text {
    margin: 0 0 0.85rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 400;
    color: #334155;
    font-size: clamp(1.15rem, 1.5vw, 1.32rem);
    line-height: 1.65;
}

.an-split__text:last-of-type {
    margin-bottom: 1.35rem;
}

.an-split__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* —— Misión / Visión —— */
.an-band {
    background: transparent;
}

.an-band--alt {
    background: transparent;
}

.an-band .an-split__title {
    color: #2C7BB6;
}

/* —— Historia Esteban (stage) —— */
.an-founder {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 3.5rem 0 4rem;
    background-color: #0F172A;
    background-image:
        radial-gradient(ellipse at 12% 20%, rgba(44, 123, 182, 0.35), transparent 45%),
        radial-gradient(ellipse at 88% 75%, rgba(232, 184, 109, 0.16), transparent 50%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.9)),
        url("../../Imagenes/fondoFormulario.png");
    background-size: auto, auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.an-founder__rail {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 1400px) {
    .an-founder__rail {
        max-width: 1280px;
    }
}

@media (min-width: 1800px) {
    .an-founder__rail {
        max-width: 1440px;
        width: 86%;
    }
}

.an-founder__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .an-founder__grid {
        grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
        gap: 2.75rem;
    }
}

.an-founder__portrait {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .an-founder__portrait {
        max-width: none;
        margin: 0;
    }
}

.an-founder__portrait::before {
    content: "";
    position: absolute;
    inset: -12px -12px 16% 10%;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(44, 123, 182, 0.5), rgba(125, 183, 224, 0.14));
    z-index: 0;
    transform: rotate(-2deg);
}

.an-founder__portrait::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    border: 1px solid rgba(125, 183, 224, 0.45);
    box-shadow: 0 0 0 1px rgba(44, 123, 182, 0.25), 0 0 40px rgba(44, 123, 182, 0.18);
    z-index: 2;
    pointer-events: none;
}

.an-founder__frame {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    background: #0F172A;
}

.an-founder__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.an-founder__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.72) 100%);
    pointer-events: none;
}

.an-founder__identity {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 2;
}

.an-founder__name {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    color: #FFFFFF;
    line-height: 1.25;
}

.an-founder__role {
    margin: 0.2rem 0 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: #7DB7E0;
}

.an-founder__copy {
    color: #F8FAFC;
    min-width: 0;
}

.an-founder__eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7DB7E0;
}

.an-founder__title {
    margin: 0 0 0.75rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.25;
    color: #FFFFFF;
    max-width: 18ch;
}

.an-founder__lead {
    margin: 0 0 1.35rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(1.15rem, 1.5vw, 1.32rem);
    line-height: 1.65;
    color: rgba(248, 250, 252, 0.88);
    max-width: 42ch;
}

.an-founder__beats {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.an-founder__beat {
    margin: 0;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
    border-left: 3px solid #2C7BB6;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 0 10px 10px 0;
    box-shadow: inset 0 0 0 1px rgba(125, 183, 224, 0.08);
}

.an-founder__beat-label {
    display: block;
    margin: 0 0 0.25rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7DB7E0;
}

.an-founder__beat p {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(1.15rem, 1.5vw, 1.32rem);
    line-height: 1.65;
    color: rgba(248, 250, 252, 0.9);
}

.an-founder__closing {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 600;
    font-size: clamp(1.15rem, 1.5vw, 1.32rem);
    line-height: 1.65;
    color: #E8F3FA;
    max-width: 42ch;
}

/* —— CTA —— */
.an-cta {
    background: transparent;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3.25rem;
}

.an-cta .home-planes__title {
    margin-bottom: 0.65rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1.25;
}

.an-cta .home-planes__title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2C7BB6, #7DB7E0);
}

.an-cta .home-planes__lead {
    margin-bottom: 1.5rem;
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(1.15rem, 1.5vw, 1.32rem);
    line-height: 1.65;
}

.an-cta .btnServiciosTop {
    justify-content: center;
}

/* —— Reveals —— */
.an-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .an-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .an-stroke--drift,
    .an-stroke--drift-slow,
    .an-stroke--spin-slow,
    .an-orbit__arc,
    .an-orbit__glow {
        animation: none !important;
    }
}

/* —— Responsive —— */
@media (max-width: 767px) {
    .an-section {
        padding-top: 2.25rem;
        padding-bottom: 2rem;
    }

    .an-atmosphere__svg {
        opacity: 0.72;
    }

    .an-orbit {
        width: min(100%, 300px);
    }

    .an-orbit__ring {
        box-shadow: 0 0 0 6px rgba(232, 243, 250, 0.5);
    }

    .an-founder {
        padding: 2.75rem 0 3rem;
    }

    .an-founder__title {
        max-width: none;
    }

    .an-founder__lead,
    .an-founder__closing {
        max-width: none;
    }

    .an-split__actions .btnServiciosTop,
    .an-cta .btnServiciosTop {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .an-founder__rail {
        width: 92%;
    }

    .an-founder__frame {
        border-radius: 18px;
    }

    .an-founder__portrait::after {
        border-radius: 22px;
    }

    .an-orbit lottie-player,
    .an-split__visual lottie-player {
        max-height: 250px;
    }

    .an-atmosphere--dots .an-atmosphere__svg circle,
    .an-atmosphere--rails .an-atmosphere__svg path:nth-child(n+4) {
        opacity: 0.55;
    }
}

@media (min-width: 1600px) {
    .an-section {
        padding-top: 3.25rem;
        padding-bottom: 3rem;
    }

    .an-orbit {
        width: min(100%, 480px);
    }

    .an-orbit lottie-player,
    .an-split__visual lottie-player {
        max-height: 440px;
    }
}
