:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --body-bg: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --line: rgba(15, 23, 42, .10);
    --radius: 22px;
    --shadow: 0 24px 80px rgba(15, 23, 42, .14);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary) 55%, var(--accent));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--body-bg);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(15,23,42,.08);
}
.navbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--dark);
}
.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gradient);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .32);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 650;
    color: #334155;
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .28);
}
.btn-light {
    color: var(--dark);
    background: #fff;
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.btn-outline {
    color: var(--primary);
    background: transparent;
    border-color: rgba(37,99,235,.30);
}
.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(6,182,212,.22), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(124,58,237,.20), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 82%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    top: 80px;
    background: var(--gradient);
    opacity: .15;
    filter: blur(18px);
    border-radius: 120px;
    transform: rotate(20deg);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 54px;
    align-items: center;
    padding: 86px 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(37,99,235,.10);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .96;
    letter-spacing: -.07em;
    color: var(--dark);
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    max-width: 670px;
    color: #475569;
    font-size: 20px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}
.hero-card {
    position: relative;
    border-radius: 34px;
    padding: 20px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.hero-card-inner {
    min-height: 460px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(15,23,42,.94), rgba(30,41,59,.90)),
        var(--gradient);
    color: #fff;
    padding: 34px;
    overflow: hidden;
    position: relative;
}
.hero-card-inner::after {
    content: "";
    position: absolute;
    inset: auto -70px -95px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(6,182,212,.35);
    filter: blur(8px);
}
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}
.metric {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
}
.metric strong {
    display: block;
    font-size: 32px;
    letter-spacing: -.04em;
}
.section {
    padding: 92px 0;
}
.section-soft {
    background: linear-gradient(180deg, #fff, #f8fafc);
}
.section-dark {
    background:
        radial-gradient(circle at top left, rgba(6,182,212,.16), transparent 26%),
        linear-gradient(135deg, #0f172a, #111827);
    color: #fff;
}
.section-header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}
.section-header h2 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: -.055em;
}
.section-header p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}
.section-dark .section-header p { color: rgba(255,255,255,.72); }
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(15,23,42,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(37,99,235,.24);
}
.card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: var(--gradient);
    font-size: 24px;
    margin-bottom: 20px;
}
.card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    letter-spacing: -.03em;
}
.card p {
    color: var(--muted);
    line-height: 1.65;
}
.media-card {
    overflow: hidden;
    padding: 0;
}
.media-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e2e8f0;
}
.media-card-body { padding: 24px; }
.software-badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(6,182,212,.10);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.prose {
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}
.prose h1, .prose h2, .prose h3 { color: var(--dark); letter-spacing: -.04em; }
.cta {
    border-radius: 34px;
    padding: 56px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.28), transparent 25%),
        var(--gradient);
    color: #fff;
    box-shadow: var(--shadow);
}
.cta h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -.055em;
}
.cta p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.7; }
.form-card {
    border-radius: 28px;
    background: #fff;
    padding: 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}
.form-group {
    display: grid;
    gap: 8px;
}
.form-group.full { grid-column: 1 / -1; }
label {
    font-size: 14px;
    font-weight: 750;
    color: #334155;
}
input, textarea, select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus, select:focus {
    border-color: rgba(37,99,235,.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.validation-summary-errors,
.field-validation-error {
    color: #dc2626;
    font-weight: 700;
    font-size: 14px;
}
.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin: 0 0 18px;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.site-footer {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%), radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 34%), linear-gradient(135deg, var(--dark), #020617);
    color: rgba(255,255,255,.78);
    padding: 72px 0 28px;
}

.site-footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
    opacity: .28;
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-modern-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(170px, .7fr) minmax(220px, .9fr) minmax(240px, .95fr);
    gap: 38px;
    align-items: start;
}

.footer-brand-area,
.footer-card,
.footer-cta-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

    .footer-brand img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 12px;
        background: rgba(255,255,255,.06);
        padding: 6px;
    }

.footer-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.footer-description {
    margin: 0 0 22px;
    max-width: 430px;
    color: rgba(255,255,255,.68);
    line-height: 1.75;
    font-size: .96rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

    .footer-social a {
        width: 42px;
        height: 42px;
        display: inline-grid;
        place-items: center;
        border-radius: 12px;
        color: #fff;
        text-decoration: none;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.10);
        transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
    }

        .footer-social a:hover {
            transform: translateY(-2px);
            background: rgba(255,255,255,.14);
            border-color: rgba(255,255,255,.18);
        }

    .footer-social svg {
        width: 19px;
        height: 19px;
        fill: currentColor;
    }

.footer-social-letter {
    font-size: .95rem;
    font-weight: 900;
}

.footer-card h4,
.footer-cta-card h4 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.footer-links {
    display: grid;
    gap: 12px;
}

    .footer-links a {
        width: fit-content;
        color: rgba(255,255,255,.72);
        text-decoration: none;
        font-weight: 700;
        transition: color .2s ease, transform .2s ease;
    }

        .footer-links a:hover {
            color: #fff;
            transform: translateX(3px);
        }

.footer-contact-list {
    display: grid;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.footer-contact-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

    .footer-contact-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.footer-contact-item span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.footer-contact-item strong {
    color: #fff;
    font-size: .92rem;
    line-height: 1.2;
}

.footer-contact-item small {
    color: rgba(255,255,255,.66);
    font-size: .89rem;
    line-height: 1.4;
    word-break: break-word;
}

a.footer-contact-item:hover small {
    color: rgba(255,255,255,.88);
}

.footer-cta-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.footer-cta-card p {
    margin: 0 0 20px;
    color: rgba(255,255,255,.69);
    line-height: 1.7;
    font-size: .95rem;
    max-width: 320px;
}

.footer-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 0;
}

.footer-cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 25%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .footer-cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 48px color-mix(in srgb, var(--primary) 32%, transparent);
    }

.footer-whatsapp-link {
    display: inline-flex;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-weight: 900;
}

    .footer-whatsapp-link:hover {
        color: #fff;
    }

.footer-admin-link {
    display: inline-block;
    margin-top: 18px;
    color: rgba(255,255,255,.50);
    font-size: .84rem;
    text-decoration: none;
}

    .footer-admin-link:hover {
        color: rgba(255,255,255,.82);
    }

.footer-address {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.72);
    line-height: 1.6;
}

    .footer-address strong {
        color: #fff;
    }

.copyright {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 26px;
    padding-top: 22px;
    color: rgba(255,255,255,.56);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .footer-modern-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .site-footer {
        padding: 52px 0 24px;
    }

    .footer-modern-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-address {
        margin-top: 28px;
        padding-top: 18px;
    }

    .copyright {
        display: grid;
        gap: 10px;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}
.site-footer h4 {
    color: #fff;
    margin: 0 0 16px;
}
.footer-links {
    display: grid;
    gap: 10px;
}
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.social-row a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
}
.copyright {
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 42px;
    padding-top: 24px;
    font-size: 14px;
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.page-hero {
    padding: 100px 0 70px;
    background:
        radial-gradient(circle at 20% 20%, rgba(37,99,235,.18), transparent 28%),
        linear-gradient(180deg, #f8fbff, #fff);
}
.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -.06em;
    line-height: 1;
}
.empty-state {
    text-align: center;
    padding: 52px;
    border: 1px dashed rgba(15,23,42,.18);
    border-radius: 24px;
    background: #f8fafc;
    color: var(--muted);
}
.faq-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 20px 22px;
    font-weight: 850;
    cursor: pointer;
}
.faq-answer {
    display: none;
    padding: 0 22px 22px;
    color: var(--muted);
    line-height: 1.7;
}
.faq-item.is-open .faq-answer { display: block; }

@media (max-width: 920px) {
    .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero { min-height: auto; }
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 18px;
        box-shadow: var(--shadow);
    }
    .nav-links.is-open { display: flex; }
    .hero-card-inner { min-height: 360px; }
    .form-grid { grid-template-columns: 1fr; }
    .cta { padding: 32px; }
}


/* UI moderno adicional: modal de confirmación pública y loading */
.site-loading-overlay,
.site-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(7px);
}

.site-loading-box,
.site-modal {
    width: min(440px, 100%);
    padding: 30px;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 30px 90px rgba(15,23,42,.28);
    text-align: center;
}

.site-loading-box h3,
.site-modal h3 {
    margin: 14px 0 8px;
    color: var(--dark);
    letter-spacing: -.04em;
    font-size: 24px;
}

.site-loading-box p,
.site-modal p {
    color: var(--muted);
    line-height: 1.6;
}

.site-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 999px;
    border: 5px solid #e5e7eb;
    border-top-color: var(--primary);
    animation: siteSpin .8s linear infinite;
}

.site-modal-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 18px;
    background: var(--gradient);
    font-weight: 900;
}

@keyframes siteSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Ajustes visuales premium sin romper layout existente */
.card,
.form-card,
.hero-card {
    isolation: isolate;
}

.card::selection,
.form-card::selection {
    background: rgba(37,99,235,.18);
}

.media-card img {
    transition: transform .35s ease;
}

.media-card:hover img {
    transform: scale(1.035);
}

.contact-hero {
    padding: 70px 0 45px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(var(--primary-rgb, 37, 99, 235), .10), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.96), rgba(var(--primary-rgb, 37, 99, 235), .04));
}

    .contact-hero .container {
        max-width: 850px;
    }

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--primary-color, var(--primary));
    background: rgba(var(--primary-rgb, 37, 99, 235), .10);
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), .22);
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--primary-color, var(--primary));
    display: inline-block;
}

.contact-hero h1 {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(2.4rem, 5vw, 4.65rem);
    line-height: .95;
    letter-spacing: -0.06em;
    color: var(--heading-color, #0f172a);
}

.contact-hero-text {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.55;
    color: var(--muted-color, #64748b);
}

.contact-section {
    padding: 55px 0 70px;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb, 37, 99, 235), .08), transparent 32%), linear-gradient(180deg, rgba(var(--primary-rgb, 37, 99, 235), .035), rgba(255,255,255,.96));
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
    gap: 40px;
    align-items: start;
}

.contact-form-card,
.contact-info-card,
.contact-map-card,
.contact-company-summary {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .08);
}

.contact-form-card {
    border-radius: 26px;
    padding: clamp(26px, 4vw, 40px);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.contact-form .form-group {
    margin: 0;
}

    .contact-form .form-group.full {
        grid-column: 1 / -1;
    }

.contact-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--heading-color, #0f172a);
    font-size: .93rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(var(--primary-rgb, 37, 99, 235), .035);
    color: var(--text-color, #1f2937);
    font-size: .98rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-form input,
.contact-form select {
    min-height: 48px;
    padding: 0 16px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    padding: 15px 16px;
}

    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
        border-color: rgba(var(--primary-rgb, 37, 99, 235), .55);
        box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 37, 99, 235), .12);
        background: #fff;
    }

.contact-form span.field-validation-error,
.contact-form .field-validation-error {
    display: block;
    margin-top: 7px;
    color: #dc2626;
    font-size: .85rem;
    font-weight: 700;
}

.contact-submit-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(var(--primary-rgb, 37, 99, 235), .26);
}

.contact-privacy-text {
    margin: 12px 0 0;
    color: var(--muted-color, #64748b);
    font-size: .84rem;
    line-height: 1.45;
}

.contact-info-panel {
    display: grid;
    gap: 18px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 108px;
    padding: 20px 24px;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb, 37, 99, 235), .28);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .12);
}

.contact-info-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, var(--primary)), var(--secondary-color, var(--secondary, var(--primary-color, var(--primary)))) );
    box-shadow: 0 16px 34px rgba(var(--primary-rgb, 37, 99, 235), .25);
}

.contact-whatsapp-card .contact-info-icon {
    background: linear-gradient(135deg, var(--secondary-color, var(--secondary, var(--primary-color, var(--primary)))), var(--primary-color, var(--primary)) );
}

.contact-info-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.contact-info-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

    .contact-info-content strong {
        color: var(--heading-color, #0f172a);
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .contact-info-content span {
        color: var(--heading-color, #0f172a);
        font-weight: 800;
        line-height: 1.25;
    }

    .contact-info-content small {
        color: var(--muted-color, #64748b);
        font-size: .94rem;
        line-height: 1.35;
        word-break: break-word;
    }

.contact-company-summary {
    border-radius: 24px;
    padding: 26px;
}

    .contact-company-summary h2 {
        margin: 0 0 10px;
        color: var(--heading-color, #0f172a);
        font-size: 1.45rem;
        letter-spacing: -0.03em;
    }

    .contact-company-summary p {
        margin: 0;
        color: var(--muted-color, #64748b);
        line-height: 1.65;
    }

.contact-map-card {
    margin-top: 36px;
    overflow: hidden;
    border-radius: 26px;
    padding: 12px;
}

    .contact-map-card iframe {
        display: block;
        width: 100%;
        min-height: 360px;
        border: 0;
        border-radius: 18px;
    }

@media (max-width: 980px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-info-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-company-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .contact-hero {
        padding: 50px 0 34px;
    }

    .contact-section {
        padding: 34px 0 52px;
    }

    .contact-form-grid,
    .contact-info-panel {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        border-radius: 22px;
        padding: 24px;
    }

    .contact-info-card {
        min-height: auto;
        padding: 18px;
        border-radius: 22px;
    }

    .contact-info-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
    }

    .contact-submit-btn {
        min-height: 54px;
    }
}

.home-final-cta-section {
    padding: 72px 0;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.98), color-mix(in srgb, var(--primary) 7%, white));
}

.home-final-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 34px;
    background: radial-gradient(circle at top right, rgba(255,255,255,.28), transparent 34%), linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 28px 80px color-mix(in srgb, var(--primary) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}

    .home-final-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(90deg, rgba(0,0,0,.25), transparent);
        opacity: .35;
    }

    .home-final-cta::after {
        content: "";
        position: absolute;
        right: -90px;
        bottom: -120px;
        width: 280px;
        height: 280px;
        border-radius: 999px;
        background: rgba(255,255,255,.16);
        filter: blur(2px);
    }

.home-final-cta-content,
.home-final-cta-actions {
    position: relative;
    z-index: 1;
}

.home-final-cta-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-final-cta h2 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.home-final-cta p {
    max-width: 880px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.home-final-cta-actions {
    display: flex;
    justify-content: flex-end;
}

.home-final-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    color: var(--primary);
    background: #fff;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

    .home-final-cta-button:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.94);
        box-shadow: 0 24px 52px rgba(0,0,0,.22);
    }

@media (max-width: 860px) {
    .home-final-cta-section {
        padding: 52px 0;
    }

    .home-final-cta {
        grid-template-columns: 1fr;
        text-align: left;
        border-radius: 28px;
    }

    .home-final-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .home-final-cta {
        padding: 28px;
        border-radius: 24px;
    }

    .home-final-cta-button {
        width: 100%;
    }
}
.home-photo-carousel-section {
    padding: 72px 0;
    overflow-x: clip;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 34%), linear-gradient(180deg, #fff, color-mix(in srgb, var(--primary) 5%, white));
}

    .home-photo-carousel-section .section-header {
        max-width: 860px;
        margin: 0 auto 34px;
        text-align: center;
    }

.home-photo-carousel-shell {
    width: min(1540px, calc(100vw - 32px));
    margin: 0 auto;
}

.home-photo-carousel {
    position: relative;
    width: 100%;
}

.home-photo-carousel-track {
    position: relative;
    min-height: clamp(460px, 58vw, 760px);
    overflow: hidden;
    border-radius: 40px;
    background: var(--dark);
    box-shadow: 0 34px 90px rgba(15, 23, 42, .20), inset 0 1px 0 rgba(255,255,255,.14);
}

.home-photo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 900ms ease, transform 6800ms ease;
}

    .home-photo-slide.is-active {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1.10);
    }

.home-photo-slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 30%), linear-gradient(90deg, rgba(2, 6, 23, .82), rgba(2, 6, 23, .42) 46%, rgba(2, 6, 23, .14));
}

.home-photo-slide-content {
    position: relative;
    z-index: 1;
    min-height: clamp(460px, 58vw, 760px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 60px);
}

.home-photo-slide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
    backdrop-filter: blur(12px);
}

.home-photo-slide-copy {
    width: min(660px, 100%);
    margin-top: clamp(58px, 8vw, 108px);
    color: #fff;
}

.home-photo-slide-title,
.home-photo-slide-description,
.home-photo-slide-actions {
    opacity: 0;
    transform: translateY(24px);
}

.home-photo-slide-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5.8vw, 6rem);
    line-height: .92;
    letter-spacing: -0.075em;
    text-wrap: balance;
    transition: opacity 720ms ease, transform 720ms ease;
}

.home-photo-slide-description {
    max-width: 560px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    transition: opacity 720ms ease, transform 720ms ease;
}

.home-photo-slide-actions {
    margin-top: 26px;
    transition: opacity 720ms ease, transform 720ms ease;
}

.home-photo-slide.is-active .home-photo-slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 160ms;
}

.home-photo-slide.is-active .home-photo-slide-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 420ms;
}

.home-photo-slide.is-active .home-photo-slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 660ms;
}

.home-photo-slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    color: var(--primary);
    background: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(0,0,0,.18);
    transition: transform .2s ease, background-color .2s ease;
}

    .home-photo-slide-button:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.94);
    }

.home-photo-carousel-controls {
    position: absolute;
    left: clamp(18px, 4vw, 44px);
    right: clamp(18px, 4vw, 44px);
    bottom: clamp(18px, 4vw, 36px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.home-photo-carousel-arrow {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

    .home-photo-carousel-arrow:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.20);
    }

.home-photo-carousel-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
}

.home-photo-carousel-dot {
    width: 44px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.28);
    cursor: pointer;
}

    .home-photo-carousel-dot span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: #fff;
    }

    .home-photo-carousel-dot.is-active span {
        animation: homeCarouselProgress 6500ms linear forwards;
    }

@keyframes homeCarouselProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .home-photo-carousel-shell {
        width: calc(100vw - 24px);
    }

    .home-photo-carousel-track,
    .home-photo-slide-content {
        min-height: 620px;
    }

    .home-photo-carousel-track {
        border-radius: 30px;
    }

    .home-photo-slide-overlay {
        background: linear-gradient(180deg, rgba(2, 6, 23, .78), rgba(2, 6, 23, .44), rgba(2, 6, 23, .76));
    }

    .home-photo-slide-content {
        display: block;
        padding: 26px;
    }

    .home-photo-slide-copy {
        margin-top: 120px;
        width: 100%;
    }

    .home-photo-slide-title {
        font-size: clamp(2rem, 9vw, 3.8rem);
    }

    .home-photo-carousel-controls {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 560px) {
    .home-photo-carousel-section {
        padding: 52px 0;
    }

    .home-photo-carousel-shell {
        width: calc(100vw - 20px);
    }

    .home-photo-carousel-track,
    .home-photo-slide-content {
        min-height: 560px;
    }

    .home-photo-carousel-track {
        border-radius: 24px;
    }

    .home-photo-slide-copy {
        margin-top: 110px;
    }

    .home-photo-slide-description {
        font-size: .98rem;
    }

    .home-photo-slide-button {
        width: 100%;
    }

    .home-photo-carousel-arrow {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .home-photo-carousel-dot {
        width: 28px;
    }
}


/* =========================================================
   Home Photo Carousel - Refinamiento visual premium
   Quita burbujas de número, flechas y contador.
   Hace más lenta la entrada del título y descripción.
========================================================= */

.home-photo-slide-number {
    min-width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    color: rgba(255,255,255,.92);
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-shadow: 0 3px 18px rgba(0,0,0,.38);
}

.home-photo-carousel-arrow {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,.94);
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    font-size: clamp(2.3rem, 4vw, 4.4rem);
    font-weight: 300;
    line-height: 1;
    padding: 8px 12px;
    text-shadow: 0 4px 22px rgba(0,0,0,.48);
}

    .home-photo-carousel-arrow:hover {
        transform: translateY(-2px) scale(1.04);
        background: transparent;
        color: #fff;
    }

.home-photo-carousel-dots {
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.home-photo-carousel-dot {
    width: 46px;
    height: 6px;
    background: rgba(255,255,255,.34);
    box-shadow: 0 4px 16px rgba(0,0,0,.20);
}

    .home-photo-carousel-dot span {
        background: #fff;
    }

/* Animación más pausada y elegante */
.home-photo-slide-title,
.home-photo-slide-description,
.home-photo-slide-actions {
    opacity: 0;
    transform: translateY(34px);
}

.home-photo-slide-title {
    transition: opacity 1100ms cubic-bezier(.22, 1, .36, 1), transform 1100ms cubic-bezier(.22, 1, .36, 1);
}

.home-photo-slide-description {
    transition: opacity 1050ms cubic-bezier(.22, 1, .36, 1), transform 1050ms cubic-bezier(.22, 1, .36, 1);
}

.home-photo-slide-actions {
    transition: opacity 950ms cubic-bezier(.22, 1, .36, 1), transform 950ms cubic-bezier(.22, 1, .36, 1);
}

.home-photo-slide.is-active .home-photo-slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 520ms;
}

.home-photo-slide.is-active .home-photo-slide-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1600ms;
}

.home-photo-slide.is-active .home-photo-slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 2450ms;
}

/* El progreso debe durar lo mismo que el intervalo del JS */
.home-photo-carousel-dot.is-active span {
    animation: homeCarouselProgress 9000ms linear forwards;
}

@media (max-width: 760px) {
    .home-photo-carousel-arrow {
        font-size: 2.7rem;
        padding: 6px 8px;
    }

    .home-photo-carousel-dot {
        width: 30px;
        height: 5px;
    }

    .home-photo-slide-number {
        font-size: .82rem;
    }
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #071a2f 0%, #0b2340 55%, #10345f 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease;
}

    .page-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.page-loader__content {
    text-align: center;
    transform: translateY(0);
    animation: loaderFloat 2.6s ease-in-out infinite;
}

.page-loader__logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

    .page-loader__logo .shape {
        position: absolute;
        width: 46px;
        height: 46px;
        border-radius: 8px;
        transform: rotate(45deg);
        animation-duration: 1.8s;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }

    .page-loader__logo .shape-1 {
        top: 0;
        left: 34px;
        background: #1185c7;
        animation-name: shapeTop;
    }

    .page-loader__logo .shape-2 {
        top: 34px;
        left: 34px;
        background: #061c37;
        animation-name: shapeCenter;
    }

    .page-loader__logo .shape-3 {
        top: 68px;
        left: 0;
        background: #71b8df;
        animation-name: shapeBottom;
    }

.page-loader__brand {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.03em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    animation: brandZoom 1.8s ease-in-out infinite;
}

    .page-loader__brand .brand-main {
        font-weight: 800;
        color: #ffffff;
    }

    .page-loader__brand .brand-soft {
        font-weight: 300;
        color: #3db3ff;
        margin-left: 8px;
    }

.page-loader__tagline {
    font-size: 15px;
    color: rgba(255,255,255,.72);
    letter-spacing: .03em;
}

@keyframes shapeTop {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(45deg) translate(0, -8px);
    }
}

@keyframes shapeCenter {
    0%, 100% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(45deg) scale(1.06);
    }
}

@keyframes shapeBottom {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(45deg) translate(-8px, 0);
    }
}

@keyframes brandZoom {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: .92;
    }
}

@keyframes loaderFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader__content,
    .page-loader__brand,
    .page-loader__logo .shape {
        animation: none !important;
    }
}