/* ==========================================================================
   WIDGET: FOUNDERS HERO - CorpoKredit Editorial Premium
   --------------------------------------------------------------------------
   Archivo: components/page-widgets/founders.css

   Incluye:
   - Hero editorial de fundadores
   - Fotos proporcionadas sin desbordarse
   - Textos visibles y ubicados correctamente
   - Modal de historia con imagen protagonista
   - Responsive tablet y móvil
   ========================================================================== */

.fc-widget-founders-hero,
.fc-widget-founders-hero * {
    box-sizing: border-box;
}

.fc-widget-founders-hero {
    overflow: hidden;
}

.fc-widget-founders-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    padding-top: 72px;

    background: var(--fc-secondary, #073b70);
    color: #ffffff;
}

/* ==========================================================================
   Fondo y overlay
   ========================================================================== */

.fc-widget-founders-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.42;
    filter: grayscale(0.12) contrast(1.05);
}

.fc-widget-founders-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(var(--fc-secondary-rgb), 0.98) 0%,
            rgba(var(--fc-secondary-rgb), 0.80) 24%,
            rgba(var(--fc-secondary-rgb), 0.58) 50%,
            rgba(var(--fc-secondary-rgb), 0.84) 78%,
            rgba(var(--fc-secondary-rgb), 0.98) 100%
        ),
        radial-gradient(
            circle at center,
            rgba(var(--fc-primary-rgb), 0.20) 0%,
            rgba(var(--fc-secondary-rgb), 0.38) 46%,
            rgba(var(--fc-secondary-rgb), 0.94) 100%
        );

    pointer-events: none;
}

/* ==========================================================================
   Contenedor principal
   ========================================================================== */

.fc-widget-founders-hero__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1240px;
    min-height: 760px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;

    padding: 0 28px;

    overflow: visible;
}

/* ==========================================================================
   Card base
   ========================================================================== */

.fc-founder-card {
    position: relative;
    min-height: 760px;
    overflow: visible;

    display: flex;
    align-items: flex-end;
}

.fc-founder-card__image {
    position: absolute;
    bottom: 0;
    z-index: 1;

    pointer-events: none;
}

.fc-founder-card__image img {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 660px;
    height: auto;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(0 34px 42px rgba(0, 0, 0, 0.34))
        saturate(1.04)
        contrast(1.04);
}

/* ==========================================================================
   Fundador izquierda
   ========================================================================== */

.fc-founder-card--andrea {
    justify-content: flex-start;
}

/* Andrea - control independiente */
.fc-founder-card--andrea .fc-founder-card__image {
    left: 10px;
    width: 390px;
    transform: translateX(0) scale(1.18);
    transform-origin: center bottom;
}

.fc-founder-card--andrea .fc-founder-card__content {
    position: absolute;
    right: -117px;
    bottom: 86px;
    z-index: 5;

    width: 330px;
}

/* ==========================================================================
   Fundador derecha
   ========================================================================== */

.fc-founder-card--daniel {
    justify-content: flex-end;
}

/* Daniel - control independiente */
.fc-founder-card--daniel .fc-founder-card__image {
    right: 40px;
    width: 405px;
    transform: translateX(0) scale(1.18);
    transform-origin: center bottom;
}

.fc-founder-card--daniel .fc-founder-card__content {
    position: absolute;
    right: -168px;
    bottom: 429px;
    z-index: 5;

    width: 340px;
}

/* ==========================================================================
   Fundador personalizado
   ========================================================================== */

.fc-founder-card--custom {
    justify-content: center;
}

.fc-founder-card--custom .fc-founder-card__image {
    left: 50%;
    width: 390px;

    transform: translateX(-50%);
}

.fc-founder-card--custom .fc-founder-card__content {
    position: absolute;
    left: 50%;
    bottom: 86px;
    z-index: 5;

    width: 340px;

    transform: translateX(-50%);
}

/* ==========================================================================
   Contenido de tarjeta
   ========================================================================== */

.fc-founder-card__content {
    color: #ffffff;
}

.fc-founder-card__content h3 {
    margin: 0 0 6px;

    color: #ffffff;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 2.35vw, 2.45rem);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -0.035em;
    text-transform: uppercase;

    text-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.fc-founder-card__content span {
    display: block;

    margin-bottom: 22px;

    color: #ffffff;

    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 800;

    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.fc-founder-card__content span::after {
    content: '';

    display: block;

    width: 82px;
    height: 3px;

    margin-top: 18px;

    background: var(--fc-accent, #ff8700);
    border-radius: 999px;
}

/* ==========================================================================
   Cita
   ========================================================================== */

.fc-founder-card__quote {
    position: relative;

    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;

    margin-bottom: 22px;
}

.fc-founder-card__quote::before {
    content: '';

    position: absolute;
    left: 15px;
    top: 34px;

    width: 3px;
    height: calc(100% - 18px);

    background: var(--fc-accent, #ff8700);
    border-radius: 999px;
}

.fc-founder-card__quote i {
    position: relative;
    z-index: 2;

    width: 32px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    color: #ffffff;

    font-size: 1.45rem;
    line-height: 1;
    padding-top: 2px;
}

.fc-founder-card__quote p {
    margin: 0;

    color: rgba(255, 255, 255, 0.94);

    font-size: 0.96rem;
    line-height: 1.32;
    font-weight: 550;

    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   Botón saber más
   ========================================================================== */

.fc-founder-card__link {
    margin-left: 62px;
    margin-top: 8px;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    border: 0;
    background: transparent;

    color: #ffffff;
    text-decoration: none;

    font-family: inherit;
    font-size: 1.02rem;
    line-height: 1;
    font-weight: 850;

    cursor: pointer;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.fc-founder-card__link strong {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 999px;

    color: var(--fc-accent, #ff8700);
    border: 2px solid var(--fc-accent, #ff8700);

    font-size: 0.82rem;

    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.fc-founder-card__link:hover {
    color: var(--fc-accent, #ff8700);
    transform: translateX(3px);
}

.fc-founder-card__link:hover strong {
    color: #ffffff;
    background: var(--fc-accent, #ff8700);
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive tablet horizontal
   ========================================================================== */

@media (max-width: 1180px) {
    .fc-widget-founders-hero {
        min-height: 720px;
        padding-top: 68px;
    }

    .fc-widget-founders-hero__container {
        max-width: 1080px;
        min-height: 720px;
        padding: 0 22px;
    }

    .fc-founder-card {
        min-height: 720px;
    }

    .fc-founder-card__image img {
        max-height: 620px;
    }

    .fc-founder-card--andrea .fc-founder-card__image {
        left: -18px;
        width: 360px;
    }

    .fc-founder-card--daniel .fc-founder-card__image {
        right: 6px;
        width: 375px;
    }

    .fc-founder-card--andrea .fc-founder-card__content,
    .fc-founder-card--daniel .fc-founder-card__content {
        bottom: 78px;
        width: 310px;
    }

    .fc-founder-card--andrea .fc-founder-card__content {
        right: 6px;
    }

    .fc-founder-card--daniel .fc-founder-card__content {
        right: 0;
    }
}

/* ==========================================================================
   Responsive tablet vertical / móvil grande
   ========================================================================== */

@media (max-width: 820px) {
    .fc-widget-founders-hero {
        min-height: auto;
        padding: 84px 0 0;
        align-items: stretch;
    }

    .fc-widget-founders-hero__bg {
        opacity: 0.28;
    }

    .fc-widget-founders-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(var(--fc-secondary-rgb), 0.96) 0%,
                rgba(var(--fc-secondary-rgb), 0.84) 46%,
                rgba(var(--fc-secondary-rgb), 0.98) 100%
            );
    }

    .fc-widget-founders-hero__container {
        min-height: auto;

        display: flex;
        flex-direction: column;
        gap: 70px;

        padding: 0 22px;
        overflow: visible;
    }

    .fc-founder-card,
    .fc-founder-card--andrea,
    .fc-founder-card--daniel,
    .fc-founder-card--custom {
        min-height: auto;
        overflow: visible;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fc-founder-card--daniel,
    .fc-founder-card--custom {
        margin-bottom: 72px;
    }

    .fc-founder-card__image,
    .fc-founder-card--andrea .fc-founder-card__image,
    .fc-founder-card--daniel .fc-founder-card__image,
    .fc-founder-card--custom .fc-founder-card__image {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;

        width: min(330px, 88vw);

        order: 1;

        transform: none;
    }

    .fc-founder-card__image img {
        max-height: none;
        width: 100%;
        height: auto;
    }

    .fc-founder-card__content,
    .fc-founder-card--andrea .fc-founder-card__content,
    .fc-founder-card--daniel .fc-founder-card__content,
    .fc-founder-card--custom .fc-founder-card__content {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        max-width: 390px;

        order: 2;

        margin-top: -42px;
        padding: 26px 22px 30px;

        border-radius: 26px;

        background: rgba(var(--fc-secondary-rgb), 0.74);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(14px);

        text-align: left;

        transform: none;
    }

    .fc-founder-card__content h3 {
        font-size: 2.25rem;
    }

    .fc-founder-card__quote p {
        font-size: 0.95rem;
        line-height: 1.42;
    }
}

/* ==========================================================================
   Responsive móvil pequeño
   ========================================================================== */

@media (max-width: 480px) {
    .fc-widget-founders-hero {
        padding-top: 70px;
    }

    .fc-widget-founders-hero__container {
        gap: 58px;
        padding: 0 18px;
    }

    .fc-founder-card__image,
    .fc-founder-card--andrea .fc-founder-card__image,
    .fc-founder-card--daniel .fc-founder-card__image,
    .fc-founder-card--custom .fc-founder-card__image {
        width: min(300px, 88vw);
    }

    .fc-founder-card__content,
    .fc-founder-card--andrea .fc-founder-card__content,
    .fc-founder-card--daniel .fc-founder-card__content,
    .fc-founder-card--custom .fc-founder-card__content {
        padding: 24px 20px 28px;
        border-radius: 24px;
    }

    .fc-founder-card__content h3 {
        font-size: 1.95rem;
    }

    .fc-founder-card__content span {
        font-size: 0.86rem;
    }

    .fc-founder-card__quote {
        grid-template-columns: 24px 1fr;
    }

    .fc-founder-card__quote::before {
        left: 11px;
    }

    .fc-founder-card__quote i {
        width: 24px;
        font-size: 1.25rem;
    }

    .fc-founder-card__quote p {
        font-size: 0.9rem;
    }

    .fc-founder-card__link {
        margin-left: 44px;
    }
}

/* ==========================================================================
   FOUNDERS MODAL - Editorial elegante
   ========================================================================== */

.fc-founder-modal,
.fc-founder-modal * {
    box-sizing: border-box;
}

.fc-founder-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.fc-founder-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fc-founder-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(var(--fc-secondary-rgb), 0.78);
    backdrop-filter: blur(12px);
}

.fc-founder-modal__dialog {
    position: relative;
    z-index: 2;

    width: min(1040px, 100%);
    min-height: 560px;

    display: grid;
    grid-template-columns: 1fr 1.05fr;
    overflow: hidden;

    border-radius: 34px;

    background:
        radial-gradient(
            circle at top right,
            rgba(var(--fc-primary-rgb), 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(var(--fc-secondary-rgb), 0.98),
            rgba(var(--fc-primary-rgb), 0.92)
        );

    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);

    transform: translateY(24px) scale(0.96);

    transition:
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-founder-modal.is-open .fc-founder-modal__dialog {
    transform: translateY(0) scale(1);
}

.fc-founder-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 999px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);

    cursor: pointer;

    transition:
        background-color 0.22s ease,
        transform 0.22s ease;
}

.fc-founder-modal__close:hover {
    background: var(--fc-accent, #ff8700);
    transform: rotate(90deg);
}

/* ==========================================================================
   Modal - Imagen protagonista
   ========================================================================== */

.fc-founder-modal__image {
    position: relative;
    overflow: hidden;

    min-height: 540px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 0 20px;

    background:
        radial-gradient(
            circle at 50% 62%,
            rgba(255, 255, 255, 0.14),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.fc-founder-modal__image::after {
    content: '';

    position: absolute;
    inset: auto 0 0;

    height: 38%;

    background: linear-gradient(
        180deg,
        transparent,
        rgba(var(--fc-secondary-rgb), 0.52)
    );

    pointer-events: none;
}

.fc-founder-modal__image img {
    position: absolute;
    left: 50%;
    bottom: -42px;
    z-index: 2;

    width: auto;
    height: 620px;
    max-width: none;

    display: block;

    object-fit: contain;
    object-position: center bottom;

    transform: translateX(-50%) translateY(-48px) scale(1.08);
    transform-origin: center bottom;

    filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.34));
}

/* ==========================================================================
   Modal - Contenido
   ========================================================================== */

.fc-founder-modal__content {
    padding: clamp(38px, 5vw, 64px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #ffffff;
}

.fc-founder-modal__eyebrow {
    width: fit-content;

    margin-bottom: 18px;
    padding: 7px 14px;

    border-radius: 999px;

    color: var(--fc-accent, #ff8700);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(var(--fc-accent-rgb), 0.28);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-founder-modal__content h3 {
    margin: 0 0 6px;

    color: #ffffff;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.fc-founder-modal__content strong {
    display: block;

    margin-bottom: 28px;

    color: #ffffff;

    font-size: 0.94rem;
    font-weight: 800;
}

.fc-founder-modal__content strong::after {
    content: '';

    display: block;

    width: 82px;
    height: 3px;

    margin-top: 14px;

    background: var(--fc-accent, #ff8700);
    border-radius: 999px;
}

.fc-founder-modal__quote {
    position: relative;

    padding-left: 34px;
}

.fc-founder-modal__quote::before {
    content: '';

    position: absolute;
    left: 8px;
    top: 42px;

    width: 3px;
    height: calc(100% - 34px);

    background: var(--fc-accent, #ff8700);
    border-radius: 999px;
}

.fc-founder-modal__quote span {
    position: absolute;
    left: 0;
    top: -12px;

    color: #ffffff;

    font-family: Georgia, serif;
    font-size: 4.8rem;
    line-height: 1;
}

.fc-founder-modal__quote p {
    margin: 0;

    color: rgba(255, 255, 255, 0.91);

    font-size: clamp(1rem, 1.4vw, 1.13rem);
    line-height: 1.62;
    font-weight: 500;
}

/* Bloquear scroll cuando modal está abierto */

body.fc-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Modal responsive
   ========================================================================== */

@media (max-width: 760px) {
    .fc-founder-modal {
        padding: 18px;
        align-items: flex-end;
    }

    .fc-founder-modal__dialog {
        grid-template-columns: 1fr;

        max-height: 88vh;
        min-height: auto;
        overflow-y: auto;

        border-radius: 28px;
    }

    .fc-founder-modal__image {
        min-height: 360px;
        padding: 24px 18px 0;
    }

    .fc-founder-modal__image img {
        height: min(92%, 340px);
        max-width: 92%;
    }

    .fc-founder-modal__content {
        padding: 30px 24px 34px;
    }

    .fc-founder-modal__content h3 {
        font-size: 2.1rem;
    }

    .fc-founder-modal__quote {
        padding-left: 36px;
    }

    .fc-founder-modal__quote span {
        left: 0;
        top: -10px;
    }

    .fc-founder-modal__quote p {
        padding-left: 2px;
    }

    .fc-founder-modal__quote::before {
        left: 10px;
        top: 46px;
        height: calc(100% - 38px);
    }
}

@media (max-width: 420px) {
    .fc-founder-modal {
        padding: 12px;
    }

    .fc-founder-modal__dialog {
        border-radius: 24px;
    }

    .fc-founder-modal__image {
        min-height: 320px;
    }

    .fc-founder-modal__image img {
        height: min(92%, 305px);
    }

    .fc-founder-modal__content {
        padding: 28px 20px 32px;
    }

    .fc-founder-modal__content h3 {
        font-size: 1.9rem;
    }

    .fc-founder-modal__quote p {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}