﻿
:root {
    --blue: #001489;
    --red: #C8102E;
    --text: #393C40;
    --muted: #5B636C;
    --soft: #F3F4F6;
    --card: #F9F9F9;
    --radius: 18px;
    --shadow: 0 14px 40px rgba(0,0,0,.10);
}

html, body {
    font-family: Manrope, sans-serif;
    color: var(--text);
    background: #fff;
}

h3{
    color:var(--text);
}

/* ===== Layout container (mobile look) ===== */
.page {
    max-width: 390px; /* MOBILE: como tu screenshot */
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== Top logos ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 2px 6px;
    z-index: 100000;
    position: relative;
    background: white;
}

.brand-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.brand-ahorro {
    height: 43px;
    width: 85px;
}

.brand-monedero {
    height: 42px;
    width: 169px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    height: 748px;
    top:0;
    /*background: url("assets/img/Desktop_CMUSA.mp4") center/cover no-repeat;*/
    /*box-shadow: var(--shadow);*/
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 70%, rgba(0,0,0,0) 100%);
    }

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 80%;
}

.hero h1 {
    color: #fff;
    font-family: Manrope;
    font-weight: 600;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: -2%;
}

.hero p {
    color: #fff;
    line-height: 1.4;
    margin: 0 0 12px;
    max-width: 380px;
    font-family: Manrope;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
}

.btn-hero {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    font-size:16px;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    width: fit-content;
    text-decoration: none;
}

    .btn-hero:hover {
        background: rgba(255,255,255,.24);
        color: #fff;
    }
#background-video {
    max-width: 1403px;
    position: absolute;
    top: 0;
    margin-top: -5.5rem;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section.pasos{
    background:var(--card);
}

.section-title {
    text-align: center;
    font-weight: 600;
    font-size: 32px;
    margin: 6px 0 10px;
    letter-spacing: -.02em;
    line-height:1.2;
}

    .section-title .red {
        color: var(--red);
    }

.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.25;
    max-width: 330px;
    margin: 0 auto 40px;
    font-weight:350;
}


    .section-sub .sub-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--muted);
    }

    .section-sub .sub-text {
        font-size: 14px;
    }

/* ===== Feature cards (mobile stack / small grid) ===== */
.feature-panel {
    /*background: red;*/
    border-radius: 16px;
    padding: 1px;
}

/* default MOBILE: 1 columna (como tu screenshot MOBILE) */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.fcard {
    background: var(--card);
    border-radius: 14px;
    padding: 14px 12px;
    /*box-shadow: 0 10px 22px rgba(0,0,0,.06);*/
}

    .fcard p.note {
        font-weight: 350;
        font-size: 14px;
    }

.ficon {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin: auto;
}

    .ficon img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

.fmedia {
    width: 100%;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    margin: auto;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
}

    .fmedia img {
        width: 100%;
        height: 100%;
        /*object-fit: cover;*/
        display: block;
        margin: auto;
    }

        .fmedia img.tarjeta {
            max-width: 399.5px;
        }

        .fmedia img.s-auto {
            width:auto;
        }

.fcard h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.fcard p {
    font-weight:350;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    color: var(--muted);
}

.fcard p.text{
    font-weight:350;
    font-size:14px;
}

/* ===== Steps ===== */
.steps {
    display: grid;
    gap: 10px;
    padding: 0 6px;
    
}

.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.step .t1 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.step .t2 {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: var(--muted);
    font-size: 14px;
}

/* ===== Chat ===== */
.chat {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE: apilado */
    gap: 12px;
    align-items: center;
    padding: 0 6px;
}

    .chat h3 {
        font-weight: 600;
        font-size: 28px;
        line-height: 1.2;
        margin: 0 0 6px;
    }

    .chat p {
        color: var(--muted);
        font-size: 20px;
        font-weight:600;
        line-height: 1.45;
        margin: 0 0 10px;
    }

        .chat p.text {
            font-size: 24px;
        }

        .chat p.note {
            font-size: 24px;
            margin-bottom: 16px;
        }

.btn-primary-pill {
    background: var(--blue);
    border-color: var(--blue);
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 12px;
    font-size: 16px;
    box-shadow: 0 10px 18px rgba(11,46,168,.18);
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

    .btn-primary-pill:hover {
        filter: brightness(1.05);
        color: #fff;
    }

.chat-mock {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f7;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

    .chat-mock img {
        width: 100%;
        height: auto;
        display: block;
    }

/* ===== Security ===== */
.secure {
    text-align: center;
    background:var(--card);
}

    .secure h3 {
        font-weight: 700;
        font-size: 28px;
        margin: 0 0 16px;
    }

    .secure p {
        font-size: 16px;
        color: var(--muted);
        line-height: 1.4;
        max-width: 1140px;
        margin: 0 auto 12px;
    }

.secure-logos {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .secure-logos img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
        object-fit: contain;
        background: #fff;
        box-shadow: 0 10px 18px rgba(0,0,0,.06);
        padding: 8px;
    }

/* ===== Card section ===== */
.cardsec {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE: apilado */
    gap: 12px;
    align-items: center;
    padding: 0 6px;
}

    .cardsec .img {
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
        /*background: #0b0b0b;*/
        /*box-shadow: var(--shadow);*/
    }

        .cardsec .img img {
            width: 100%;
            height: auto;
            display: block;
        }

    .cardsec h3 {
        font-weight: 600;
        font-size: 18px;
        line-height: 1.1;
        margin: 0 0 8px;
    }

        .cardsec h3 .blue {
            color: var(--blue);
        }

        .cardsec h3 .red {
            color: var(--red);
        }

.mini-steps {
    display: flex;
    gap: 34px;
    margin-top: 32px;
    text-align:center;
}

.mini-step {
    display: table-column;
    gap: 10px;
    align-items: flex-start;
}

    .mini-step .dot {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        background: var(--red);
        color: #fff;
        display: grid;
        place-items: center;
        font-weight: 600;
        font-size: 16px;
        margin:auto;
        margin-top: 2px;
        flex: 0 0 auto;
    }

    .mini-step p {
        margin: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.35;
    }

/* ===== CTA rojo ===== */
.cta {
    background: radial-gradient(50% 61.69% at 50% 50%, #D7445C 0%, #C8102E 100%);
    color: #fff;
    padding: 22px 16px;
    margin-top: 18px;
}

    .cta h3 {
        text-align: center;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.15;
        margin: 0 0 16px;
        color:#fff;
    }

    .cta p {
        text-align: center;
        color: rgba(255,255,255,.88);
        font-size: 10px;
        line-height: 1.4;
        margin: 0 auto 0px;
        /*max-width: 360px;*/
    }

.store-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

    .store-row img {
        height: 40px;
        width: auto;
        object-fit: contain;
    }

/* ===== Footer ===== */

footer p{
    text-align:justify;
}

.footer {
    padding: 14px 0 26px;
    font-size: 10px;
    color: var(--muted);
}

    .footer a {
        color: var(--blue);
        text-decoration: none;
        font-weight: 800;
    }

/* =========================================================
       DESKTOP BREAKPOINTS: cambia a "vista desktop"
       ========================================================= */

@media (max-width: 445px) {
    
    .page {
        padding: 0 18px;
    }

    .hero{
        border-radius: 0 0 22px 22px;
    }

    .hero-content {
        margin: auto;
        display: flow;
        text-align:center;
    }

    #background-video{
        max-height:930px;

    }

    .hero h1{
        font-size:32px;
    }

    .hero p {
        font-size: 16px;
        padding-bottom: 32px;
    }

    .fmedia img.tarjeta {
        max-width: fit-content;
    }


    .chat{
        text-align:center;
    }

        .chat p {
            font-size:18px;
        }

            .chat p.text {
                font-size: 16px;
            }

            .chat p.note {
                font-size: 14px;
                font-weight: 400;
                padding:0 48px;
            }

    .chat-container {
        padding-bottom: 36px;
    }

    .fcard {
        padding: 24px;
        border-radius:24px;
    }
   
}

/* >= 768px: empieza a verse más amplio */
@media (min-width: 768px) {
    .page {
        max-width: 900px;
        padding: 0 18px;
    }

    .hero {
        height: 360px;
        border-radius: 28px;
    }

        .hero h1 {
            font-size: 32px;
        }

        .hero p {
            font-size: 14px;
            max-width: 570px;
        }

    .btn-hero {
        font-size: 16px;
        padding: 12px 16px;
    }

    /* beneficios: 2 columnas en tablet */
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* >= 992px: layout DESKTOP como tu imagen */
@media (min-width: 992px) {
    .page {
        max-width: 1440px;
    }

    .topbar {
        padding: 16px 0 10px;
    }

    /* HERO: más alto y contenido más "respirado" */
    .hero {
        height: 692px;
    }

    .hero-content {
        padding: 44px 48px;
        max-width: 58%;
    }

    .hero h1 {
        font-size: 64px;
        max-width:490px;
    }

    .hero p {
        font-size: 18px;
    }

    .brand-monedero {
        height: 81px;
        width: 316px;
    }

    .brand-ahorro {
        height: 81px;
        width: 131px;
    }

    /* Títulos un poco más grandes en desktop */
    .section-title {
        font-size: 48px;
        max-width: 680px;
        margin: auto;
        padding-bottom: 16px;
    }

    .section-sub {
        font-size: 24px;
        max-width: 736px;
    }

        .section-sub .sub-title {
            font-size: 24px;
        }

        .section-sub .sub-text {
            font-size:18px;
        }

    /* Beneficios: 3 columnas (desktop) */
    .feature-grid {
        grid-template-columns: 1.5fr 2.5fr;
    }

    .fmedia {
        height: 199px;
    }

        .fmedia img.tarjeta {
            max-width: 399.5px;
        }

        .fmedia img.s-auto {
            width: auto;
        }

    .fcard {
        border-radius: 32px;
        padding: 42px 32px;
        /*box-shadow: 0 10px 22px rgba(0,0,0,.06);*/
    }

        .fcard h3 {
            font-size: 28px;
        }

        .fcard p {
            font-size: 18px;
        }

        .fcard p.text {
            font-size: 18px;
        }

        .fcard p.note {
            font-size: 16px;
        }


    .section.pasos {
        padding-left: 160px;
        padding-right: 160px;
    }

    .steps {
        /*display: grid;
    gap: 10px;
    padding: 0 6px;*/
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Creates 3 equal-width columns */
        gap: 24px; /* Adds space between items */
    }

    .step {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .step-badge {
        width: 42px;
        height: 42px;
    }

    .step .t1 {
        font-size: 18px;
    }

    .step .t2 {
        font-size: 16px;
    }

    .secure {
        padding-left: 160px;
        padding-right: 160px;
    }

        .secure h3 {
            font-size: 48px;
        }

        .secure p {
            font-size: 18px;
        }


    /* Chat: 2 columnas como desktop */
    .chat {
        grid-template-columns: 1fr 1.2fr;
        gap: 22px;
    }

        .chat h3 {
            font-size: 48px;
            line-height: 1.2;
            letter-spacing: -.02em;
        }

        .chat p {
            font-size: 24px;
        }

            .chat p.text {
                font-size: 18px;
                font-weight:350;

            }

            .chat p.note {
                font-size: 16px;
                color:var(--muted);
                font-weight:350;
            }

    .btn-primary-pill {
        padding: 18.5px 39px;
        border-radius: 12px;
    }

    /* Tarjeta: 2 columnas como desktop */
    .cardsec {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

        .cardsec h3 {
            font-size: 48px;
        }

        .cardsec p {
            margin: 0; 
            color: var(--muted); 
            font-size: 18px; 
            line-height: 1.4;
        }

    .mini-step p {
        font-size: 18px;
    }

    /* CTA: más ancho (desktop) */
    .cta {
        padding: 100px 160px;
    }

        .cta h3 {
            font-size: 48px;
        }

        .cta p {
            font-size: 18px;
        }

    .store-row img {
        height: 46px;
    }
}


