/* ==================================================
   CIFO — Sistema visual base
   Porto Child | Versión 1.0.0
   ================================================== */

:root {
    /* Colores institucionales */
    --cifo-blue: #073B70;
    --cifo-blue-dark: #052D57;
    --cifo-blue-light: #2E6FAE;
    --cifo-gold: #F6C744;
    --cifo-white: #FFFFFF;

    /* Texto y superficies */
    --cifo-text: #173A63;
    --cifo-text-muted: #5F7083;
    --cifo-surface: #F5F7FA;
    --cifo-border: #DCE4EC;

    /* Estructura */
    --cifo-container: 1320px;
    --cifo-radius: 12px;
    --cifo-section-space: clamp(64px, 8vw, 112px);

    /* Transiciones */
    --cifo-transition: 220ms ease;
}

/* Contenedor reutilizable */
.cifo-container {
    width: min(
        calc(100% - 48px),
        var(--cifo-container)
    );
    margin-inline: auto;
}

/* Espaciado de secciones */
.cifo-section {
    position: relative;
    padding-block: var(--cifo-section-space);
}

/* Accesibilidad: foco visible */
.cifo-container a:focus-visible,
.cifo-section a:focus-visible,
.cifo-container button:focus-visible,
.cifo-section button:focus-visible {
    outline: 3px solid var(--cifo-gold);
    outline-offset: 4px;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
    .cifo-container {
        width: calc(100% - 36px);
    }
}




/* ==================================================
   CIFO — Hero principal
   ================================================== */

.cifo-hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    min-height: clamp(580px, 76vh, 820px);
    overflow: hidden;
    background: var(--cifo-blue-dark);
    color: var(--cifo-white);
}


.cifo-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--cifo-blue-dark);
    pointer-events: none;
}

.cifo-hero__background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%) scale(1.25);
    pointer-events: none;
}

.cifo-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(5, 45, 87, 0.88) 0%,
        rgba(5, 45, 87, 0.62) 55%,
        rgba(5, 45, 87, 0.25) 100%
    );
}


.cifo-hero__content {
    position: relative;
    z-index: 1;
    padding-block: 88px 112px;
}

.cifo-hero__eyebrow {
    margin: 0 0 22px;
    color: var(--cifo-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.6;
}

.cifo-hero__title {
    max-width: 850px;
    margin: 0 0 24px;
    color: var(--cifo-white);
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
    text-wrap: balance;
}

.cifo-hero__description {
    max-width: 610px;
    margin: 0 0 22px;
    color: var(--cifo-white);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
}

.cifo-hero__levels {
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    letter-spacing: 0.04em;
}

.cifo-hero__levels span {
    padding-inline: 8px;
    color: var(--cifo-gold);
}

.cifo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cifo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    transition:
        background-color var(--cifo-transition),
        color var(--cifo-transition),
        border-color var(--cifo-transition);
}

.cifo-button--light {
    border-color: var(--cifo-white);
    background: var(--cifo-white);
    color: var(--cifo-blue-dark) !important;
}

.cifo-button--light:hover {
    border-color: var(--cifo-gold);
    background: var(--cifo-gold);
    color: var(--cifo-blue-dark) !important;
}

.cifo-button--gold {
    border-color: var(--cifo-gold);
    background: var(--cifo-gold);
    color: var(--cifo-blue-dark) !important;
}

.cifo-button--gold:hover {
    border-color: var(--cifo-white);
    background: var(--cifo-white);
    color: var(--cifo-blue-dark) !important;
}

.cifo-button:focus-visible {
    outline: 3px solid var(--cifo-gold);
    outline-offset: 4px;
}

.cifo-hero__signature {
    position: absolute;
    right: max(24px, calc((100% - var(--cifo-container)) / 2));
    bottom: 28px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    letter-spacing: 0.04em;
}

@media (max-width: 767px) {
    .cifo-hero {
        min-height: 650px;
        min-height: min(760px, 88svh);
    }

    .cifo-hero__content {
        padding-block: 72px 100px;
    }

    .cifo-hero__title {
        font-size: clamp(40px, 11vw, 58px);
    }

    .cifo-hero__actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 320px;
    }

    .cifo-button {
        width: 100%;
        box-sizing: border-box;
    }

    .cifo-hero__signature {
        right: 18px;
        bottom: 20px;
        left: 18px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cifo-button {
        transition: none;
    }
}





/* ==================================================
   CIFO — Sección "¿Qué estás buscando?"
   Basada en la diapositiva 2 de la propuesta
   ================================================== */

.cifo-seek {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(46px, 6vw, 76px);
    background: #F5F8FD;
    color: var(--cifo-blue);
}

.cifo-seek__inner {
    position: relative;
    z-index: 1;
}

.cifo-seek__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.cifo-seek__heading {
    min-width: 0;
}

.cifo-seek__accent {
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 12px;
    background: var(--cifo-gold);
}

.cifo-seek__heading h2 {
    margin: 0 0 8px;
    color: var(--cifo-blue);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.cifo-seek__heading h2 strong {
    font-weight: 800;
}

.cifo-seek__heading > p {
    margin: 0;
    color: #526783;
    font-size: 14px;
    line-height: 1.6;
}

.cifo-seek__note {
    flex: 0 0 auto;
    margin: -4px 42px 0 0;
    color: var(--cifo-blue);
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(17px, 2vw, 23px);
    font-style: italic;
    line-height: 1.05;
    transform: rotate(-7deg);
}

.cifo-seek__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cifo-seek__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 184px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 17px 40px;
    border: 1px solid #E8EEF7;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 18px rgba(18, 59, 104, 0.055);
    color: var(--cifo-blue);
    text-decoration: none !important;
    transition:
        transform var(--cifo-transition),
        box-shadow var(--cifo-transition);
}

.cifo-seek__card::after {
    position: absolute;
    bottom: 20px;
    left: 17px;
    width: 35px;
    height: 3px;
    background: var(--card-accent, var(--cifo-blue));
    content: "";
}

.cifo-seek__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(18, 59, 104, 0.12);
}

.cifo-seek__card:focus-visible {
    outline: 3px solid var(--cifo-gold);
    outline-offset: 3px;
}

.cifo-seek__card--blue {
    --card-accent: #1B5EAA;
}

.cifo-seek__card--sky {
    --card-accent: #55A9E8;
}

.cifo-seek__card--green {
    --card-accent: #48A987;
}

.cifo-seek__card--violet {
    --card-accent: #8D79D8;
}

.cifo-seek__icon {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--cifo-blue);
}

.cifo-seek__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cifo-seek__card h3 {
    margin: 0 0 6px;
    color: var(--cifo-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.cifo-seek__card p {
    margin: 0;
    color: #526783;
    font-size: 12px;
    line-height: 1.5;
}

.cifo-seek__arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cifo-blue);
    color: #FFFFFF;
    font-size: 19px;
    line-height: 1;
    transition: background-color var(--cifo-transition);
}

.cifo-seek__card:hover .cifo-seek__arrow {
    background: #B38A22;
}

.cifo-seek__decoration {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(
            ellipse at 82% 18%,
            rgba(193, 210, 238, 0.5),
            transparent 70%
        );
}

.cifo-seek__decoration::before,
.cifo-seek__decoration::after {
    position: absolute;
    right: 12px;
    width: 35px;
    height: 105px;
    border-radius: 100% 0 100% 0;
    background: #DCE7F7;
    content: "";
    transform: rotate(-24deg);
}

.cifo-seek__decoration::before {
    top: 28px;
}

.cifo-seek__decoration::after {
    top: 112px;
    right: 36px;
    height: 78px;
    transform: rotate(25deg);
}

@media (max-width: 900px) {
    .cifo-seek__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cifo-seek__note {
        margin-right: 30px;
    }
}

@media (max-width: 560px) {
    .cifo-seek {
        padding-block: 44px;
    }

    .cifo-seek__header {
        flex-direction: column;
        gap: 16px;
    }

    .cifo-seek__note {
        align-self: flex-end;
        margin: 0 22px 6px 0;
    }

    .cifo-seek__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cifo-seek__card {
        min-height: 156px;
    }

    .cifo-seek__decoration {
        width: 48px;
        opacity: 0.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cifo-seek__card,
    .cifo-seek__arrow {
        transition: none;
    }

    .cifo-seek__card:hover {
        transform: none;
    }
}


/* ==================================================
   CIFO — ¿Qué estás buscando?
   Ajuste fiel a la referencia visual aprobada
   ================================================== */

.cifo-seek {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(42px, 4.1vw, 78px) 0 66px;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            #EAF4FF 0%,
            #F6FAFF 48%,
            #FFFFFF 100%
        );
}

.cifo-seek__inner {
    width: min(calc(100% - 64px), 1780px);
    max-width: 1780px;
    margin-inline: auto;
}

.cifo-seek__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 52px;
}

.cifo-seek__heading {
    min-width: 0;
}

.cifo-seek__accent {
    display: none;
}

.cifo-seek__heading h2 {
    margin: 0 0 14px;
    color: #103A78;
    font-size: clamp(29px, 2.65vw, 54px);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: 0;
}

.cifo-seek__heading h2 strong {
    font-weight: 850;
}

.cifo-seek__heading > p {
    position: relative;
    margin: 0 0 0 126px;
    color: #244A83;
    font-size: clamp(16px, 1.35vw, 27px);
    line-height: 1.45;
}

.cifo-seek__heading > p::before {
    position: absolute;
    top: 0.25em;
    left: -126px;
    width: 102px;
    height: 9px;
    border-radius: 20px;
    background: #FFC400;
    content: "";
}

.cifo-seek__note {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: -12px 95px 0 0;
    color: #103A78;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(22px, 2.3vw, 43px);
    font-style: italic;
    line-height: 1.05;
    transform: rotate(-8deg);
}

.cifo-seek__note::after {
    position: absolute;
    right: 5%;
    bottom: -12px;
    width: 48%;
    height: 4px;
    background: #FFC400;
    content: "";
    transform: rotate(-3deg);
}

.cifo-seek__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.cifo-seek__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 370px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 36px 65px;
    overflow: hidden;
    border: 1px solid rgba(225, 235, 248, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(40, 100, 170, 0.09);
    color: #103A78;
    text-decoration: none !important;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.cifo-seek__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(40, 100, 170, 0.15);
}

.cifo-seek__icon {
    display: flex;
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px -2px;
    padding: 27px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #103A78;
    box-sizing: border-box;
}

.cifo-seek__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cifo-seek__card h3 {
    margin: 0 0 8px;
    color: #102F70;
    font-size: clamp(17px, 1.45vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.cifo-seek__card p {
    margin: 0;
    color: #355B92;
    font-size: clamp(15px, 1.22vw, 24px);
    line-height: 1.5;
}

.cifo-seek__card::after {
    position: absolute;
    bottom: 36px;
    left: 36px;
    width: 79px;
    height: 9px;
    border-radius: 20px;
    background: var(--card-accent, #FFC400);
    content: "";
}

.cifo-seek__card--blue {
    --card-accent: #FFC400;
}

.cifo-seek__card--sky {
    --card-accent: #60B1FF;
}

.cifo-seek__card--green {
    --card-accent: #34D4AB;
}

.cifo-seek__card--violet {
    --card-accent: #8A5BE8;
}

.cifo-seek__arrow {
    position: absolute;
    right: 34px;
    bottom: 26px;
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #103D80;
    color: #FFFFFF;
    font-size: 37px;
    font-weight: 300;
    line-height: 1;
    transition: background-color 220ms ease;
}

.cifo-seek__card:hover .cifo-seek__arrow {
    background: #B38A22;
}

.cifo-seek__decoration {
    position: absolute;
    top: -35px;
    right: -10px;
    z-index: -1;
    width: 260px;
    height: 500px;
    pointer-events: none;
    opacity: 0.56;
    background:
        radial-gradient(
            ellipse at 80% 15%,
            #DDE9FA 0%,
            transparent 62%
        );
}

.cifo-seek__decoration::before,
.cifo-seek__decoration::after {
    position: absolute;
    right: 35px;
    width: 95px;
    height: 250px;
    border-radius: 100% 0 100% 0;
    background: rgba(205, 222, 246, 0.5);
    content: "";
    transform: rotate(-24deg);
}

.cifo-seek__decoration::before {
    top: -10px;
}

.cifo-seek__decoration::after {
    top: 165px;
    right: 100px;
    width: 72px;
    height: 205px;
    transform: rotate(28deg);
}

@media (max-width: 1200px) {
    .cifo-seek__inner {
        width: calc(100% - 48px);
    }

    .cifo-seek__card {
        min-height: 320px;
        padding: 20px 22px 60px;
    }

    .cifo-seek__icon {
        width: 112px;
        height: 112px;
        padding: 23px;
    }

    .cifo-seek__card::after {
        left: 22px;
        bottom: 30px;
        width: 58px;
    }

    .cifo-seek__arrow {
        right: 20px;
        bottom: 20px;
        width: 54px;
        height: 54px;
        font-size: 30px;
    }

    .cifo-seek__note {
        margin-right: 45px;
    }
}

@media (max-width: 760px) {
    .cifo-seek {
        padding: 42px 0;
    }

    .cifo-seek__inner {
        width: calc(100% - 36px);
    }

    .cifo-seek__header {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 28px;
    }

    .cifo-seek__heading h2 {
        font-size: clamp(25px, 6vw, 36px);
    }

    .cifo-seek__heading > p {
        margin-left: 0;
        padding-top: 17px;
        font-size: 15px;
    }

    .cifo-seek__heading > p::before {
        top: 0;
        left: 0;
        width: 68px;
        height: 6px;
    }

    .cifo-seek__note {
        align-self: flex-end;
        margin: 0 30px 6px 0;
        font-size: 25px;
    }

    .cifo-seek__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cifo-seek__card {
        min-height: 275px;
        padding: 17px 16px 60px;
    }

    .cifo-seek__icon {
        width: 88px;
        height: 88px;
        margin-bottom: 16px;
        padding: 20px;
    }

    .cifo-seek__card h3 {
        font-size: 15px;
    }

    .cifo-seek__card p {
        font-size: 14px;
    }

    .cifo-seek__card::after {
        left: 16px;
        bottom: 26px;
        width: 48px;
        height: 6px;
    }

    .cifo-seek__arrow {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .cifo-seek__decoration {
        width: 90px;
        opacity: 0.28;
    }
}

@media (max-width: 420px) {
    .cifo-seek__grid {
        grid-template-columns: 1fr;
    }

    .cifo-seek__card {
        min-height: 235px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cifo-seek__card,
    .cifo-seek__arrow {
        transition: none;
    }

    .cifo-seek__card:hover {
        transform: none;
    }
}




