/* PRO·A – Landing Page | styles.css
   Paleta: #0e1d2f (navy) · #ffffff · #f2f4f7
   Acento: #68a0d5 */

/* ── Variables ──────────────────────────────────── */
:root {
    --navy:          #0e1d2f;
    --navy-dark:     #091522;
    --navy-mid:      #152a3e;
    --blue-accent:   #68a0d5;
    --blue-dark:     #3472b4;
    --white:         #ffffff;
    --grey-bg:       #f2f4f7;
    --grey-line:     #dde2e9;
    --text-dark:     #111b27;
    --text-body:     #4a5568;
    --text-muted:    #8896a5;

    --font: 'Manrope', system-ui, -apple-system, sans-serif;

    --max-w:    1180px;
    --pad-x:    clamp(20px, 4vw, 40px);
    --pad-y-xl: clamp(64px, 8vw, 104px);
    --pad-y-lg: clamp(48px, 6vw, 80px);
    --radius:   4px;
    --ease:     0.22s ease;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img     { display: block; max-width: 100%; height: auto; }
a       { color: inherit; text-decoration: none; }
ul, ol  { list-style: none; }
address { font-style: normal; }

/* ── Container ──────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

/* ── Headings ───────────────────────────────────── */
.heading-lg {
    font-size: clamp(1.65rem, 3.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--text-dark);
}
.heading-md {
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-dark);
}
.heading-white { color: var(--white) !important; }

/* ── Línea azul decorativa ──────────────────────── */
.title-blue-line {
    width: 48px;
    height: 3px;
    background: var(--blue-accent);
    border-radius: 2px;
    margin-top: 16px;
    margin-bottom: 20px;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 75svh;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(9, 18, 30, 0.99) 0%,
        rgba(9, 18, 30, 0.80) 45%,
        transparent 75%
    );
}

.hero__header {
    position: relative;
    z-index: 5;
    padding-top: clamp(24px, 3vw, 38px);
}

.hero__logo-img {
    width: 100%;
    max-width: 300px;
}

.hero__content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: clamp(56px, 8vw, 100px);
}

.hero__text-wrap {
    max-width: 600px;
}

.hero__title {
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--white);
    max-width: 440px;
}


/* ══════════════════════════════════════════════
   FUSIÓN DE MARCAS
══════════════════════════════════════════════ */
.brand-merge {
    background: var(--white);
    padding-block: var(--pad-y-xl);
    border-bottom: 1px solid var(--grey-line);
}

.brand-merge__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.brand-merge__text .heading-lg { margin-bottom: 0; }
.brand-merge__text p {
    font-size: 1.1rem;
    line-height: 1.78;
    color: var(--text-body);
}

.brand-merge__logos-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 18px;
    margin-bottom: 20px;
}

.bm-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.bm-logo--proa { height: 64px; }

.bm-vbar {
    display: block;
    width: 1px;
    height: 44px;
    background: var(--grey-line);
    flex-shrink: 0;
}

.bm-arrow {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    line-height: 1;
}

.bm-nowpart {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bm-nowpart::before,
.bm-nowpart::after {
    content: '';
    flex: 1;
    height: 3px;
    background: var(--grey-line);
}
.bm-nowpart__text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}


/* ══════════════════════════════════════════════
   CARACTERÍSTICAS
══════════════════════════════════════════════ */
.features {
    background: var(--navy);
    padding-block: var(--pad-y-xl);
}

.features__title {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-inline: clamp(24px, 3vw, 40px);
}

.feature + .feature { border-left: 1px solid #ffffff; }
.feature:first-child { padding-left: 0; }
.feature:last-child  { padding-right: 0; }

.feature__icon {
    width: 100px;
    height: 100px;
    color: var(--blue-accent);
    flex-shrink: 0;
}
.feature__icon svg { width: 100%; height: 100%; }

.feature h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.45;
}
.feature p {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--white);
}


/* ══════════════════════════════════════════════
   ECOSISTEMA
══════════════════════════════════════════════ */
.ecosystem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.ecosystem__photo { overflow: hidden; }
.ecosystem__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.ecosystem__content {
    background: var(--white);
    padding: clamp(48px, 6vw, 80px) clamp(36px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ecosystem__content .heading-lg {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.ecosystem__desc {
    font-size: 1.6rem;
    color: var(--text-body);
    margin-bottom: 4px;
}

.ecosystem__label {
    font-size: 1.6rem;
    color: var(--text-body);
    margin-bottom: 20px;
    margin-top: 4px;
}

.ecosystem__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.eco-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 16px;
}
.eco-item + .eco-item { border-left: 1px solid var(--grey-line); }
.eco-item:first-child { padding-left: 0; }
.eco-item:last-child  { padding-right: 0; }

.eco-item__icon {
    width: 80px;
    height: 80px;
    color: var(--blue-accent);
    flex-shrink: 0;
}
.eco-item__icon svg { width: 100%; height: 100%; }

.eco-item span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
}


/* ══════════════════════════════════════════════
   MARCAS PARTNERS
══════════════════════════════════════════════ */
.partners {
    background: #000c18;
    padding-block: var(--pad-y-lg);
}

.partners__title {
    text-align: center;
    margin-bottom: 44px;
}

.partners__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding-inline: clamp(14px, 1vw, 36px);
    border-right: 1px solid #ffffff;
}
.partner-logo:last-child { border-right: none; }

.partner-logo img {
    max-height: 100px;
    max-width: 110px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: opacity var(--ease);
}
.partner-logo:hover img { opacity: 1; }


/* ══════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════ */
.contact-section {
    background: var(--navy);
    padding-block: var(--pad-y-xl);
}

.contact-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.contact-section__text .heading-lg { margin-bottom: 0; }
.contact-section__text p {
    font-size: 0.95rem;
    line-height: 1.78;
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cf-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--white);
    background: var(--navy-mid);
    border: 1px solid #ffffff;
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.cf-input::placeholder { color: #ffffff; }
.cf-input:focus {
    border-color: var(--blue-accent);
    background: #1c3550;
    box-shadow: 0 0 0 3px rgba(104, 160, 213, 0.35);
}

.cf-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--white);
    background: var(--navy-mid);
    border: 1px solid #ffffff;
    border-radius: var(--radius);
    outline: none;
    resize: vertical;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
    box-sizing: border-box;
}
.cf-textarea::placeholder { color: #ffffff; }
.cf-textarea:focus {
    border-color: var(--blue-accent);
    background: #1c3550;
    box-shadow: 0 0 0 3px rgba(104, 160, 213, 0.35);
}

.cf-btn {
    height: 48px;
    padding: 0 22px;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--ease);
}
.cf-btn:hover  { opacity: 0.88; }
.cf-btn:active { opacity: 0.72; }

.contact-section__hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.83rem;
    color: var(--blue-accent);
}
.contact-section__hint svg { flex-shrink: 0; }
.contact-section__hint a {
    color: var(--blue-accent);
    font-weight: 600;
    transition: color var(--ease);
}
.contact-section__hint a:hover { color: var(--white); }

.cf-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cf-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cf-check__box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 3px;
    background: transparent;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-check input:checked + .cf-check__box {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(52, 114, 180, 0.30);
}
.cf-check input:checked + .cf-check__box::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.cf-check input:focus-visible + .cf-check__box {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(104, 160, 213, 0.35);
}

.cf-check__label {
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}
.cf-check__label a {
    color: var(--blue-accent);
    font-weight: 600;
    transition: color var(--ease);
}
.cf-check__label a:hover { color: var(--white); }

.cf-feedback {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
}
.cf-feedback:not(:empty) { padding: 10px 14px; }
.cf-feedback--ok  { background: rgba(52,211,153,0.15); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.3); }
.cf-feedback--err { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
    background: var(--navy-dark);
    color: var(--white);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    padding-block: clamp(48px, 6vw, 72px);
    align-items: start;
    border-bottom: 1px solid #ffffff;
}

.footer__logo {
    height: 58px;
    width: auto;
    margin-bottom: 16px;
}
.footer__tagline {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--white);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.55;
}
.footer__contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--white);
}
.footer__contact a { transition: color var(--ease); }
.footer__contact a:hover { color: var(--white); }

.footer__hours-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
}
.footer__hours-text {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 10px;
}
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.footer__social-link:hover {
    border-color: var(--white);
    color: var(--white);
    background: var(--navy-mid);
}

.footer__bottom { padding-block: 18px; }
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer__copy {
    font-size: 0.76rem;
    color: #ffffff;
}
.footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__legal a {
    font-size: 0.76rem;
    color: #ffffff;
    transition: color var(--ease);
}
.footer__legal a:hover { color: #ffffff; }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .feature:nth-child(1),
    .feature:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }
    .feature:nth-child(3),
    .feature:nth-child(4) {
        border-top: 1px solid #ffffff;
        padding-top: 40px;
    }
    .feature:nth-child(1),
    .feature:nth-child(2) { padding-bottom: 40px; }

    .ecosystem__list { grid-template-columns: repeat(2, 1fr); }
    .eco-item:nth-child(1),
    .eco-item:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }
    .eco-item:nth-child(3),
    .eco-item:nth-child(4) {
        border-top: 1px solid var(--grey-line);
        padding-top: 20px;
    }
    .eco-item:nth-child(1),
    .eco-item:nth-child(2) { padding-bottom: 20px; }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .brand-merge__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ecosystem {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .ecosystem__photo { height: 300px; }
    .ecosystem__content { padding: 48px var(--pad-x); }

    .contact-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cf-btn { width: 100%; height: 50px; }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer__brand { grid-column: auto; }

    .footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.9rem; }

    .features__grid { grid-template-columns: 1fr; }
    .feature + .feature { border-left: none; padding-left: 0; border-top: 1px solid #ffffff; padding-top: 32px; }
    .feature:nth-child(3),
    .feature:nth-child(4) { border-top: none; padding-top: 0; }

    .ecosystem__list { grid-template-columns: 1fr; }
    .eco-item + .eco-item {
        border-left: none;
        border-top: 1px solid var(--grey-line);
        padding-top: 20px;
    }
    .eco-item:nth-child(3),
    .eco-item:nth-child(4) {
        border-top: 1px solid var(--grey-line);
        padding-top: 20px;
    }
    .eco-item { padding-left: 0; padding-right: 0; }

    .partners__logos { flex-direction: column; }
    .partner-logo { border-right: none; border-bottom: 1px solid #ffffff; width: 100%; height: 60px; }
    .partner-logo:last-child { border-bottom: none; }

    .footer__legal { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}


/* ══════════════════════════════════════════════
   MODALES LEGALES
══════════════════════════════════════════════ */
.legal-modal:not([open]) { display: none; }

.legal-modal[open] {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: min(640px, calc(100vw - 40px));
    max-height: min(82vh, 780px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: modal-in 0.22s ease forwards;
}

.legal-modal::backdrop {
    background: rgba(9, 18, 30, 0.72);
    backdrop-filter: blur(3px);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.legal-modal__inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.legal-modal__title {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--navy);
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    padding: 22px 56px 22px 28px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.legal-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: background var(--ease);
    flex-shrink: 0;
}
.legal-modal__close:hover  { background: rgba(255, 255, 255, 0.18); }
.legal-modal__close:active { background: rgba(255, 255, 255, 0.28); }

.legal-modal__body {
    overflow-y: auto;
    padding: 28px 28px 32px;
    color: var(--text-body);
    font-size: 0.88rem;
    line-height: 1.72;
    overscroll-behavior: contain;
}

.legal-modal__body h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal-modal__body h3:first-child { margin-top: 0; }

.legal-modal__body p  { margin-bottom: 10px; }
.legal-modal__body ul {
    margin: 8px 0 10px 18px;
    list-style: disc;
}
.legal-modal__body ul li { margin-bottom: 4px; }

.legal-modal__body a {
    color: var(--blue-dark);
    font-weight: 600;
    transition: color var(--ease);
}
.legal-modal__body a:hover { color: var(--navy); }

@media (max-width: 480px) {
    .legal-modal[open] {
        width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        margin: 0;
    }
    .legal-modal::backdrop {
        background: rgba(9, 18, 30, 0.80);
    }
    @keyframes modal-in {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
