:root {
    --color-bg: #f2f4f7;
    --color-surface: #ffffff;
    --color-surface-strong: #10151c;
    --color-surface-soft: #e8edf2;
    --color-text: #18202b;
    --color-text-muted: #5a6472;
    --color-line: rgba(24, 32, 43, 0.12);
    --color-primary: #b1131b;
    --color-primary-deep: #7f0d13;
    --color-highlight: #d7dde6;
    --shadow-soft: 0 20px 45px rgba(15, 24, 36, 0.08);
    --shadow-strong: 0 24px 60px rgba(10, 15, 22, 0.22);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

body {
    margin: 0;
    font-family: "Segoe UI Variable", "Aptos", "Bahnschrift", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(177, 19, 27, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(177, 19, 27, 0.32);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
}

.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f141b;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.topbar__inner,
.main-header__inner,
.topbar__contact,
.topbar__links,
.main-nav,
.hero__actions,
.hero__signals,
.tag-grid,
.manufacturer-grid,
.footer__inner,
.license-lines__header {
    display: flex;
    gap: 1rem;
}

.topbar__inner,
.main-header__inner,
.footer__inner {
    align-items: center;
    justify-content: space-between;
}

.topbar__inner {
    min-height: 48px;
    flex-wrap: wrap;
}

.topbar__contact,
.topbar__links {
    flex-wrap: wrap;
}

.topbar a:hover,
.main-nav a:hover,
.footer a:hover {
    color: #ffffff;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 252, 0.88);
    border-bottom: 1px solid rgba(24, 32, 43, 0.08);
}

.main-header__inner {
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand__logo {
    width: clamp(94px, 12vw, 140px);
    height: auto;
    display: block;
}

.brand__text {
    display: grid;
    gap: 0.12rem;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small {
    color: var(--color-text-muted);
}

.main-nav {
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: #263140;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: #fff;
    font: inherit;
    color: var(--color-text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--small {
    min-height: 38px;
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
}

.button--solid {
    background: linear-gradient(135deg, var(--color-primary), #cf2b33);
    color: #fff;
    box-shadow: 0 16px 30px rgba(177, 19, 27, 0.22);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

.button--portal {
    border-color: rgba(24, 32, 43, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: var(--color-text);
}

.button--subtle {
    border-color: var(--color-line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text);
}

.page-hero {
    padding: 4.2rem 0 2.8rem;
}

.page-hero__lead {
    max-width: 60ch;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--color-primary-deep);
    font-weight: 700;
}

.hero {
    padding: 5.5rem 0 4rem;
}

.hero--compact {
    padding-bottom: 3rem;
}

.hero__grid,
.split-grid,
.modern-stack,
.contact-grid,
.cta-strip,
.timeline__stats,
.issue-grid,
.service-grid,
.logo-grid,
.smart-contact,
.form-grid,
.license-line {
    display: grid;
    gap: 1.4rem;
}

.hero__grid {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 5.4rem);
}

.hero__lead,
.section-heading p,
.metric-card p,
.issue-card p,
.service-card p,
.modern-stack__content p,
.timeline__stats p,
.cta-strip p,
.contact-list,
.footer p,
.smart-contact__card p,
.form-guidance,
.form-submit p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.hero__lead {
    max-width: 62ch;
    font-size: 1.06rem;
}

.hero__actions,
.hero__signals {
    flex-wrap: wrap;
    padding: 0;
    margin: 1.6rem 0 0;
    list-style: none;
}

.hero__signals li {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 32, 43, 0.1);
    background: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    color: #313c4b;
}

.hero__panel {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.metric-card {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(24, 32, 43, 0.08);
}

.metric-card + .metric-card {
    margin-top: 1rem;
}

.metric-card__label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.metric-card strong,
.issue-card h3,
.service-card h3,
.modern-stack__cards strong,
.timeline__stats strong,
.cta-strip h2,
.smart-contact__card strong,
.form-section__header h3 {
    display: block;
    font-size: 1.15rem;
}

.metric-card--accent {
    background: linear-gradient(180deg, #171e28 0%, #121820 100%);
}

.metric-card--accent strong,
.metric-card--accent p {
    color: rgba(255, 255, 255, 0.88);
}

.section {
    padding: 4.5rem 0;
}

.section--muted {
    background: rgba(255, 255, 255, 0.5);
}

.section--dark {
    background:
        linear-gradient(135deg, rgba(177, 19, 27, 0.96), rgba(19, 25, 34, 0.98)),
        #121820;
    color: #fff;
}

.section--accent {
    background: linear-gradient(120deg, #191f28, #7f0d13 140%);
    color: #fff;
}

.section-heading {
    margin-bottom: 2rem;
    max-width: 62rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.section-copy {
    max-width: 64rem;
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.section-heading--light p,
.section-heading--light h2,
.section--dark .service-card p,
.section--accent .timeline__stats p,
.section--dark .service-card h3 {
    color: rgba(255, 255, 255, 0.88);
}

.section-copy--light {
    color: rgba(255, 255, 255, 0.88);
}

.logo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.logo-grid span,
.tag-grid span,
.manufacturer-grid span {
    display: grid;
    place-items: center;
    min-height: 86px;
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(24, 32, 43, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #334051;
    font-weight: 700;
}

.issue-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.issue-card,
.service-card,
.modern-stack__cards article,
.timeline__stats article,
.contact-card,
.smart-contact__card,
.smart-form,
.form-section,
.form-guidance,
.license-line {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(24, 32, 43, 0.08);
    box-shadow: var(--shadow-soft);
}

.service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.service-grid--home {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card--light {
    background: #fff;
    border-color: rgba(24, 32, 43, 0.08);
    box-shadow: var(--shadow-soft);
}

.service-card--light a,
.content-card a,
.form-submit a {
    color: var(--color-primary-deep);
    font-weight: 700;
}

.cards-grid,
.faq-list,
.quick-contact {
    display: grid;
    gap: 1.4rem;
}

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

.cards-grid--single {
    grid-template-columns: 1fr;
}

.content-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(24, 32, 43, 0.08);
    box-shadow: var(--shadow-soft);
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
}

.content-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.bullet-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid rgba(24, 32, 43, 0.08);
    box-shadow: var(--shadow-soft);
}

.feature-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.feature-list--compact {
    margin-top: 0.8rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.tag-grid {
    flex-wrap: wrap;
}

.tag-grid span {
    min-width: 160px;
    min-height: 72px;
}

.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.logo-wall {
    align-items: stretch;
    gap: 0.9rem;
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 88px;
    height: 88px;
    margin: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(24, 32, 43, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    flex: 1 1 170px;
}

.logo-wall--partners .logo-card {
    flex-basis: 170px;
}

.logo-card img {
    width: auto;
    max-width: 84%;
    max-height: 58px;
    object-fit: contain;
    display: block;
}

.logo-wall--manufacturers .logo-card img {
    max-width: 78%;
    max-height: 52px;
}

.logo-wall--manufacturers .logo-card {
    min-width: 0;
    width: 100%;
}

.logo-mark--microsoft {
    max-width: 156% !important;
    max-height: 103px !important;
}

.logo-mark--aws {
    max-width: 67% !important;
    max-height: 45px !important;
}

.logo-mark--dell {
    max-width: 85% !important;
    max-height: 58px !important;
}

.logo-mark--nexxt {
    max-width: 106% !important;
    max-height: 70px !important;
}

.logo-mark--sophos {
    max-width: 79% !important;
    max-height: 57px !important;
}

.logo-mark--fortinet {
    max-width: 124% !important;
    max-height: 83px !important;
}

.logo-mark--lexmark,
.logo-mark--grandstream {
    max-width: 96% !important;
    max-height: 62px !important;
}

.logo-mark--ubiquiti {
    max-width: 59% !important;
    max-height: 40px !important;
}

.logo-mark--hp {
    max-width: 74% !important;
    max-height: 50px !important;
}

.logo-mark--asus {
    max-width: 83% !important;
    max-height: 59px !important;
}

.logo-mark--lexmark,
.logo-mark--grandstream {
    max-width: 118% !important;
    max-height: 76px !important;
}

.logo-mark--3nstar {
    max-width: 88% !important;
    max-height: 55px !important;
}

.logo-mark--grandstream,
.logo-mark--3nstar {
    transform: scale(1.05);
    transform-origin: center center;
}

.logo-mark--zebra,
.logo-mark--hikvision,
.logo-mark--dahua {
    max-width: 110% !important;
    max-height: 71px !important;
}

.logo-mark--dynabook {
    max-width: 83% !important;
    max-height: 53px !important;
}

.logo-mark--autodesk {
    max-width: 124% !important;
    max-height: 81px !important;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem 1.1rem;
    margin: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(24, 32, 43, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.client-logo-card img {
    width: auto;
    max-width: 82%;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.client-logo-mark--carvajal,
.client-logo-mark--asebanacio {
    max-width: 94%;
    max-height: 68px;
}

.client-logo-mark--mopt,
.client-logo-mark--ccss {
    max-width: 100%;
    max-height: 96px;
    transform: scale(1.28);
    transform-origin: center center;
}

.client-logo-mark--gonzalo-delgado {
    max-width: 100%;
    max-height: 86px;
    transform: scale(1.34);
    transform-origin: center center;
}

.client-logo-mark--dcr,
.client-logo-mark--marta-mora {
    max-width: 100%;
    max-height: 114px;
    transform: scale(1.43);
    transform-origin: center center;
}

.client-logo-mark--ccss {
    transform: scale(1.4);
    transform-origin: center center;
}

.client-logo-mark--instagreen,
.client-logo-mark--cero-ruido,
.client-logo-mark--aed,
.client-logo-mark--raxova,
.client-logo-mark--ciarguesa {
    max-width: 96%;
    max-height: 68px;
}

.client-logo-mark--robiisa,
.client-logo-mark--interfrio,
.client-logo-mark--bioagro,
.client-logo-mark--ingelectra {
    max-width: 86%;
    max-height: 84px;
}

.client-logo-mark--robiisa,
.client-logo-mark--interfrio,
.client-logo-mark--cero-ruido,
.client-logo-mark--bioagro,
.client-logo-mark--ingelectra {
    transform: scale(1.3);
    transform-origin: center center;
}

.modern-stack {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.modern-stack__cards {
    display: grid;
    gap: 1rem;
}

.timeline__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline__stats article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.cta-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
    border: 1px solid rgba(24, 32, 43, 0.08);
    box-shadow: var(--shadow-soft);
}

.contact-grid {
    grid-template-columns: 1fr 0.95fr;
    align-items: start;
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.smart-contact {
    grid-template-columns: 0.78fr 1.22fr;
    align-items: start;
}

.smart-contact__intro {
    display: grid;
    gap: 1rem;
}

.smart-contact__card--dark {
    background: linear-gradient(180deg, #171e28 0%, #121820 100%);
}

.smart-contact__card--dark strong,
.smart-contact__card--dark p {
    color: rgba(255, 255, 255, 0.9);
}

.smart-contact__card a {
    color: var(--color-primary-deep);
    font-weight: 700;
}

.smart-form {
    display: grid;
    gap: 1.2rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.form-section {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.form-section--conditional[hidden] {
    display: none;
}

.form-section__header {
    display: grid;
    gap: 0.3rem;
}

.form-section__header span {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.form-grid__full {
    grid-column: 1 / -1;
}

.smart-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    color: #2a3442;
}

.smart-form input,
.smart-form textarea,
.smart-form select {
    width: 100%;
    border: 1px solid rgba(24, 32, 43, 0.14);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: #f8fafc;
    font: inherit;
    color: var(--color-text);
}

.smart-form input::placeholder,
.smart-form textarea::placeholder {
    color: #697484;
}

.smart-form textarea {
    resize: vertical;
}

.form-guidance {
    background: linear-gradient(135deg, rgba(177, 19, 27, 0.08), rgba(127, 13, 19, 0.04));
    border-color: rgba(177, 19, 27, 0.12);
    font-weight: 600;
}

.license-lines {
    display: grid;
    gap: 1rem;
}

.license-lines__header {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.license-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: rgba(248, 250, 252, 0.95);
    box-shadow: none;
}

.form-submit {
    display: grid;
    gap: 0.9rem;
}

.form-alert {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.5;
}

.form-alert--success {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.18);
    color: #115e59;
}

.form-alert--error {
    background: rgba(177, 19, 27, 0.08);
    border-color: rgba(177, 19, 27, 0.18);
    color: #8d1117;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.footer {
    padding: 1.55rem 0;
    background: #0f141b;
    color: rgba(255, 255, 255, 0.72);
}

.footer__inner {
    gap: 1.35rem;
    flex-wrap: wrap;
}

.footer__inner > div {
    display: grid;
    gap: 0.18rem;
}

.footer p,
.footer a {
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 1080px) {
    .hero__grid,
    .modern-stack,
    .contact-grid,
    .split-grid,
    .cta-strip,
    .smart-contact {
        grid-template-columns: 1fr;
    }

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

    .service-grid--home,
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .issue-grid,
    .timeline__stats,
    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .topbar__contact {
        gap: 0.55rem;
    }

    .topbar__contact a:not([href*="wa.me"]):not([href^="tel:"]) {
        display: none;
    }

    .topbar__links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(24, 32, 43, 0.08);
        box-shadow: var(--shadow-soft);
    }

    .main-nav.is-open {
        display: flex;
    }

    .topbar__inner,
    .main-header__inner {
        align-items: start;
    }

    .brand {
        align-items: center;
    }

    .form-grid,
    .license-line {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0.3rem 0;
    }

    .topbar__inner {
        min-height: auto;
        justify-content: center;
    }

    .topbar__contact {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .section {
        padding: 3.4rem 0;
    }

    .logo-grid,
    .issue-grid,
    .service-grid,
    .timeline__stats,
    .cards-grid,
    .service-grid--home,
    .manufacturer-grid,
    .client-logo-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero__actions {
        display: grid;
    }

    .brand {
        gap: 0.7rem;
    }

    .brand__logo {
        width: 102px;
    }

    .brand__text strong {
        font-size: 0.95rem;
    }

    .brand__text small {
        font-size: 0.82rem;
    }
}
