:root {
    color-scheme: light;
    --background: #FAFAF7;
    --surface: #FFFFFF;
    --navy: #142D43;
    --text: #475569;
    --muted: #64748B;
    --accent: #B9470C;
    --accent-hover: #943807;
    --border: #E2E8F0;
    --soft: #F1F4F5;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    background: #F5D9C8;
    color: var(--navy);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.15;
}

h1,
h2 {
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 650;
}

h3 {
    letter-spacing: -0.025em;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.section {
    padding-block: 104px;
}

.eyebrow {
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.6;
}

.accent-text {
    color: var(--accent);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--navy);
    color: white;
}

    .skip-link:focus {
        top: 12px;
    }

/* Encabezado */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(250, 250, 247, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    flex-shrink: 0;
}

    .brand img {
        width: 194px;
        height: auto;
    }

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
}

    .main-navigation a {
        transition: color 160ms ease;
    }

        .main-navigation a:hover {
            color: var(--accent);
        }

.navigation-contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 11px 17px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.menu-toggle {
    display: none;
}

/* Presentación */

.hero {
    overflow: hidden;
    padding-block: 88px 84px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    margin-bottom: 28px;
    font-size: clamp(2.8rem, 4.6vw, 4.1rem);
    font-weight: 650;
    line-height: 1.08;
}

    .hero h1 > span {
        color: var(--accent);
    }

.hero-description {
    max-width: 470px;
    margin-bottom: 32px;
    font-size: 1.09rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    transition: background 160ms ease, transform 160ms ease;
}

.button-primary {
    background: var(--accent);
    color: white;
}

    .button-primary:hover {
        transform: translateY(-2px);
        background: var(--accent-hover);
    }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
}

    .text-link:hover {
        color: var(--accent);
    }

.hero-proof {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

    .hero-proof strong {
        color: var(--navy);
        font-size: 2.5rem;
        font-weight: 650;
        letter-spacing: -0.05em;
        line-height: 1;
    }

    .hero-proof > span {
        font-size: 0.82rem;
        line-height: 1.6;
    }

/* Panel visual de soluciones */

.solution-board {
    overflow: hidden;
    border: 1px solid #D5DEE5;
    border-radius: 12px;
    background-color: #F2F5F5;
    background-image: linear-gradient(rgba(20, 45, 67, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 45, 67, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    box-shadow: 0 24px 64px rgba(20, 45, 67, 0.06);
}

.board-heading,
.board-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 19px 24px;
    background: rgba(255, 255, 255, 0.7);
    font-family: Consolas, monospace;
    font-size: 0.61rem;
    letter-spacing: 0.06em;
}

.board-heading {
    border-bottom: 1px solid #D5DEE5;
}

.board-indicator {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

.board-index {
    margin-left: auto;
    color: var(--muted);
}

.board-center {
    margin: 30px 28px 18px;
    padding: 30px;
    border: 1px solid var(--navy);
    border-radius: 6px;
    background: var(--navy);
    color: #CBD5DF;
}

.board-caption {
    color: #F7B586;
    font-family: Consolas, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.board-center h2 {
    margin-block: 17px 16px;
    color: white;
    font-size: 2.3rem;
}

.board-center p {
    max-width: 260px;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.board-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 28px 28px;
}

.board-module {
    display: flex;
    min-height: 127px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid #D5DEE5;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
}

.module-symbol {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

.board-module strong {
    color: var(--navy);
    font-size: 0.93rem;
    font-weight: 600;
}

.board-module > span:last-child {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
}

.board-footer {
    justify-content: space-between;
    border-top: 1px solid #D5DEE5;
    font-size: 0.56rem;
}

/* Tecnologías */

.technology-strip {
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.technology-inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
}

.technology-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 600;
}

/* Servicios */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 46px;
}

    .section-heading h2 {
        margin-bottom: 0;
    }

    .section-heading > p {
        max-width: 330px;
        margin-bottom: 4px;
        font-size: 0.96rem;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--border);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--surface);
    transition: background 160ms ease;
}

    .service-card:hover {
        background: #FFF9F4;
    }

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
}

.service-number {
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 0.75rem;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.28rem;
    font-weight: 650;
}

.service-card p {
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.service-tag {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
}

/* Nosotros */

.about-section {
    border-block: 1px solid var(--border);
    background: var(--soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 100px;
}

.about-lead {
    margin-bottom: 20px;
    color: var(--navy);
    font-size: 1.12rem;
}

.body-copy {
    font-size: 0.94rem;
}

    .body-copy:last-child {
        margin-bottom: 0;
    }

.principle {
    display: flex;
    gap: 24px;
    padding-block: 29px;
    border-top: 1px solid #D2DCE3;
}

    .principle:last-child {
        border-bottom: 1px solid #D2DCE3;
    }

    .principle > span {
        padding-top: 3px;
        color: var(--accent);
        font-family: Consolas, monospace;
        font-size: 0.76rem;
    }

    .principle h3 {
        margin-bottom: 10px;
        font-size: 1.2rem;
        font-weight: 650;
    }

    .principle p {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

/* Proceso */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.process-step {
    padding: 30px 26px 0;
    border-left: 1px solid var(--border);
}

    .process-step:first-child {
        padding-left: 0;
        border-left: 0;
    }

.step-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid #E8D0C0;
    border-radius: 5px;
    background: #FCF0E7;
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 0.75rem;
}

.process-step h3 {
    margin-bottom: 12px;
    font-size: 1.18rem;
    font-weight: 650;
}

.process-step p {
    margin-bottom: 0;
    font-size: 0.87rem;
}

/* Contacto */

.contact-section {
    background: var(--navy);
    color: #C4D0DC;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 100px;
}

.contact-section .eyebrow {
    color: #F7B586;
}

.contact-section h2 {
    color: white;
}

    .contact-section h2 > span {
        color: #F7B586;
    }

.contact-copy > p:not(.eyebrow) {
    max-width: 440px;
    margin-bottom: 28px;
    font-size: 0.98rem;
}

.contact-details {
    padding-left: 40px;
    border-left: 1px solid #395065;
}

.contact-item + .contact-item {
    margin-top: 28px;
}

.contact-label {
    display: block;
    margin-bottom: 8px;
    color: #ADBFD0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.contact-item a {
    color: white;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

    .contact-item a:hover {
        text-decoration: underline;
        text-underline-offset: 5px;
    }

.contact-item address {
    color: white;
    font-size: 0.94rem;
    font-style: normal;
}

/* Pie y WhatsApp */

.site-footer {
    padding-block: 34px 100px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
}

    .footer-brand span {
        color: var(--accent);
    }

.footer-inner p {
    margin-block: 5px 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--muted);
    font-size: 0.75rem;
}

    .footer-links a:hover {
        color: var(--accent);
    }

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 25;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: #176B43;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 160ms ease, transform 160ms ease;
}

    .whatsapp-float:hover {
        transform: translateY(-2px);
        background: #105434;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }

/* Tabletas y pantallas medianas */

@media (max-width: 1050px) {
    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: 3.15rem;
    }

    .about-grid,
    .contact-grid {
        gap: 50px;
    }

    .main-navigation {
        gap: 20px;
        font-size: 0.82rem;
    }

    .technology-list {
        gap: 20px;
    }

    .service-card {
        padding: 26px;
    }
}

@media (max-width: 850px) {
    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding-block: 72px;
    }

    .header-inner {
        min-height: 82px;
        flex-wrap: wrap;
        gap: 0;
    }

    .brand img {
        width: 166px;
    }

    .menu-toggle:not([hidden]) {
        display: flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 5px;
        background: white;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background: var(--navy);
    }

    .main-navigation {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 10px 18px;
    }

        .main-navigation a {
            padding: 12px;
            font-size: 0.94rem;
        }

        .main-navigation .navigation-contact {
            justify-content: space-between;
            margin-top: 6px;
        }

        .main-navigation[hidden] {
            display: none;
        }

    .hero {
        padding-block: 55px 64px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 7vw, 4rem);
    }

    .hero-description {
        max-width: 580px;
    }

    .solution-board {
        width: 100%;
        max-width: 580px;
        justify-self: center;
    }

    .technology-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-block: 24px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

        .section-heading > p {
            max-width: 550px;
        }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 0;
    }

    .process-step:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .contact-details {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid #395065;
        border-left: 0;
    }

    .footer-inner {
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 6px;
    }
}

/* Teléfonos */

@media (max-width: 520px) {
    html {
        scroll-padding-top: 95px;
    }

    .section {
        padding-block: 56px;
    }

    .hero .eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.09em;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 9vw, 2.9rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: flex-start;
        gap: 20px;
    }

    .hero-proof {
        margin-top: 30px;
    }

    .board-heading,
    .board-footer {
        padding-inline: 16px;
    }

    .board-heading {
        font-size: 0.54rem;
    }

    .board-center {
        margin: 20px 16px 12px;
        padding: 24px;
    }

        .board-center h2 {
            font-size: 2rem;
        }

    .board-modules {
        gap: 10px;
        padding: 0 16px 20px;
    }

    .board-module {
        min-height: 120px;
        padding: 14px 12px;
    }

    .board-footer {
        gap: 6px;
        font-size: 0.48rem;
    }

    .technology-list {
        gap: 10px 20px;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px;
    }

    .card-top {
        margin-bottom: 25px;
    }

    .process-step {
        padding-right: 16px;
        padding-left: 16px;
    }

        .process-step h3 {
            font-size: 1.04rem;
        }

        .process-step p {
            font-size: 0.82rem;
        }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        padding: 0;
    }

        .whatsapp-float > span {
            display: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* Aviso de privacidad */

.privacy-container {
    max-width: 900px;
}

.privacy-back {
    margin-bottom: 38px;
}

.privacy-header {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

    .privacy-header h1 {
        margin-bottom: 20px;
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 650;
    }

    .privacy-header > p:not(.eyebrow) {
        max-width: 650px;
        margin-bottom: 20px;
        font-size: 1.08rem;
    }

.privacy-date {
    color: var(--muted);
    font-size: 0.8rem;
}

.privacy-content {
    padding-block: 12px 40px;
}

    .privacy-content > section {
        padding-top: 34px;
    }

    .privacy-content h2 {
        margin-bottom: 16px;
        font-size: 1.35rem;
        letter-spacing: -0.025em;
    }

    .privacy-content p,
    .privacy-content li {
        font-size: 0.96rem;
    }

        .privacy-content p:last-child {
            margin-bottom: 0;
        }

    .privacy-content ul {
        margin-block: 0 20px;
        padding-left: 24px;
    }

    .privacy-content li + li {
        margin-top: 8px;
    }

    .privacy-content strong {
        color: var(--navy);
    }

    .privacy-content a {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 3px;
        overflow-wrap: anywhere;
    }

.privacy-contact {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

    .privacy-contact h2 {
        margin-bottom: 12px;
        font-size: 1.4rem;
        letter-spacing: -0.025em;
    }

    .privacy-contact p {
        margin-bottom: 22px;
    }

@media (max-width: 520px) {
    .privacy-back {
        margin-bottom: 28px;
    }

    .privacy-content h2 {
        font-size: 1.2rem;
    }

    .privacy-contact {
        padding: 24px;
    }
}