/* ===== SectionAnalyzeForm (saf-*) ===== */

/* ── Layout principal ─────────────────────────────────────────────── */
.saf-section {
    background: #F9FAFB;
    padding: 50px 0;
    margin-top: 6rem;
    width: 100%;
}

.saf-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 85%;
    margin: 0 auto;
}

/* ── Columna izquierda: imagen + móvil ────────────────────────────── */
.saf-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saf-bg-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* ── Móvil (idéntico a socc con prefijo saf) ──────────────────────── */
.saf-movil-wrap {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    z-index: 2;
    width: 268px;
    height: 539px;
    flex-shrink: 0;
}

.saf-movil-img {
    width: 268px;
    height: 539px;
    display: block;
    object-fit: contain;
}

.saf-movil-screen {
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    bottom: 44px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
    z-index: 1;
}

.saf-app-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.saf-app-row:not(.saf-app-row--check):not(.saf-app-row--no-bg) {
    width: calc(100% + 80px);
    margin-left: -40px;
}

.saf-app-row:first-child {
    justify-content: center;
}

.saf-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFBFB;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.30);
    border-radius: 19px;
    padding: 10px 10px;
}

.saf-app-row-icon {
    max-width: 170px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.saf-app-row-icon svg {
    width: 100%;
    height: 100%;
}

.saf-app-row-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.saf-icon-teal {
    width: 53px;
    height: 53px;
}

/* ── Cabecera app (twipo) ─────────────────────────────────────────── */
.saf-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 6px;
    flex-shrink: 0;
}

.saf-app-header-menu {
    display: flex;
    align-items: center;
}

.saf-app-header-brand {
    font-family: "Lexend Deca", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color3);
}

/* ── Filas con checkmark ──────────────────────────────────────────── */
.saf-app-row--check {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 40px;
    width: calc(100% + 80px);
    margin-left: -40px;
}

.saf-check-svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ── Tarjeta banco resultado ──────────────────────────────────────── */
.saf-app-bank-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #FFFBFB;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.19);
    border-radius: 19px;
    padding: 10px 10px;
    width: calc(100% + 80px);
    margin-left: -40px;
}

.saf-bank-header {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
}

.saf-bank-body {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.saf-bank-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.saf-bank-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.saf-bank-badge {
    background: var(--color2);
    color: var(--color3);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 25px;
    border-radius: 8px;
    font-family: "Lexend Deca", sans-serif;
    width: 100%;
    text-align: center;
}

.saf-bank-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.saf-bank-label {
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    color: var(--color3);
    font-family: "Lexend Deca", sans-serif;
}

.saf-bank-amount {
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color3);
    font-family: "Lexend Deca", sans-serif;
}

.saf-bank-amount span {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: var(--color3);
    font-family: "Lexend Deca", sans-serif;
}

.saf-app-row--no-bg {
    background: transparent;
    box-shadow: none;
}

.saf-app-row--no-bg .saf-app-row-text {
    color: var(--color3);
    font-size: 20px;
}

.saf-app-row-text {
    font-family: "Lexend Deca", sans-serif;
    color: var(--color3);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
}

.saf-app-btn {
    flex-shrink: 0;
    color: var(--color3);
    background: var(--neutro1);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.19);
    border-radius: 16px;
    padding: 9px 12px;
    font-family: "Lexend Deca", sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
}

.saf-app-btn span {
    font-size: 22px;
    font-weight: 800;
}

.uacf7-form-wrapper-container.uacf7-form-40020 .submit .wpcf7-spinner{
    position: absolute;
}

/* ── Columna derecha: tarjeta formulario ──────────────────────────── */
.saf-right {
    position: relative;
    z-index: 1;
}

.saf-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid var(--color3);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
    padding: 28px 24px 24px;
}

.saf-card-title {
    color: var(--color3);
    font-size: 40px;
    font-style: normal;
    font-weight: 800;
    margin: 0 0 25px;
    text-align: center;
}

.saf-card-subtitle {
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    color: var(--neutro2);
    margin: 0 0 40px;
    text-align: center;
}

/* Formulario CF7 dentro de la tarjeta */
.saf-card .wpcf7-form p {
    margin: 0;
}

.saf-card .wpcf7-form label {
    display: block;
    font-size: 16px;
    font-style: normal;
    font-weight: 200;
    line-height: 27px;
    color: var(--color3);
    margin-bottom: 4px;
}

.saf-card .wpcf7-form .saf-row,
.saf-card .wpcf7-form .wim-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.saf-card .wpcf7-form .saf-row .medio,
.saf-card .wpcf7-form .wim-row .medio {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
}

.saf-card .wpcf7-form .saf-row .completo,
.saf-card .wpcf7-form .wim-row .completo {
    flex: 1 1 100%;
}

.saf-card .wpcf7-form .saf-row .wpcf7-form-control-wrap,
.saf-card .wpcf7-form .saf-row input,
.saf-card .wpcf7-form .wim-row .wpcf7-form-control-wrap,
.saf-card .wpcf7-form .wim-row input {
    width: 100%;
    min-width: 0;
}

.saf-card .wpcf7-form input[type="text"],
.saf-card .wpcf7-form input[type="email"],
.saf-card .wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--color3);
    font-size: 16px;
    font-weight: 200;
    line-height: 27px;
    color: var(--color3);
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    margin-top: 0px;
}

.saf-card .wpcf7-form input:focus {
    border-color: var(--color1);
}

.saf-card .wpcf7-form input::placeholder {
    color: #a8bfc7;
    font-size: 0.85rem;
}

.saf-card .wpcf7-form p.submit {
    margin: 2.5rem 0 0.25rem;
}

.saf-card .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--color1);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s;
    height: 50px;
}

.saf-card .wpcf7-form input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.saf-card-note {
    font-size: 14px;
    font-weight: 200;
    line-height: 27px;
    color: var(--color3);
    text-align: center;
    margin: 0px 0 16px;
}

/* ── Rating Google ────────────────────────────────────────────────── */
.saf-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.saf-rating-logo-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.saf-rating-score {
    font-size: 24px;
    font-weight: 300;
    line-height: 24px;
    color: var(--color3);
}

.saf-rating-stars-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.saf-rating-reviews {
    font-size: 24px;
    font-weight: 300;
    line-height: 24px;
    color: var(--color3);
}

/* ── Desktop (≥900px) ─────────────────────────────────────────────── */
@media (min-width: 900px) {
    .saf-container {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .saf-left {
        flex: 1;
    }

    .saf-movil-wrap {
        position: absolute;
        top: 50%;
        right: -40px;
        transform: translateY(-50%);
    }

    .saf-right {
        flex: 1;
    }
}

/* ── Tablet ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 900px) {
    .saf-movil-wrap {
        right: -60px;
    }

    .saf-app-row-icon {
        max-width: 170px;
        height: 17px !important;
    }

    .saf-app-row-icon.saf-icon-teal {
        height: 30px !important;
        width: auto !important;
    }

    .saf-app-row-text {
        font-size: 14px !important;
    }

    .saf-app-btn {
        font-size: 14px !important;
    }

    .saf-app-btn span {
        font-size: 14px !important;
    }

    .saf-movil-screen {
        padding: 0 !important;
    }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 899px) {
    .saf-section {
        width: 100vw !important;
        max-width: 100vw;
        box-sizing: border-box;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        margin-top: 4rem;
        padding: 50px 0;
    }

    .saf-container {
        width: 90%;
    }

    .saf-right {
        order: -1;
        width: 100%;
    }

    .saf-left {
        width: 100%;
        order: 1;
    }

    .saf-movil-wrap {
        right: 5%;
    }

    .saf-bg-img {
        width: 75%;
        margin-right: auto;
    }

    .saf-app-row-icon {
        max-width: 170px;
        height: 17px !important;
    }

    .saf-app-row-icon.saf-icon-teal {
        height: 30px !important;
        width: auto !important;
    }

    .saf-app-row-text {
        font-size: 14px !important;
    }

    .saf-app-btn {
        font-size: 14px !important;
    }

    .saf-app-btn span {
        font-size: 14px !important;
    }

    .saf-movil-screen {
        padding: 0 !important;
    }

    /* Inputs al 100% en móvil */
    .saf-card .wpcf7-form .saf-row .medio,
    .saf-card .wpcf7-form .wim-row .medio {
        flex: 1 1 100%;
    }

    .saf-card-title{
        font-size: 22px;
        font-style: normal;
        font-weight: 800;
        text-align: left;
        margin: 0 0 10px;
    }
    .saf-card-subtitle{
        font-size: 14px;
        font-style: normal;
        font-weight: 200;
        color: var(--color3);
        text-align: left;
        margin: 0 0 20px;
    }
    .saf-card .wpcf7-form label{
        font-size: 12px;
        font-style: normal;
        font-weight: 250;
    }
    .saf-card .wpcf7-form input[type="submit"]{
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
    }
    .saf-card-note{
        font-size: 11px;
        font-style: normal;
        font-weight: 250;
    }
    .saf-rating-reviews{
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
    }
    .saf-rating-score{
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
    }
    .saf-rating-logo-img{
        width: 15px;
        height: 15px;
    }
    .saf-rating-stars-img{
        height: 14px;
    }
}

/* ── Tablet-mobile (569px – 899px): mockup intermedio ────────────── */
@media (min-width: 569px) and (max-width: 899px) {
    .saf-movil-wrap {
        right: 2%;
        width: 195px;
        height: 392px;
    }

    .saf-movil-img {
        width: 195px;
        height: 392px;
    }

    .saf-movil-screen {
        top: 50px;
        left: 13px;
        right: 13px;
        bottom: 32px;
        padding: 4px 0 !important;
    }

    .saf-app-row:not(.saf-app-row--check):not(.saf-app-row--no-bg) {
        width: calc(100% + 26px);
        margin-left: -13px;
        padding: 5px 8px;
    }

    .saf-app-row--check {
        width: calc(100% + 26px);
        margin-left: -13px;
        padding: 5px 13px;
        gap: 6px;
    }

    .saf-app-bank-card {
        width: calc(100% + 26px);
        margin-left: -13px;
        padding: 5px 8px;
        gap: 6px;
    }

    .saf-app-row-text {
        font-size: 11px !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    .saf-app-row-icon {
        height: 15px !important;
    }

    .saf-app-row-icon.saf-icon-teal {
        width: 26px !important;
        height: 26px !important;
    }

    .saf-check-svg {
        width: 14px;
        height: 14px;
    }

    .saf-bank-logo {
        height: 13px;
    }

    .saf-bank-badge {
        font-size: 9px;
        line-height: 16px;
    }

    .saf-bank-label {
        font-size: 9px;
    }

    .saf-bank-amount {
        font-size: 16px;
    }

    .saf-bank-amount span {
        font-size: 11px;
    }

    .saf-app-btn {
        font-size: 10px !important;
        padding: 5px 7px;
    }

    .saf-app-btn span {
        font-size: 15px !important;
    }

    .saf-app-rows {
        gap: 12px;
    }

    .saf-bank-header {
        padding: 0 16px;
        gap: 6px;
    }
}

@media (max-width: 568px) {
    .saf-movil-wrap {
        left: auto;
        right: 0;
        width: 131px;
        height: 264px;
    }

    .saf-movil-img {
        width: 131px;
        height: 264px;
    }

    .saf-movil-screen {
        top: 33px;
        left: 9px;
        right: 9px;
        bottom: 22px;
        padding: 3px 0 !important;
    }

    .saf-app-rows {
        gap: 10px;
    }

    .saf-app-row {
        padding: 3px 5px;
        border-radius: 7px;
    }

    .saf-app-row--check {
        padding: 3px 14px;
        width: calc(100% + 40px);
        margin-left: -20px;
        gap: 4px;
    }

    .saf-app-row:not(.saf-app-row--check):not(.saf-app-row--no-bg) {
        width: calc(100% + 40px);
        margin-left: -20px;
    }

    .saf-app-row-text {
        font-size: 10px !important;
        line-height: 1.2;
    }

    .saf-app-row-icon {
        height: 23px !important;
    }

    .saf-app-row-icon.saf-icon-teal {
        width: 20px !important;
        height: 20px !important;
    }

    .saf-check-svg {
        width: 10px;
        height: 10px;
    }

    .saf-app-bank-card {
        gap: 4px;
        padding: 3px 5px;
        border-radius: 7px;
        width: calc(100% + 40px);
        margin-left: -20px;
    }

    .saf-bank-header {
        grid-template-columns: 8px 1fr;
        gap: 4px;
        padding: 0 10px;
    }

    .saf-bank-logo {
        height: 10px;
    }

    .saf-bank-badge {
        font-size: 6px;
        line-height: 11px;
        border-radius: 3px;
        font-style: normal;
        font-weight: 700;
    }

    .saf-bank-label {
        font-size: 7px;
        font-style: normal;
        font-weight: 300;
    }

    .saf-bank-amount {
        font-size: 11px;
        line-height: 1;
    }

    .saf-bank-amount span {
        font-size: 8px;
    }

    .saf-app-btn {
        font-size: 8px !important;
        padding: 3px 5px;
        border-radius: 6px;
    }

    .saf-app-btn span {
        font-size: 12px !important;
    }

    .saf-bg-img {
        width: 100%;
    }
    .saf-movil-wrap{
        top: 35%;
    }
    .saf-container{
        gap: 15px;
    }
    .saf-card{
        padding: 28px 15px 24px;
    }
}
