﻿html {
    font-size: 14px;
}

:root {
    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Exo 2", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --navbar-anchor-offset: clamp(56px, 4vw, 84px);
}

body {
    font-family: var(--font-body);
}

.hero__title {
    margin: 0 0 12px;
    line-height: 1.1;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.7rem);
    letter-spacing: .2px;
    text-align: center;
}

.hero__highlight {
    color: var(--brand);
}

.hero__subtitle {
    margin: 0 auto 28px;
    text-align: center;
    color: var(--muted);
    max-width: 900px;
    padding: 12px 16px;
}

h1, h2, .hero__title {
    font-family: var(--font-display);
    font-weight: 400;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*NAVBAR*/
header {
    position: sticky;
    top: 0;
    z-index: 1040;
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
    min-height: clamp(48px, 3.6vw, 72px);
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
}

.navbar-brand {
    margin-right: 0;
    padding-right: 0;
}

    .navbar-brand img {
        height: clamp(32px, 3.6vw, 52px);
    }

.navbar-nav .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
}

main section[id] {
    scroll-margin-top: var(--navbar-anchor-offset);
}

@media (max-width: 575.98px) {
    .navbar {
        min-height: clamp(38px, 11vw, 54px);
    }

    .navbar-brand img {
        height: clamp(28px, 10vw, 40px);
    }

    .navbar-nav .nav-link {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/*FOOTER*/
.footer {
    background: #2f3133;
    color: #e7e9ec;
}

    .footer a {
        color: #e7e9ec;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
}

.footer__left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.footer__center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.footer__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.footer__logo {
    height: 44px;
    width: auto;
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .footer__social a {
        display: inline-flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        background: #3a3c3f;
        border-radius: 8px;
    }

        .footer__social a:hover {
            background: #4a4d50;
            text-decoration: none;
        }

    .footer__social svg {
        width: 18px;
        height: 18px;
    }

.footer__partner-logo {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer__copyright {
    margin: 0;
    line-height: 1.2;
    color: #e7e9ec;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: right;
}

    .footer__copyright .footer__reg {
        display: inline-block;
        font-size: 1.18em;
        line-height: 1;
        margin-left: .12em;
    }

/* botones */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
}

.button--primary {
    background: var(--brand);
    color: #fff;
    border: 1px solid transparent;
}

    .button--primary:hover {
        background: var(--brand-d);
        color: #fff;
    }

.button--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.cta__feedback {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
}

.cta__feedback--success {
    background: #f3fbe5;
    border: 1px solid var(--brand, #91D42C);
    color: #1f2f10;
    box-shadow: 0 8px 18px rgba(15, 88, 13, 0.12);
}

.cta-toast-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.cta-toast {
    min-width: 280px;
    max-width: min(92vw, 420px);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

    .cta-toast.is-visible {
        transform: translateY(0);
        opacity: 1;
    }

.cta-toast--success {
    background: #f3fbe5;
    border: 1px solid var(--brand, #91D42C);
    color: #1f2f10;
}

.cta-toast--error {
    background: #fff1f2;
    border: 1px solid #fda4af;
    color: #7f1d1d;
}

@media (max-width: 640px) {
    .cta-toast-root {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .cta-toast {
        min-width: 0;
        max-width: 100%;
    }
}

/* CTA validation (común a todos los formularios) */
.cta__form {
    position: relative;
}

    .cta__form input.is-invalid,
    .cta__form textarea.is-invalid {
        box-shadow: 0 0 0 2px rgba(145, 212, 44, 0.5);
    }

    .cta__form .cta__error {
        position: absolute;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #f3fbe5;
        border: 1px solid var(--brand, #91D42C);
        color: #1f2f10;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 0.95rem;
        box-shadow: 0 8px 18px rgba(15, 88, 13, 0.12);
        text-align: left;
        z-index: 2;
        pointer-events: none;
        line-height: 1.35;
    }

        .cta__form .cta__error::before {
            content: "!";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 22px;
            width: 22px;
            border-radius: 50%;
            background: var(--brand, #91D42C);
            color: #0a2305;
            font-weight: 800;
            font-size: 0.9rem;
        }

        .cta__form .cta__error::after {
            content: "";
            position: absolute;
            top: -7px;
            left: 18px;
            width: 12px;
            height: 12px;
            background: #f3fbe5;
            border-left: 1px solid var(--brand, #91D42C);
            border-top: 1px solid var(--brand, #91D42C);
            transform: rotate(45deg);
        }

@media (max-width: 1024px) {
    .footer__top {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 10px 14px;
    }

    .footer__left,
    .footer__center,
    .footer__right {
        justify-content: center;
        width: 100%;
    }

    .footer__logo {
        height: 36px;
    }

    .footer__partner-logo {
        height: 24px;
    }

    .footer__social a {
        width: 30px;
        height: 30px;
    }

    .footer__copyright {
        font-size: 0.78rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer__top {
        padding: 8px 10px;
        gap: 10px;
    }

    .footer__center {
        flex-wrap: wrap;
        gap: 10px;
    }

    .footer__social a {
        width: 28px;
        height: 28px;
    }

    .footer__social svg {
        width: 16px;
        height: 16px;
    }

    .footer__partner-logo {
        height: 22px;
    }

    .footer__copyright {
        font-size: 0.74rem;
        white-space: normal;
        text-align: center;
    }
}
.solutions__grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.solutions__grid--reverse {
    grid-template-columns: 0.85fr 1fr;
}

.solutions-card {
    width: 100%;
    max-width: 500px;
    height: 340px;
    justify-self: end;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
}

.solutions__grid--reverse .solutions-card {
    justify-self: start;
}

.solutions-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solutions-card__overlay {
    position: absolute;
    inset: 0;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}