/* ─── SECCIÓN NUESTRO FUNDADOR ─── */

.fundador-section {
    position: relative;
    width: 100%;
    height: 300vh;
    background-color: #000000;
}

.fundador-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 2;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── STARS ─── */
#fundador-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ─── LAYOUT PRINCIPAL ─── */
.fundador-layout {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 5rem 0 6rem;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fundador-layout.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── COLUMNA IMAGEN ─── */
.fundador-image-col {
    position: relative;
}

/* Glow ambiental detrás de la foto */
.fundador-image-col::before {
    content: '';
    position: absolute;
    inset: -8% -12%;
    background: radial-gradient(ellipse at 50% 45%, rgba(134, 85, 246, 0.14) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.fundador-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 3 / 4;
    /* Sin borde — la imagen se funde con el fondo negro */
}

/* picture hereda el tamaño del wrapper para que img funcione igual */
.fundador-image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.fundador-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    clip-path: inset(0 0 0 0);
    animation: fundadorReveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-play-state: paused;
}

.fundador-layout.visible .fundador-photo {
    animation-play-state: running;
}

@keyframes fundadorReveal {
    from {
        clip-path: inset(100% 0 0 0);
        transform: scale(1.06);
    }
    to {
        clip-path: inset(0 0 0 0);
        transform: scale(1.0);
    }
}

/* Gradiente para fundir el borde inferior con el fondo negro */
.fundador-image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    pointer-events: none;
}

/* ─── STATUS BADGE — burbuja flotante sobre la imagen ─── */
.fundador-status-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.125rem;
    background: rgba(8, 6, 16, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(134, 85, 246, 0.25);
    border-radius: 2rem;
    white-space: nowrap;
    z-index: 5;
    animation: statusFloat 5s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.6s ease 0.8s;
}

.fundador-layout.visible .fundador-status-badge {
    opacity: 1;
}

@keyframes statusFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50%       { transform: translateX(-50%) translateY(-7px); }
}

.fundador-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8655F6;
    flex-shrink: 0;
    animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(134, 85, 246, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(134, 85, 246, 0); }
}

.fundador-status-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

/* ─── COLUMNA CONTENIDO ─── */
.fundador-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Tag etapa */
.fundador-content .content-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8655F6;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.fundador-layout.visible .fundador-content .content-tag {
    opacity: 1;
    transform: translateX(0);
}

/* Caption "FOUNDER & ENGINEER" bajo la imagen */
.fundador-role-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    display: block;
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.7s ease 0.6s;
}

.fundador-layout.visible .fundador-role-label {
    opacity: 1;
}

/* ─── NOMBRE TYPEWRITER ─── */
.fundador-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #F8F9FA;
    margin: 0;
    min-height: 2.2em;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.fundador-layout.visible .fundador-name {
    opacity: 1;
    transform: translateX(0);
}

.fundador-name-accent {
    color: #8655F6;
    font-style: italic;
    display: block;
}

/* Cursor typewriter */
.fundador-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: #8655F6;
    margin-left: 3px;
    vertical-align: middle;
    animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ─── BIO TEXT — directamente sobre el fondo, sin caja ─── */
.fundador-bio-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.975rem;
    font-weight: 300;
    line-height: 1.8;
    color: #71717A;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(134, 85, 246, 0.15);
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.fundador-layout.visible .fundador-bio-text {
    opacity: 1;
    transform: translateX(0);
}

.fundador-bio-text strong {
    color: #E4E4E7;
    font-weight: 500;
}

/* ─── CARDS GRID ─── */
.fundador-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease 0.65s, transform 0.6s ease 0.65s;
}

.fundador-layout.visible .fundador-cards-grid {
    opacity: 1;
    transform: translateX(0);
}

.fundador-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.125rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.fundador-card:hover {
    border-color: rgba(134, 85, 246, 0.35);
    transform: translateY(-2px);
    background: rgba(134, 85, 246, 0.04);
}

.fundador-card-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8655F6;
    margin-bottom: 0.25rem;
}

.fundador-card-icon svg {
    width: 16px;
    height: 16px;
}

.fundador-card-icon-secondary {
    color: #C084FC;
}

.fundador-card-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3F3F46;
}

.fundador-card-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #A1A1AA;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.fundador-card:hover .fundador-card-value {
    color: #E4E4E7;
}

.fundador-arrow-icon {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fundador-card:hover .fundador-arrow-icon {
    opacity: 1;
    transform: translate(0, 0);
}

/* ─── CTA BUTTON ─── */
.fundador-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: #8655F6;
    border: none;
    border-radius: 3rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

.fundador-layout.visible .fundador-cta {
    opacity: 1;
    transform: translateX(0);
}

/* Shimmer sweep en loop */
.fundador-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 100%);
    transform: translateX(-100%);
    animation: ctaShimmer 3.5s ease-in-out infinite;
}

@keyframes ctaShimmer {
    0%        { transform: translateX(-100%); }
    50%, 100% { transform: translateX(100%); }
}

.fundador-cta:hover {
    background: #9b6ff8;
    box-shadow: 0 0 32px rgba(134, 85, 246, 0.5);
    transform: translateX(0) scale(1.02) !important;
}

.fundador-cta svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.fundador-cta:hover svg {
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════════
   NAVEGACIÓN — IDÉNTICA A LAPTOP-NAV
══════════════════════════════════════════════════ */
.fundador-nav {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    width: fit-content;
}

.fundador-nav.visible {
    opacity: 1;
    pointer-events: all;
}

.fundador-nav .nav-item {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fundador-nav .nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: rgba(180, 180, 180, 0.35);
    position: relative;
    z-index: 1;
}

.fundador-nav .nav-item.active .nav-dot {
    background: #8655F6;
    box-shadow: 0 0 10px rgba(134, 85, 246, 0.7);
    transform: scale(1.25);
}

.fundador-nav .nav-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
    color: rgba(255, 255, 255, 1);
    user-select: none;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-width 0.5s ease;
    pointer-events: none;
    text-shadow:
        0 0 8px rgba(134, 85, 246, 1),
        0 0 20px rgba(134, 85, 246, 0.8),
        0 0 40px rgba(134, 85, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 1);
}

.fundador-nav .nav-item.active .nav-label {
    color: #E0AAFF;
}

.fundador-nav:hover .nav-label {
    opacity: 1;
    max-width: 200px;
}

.fundador-nav:hover .nav-item:hover .nav-label {
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(192, 132, 252, 1),
        0 0 20px rgba(192, 132, 252, 0.9),
        0 0 40px rgba(192, 132, 252, 0.5),
        0 2px 4px rgba(0, 0, 0, 1);
}

.fundador-nav:hover .nav-item:hover .nav-dot {
    background: #8655F6;
    box-shadow: 0 0 16px rgba(134, 85, 246, 1);
    transform: scale(1.3);
}

.fundador-nav .nav-item.clickable {
    cursor: pointer;
}

/* ─── SCROLL INDICATOR ─── */
.fundador-section .scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 30;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Nunca se oculta del todo — siempre hay sección debajo */
.fundador-section .scroll-indicator.hide-mouse .scroll-mouse-icon {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Mouse icon flota a la derecha, igual que en automatización */
.fundador-section .scroll-indicator .scroll-mouse-icon {
    position: absolute;
    right: 2.5rem;
    top: 0;
    width: 26px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    transition: opacity 0.6s ease, height 0.6s ease, padding 0.6s ease;
}

.fundador-section .scroll-mouse-wheel {
    width: 3px;
    height: 7px;
    background: #C084FC;
    border-radius: 2px;
    animation: scrollWheelFundador 1.8s ease-in-out infinite;
}

@keyframes scrollWheelFundador {
    0%   { transform: translateY(0);    opacity: 1; }
    60%  { transform: translateY(8px);  opacity: 0.3; }
    100% { transform: translateY(0);    opacity: 1; }
}

.fundador-section .scroll-text {
    display: none;
}

/* Línea visible en desktop — sutil indicador de scroll sin texto */
.fundador-section .scroll-line {
    display: block;
}

/* ══════════════════════════════════════════════════
   TABLET — ≤ 1024px
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .fundador-layout {
        grid-template-columns: 1fr;
        padding: 2rem 3rem;
        gap: 2rem;
        align-items: flex-start;
        max-height: 90vh;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .fundador-layout::-webkit-scrollbar { display: none; }

    .fundador-image-wrapper {
        max-width: 240px;
        aspect-ratio: 3 / 4;
    }

    .fundador-name {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        min-height: auto;
    }

    .fundador-nav {
        left: 1.5rem;
        gap: 1.1rem;
    }
}

/* ══════════════════════════════════════════════════
   MOBILE — ≤ 768px
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Menos scroll en móvil */
    .fundador-section {
        height: 200vh;
    }

    .fundador-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 1.5rem;
        gap: 1.75rem;
        align-items: flex-start;
    }

    /* Imagen centrada y más grande */
    .fundador-image-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fundador-image-wrapper {
        width: 58vw;
        max-width: 230px;
        aspect-ratio: 3 / 4;
    }

    /* El glow queda centrado con la imagen */
    .fundador-image-col::before {
        inset: -15% -20%;
    }

    .fundador-role-label {
        margin-top: 0.75rem;
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }

    .fundador-status-badge {
        bottom: 0.875rem;
        padding: 0.375rem 0.875rem;
    }

    .fundador-status-text {
        font-size: 0.62rem;
    }

    .fundador-name {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
        min-height: auto;
    }

    .fundador-bio-text {
        font-size: 0.875rem;
        line-height: 1.72;
        padding-top: 0.625rem;
    }

    /* Quitar tarjetas de contacto en móvil */
    .fundador-cards-grid {
        display: none;
    }

    /* Ocultar badge flotante en móvil */
    .fundador-status-badge {
        display: none;
    }

    /* CTA ocupa todo el ancho disponible */
    .fundador-cta {
        width: 100%;
        justify-content: center;
        align-self: stretch;
        padding: 1rem 1.5rem;
        font-size: 0.82rem;
    }

    .fundador-nav {
        display: none !important;
    }

    /* Scroll indicator en móvil: igual que automatización */
    .fundador-section .scroll-indicator {
        bottom: 1.2rem;
        right: 1.5rem;
        left: auto;
        top: auto;
        width: auto;
        transform: none;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }

    .fundador-section .scroll-indicator .scroll-mouse-icon {
        position: static;
    }

    .fundador-section .scroll-line {
        display: none;
    }

    .fundador-section .scroll-text {
        display: block;
        font-size: 0.5rem;
        letter-spacing: 0.1em;
        text-shadow: none;
        color: rgba(255, 255, 255, 0.35);
        font-weight: 500;
    }
}

/* ══════════════════════════════════════════════════
   MOBILE PEQUEÑO — ≤ 430px
══════════════════════════════════════════════════ */
@media (max-width: 430px) {
    .fundador-layout {
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }

    .fundador-image-wrapper {
        width: 62vw;
        max-width: 200px;
    }

    .fundador-name {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .fundador-content {
        gap: 1rem;
    }
}

/* ══════════════════════════════════════════════════
   LANDSCAPE — altura < 500px
══════════════════════════════════════════════════ */
@media (max-height: 500px) and (max-width: 900px) {
    .fundador-layout {
        grid-template-columns: 180px 1fr;
        padding: 1rem 1.5rem;
        gap: 1.5rem;
        align-items: center;
        max-height: 90vh;
    }

    .fundador-image-wrapper {
        max-width: 100%;
        aspect-ratio: 2 / 3;
    }

    .fundador-name {
        font-size: 1.75rem;
        min-height: auto;
    }

    .fundador-bio-text {
        display: none;
    }

    .fundador-content {
        gap: 0.875rem;
    }
}

/* ══════════════════════════════════════════════════
   TABLET NAV — ≤ 1024px
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .fundador-nav {
        left: 50%;
        top: 1.5rem;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 1.25rem;
    }

    .fundador-nav .nav-item {
        flex-direction: column;
        gap: 0.4rem;
    }

    .fundador-nav .nav-label {
        font-size: 0.5rem;
        opacity: 0;
    }

    .fundador-nav.visible .nav-label {
        opacity: 1;
        max-width: 100px;
    }

    .fundador-nav .nav-dot {
        width: 7px;
        height: 7px;
    }
}

/* ══════════════════════════════════════════════════
   MOBILE NAV PILL — ≤ 768px
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .fundador-nav {
        display: none !important;
    }
}
