:root {
    --ink: #111820;
    --ink-soft: #26313c;
    --steel: #53616d;
    --mist: #eef1f2;
    --paper: #fbfaf7;
    --white: #ffffff;
    --safety: #f5c542;
    --safety-dark: #c99218;
    --teal: #3d5f62;
    --line: rgba(17, 24, 32, 0.12);
    --shadow: 0 18px 45px rgba(17, 24, 32, 0.14);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 72px;
    padding: 12px clamp(16px, 4vw, 42px);
    color: var(--white);
    background: rgba(17, 24, 32, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
}

.brand-mark {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    background: var(--white);
    border-radius: 8px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(14px, 2vw, 30px);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
}

.site-nav a,
.language-switcher a {
    transition: color 160ms ease;
}

.site-nav a:hover,
.language-switcher a:hover,
.language-switcher a.active {
    color: var(--safety);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.hero {
    min-height: calc(86vh - 72px);
    color: var(--white);
    background: url("../images/industrial-dark.png") center / cover no-repeat;
}

.hero-overlay {
    display: flex;
    align-items: center;
    min-height: calc(86vh - 72px);
    padding: clamp(70px, 10vw, 118px) 0 clamp(56px, 8vw, 86px);
    background: linear-gradient(90deg, rgba(17, 24, 32, 0.94) 0%, rgba(17, 24, 32, 0.82) 48%, rgba(17, 24, 32, 0.32) 100%);
}

.hero-content {
    max-width: 850px;
    margin-left: max(16px, calc((100vw - var(--max-width)) / 2));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--safety-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-dark .eyebrow,
.contact-section .eyebrow,
.hero .eyebrow {
    color: var(--safety);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    max-width: 780px;
    font-size: 4.8rem;
    font-weight: 900;
}

h2 {
    font-size: 2.7rem;
    font-weight: 850;
}

h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

.hero-copy {
    max-width: 690px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.28rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
}

.button-primary {
    color: var(--ink);
    background: var(--safety);
}

.button-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary.dark {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.34);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 34px 0 0;
    list-style: none;
}

.hero-highlights li {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.section {
    padding: clamp(62px, 8vw, 102px) 0;
}

.section-light {
    background: var(--mist);
}

.section-white {
    background: var(--paper);
}

.section-dark {
    color: var(--white);
    background: var(--ink);
}

.two-column,
.problem-layout,
.ideal-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
}

.lead-text {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.image-frame {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.principles-grid,
.services-grid,
.response-grid,
.included-grid,
.split-panels {
    display: grid;
    gap: 18px;
}

.principles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-card,
.service-card,
.response-card,
.info-panel,
.included-grid article,
.contact-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.principle-card,
.service-card,
.info-panel,
.included-grid article {
    padding: 24px;
}

.principle-card p,
.service-card p,
.service-card ul,
.info-panel p,
.included-grid p {
    color: var(--steel);
}

.value-list,
.benefits-grid,
.market-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.value-list li,
.market-list li {
    padding: 9px 12px;
    background: rgba(245, 197, 66, 0.22);
    border: 1px solid rgba(201, 146, 24, 0.28);
    border-radius: 8px;
    font-weight: 750;
}

.problem-layout h2 {
    max-width: 820px;
    font-size: 2.25rem;
}

.solution-callout {
    margin: 0;
    padding: 26px;
    color: var(--ink);
    background: var(--safety);
    border-radius: 8px;
    font-size: 1.28rem;
    font-weight: 850;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    min-height: 100%;
    box-shadow: 0 10px 25px rgba(17, 24, 32, 0.06);
}

.service-card h3 {
    min-height: 3.1rem;
}

.service-card ul,
.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.service-card li,
.check-list li,
.benefits-grid li {
    position: relative;
    padding-left: 22px;
}

.service-card li::before,
.check-list li::before,
.benefits-grid li::before {
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.58em;
    content: "";
    background: var(--safety);
    border-radius: 2px;
}

.split-panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.info-panel.muted {
    background: #f4f6f6;
}

.response-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.response-card {
    padding: 22px;
}

.response-card span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--safety-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.response-card strong {
    display: block;
    font-size: 1.12rem;
}

.response-card p {
    margin: 8px 0 0;
    color: var(--steel);
}

.included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefits-grid li {
    padding: 16px 16px 16px 38px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 750;
}

.benefits-grid li::before {
    left: 16px;
}

.ideal-layout p {
    color: var(--steel);
}

.market-list {
    margin: 0;
}

.market-list li {
    background: var(--white);
}

.method-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.method-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.method-list span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: var(--safety);
    border-radius: 8px;
    font-weight: 900;
}

.method-list p {
    margin: 0;
    color: var(--ink-soft);
}

.contact-section {
    color: var(--white);
    background: linear-gradient(90deg, rgba(17, 24, 32, 0.94), rgba(17, 24, 32, 0.82)), url("../images/industrial-light.png") center / cover no-repeat;
}

.contact-layout h2 {
    max-width: 760px;
}

.contact-card {
    display: grid;
    gap: 8px;
    padding: 28px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    font-style: normal;
}

.contact-card strong {
    font-size: 1.5rem;
}

.contact-card span {
    color: rgba(255, 255, 255, 0.72);
}

.contact-card a {
    color: var(--safety);
    font-size: 1.26rem;
    font-weight: 900;
}

.not-found-page {
    min-height: 100vh;
}

#blazor-error-ui {
    color-scheme: light only;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 0.6rem 1.25rem 0.7rem;
    color: var(--ink);
    background: #fff4c4;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: #9d2727;
}

.blazor-error-boundary::after {
    content: "Ocurrió un error.";
}

.loading-progress {
    position: absolute;
    inset: 20vh 0 auto 0;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d8d8d8;
    stroke-width: 0.6rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: var(--safety);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--ink);
    font-weight: bold;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Cargando");
}

code {
    color: #9d2727;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        order: 3;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    h1 {
        font-size: 3.6rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .two-column,
    .problem-layout,
    .ideal-layout,
    .contact-layout,
    .split-panels {
        grid-template-columns: 1fr;
    }

    .principles-grid,
    .services-grid,
    .response-grid,
    .included-grid,
    .benefits-grid,
    .method-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header {
        gap: 12px;
        min-height: 66px;
    }

    .brand-name {
        white-space: normal;
    }

    .hero,
    .hero-overlay {
        min-height: 78vh;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(17, 24, 32, 0.96), rgba(17, 24, 32, 0.74));
    }

    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .hero-copy {
        font-size: 1.1rem;
    }

    .section {
        padding: 54px 0;
    }

    .principles-grid,
    .services-grid,
    .response-grid,
    .included-grid,
    .benefits-grid,
    .method-list {
        grid-template-columns: 1fr;
    }

    .method-list li {
        grid-template-columns: 38px 1fr;
    }

    .method-list span {
        width: 38px;
        height: 38px;
    }
}
