/* ===== InfluenceInterest (inf-*) ===== */

/* ── Layout principal ─────────────────────────────────────────────── */
.inf-section {
    padding: 60px 0;
    background: #F9FAFB;
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.inf-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* ── Columna izquierda ────────────────────────────────────────────── */
.inf-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    margin-right: 5rem;
}

.inf-titulo {
    font-family: "Lexend Deca", sans-serif;
    font-size: 30.4px;
    font-style: normal;
    font-weight: 800;
    color: var(--color3);
    margin: 0;
}

.inf-badge {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    border: 1.5px solid var(--color1);
    border-radius: 20px;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    color: var(--neutro2);
}

.inf-desc {
    font-size: 16px;
    font-style: normal;
    font-weight: 250;
    color: var(--neutro2);
    margin: 0;
}

.inf-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: var(--color1);
    color: #fff;
    border-radius: 20px;
    font-family: "Lexend Deca", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    transition: background 0.2s;
}

.inf-cta--mobile {
    display: none;
}

.inf-cta:hover {
    background: var(--color1);
    color: #fff;
}

/* ── Columna central: móvil ───────────────────────────────────────── */
.inf-middle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.inf-phone-wrap {
    position: relative;
    width: 260px;
    height: 524px;
    flex-shrink: 0;
}

.inf-phone-img {
    width: 260px;
    height: 524px;
    display: block;
    object-fit: contain;
}

.inf-phone-screen {
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    bottom: 44px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 6px 0;
    justify-content: space-evenly;
}

.inf-phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 4px;
    flex-shrink: 0;
}

.inf-phone-brand {
    font-family: "Lexend Deca", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color3);
}

.inf-euribor {
    flex-shrink: 0;
    padding: 4px 0 8px;
}

.inf-euribor-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inf-euribor-top svg {
    flex-shrink: 0;
}

.inf-euribor-label {
    font-family: "Lexend Deca", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    color: var(--color3);
}

.inf-euribor-value {
    font-family: "Lexend Deca", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    color: var(--color1);
    padding-top: 4px;
    text-align: center;
}

.inf-bank-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFBFB;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.20);
    border-radius: 10px;
    padding: 8px 12px;
    width: calc(100% + 80px);
    margin-left: -40px;
}

.inf-bank-logo {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.inf-bank-tasa {
    font-family: "Lexend Deca", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    color: var(--color3);
}

/* ── Columna derecha: items ───────────────────────────────────────── */
.inf-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 8rem;
}

.inf-items {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* Línea vertical que conecta los círculos */
.inf-items::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 54px;
    bottom: 62px;
    width: 20px;
    background: var(--color2);
    z-index: 0;
}

.inf-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

.inf-item-icon {
    position: relative;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    z-index: 1;
}

.inf-item-icon > svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 76px;
    height: 76px;
}

.inf-item-icon-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inf-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
}

.inf-item-titulo {
    font-family: "Lexend Deca", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    color: var(--color3);
}

.inf-item-desc {
    font-family: "Lexend Deca", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 250;
    color: var(--neutro2);
    margin: 0;
    max-width: 400px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .inf-titulo {
        font-size: 26px;
    }

    .inf-item-titulo {
        font-size: 17px;
    }
}

@media (max-width: 1280px) {
    .inf-section {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .inf-container {
        flex-direction: column;
        align-items: center;
        width: 85%;
    }

    .inf-left,
    .inf-right {
        width: 100%;
    }

    .inf-left {
        margin-right: 0;
        gap: 1rem;
    }

    .inf-right {
        margin-left: 0;
    }

    .inf-titulo {
        font-size: 26px;
    }

    .inf-badge {
        font-size: 18px;
    }

    .inf-item-titulo {
        font-size: 20px;
    }

    .inf-item-desc {
        font-size: 15px;
    }

    .inf-middle {
        display: none;
    }

    .inf-cta--desktop {
        display: none;
    }

    .inf-cta--mobile {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .inf-cta {
        font-size: 20px;
        font-weight: 800;
        padding: 10px 28px;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {    .inf-section {
        background: var(--neutro1);
    }

    .inf-titulo {
        font-size: 24px;
        font-style: normal;
        font-weight: 800;
    }

    .inf-badge {
        display: none;
    }

    .inf-desc {
        font-size: 16px;
        font-style: normal;
        font-weight: 200;
    }

    .inf-item-titulo {
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
    }

    .inf-item-desc {
        font-size: 14px;
        font-style: normal;
        font-weight: 200;
    }
}
