﻿:root {
    --bg: #ffffff;
    --bg2: #f6f7f9;
    --bg3: #eef1f4;
    --text: #0f172a;
    --muted: rgba(15,23,42,.70);
    --stroke: rgba(15,23,42,.10);
    --panel: rgba(255,255,255,.86);
    --shadow: 0 18px 50px rgba(15,23,42,.10);
    --radius: 18px;
    --radius2: 28px;
    --max: 1120px;
    --accent1: #111827;
    --accent2: #334155;
    --accent3: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    background: radial-gradient(900px 600px at 15% -10%, rgba(15,23,42,.06), transparent 60%), radial-gradient(900px 600px at 85% 0%, rgba(15,23,42,.05), transparent 60%), radial-gradient(700px 500px at 60% 120%, rgba(15,23,42,.04), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2) 55%, var(--bg3));
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container-max {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,.72);
    border-bottom: 1px solid var(--stroke);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

    .brand small {
        display: block;
        font-weight: 600;
        color: var(--muted);
        margin-top: 2px;
    }

.brand-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 14px 30px rgba(15,23,42,.10);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ no deforma */
    object-position: center;
    display: block;
    padding: 6px; /* ✅ aire para logos rectangulares */
    image-rendering: auto;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%), linear-gradient(135deg, var(--accent1), var(--accent2));
    box-shadow: 0 14px 30px rgba(15,23,42,.10);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btnx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    color: var(--text);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

    .btnx:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(15,23,42,.08);
    }

    .btnx.cta {
        border: 0;
        color: white;
        background: linear-gradient(135deg, var(--accent3), #0ea5e9);
        box-shadow: 0 14px 34px rgba(37,99,235,.18);
    }

    .btnx.portal {
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(15,23,42,.18);
        color: rgba(15,23,42,.85);
    }

.menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
    padding-bottom: 14px;
}

    .mobile-menu a {
        display: block;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid var(--stroke);
        background: rgba(255,255,255,.92);
        margin-top: 10px;
    }

/* Hero */
.hero {
    padding: 30px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}

.cardx {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.86);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card .inner {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    color: var(--muted);
    width: fit-content;
    font-size: 13px;
}

h1 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.7px;
}

.leadx {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: auto;
}

.stat {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    border-radius: 16px;
    padding: 12px;
}

    .stat b {
        display: block;
        font-size: 16px;
    }

    .stat span {
        display: block;
        color: var(--muted);
        font-size: 12.5px;
        margin-top: 2px;
    }

.hero-mini-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.2px;
}

.hero-mini-lead {
    font-size: 14px;
}

.stat-inline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .stat-inline i {
        margin-top: 2px;
    }

.hero-actions-bottom {
    margin-top: auto;
}

/* Sections */
section {
    padding: 18px 0 34px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

    .section-head h3 {
        margin: 0;
        font-size: 18px;
        letter-spacing: -.2px;
    }

.hint {
    color: var(--muted);
    font-size: 13px;
}

/* Grid + cards */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15,23,42,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 46px rgba(15,23,42,.10);
        border-color: rgba(15,23,42,.16);
    }

.card-static {
    cursor: default;
}

    .card-static:hover {
        transform: none;
        box-shadow: 0 10px 26px rgba(15,23,42,.06);
    }

.service-thumb {
    height: 150px;
    background: rgba(255,255,255,.92);
    overflow: hidden;
}

    .service-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.static-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
}

.emoji {
    font-size: 26px;
}

.card-bodyx {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-titlex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .card-titlex b {
        font-size: 14.5px;
    }

.tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    color: var(--muted);
}

.card-bodyx p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    min-height: 38px;
}

.card-footerx {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.mini {
    font-size: 12px;
    color: rgba(15,23,42,.55);
}

.btn-linkx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    font-size: 13px;
}

    .btn-linkx:hover {
        box-shadow: 0 12px 25px rgba(15,23,42,.08);
    }

/* Search */
.search-wrap {
    min-width: 280px;
    width: min(520px, 50vw);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
}

    .search-box i {
        opacity: .8;
    }

    .search-box input {
        width: 100%;
        border: 0;
        outline: none;
        background: transparent;
    }

/* Contact */
.contact-wrap {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 18px;
}

/* Footer */
footer {
    border-top: 1px solid var(--stroke);
    padding: 18px 0 26px;
    color: var(--muted);
}

.foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.foot-title {
    display: block;
    font-size: 15px;
    color: var(--accent1);
}

.foot-text {
    margin-top: 6px;
}

.foot-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.foot-head {
    display: block;
    font-size: 14px;
    color: var(--accent1);
    margin-bottom: 8px;
}

.foot-links {
    display: grid;
    gap: 10px;
}

.foot-contacts {
    display: grid;
    gap: 8px;
}

.foot-map {
    min-width: 280px;
}

.foot-map-box {
    border: 1px solid var(--stroke);
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.foot-copy {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--stroke);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 200;
}

.modalx {
    width: min(760px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.92);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    overflow: hidden;
}

.modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--stroke);
}

    .modal-top b {
        font-size: 14.5px;
    }

.modal-contentx {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal-box {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    padding: 14px;
}

    .modal-box h4 {
        margin: 0 0 8px;
        font-size: 14px;
    }

    .modal-box p {
        margin: 0;
        color: var(--muted);
        line-height: 1.55;
        font-size: 13.5px;
    }

.modal-img-wrap {
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.modal-actions {
    padding: 14px 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--stroke);
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-contentx {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .desktop-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}
