/* =========================================================
   ASSAC - Automation Service S.A.C.
   Hoja de estilos principal (sin frameworks, sin jQuery)
   ========================================================= */

:root {
    --red: #e30615;
    --red-dark: #c10403;
    --ink: #161922;
    --ink-soft: #2a2d36;
    --body: #626262;
    --muted: #8b8b8b;
    --maroon: #441e24;
    --gray: #e1e1e1;
    --light: #f6f6f6;
    --line: #e8e8e8;
    --white: #ffffff;

    --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
    --font-body: "Lato", "Segoe UI", Arial, sans-serif;

    --container: 1200px;
    --header-h: 82px;
    --radius: 2px;
    --shadow: 0 18px 40px rgba(16, 18, 24, .10);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Base ----------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    background: var(--white);
    overflow-x: hidden;
}

main {
    display: block;
    /* El header es fijo y siempre blanco: el contenido empieza debajo de el. */
    padding-top: var(--header-h);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color .25s var(--ease);
}

a:hover {
    color: var(--red-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: .012em;
    text-transform: uppercase;
    color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
h4 { font-size: 1.05rem; }

p {
    margin: 0 0 1.1em;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0 0 1.1em;
    padding-left: 1.15em;
}

::selection {
    background: var(--red);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

[id] {
    scroll-margin-top: 100px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 96px 0;
}

.section--light {
    background: var(--light);
}

.center {
    text-align: center;
}

.center-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.center-block {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

.error-code {
    margin: 0 0 .1em;
    font-family: var(--font-head);
    font-size: clamp(4.5rem, 12vw, 7.5rem);
    line-height: 1;
    letter-spacing: .04em;
    color: var(--red);
    opacity: .9;
}

/* ----------------------------- Tipografía auxiliar ----------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.eyebrow.center::before {
    display: none;
}

.eyebrow.light {
    color: rgba(255, 255, 255, .72);
}

.section-title {
    margin-bottom: .45em;
    text-transform: uppercase;
}

.section-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16.5px;
    color: var(--body);
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-head.is-center {
    margin-inline: auto;
    text-align: center;
}

.section-head.is-center .eyebrow {
    justify-content: center;
}

.section-head.is-light .section-title,
.section-head.is-light .section-text {
    color: #fff;
}

.section-head.is-light .section-text {
    color: rgba(255, 255, 255, .72);
}

.section-head-actions {
    margin-top: 26px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-head);
    font-size: 13.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
}

.link-arrow svg {
    transition: transform .25s var(--ease);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.link-arrow--light,
.link-arrow--light:hover {
    color: #fff;
}

/* ----------------------------- Botones ----------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), transform .25s var(--ease),
                box-shadow .25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
    background: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(227, 6, 21, .24);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-lg {
    padding: 17px 38px;
    font-size: 15px;
}

.btn-light {
    background: #fff;
    color: var(--ink);
}

.btn-light:hover,
.btn-light:focus-visible {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 12px 26px rgba(16, 18, 24, .28);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--red);
    color: var(--red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: var(--red);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.btn-ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ----------------------------- Header ----------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    display: flex;
    align-items: center;
    height: var(--header-h);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 22px rgba(16, 18, 24, .08);
    transition: box-shadow .3s var(--ease), height .3s var(--ease);
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 34px;
    height: 100%;
}

.brand {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 34px;
}

.brand-dark {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 7px 0;
    font-family: var(--font-head);
    font-size: 13.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: inherit;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width .3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-support {
    color: var(--red);
}

.header-social {
    display: flex;
    gap: 9px;
    margin-left: 4px;
}

.header-social a {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid rgba(22, 25, 34, .18);
    border-radius: 50%;
    color: inherit;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.header-social a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Al hacer scroll el header se compacta y gana un poco de sombra. */
html.is-scrolled .site-header {
    height: 64px;
    box-shadow: 0 10px 32px rgba(16, 18, 24, .12);
}

/* Menú móvil */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid rgba(22, 25, 34, .2);
    border-radius: 2px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    padding: 110px 32px 50px;
    background: #121212;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-link {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}

.mobile-link:hover {
    color: var(--red);
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

.mobile-nav-footer a {
    color: rgba(255, 255, 255, .82);
}

body:has(.mobile-nav.is-open) {
    overflow: hidden;
}

/* ----------------------------- Hero ----------------------------- */

.hero {
    position: relative;
    height: 88vh;
    min-height: 640px;
    max-height: 860px;
    overflow: hidden;
    background: #101014;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--ease), visibility .9s;
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s linear;
}

.hero-slide.is-active .hero-img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 12, .86) 0%, rgba(8, 9, 12, .62) 40%, rgba(8, 9, 12, .12) 78%),
        linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, rgba(8, 9, 12, 0) 34%, rgba(8, 9, 12, .42) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 70px;
}

.hero-copy {
    max-width: 680px;
    color: #fff;
}

.hero-kicker {
    margin: 0 0 16px;
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #ff5a62;
}

.hero-title {
    margin: 0 0 20px;
    font-size: clamp(2.7rem, 5.6vw, 4.7rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #fff;
}

.hero-text {
    max-width: 540px;
    margin-bottom: 34px;
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .84);
}

.hero-slide.is-active .hero-copy > * {
    animation: heroIn .8s var(--ease) both;
}

.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .3s; }

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.hero-arrow:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.05);
}

.hero-arrow--prev { left: 26px; }
.hero-arrow--next { right: 26px; }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .3s var(--ease), background .3s var(--ease);
}

.hero-dot.is-active {
    width: 58px;
    background: var(--red);
}

/* ----------------------------- Página: cabecera ----------------------------- */

.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    padding: 88px 0 66px;
    overflow: hidden;
    background: #101014;
}

.page-hero--tall {
    min-height: 560px;
    padding-bottom: 80px;
}

.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 9, 12, .78) 0%, rgba(8, 9, 12, .5) 42%, rgba(8, 9, 12, .82) 100%),
        linear-gradient(90deg, rgba(8, 9, 12, .55), rgba(8, 9, 12, .1));
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #fff;
}

.page-hero-kicker {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: 13.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #ff5a62;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
}

.page-hero-sub {
    max-width: 660px;
    margin: 0;
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

/* ----------------------------- Inicio: productos ----------------------------- */

.section-products {
    padding-top: 88px;
}

.section-products > .container > .eyebrow {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    max-width: 1010px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 54px 44px 46px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--accent, var(--red));
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #ddd;
    box-shadow: var(--shadow);
}

.product-logo {
    display: grid;
    place-items: center;
    height: 92px;
    margin-bottom: 26px;
}

.product-logo img {
    max-height: 76px;
    width: auto;
}

.product-kicker {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.product-card h2 {
    margin-bottom: .4em;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.product-card p {
    max-width: 380px;
    font-size: 15.5px;
}

.product-card .btn {
    margin-top: auto;
    margin-top: 24px;
}

/* ----------------------------- Banda about ----------------------------- */

.about-band {
    position: relative;
    padding: 116px 0;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.band-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 9, 12, .94) 0%, rgba(8, 9, 12, .74) 48%, rgba(8, 9, 12, .32) 100%);
}

.about-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.about-title {
    margin-bottom: .35em;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    color: #fff;
}

.about-text {
    max-width: 640px;
    margin-bottom: 30px;
    font-size: 16.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .76);
}

/* ----------------------------- Sistema ----------------------------- */

.section-system {
    padding-bottom: 84px;
}

.system-inner {
    text-align: center;
}

.system-inner .section-head {
    margin-bottom: 30px;
}

.system-figure {
    margin: 0 auto 34px;
    max-width: 980px;
}

.system-figure img,
.map-figure img,
.function-figure img {
    display: block;
    width: 100%;
    margin-inline: auto;
}

/* ----------------------------- Estadísticas ----------------------------- */

.stats-band {
    position: relative;
    padding: 88px 0;
    background:
        radial-gradient(900px 380px at 20% 0%, rgba(227, 6, 21, .16), transparent 70%),
        var(--maroon);
    color: #fff;
    overflow: hidden;
}

.stats-head {
    margin-bottom: 46px;
    text-align: center;
}

.stats-head .eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
}

.stats-head h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    text-align: center;
}

.stat {
    padding: 8px 18px;
}

.stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2.9rem, 4.6vw, 4.1rem);
    font-weight: 500;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}

/* ----------------------------- Mapa y clientes ----------------------------- */

.section-map {
    padding-bottom: 70px;
}

.map-figure {
    max-width: 880px;
    margin: 0 auto;
}

.section-clients {
    padding-top: 60px;
}

.clients-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.clients-strip {
    display: flex;
    flex: 1;
    gap: 18px;
    padding: 6px 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.clients-strip::-webkit-scrollbar {
    display: none;
}

.client-item {
    flex: 0 0 148px;
    display: grid;
    place-items: center;
    height: 92px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #fff;
    scroll-snap-align: start;
}

.client-item img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    filter: grayscale(1);
    opacity: .62;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
}

.client-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.strip-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    transition: background .25s var(--ease);
}

.strip-arrow:hover {
    background: var(--red-dark);
}

/* ----------------------------- Noticias ----------------------------- */

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.section-head-row .eyebrow {
    margin-bottom: 8px;
}

.section-head-row .section-title {
    margin-bottom: 0;
}

.section-news {
    background: #ededed;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.news-grid--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.news-card:hover .news-media img {
    transform: scale(1.05);
}

.news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 28px 28px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.news-cat {
    color: var(--red);
}

.news-date {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
    font-size: 12px;
}

.news-body h3 {
    margin-bottom: .45em;
    font-size: 1.28rem;
    line-height: 1.25;
}

.news-body h3 a {
    color: var(--ink);
}

.news-body h3 a:hover {
    color: var(--red);
}

.news-body p {
    margin-bottom: 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--body);
}

.news-body .link-arrow {
    margin-top: auto;
}

/* ----------------------------- Nosotros ----------------------------- */

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.story-copy p {
    font-size: 15.5px;
    line-height: 1.85;
}

.story-copy .btn {
    margin-top: 12px;
}

.story-media {
    position: relative;
    margin: 0;
}

.story-media > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
}

.story-media figcaption {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 26px;
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    line-height: 1.5;
}

.story-badge {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 17px;
    letter-spacing: .04em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.value-card {
    position: relative;
    padding: 42px 40px 38px;
    border-top: 4px solid var(--red);
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 18, 24, .05);
}

.value-index {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: .22em;
    color: var(--red);
}

.value-card h3 {
    font-size: 1.5rem;
}

.value-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.commitments {
    display: flex;
    flex-direction: column;
}

.commitment {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 50px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.commitment:last-child {
    border-bottom: 1px solid var(--line);
}

.commitment-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.commitment-num {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--red);
    padding-top: 6px;
}

.commitment h3 {
    margin: 0;
    font-size: 1.45rem;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.7;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 12px;
    height: 2px;
    background: var(--red);
}

.section-leaders {
    background: var(--light);
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.leader-card {
    text-align: center;
}

.leader-photo {
    aspect-ratio: 4 / 5;
    margin-bottom: 18px;
    overflow: hidden;
    background: #e9e9e9;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.leader-card:hover .leader-photo img {
    transform: scale(1.05);
}

.leader-card h3 {
    margin: 0 0 4px;
    font-size: 1.06rem;
}

.leader-card p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}

/* ----------------------------- Productos ----------------------------- */

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}

.intro-grid--reverse .intro-media {
    order: 0;
}

.intro-copy p {
    font-size: 15.8px;
    line-height: 1.85;
}

.intro-media {
    margin: 0;
}

.intro-media img {
    display: block;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}

.intro-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 40px;
    border: 1px solid var(--line);
    background: #fff;
}

.intro-logos img {
    max-height: 78px;
    width: auto;
}

.intro-logos-divider {
    width: 1px;
    height: 70px;
    background: var(--line);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.product-detail-grid--reverse .product-detail-media {
    order: -1;
}

.product-detail-logo {
    max-height: 62px;
    width: auto;
    margin-bottom: 26px;
}

.product-detail-copy p {
    font-size: 15.6px;
    line-height: 1.85;
}

.product-detail-copy .btn {
    margin-top: 8px;
}

.product-detail-media {
    margin: 0;
}

.product-detail-media img {
    display: block;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}

.levels-title {
    margin: 64px 0 26px;
    padding-left: 16px;
    border-left: 4px solid var(--red);
    font-size: 1.5rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.level-card {
    position: relative;
    padding: 34px 30px 32px;
    border: 1px solid var(--line);
    background: #fff;
}

.level-num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--red);
}

.level-card h4 {
    margin-bottom: .5em;
    font-size: 1.05rem;
    line-height: 1.3;
}

.level-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
}

.sensor-section {
    background: #141416;
    color: #fff;
}

.sensor-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.sensor-copy .section-title {
    color: #fff;
}

.sensor-copy p {
    font-size: 15.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .74);
}

.sensor-note {
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 700;
}

.video-poster {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-poster img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    opacity: .82;
    transition: opacity .3s var(--ease), transform .5s var(--ease);
}

.video-poster:hover img {
    opacity: 1;
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 0 12px rgba(227, 6, 21, .22);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease), background .3s var(--ease);
}

.video-poster:hover .play-button {
    background: var(--red-dark);
    transform: translate(-50%, -50%) scale(1.06);
}

.cronos-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.cronos-copy p {
    font-size: 15.6px;
    line-height: 1.85;
}

.cronos-main {
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.cronos-main img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.cronos-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.cronos-thumb {
    padding: 0;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    opacity: .62;
    transition: opacity .25s var(--ease), border-color .25s var(--ease);
}

.cronos-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.cronos-thumb:hover,
.cronos-thumb.is-active {
    opacity: 1;
    border-color: var(--red);
}

.function-figure {
    max-width: 1000px;
    margin: 0 auto;
}

/* ----------------------------- Servicios ----------------------------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.feature-card {
    padding: 34px 32px 32px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
}

.feature-card h3 {
    margin-bottom: .45em;
    font-size: 1.04rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

.feature-card p {
    margin: 0;
    font-size: 14.3px;
    line-height: 1.72;
}

.analytics-band {
    position: relative;
    padding: 106px 0;
    background: #101014;
    color: #fff;
    overflow: hidden;
}

.analytics-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 420px at 82% 12%, rgba(227, 6, 21, .28), transparent 65%),
        linear-gradient(120deg, #0d0d10 30%, #1b1b20 100%);
}

.analytics-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.analytics-inner h2 {
    margin-bottom: .4em;
    font-size: clamp(2rem, 3.9vw, 3.1rem);
    color: #fff;
}

.analytics-inner p {
    margin-bottom: 30px;
    font-size: 16.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .76);
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.why-row {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 64px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid var(--line);
}

.why-row:last-child {
    border-bottom: 1px solid var(--line);
}

.why-row--reverse .why-media {
    order: 2;
}

.why-media {
    margin: 0;
}

.why-media img {
    display: block;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
}

.why-num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: .24em;
    color: var(--red);
}

.why-copy h3 {
    margin-bottom: .5em;
    font-size: 1.42rem;
    line-height: 1.3;
}

.why-copy p {
    margin: 0;
    font-size: 15.2px;
    line-height: 1.8;
}

/* ----------------------------- Galería ----------------------------- */

.gallery-grid {
    display: grid;
    gap: 16px;
}

.gallery-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lightbox-item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: #ddd;
    cursor: zoom-in;
    overflow: hidden;
}

.lightbox-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s var(--ease), filter .4s var(--ease);
}

.lightbox-item:hover img {
    transform: scale(1.06);
    filter: brightness(.82);
}

.lightbox-zoom {
    position: absolute;
    inset: auto 12px 12px auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--red);
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.lightbox-item:hover .lightbox-zoom {
    opacity: 1;
    transform: none;
}

/* Lightbox (lo construye site.js) */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    background: rgba(8, 9, 12, .95);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    transition: background .25s var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red);
    border-color: var(--red);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    margin-top: -25px;
}

.lightbox-next {
    right: 24px;
    top: 50%;
    margin-top: -25px;
}

.lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .7);
}

/* Modal de video */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 410;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(6, 7, 10, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-frame {
    position: relative;
    width: min(1000px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.video-modal-close:hover {
    background: var(--red);
}

/* ----------------------------- Eventos ----------------------------- */

.section-events {
    padding-bottom: 0;
}

.event-block {
    padding: 76px 0;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.event-block--light {
    background: var(--light);
}

.event-head {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 34px;
}

.event-year {
    font-family: var(--font-head);
    font-size: clamp(2.9rem, 4vw, 3.8rem);
    line-height: 1;
    color: var(--red);
    opacity: .85;
}

.event-head-copy h2 {
    margin-bottom: .35em;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.event-head-copy p {
    margin: 0;
    max-width: 720px;
    font-size: 15.5px;
}

/* ----------------------------- Artículo / Noticia ----------------------------- */

.article-section {
    padding-top: 76px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 70px;
    align-items: start;
}

.article-back {
    margin-bottom: 30px;
}

.article-body > p {
    font-size: 16.5px;
    line-height: 1.9;
    color: #4f4f4f;
}

.article-body > p:first-of-type {
    font-size: 18.5px;
    color: #34373f;
}

.article-list-title {
    font-weight: 700;
    color: var(--ink);
}

.article-list {
    display: grid;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.article-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15.5px;
    line-height: 1.7;
}

.article-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 12px;
    height: 2px;
    background: var(--red);
}

.article-author {
    margin: 30px 0 40px !important;
    padding-left: 18px;
    border-left: 3px solid var(--red);
    font-weight: 700;
    color: var(--ink) !important;
}

.article-subtitle {
    margin: 46px 0 22px;
    font-size: 1.4rem;
}

.article-aside {
    position: sticky;
    top: 110px;
    padding: 30px;
    background: var(--light);
}

.article-aside h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.aside-news {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.aside-news a {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: var(--ink);
}

.aside-news img {
    width: 84px;
    height: 64px;
    object-fit: cover;
}

.aside-news small {
    display: block;
    margin-bottom: 3px;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.aside-news strong {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--ink);
    transition: color .25s var(--ease);
}

.aside-news a:hover strong {
    color: var(--red);
}

.aside-cta {
    width: 100%;
    padding-inline: 18px;
    font-size: 12.5px;
}

/* ----------------------------- Contacto ----------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: start;
}

.contact-note {
    max-width: 560px;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--body);
}

.contact-form {
    margin-top: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    background: #fbfbfb;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 6, 21, .09);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a7a7a7;
}

.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #d0021b;
}

.form-field .invalid {
    border-color: #d0021b;
}

.form-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-left: 3px solid;
    font-size: 14px;
    line-height: 1.6;
}

.form-alert-ok {
    border-color: #2f9e44;
    background: #eef8f1;
    color: #226632;
}

.form-alert-error {
    border-color: #d0021b;
    background: #fdeff0;
    color: #9d0213;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-card {
    padding: 34px 32px;
    background: var(--light);
}

.contact-card h3 {
    margin-bottom: 22px;
    font-size: 1.15rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
}

.contact-list strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
}

.contact-list span,
.contact-list a {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--body);
}

.contact-list a:hover {
    color: var(--red);
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.contact-socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(22, 25, 34, .16);
    border-radius: 50%;
    color: var(--ink);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.contact-socials a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.contact-card--dark {
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
}

.contact-card--dark h3 {
    color: #fff;
}

.contact-hours {
    margin: 0 0 2px;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

.contact-hours-value {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
}

.contact-hours-note {
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.6;
}

.what-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.service-list {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 26px;
    font-size: 16px;
    color: var(--ink-soft);
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 13px;
    height: 2px;
    background: var(--red);
}

.what-map {
    min-height: 380px;
    background: #e9e9e9;
}

.what-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    filter: grayscale(.25);
}

/* ----------------------------- CTA ----------------------------- */

.cta-band {
    padding: 60px 0;
    background: var(--red);
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}

.cta-copy h2 {
    margin-bottom: .25em;
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    color: #fff;
}

.cta-copy p {
    margin: 0;
    max-width: 620px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, .84);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
}

/* ----------------------------- Footer ----------------------------- */

.site-footer {
    background: #191919;
    color: #b9b9b9;
}

.footer-main {
    padding: 72px 0 58px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr 1.2fr;
    gap: 60px;
}

.footer-logo {
    height: 42px;
    width: auto;
    margin-bottom: 22px;
}

.footer-brand p {
    max-width: 360px;
    font-size: 14.5px;
    line-height: 1.8;
    color: #a8a8a8;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #d6d6d6;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.socials a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: .18em;
    color: #fff;
}

.footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    display: inline-block;
    padding: 4px 0;
    font-size: 14px;
    color: #b0b0b0;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 14px;
    line-height: 1.65;
}

.footer-contact svg {
    margin-top: 3px;
    color: var(--red);
}

.footer-contact a {
    color: #b0b0b0;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: #111;
    font-size: 12.5px;
    color: #8e8e8e;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* ----------------------------- Aviso de error de Blazor ----------------------------- */

#blazor-error-ui {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    gap: 14px;
    align-items: center;
    max-width: 92vw;
    padding: 14px 60px 14px 20px;
    font-size: .9rem;
    color: #fff;
    background: #b32121;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#blazor-error-ui .reload {
    color: #fff;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

/* ----------------------------- WhatsApp ----------------------------- */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .35);
    transition: transform .25s var(--ease);
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* ----------------------------- Animaciones ----------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 1180px) {
    .main-nav {
        gap: 18px;
    }

    .nav-link {
        font-size: 12.5px;
        letter-spacing: .07em;
    }

    .story-grid,
    .intro-grid,
    .product-detail-grid,
    .sensor-grid,
    .cronos-grid,
    .what-grid {
        gap: 44px;
    }

    .article-layout {
        gap: 46px;
    }
}

@media (max-width: 1024px) {
    .main-nav,
    .header-social {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 78px 0;
    }

    .leaders-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 44px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .event-head {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 26px;
    }

    .commitment {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 34px;
    }

    .story-media > img {
        aspect-ratio: 4 / 3.6;
    }
}

@media (max-width: 880px) {
    .hero {
        height: auto;
        min-height: 0;
        padding: 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 560px;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-inner {
        min-height: 560px;
        padding: 130px 0 90px;
    }

    .hero-arrow {
        display: none;
    }

    .page-hero {
        min-height: 380px;
        padding: 68px 0 54px;
    }

    .page-hero--tall {
        min-height: 470px;
    }

    .products-grid,
    .story-grid,
    .intro-grid,
    .product-detail-grid,
    .sensor-grid,
    .cronos-grid,
    .what-grid,
    .article-layout,
    .contact-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-grid--reverse .product-detail-media {
        order: 0;
    }

    .intro-grid--reverse .intro-media {
        order: 0;
    }

    .why-row,
    .why-row--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .why-row--reverse .why-media {
        order: 0;
    }

    .why-media img {
        max-width: 340px;
    }

    .article-aside {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 0;
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .news-grid,
    .news-grid--list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .event-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-year {
        font-size: 2.6rem;
    }

    .commitment {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom-inner {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 36px);
    }

    .section {
        padding: 60px 0;
    }

    .section-products {
        padding-top: 62px;
    }

    .product-card {
        padding: 42px 26px 36px;
    }

    .product-card .btn {
        width: 100%;
    }

    .about-band,
    .analytics-band {
        padding: 74px 0;
    }

    .stats-band {
        padding: 64px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 18px 10px;
    }

    .stat + .stat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .news-grid,
    .news-grid--list,
    .features-grid,
    .leaders-grid,
    .gallery-grid--4,
    .gallery-grid--3 {
        grid-template-columns: 1fr;
    }

    .leaders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-slide {
        min-height: 520px;
    }

    .hero-inner {
        min-height: 520px;
        padding: 120px 0 86px;
    }

    .hero-dots {
        bottom: 26px;
    }

    .hero-dot {
        width: 26px;
    }

    .hero-dot.is-active {
        width: 44px;
    }

    .clients-wrap {
        gap: 10px;
    }

    .client-item {
        flex-basis: 130px;
    }

    .gallery-grid {
        gap: 12px;
    }

    .lightbox {
        padding: 70px 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .video-modal {
        padding: 16px;
    }

    .footer-menu {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .leaders-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .header-inner {
        gap: 16px;
    }

    .brand img {
        height: 28px;
    }

    .cta-actions,
    .center-actions {
        width: 100%;
    }

    .hero-title {
        font-size: 2.35rem;
    }
}
