:root {
    --blue-dark: #2218A3;
    --blue-mid: #1a2fbd;
    --blue-darkest: #21168C;
    --blue-light: #1e3fe0;
    --blue: #3D3EFE;
    --green: #47FF74;
    --green-light: #47FF74;
    --green-dark: #27ae60;
    --white: #ffffff;
    --gray-light: #f4f6fc;
    --gray-text: #5a6480;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a2e;
    background: var(--blue-mid);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.display-heading {
    font-family: 'Sora', sans-serif;
}

/* ── NAVBAR ───────────────────────────── */
.navbar-redy {
    background-color: transparent;
    /* background: var(--white);
      box-shadow: 0 2px 16px rgba(13,27,142,.08);
      padding: 14px 0;
      position: sticky;
      top: 0;
      z-index: 1000; */
}

.navbar-brand img {
    height: 36px;
}

.brand-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.brand-text span {
    color: var(--green);
}

.nav-link {
    font-family: 'Sora', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--white) !important;
    transition: color .2s;
}

.nav-link:hover {
    color: var(--white) !important;
    border-radius: 20px;
    border: 2px solid var(--green);
}

.btn-nav-cta {
    background: var(--green);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 7px 20px !important;
    transition: background .2s, transform .15s;
}

.btn-nav-cta:hover {
    background: var(--green-dark);
    transform: scale(1.03);
}

/* ── HERO ─────────────────────────────── */
.hero {
    background: url('../img/bghome.png') center/cover no-repeat;
    position: relative;
    overflow: visible;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.hero-title .accent {
    color: var(--green);
}

.hero-subtitle {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    margin-top: .8rem;
}

.badge-regulated {
    display: inline-block;
    color: #47FF74;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 10px;
    margin-top: 1.2rem;
    letter-spacing: .03em;
}

.car-img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .55));
    animation: float 4s ease-in-out infinite;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Hero layout helpers */
.hero-inner {
    position: relative;
    min-height: 460px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 240px;
    /* reserve vertical space for the car below text */
}

/* Car sits absolute: bottom aligned with hero floor, right edge nudges into form */
.hero-car-wrap {
    position: absolute;
    bottom: -60px;
    /* bleed slightly below hero */
    left: -60px;
    /* bleed past left edge */
    right: -80px;
    /* stretch right so nose reaches form corner */
    z-index: 3;
    pointer-events: none;
}

.hero-car-wrap img {
    width: 100%;
    max-width: none;
}

.hero-form-col {
    position: relative;
    z-index: 5;
    /* form always above car */
}

@media (max-width: 991px) {
    .hero-inner {
        min-height: auto;
    }

    .hero-copy {
        padding-bottom: 0px;
    }

    .hero-car-wrap {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        text-align: center;
        margin: 24px 0;
    }

    .hero-car-wrap img {
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ── FORM CARD ────────────────────────── */
.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.form-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.4rem;
}

.form-card .form-control {
    border-radius: 10px;
    border: 1.5px solid #d0d7f0;
    padding: 12px 16px;
    font-size: .93rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-card .form-control:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(26, 47, 189, .12);
}

.form-card label {
    font-weight: 600;
    font-size: .85rem;
    color: #3a4060;
}

.form-check-label {
    font-size: .82rem;
    color: #5a6480;
}

.btn-cta {
    background: var(--green);
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    padding: 13px 32px;
    border: none;
    width: 100%;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(46, 204, 113, .35);
}

.btn-cta:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46, 204, 113, .45);
}

/* ── FEATURES STRIP ───────────────────── */
.features-strip {
    background: white;
    padding: 56px 0;
}

.feature-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon-wrap i {
    font-size: 1.8rem;
    color: var(--green);
}

.feature-text {
    font-family: 'Sora', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--blue-dark);
    text-align: center;
}

/* ── HOW IT WORKS ─────────────────────── */
.section-how {
    background: var(--blue-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-how::before {
    content: '6';
    font-family: 'Sora', sans-serif;
    font-size: 26rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .04);
    position: absolute;
    right: -60px;
    top: -60px;
    line-height: 1;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.section-title.dark {
    color: var(--blue);
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--green);
    border-radius: 50%;
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon {
    font-size: 2.8rem;
    color: var(--green);
    margin-bottom: 16px;
}

.step-card h5 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 8px;
}

.step-card p {
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.6;
}

.bg-vacio {
    /* background: var(--blue-darkest); */
}

/* Connector dots */
.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 60px;
    }

    .step-connector i {
        color: var(--green);
        font-size: 1.5rem;
    }
}

/* ── REQUISITOS ───────────────────────── */
.section-req {
    background: var(--blue-dark);
    padding: 70px 0 80px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.req-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: background .2s;
}

.req-item:hover {
    background: rgba(255, 255, 255, .12);
}

.req-item i {
    color: var(--green);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.req-item span {
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
    font-weight: 500;
}

/* ── SOLUCIONES ───────────────────────── */
.section-sol {
    background: #E1E1E1;
    padding: 80px 0;
}

.section-sol p {
    color: #646363;
}

.sol-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(13, 27, 142, .08);
}

.sol-icon-wrap {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sol-icon-wrap i {
    color: var(--green);
    font-size: 2.4rem;
}

.sol-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.sol-card p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* ── FAQ ──────────────────────────────── */
.section-faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-item {
    border-bottom: 1px solid var(--green-light);
    padding: 22px 0;
    display: flex;
    justify-content: start;
    /* flex-direction: column; */
}

.faq-q {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
    letter-spacing: -1%;
}

.q-icon {
    width: 40px;
    height: 40px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
    font-weight: 800;
    font-size: 1.2rem;
}

.faq-a {
    color: var(--gray-text);
    font-size: clamp(.9rem, 2vw, 1.05rem);
    line-height: 1.65;
    /* padding-left: 42px; */
    margin-top: 10px;
    /* display: none; */
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.faq-item.open .faq-a {
    display: block;
}

.faq-item.open .faq-q {
    color: var(--blue-mid);
}

/* ── MAP ──────────────────────────────── */
.section-map {
    padding: 80px 0;
    background: var(--gray-light);
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(13, 27, 142, .1);
}

.map-wrapper iframe {
    display: block;
}

/* ── FOOTER ───────────────────────────── */
.footer {
    background: var(--blue-dark);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Sora', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand span {
    color: var(--green);
}

.footer h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
    text-decoration: none;
    line-height: 2;
}

.footer a:hover {
    color: var(--green);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin: 30px 0 20px;
}

.footer-bottom {
    font-size: .75rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.6;
}

.footer-bottom-2 {
    justify-content: between;
    font-size: .75rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.6;
}

.profeco-badge {
    background: var(--white);
    border-radius: 10px;
    padding: 10px 18px;
    display: inline-block;
}

.profeco-badge span {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--blue-dark);
    letter-spacing: .02em;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to top */
#scrollTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(46, 204, 113, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .2s;
    z-index: 999;
}

#scrollTop.show {
    opacity: 1;
    pointer-events: auto;
}

#scrollTop:hover {
    transform: scale(1.1);
}



/* AUTO */
.car-image {
    position: absolute;
    width: 400px;
    left: -300px;
    bottom: -95px;
    z-index: 5;
}

/* CONTENEDOR DERECHO */
.hero-right {
    position: relative;
    height: 100%;
    min-height: 380px;
}

/* CARD */
.form-card {
    width: 100%;
    max-width: 390px;
    background: #f2f2f2;
    border-radius: 18px;
    padding: 28px;
    margin-left: auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
}

.form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2519b8;
    margin-bottom: 20px;
}

.form-title span {
    color: #00ff48;
}

.form-label {
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

.form-control {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.small-text {
    font-size: 10px;
    color: #777;
    margin-top: 5px;
}

.radio-group {
    display: flex;
    gap: 18px;
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.btn-contact {
    width: 60%;
    background: #47FF74;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-weight: 700;
    color: #2113D9;
    transition: .3s;
}

.contact-button-wrap {
    display: flex;
    justify-content: center;
}

.btn-contact:hover {
    background: #00db3d;
}

@media(max-width:991px) {
    .section-sol {
        padding: 40px 0;
    }

    .features-strip {
        padding: 40px 0;
    }

    .step-card p {
        font-size: 1rem;
    }

    .footer {
        padding: 20px 0 30px;
    }

    .hero {
        padding: 20px 0 0px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: .95rem;
    }

    .hero-right {
        margin-top: 0px;
        min-height: auto;
        overflow-x: hidden;

    }

    .section-faq {
        padding: 40px 0 !important;
    }

    .car-image {
        position: relative;
        width: 100%;
        max-width: 300px;
        transform: translateX(383px) translateY(-133px);
        /* transform: translateX(406px); */
        display: block;
        margin: 0 auto -11px;
        z-index: 1;
    }

    .form-card {
        margin: auto;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .feature-text {
        font-size: .6rem;
    }

    .footer p,
    .footer a {
        font-size: clamp(.5rem, 2vw, .88rem);
    }

    .footer h6 {
        font-size: .9rem;
    }

    #modalExito iframe {
        height: 635px !important;
    }

    .hero {
        background: url('../img/bgherohome.png') center/cover no-repeat;
    }

    .steps-section {
        background: url(../img/bg-redy.png) center/cover no-repeat !important;
    }
}

.bg-steps {
    background: var(--blue-dark);
}

.steps-section {
    background-image: url(../img/bgstep.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding: 70px 0 80px;
}




.steps-content {
    position: relative;
    z-index: 2;
}

.section-title {
    color: #fff;
    /* font-size: 3rem; */
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.steps-row {
    gap: 30px;
}

.step-card {
    position: relative;
    background: var(--blue-dark);
    border: 2px solid #28ff69;
    border-radius: 14px;
    padding: 65px 22px 28px;
    height: 100%;
    min-height: 260px;
}

.step-number {
    position: absolute;
    top: -18px;
    left: 18px;
    width: 42px;
    height: 42px;
    background: #5cff5a;
    color: #2417b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.step-icon {

    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon img {
    width: auto;
    height: 80px;
}

.step-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.step-text {
    color: white;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

@media(max-width:991px) {

    .section-title {
        font-size: 1.7rem;
    }

    .img-redy {
        width: 180px;
    }

    .steps-row {
        gap: 20px;
    }

    .step-card {
        margin-bottom: 30px;
    }
}

.requirements-section {
    background: var(--blue-darkest);
    position: relative;
    overflow: hidden;
}

.requirements-content {
    position: relative;
    z-index: 2;
}

.requirements-title {
    color: #fff;
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.requirements-subtitle {
    text-align: center;
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 45px;
}

.requirement-item {
    background: #4338ff;
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    margin-bottom: 16px;
    position: relative;
}

.requirement-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    margin-left: -40px;
    /* box-shadow: 0 0 0 6px #2417b8; */
    overflow: hidden;
}

.requirement-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.requirement-item span {
    color: white;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@media(max-width:991px) {

    .requirements-title {
        font-size: 1.2rem;
    }

    .requirements-subtitle {
        font-size: .95rem;
    }

    .requirement-item {
        margin-left: 20px;
    }

    .step-title {
        font-size: 1.5rem;
    }

}


/* mapa */

.location-section {
    padding: 60px 20px;
    background: var(--gray-light);
}

.location-title {
    color: #3d46ff;
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 10px;
}

.location-text {
    color: #777;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 40px;
}

.map-wrapper {
    max-width: 950px;
    margin: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

#map {
    width: 100%;
    height: 420px;
}

/* Personalización popup */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.leaflet-popup-content {
    font-size: 14px;
    text-align: center;
}

/* Marker personalizado */
.custom-marker {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media(max-width:768px) {

    .location-title {
        font-size: 32px;
    }

    .location-text {
        font-size: 15px;
    }

    #map {
        height: 320px;
    }

}

/* endmapa */


/* formulario */

/* ── Validación en tiempo real ─────────────────── */
.form-control.is-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .15) !important;
    background-image: none !important;
    animation: shake .35s ease;
}

.form-control.is-valid {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, .15) !important;
    background-image: none !important;
}

.field-error {
    font-size: .75rem;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 4px;
    min-height: 6px;
    display: block;
}

/* Wrapper para ícono dentro del input */
.input-wrapper {
    position: relative;
}

.input-wrapper .field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .95rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}

.input-wrapper .field-icon.show {
    opacity: 1;
}

.input-wrapper .field-icon.ok {
    color: #2ecc71;
}

.input-wrapper .field-icon.err {
    color: #e74c3c;
}

/* Radios inválidos */
.radio-group-invalid input[type="radio"] {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
    animation: shake .35s ease;
}

.err-radio {
    font-size: .75rem;
    color: #e74c3c;
    font-weight: 600;
    margin-top: -12px;
    margin-bottom: 10px;
    display: block;
    min-height: 16px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

/* ── Modal éxito ───────────────────────────────── */
#modalExito .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #f4f6fc;
}

#modalExito .modal-body {
    padding: 0;
}

#modalExito iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Spinner en botón */
#btnSpinner {
    vertical-align: middle;
}

/* endformualrio */