/* =========================================================
   CENTRALPAY - REGISTRO
   styles.css
========================================================= */


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #071d59;
    background: #ffffff;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* =========================
   VARIABLES
========================= */

:root {
    --navy: #071d59;
    --hero-blue: #081b5a;
    --primary-blue: #0757e6;
    --banner-blue: #0955e8;
    --light-gray: #f4f4f4;
    --text-gray: #777777;
    --white: #ffffff;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    height: 86px;
    background: #ffffff;
    display: flex;
    align-items: center;
}

.header-container {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.header-logo {
    width: 245px;
    height: auto;
}


/* =========================================================
   HERO / PRIMERA SECCIÓN
========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 745px;
    background: var(--hero-blue);
    overflow: hidden;
}

.hero-container {
    width: min(1200px, calc(100% - 40px));
    min-height: 745px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}


/* =========================
   HERO - TEXTO
========================= */

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(36px, 3vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.hero-content h1 span {
    color: var(--primary-blue);
}


/* =========================
   FORMULARIO
========================= */

.solicitud-form {
    width: 100%;
    max-width: 410px;
}

.form-group {
    width: 100%;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    height: 53px;

    border: none;
    outline: none;
    border-radius: 9px;

    padding: 0 15px;

    font-family: inherit;
    font-size: 16px;

    background: #ffffff;
    color: #222222;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.form-group input::placeholder {
    color: #555555;
}

.form-group input:focus {
    box-shadow: 0 0 0 3px rgba(55, 119, 255, 0.35);
}


/* =========================
   BOTÓN ENVIAR
========================= */

.btn-enviar {
    min-width: 145px;
    height: 49px;

    margin-top: 3px;
    padding: 0 28px;

    border: none;
    border-radius: 7px;

    background: var(--primary-blue);
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.btn-enviar:hover {
    background: #0048c9;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.btn-enviar:active {
    transform: translateY(0);
}


/* =========================
   MENSAJE DE ÉXITO
========================= */

.mensaje-exito {
    display: none;

    margin-top: 16px;
    padding: 13px 16px;

    background: #ffffff;
    color: #0757e6;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;
}


/* La usaremos desde JavaScript */

.mensaje-exito.visible {
    display: block;
}


/* =========================
   HERO - IMÁGENES
========================= */

.hero-images {
    position: relative;
    width: 100%;
    height: 620px;
    align-self: end;
}

.hero-phone {
    position: absolute;

    width: 390px;
    max-height: 600px;
    object-fit: contain;

    right: 70px;
    bottom: -10px;

    z-index: 1;
}

.hero-card {
    position: absolute;

    width: 430px;

    right: -15px;
    bottom: 55px;

    z-index: 3;

    filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.22));
}


/* =========================================================
   SEGUNDA SECCIÓN - PASOS
========================================================= */

.steps {
    width: 100%;
    background: #ffffff;
    padding: 90px 20px 105px;
}

.steps-container {
    width: min(1220px, 100%);
    margin: 0 auto;
    text-align: center;
}

.steps h2 {
    color: var(--navy);

    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.15;
    font-weight: 800;

    margin-bottom: 44px;
}

.steps-description {
    max-width: 790px;
    margin: 0 auto 82px;

    color: #8b8b8b;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 400;
}


/* =========================
   GRID
========================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
}


/* =========================
   TARJETAS
========================= */

.step-card {
    min-height: 430px;

    padding: 42px 35px;

    background: var(--light-gray);

    border-radius: 13px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 69px;
    height: 69px;

    margin-bottom: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--navy);
    color: #ffffff;

    font-size: 31px;
    font-weight: 700;
}

.step-card h3 {
    min-height: 66px;

    margin-bottom: 20px;

    color: var(--primary-blue);

    font-size: 25px;
    line-height: 1.05;
    font-weight: 700;
}

.step-card p {
    max-width: 280px;

    color: #555555;

    font-size: 16px;
    line-height: 1.15;

    margin: 0 auto;
}


/* =========================
   BOTÓN PASO 1
========================= */

.step-button {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 160px;
    min-height: 54px;

    padding: 0 25px;

    background: var(--primary-blue);
    color: #ffffff;

    border-radius: 7px;

    font-size: 16px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.step-button:hover {
    background: #0048c9;
    transform: translateY(-2px);
}


/* =========================================================
   TERCERA SECCIÓN - APP
========================================================= */

.app-section {
    width: 100%;
    background: #ffffff;

    padding: 95px 20px 105px;
}

.app-container {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.app-banner {
    position: relative;

    width: 100%;
    min-height: 355px;

    border-radius: 34px;

    background: var(--banner-blue);

    display: grid;
    grid-template-columns: 42% 58%;

    align-items: center;

    overflow: hidden;
}


/* =========================
   IMAGEN TELÉFONO
========================= */

.app-image {
    position: relative;
    height: 355px;
}

.app-image img {
    position: absolute;

    width: 390px;
    max-height: 510px;
    object-fit: contain;

    left: 25px;
    bottom: -95px;
}


/* =========================
   TEXTO APP
========================= */

.app-content {
    position: relative;
    z-index: 2;

    text-align: center;
    color: #ffffff;

    padding: 35px 55px 35px 15px;
}

.app-content h2 {
    margin-bottom: 36px;

    color: #ffffff;

    font-size: 29px;
    line-height: 1.05;
    font-weight: 800;
}

.app-content > p {
    max-width: 650px;
    margin: 0 auto;

    font-size: 16px;
    line-height: 1.15;
}


/* =========================
   DESCARGAS
========================= */

.download {
    margin-top: 28px;
}

.download h3 {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 20px;
}

.store-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;
}

.store-buttons a {
    display: block;
}

.store-buttons img {
    width: 145px;
    height: 45px;
    object-fit: contain;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;
    min-height: 120px;

    background: var(--navy);

    display: flex;
    align-items: center;
}

.footer-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;

    color: #ffffff;
}

.footer-container p {
    font-size: 15px;
    font-weight: 600;
}

.footer-logo {
    width: 210px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1050px) {

    /* HERO */

    .hero {
        min-height: auto;
    }

    .hero-container {
        min-height: 700px;
        grid-template-columns: 48% 52%;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-images {
        height: 580px;
    }

    .hero-phone {
        width: 330px;
        right: 30px;
    }

    .hero-card {
        width: 350px;
        right: -20px;
        bottom: 70px;
    }


    /* PASOS */

    .steps-grid {
        gap: 30px;
    }

    .step-card {
        padding-left: 25px;
        padding-right: 25px;
    }


    /* APP */

    .app-image img {
        width: 330px;
        left: 5px;
    }

    .app-content {
        padding-right: 35px;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr auto;
    }

    .footer-logo {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 768px) {

    /* HEADER */

    .header {
        height: 72px;
    }

    .header-container {
        width: calc(100% - 32px);
        justify-content: center;
    }

    .header-logo {
        width: 200px;
    }


    /* HERO */

    .hero-container {
        width: calc(100% - 36px);

        display: flex;
        flex-direction: column;

        min-height: auto;

        padding-top: 55px;
    }

    .hero-content {
        width: 100%;
        max-width: 520px;

        text-align: center;
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.1;

        margin-bottom: 30px;
    }

    .solicitud-form {
        max-width: 450px;
        margin: 0 auto;

        text-align: left;
    }

    .btn-enviar {
        width: 100%;
    }

    .hero-images {
        width: 100%;
        height: 500px;

        margin-top: 25px;
    }

    .hero-phone {
        width: 310px;

        left: 50%;
        right: auto;
        bottom: -20px;

        transform: translateX(-50%);
    }

    .hero-card {
        width: 330px;

        left: 50%;
        right: auto;
        bottom: 30px;

        transform: translateX(-30%);
    }


    /* PASOS */

    .steps {
        padding: 70px 18px;
    }

    .steps h2 {
        font-size: 28px;
    }

    .steps-description {
        margin-bottom: 50px;

        font-size: 18px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;

        max-width: 450px;
        margin: 0 auto;
    }

    .step-card {
        min-height: 390px;
    }


    /* APP */

    .app-section {
        padding: 70px 18px;
    }

    .app-banner {
        grid-template-columns: 1fr;

        min-height: auto;

        border-radius: 25px;
    }

    .app-content {
        grid-row: 1;

        padding: 50px 25px 20px;
    }

    .app-content h2 {
        font-size: 25px;
        line-height: 1.08;

        margin-bottom: 25px;
    }

    .app-content > p {
        font-size: 15px;
        line-height: 1.3;
    }

    .app-image {
        grid-row: 2;

        height: 390px;
    }

    .app-image img {
        width: 320px;

        left: 50%;
        bottom: -100px;

        transform: translateX(-50%);
    }


    /* FOOTER */

    .footer {
        padding: 35px 0;
    }

    .footer-container {
        width: calc(100% - 40px);

        display: flex;
        flex-direction: column;

        text-align: center;
        gap: 22px;
    }

    .footer-logo {
        display: block;
        width: 190px;
        order: -1;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 29px;
    }

    .hero-images {
        height: 420px;
    }

    .hero-phone {
        width: 270px;
    }

    .hero-card {
        width: 280px;
    }

    .steps h2 {
        font-size: 24px;
    }

    .step-card h3 {
        font-size: 23px;
    }

    .app-content h2 br {
        display: none;
    }

    .store-buttons {
        flex-direction: column;
        gap: 8px;
    }

}