:root {
    color-scheme: light;
    --ink: #243c4b;
    --blue: #008fbd;
    --blue-text: #00789f;
    --line: #e4e9ec;
    --header-height: 188px;
    --font-heading: "TT Norms", "Manrope", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 7px;
    border-radius: 3px;
}

.header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    isolation: isolate;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 5px 24px rgb(35 60 76 / 3%);
    transition: box-shadow 200ms ease;
}

.header::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("../images/patron-puntos-grises-degradados.svg") left top / auto 100% no-repeat;
    opacity: 0.45;
    content: "";
    pointer-events: none;
}

.header.is-scrolled {
    box-shadow: 0 8px 28px rgb(35 60 76 / 9%);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 3.4vw, 64px);
    width: min(100% - 96px, 1440px);
    min-height: 188px;
    margin-inline: auto;
    padding-block: 24px;
}

.brand {
    display: block;
    flex: 0 0 clamp(275px, 25vw, 350px);
    line-height: 0;
}

.brand__image {
    display: block;
    width: 100%;
    height: auto;
}

.navigation {
    flex: 1;
    max-width: 880px;
}

.navigation__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding-block: 12px;
    color: var(--ink);
    font-size: clamp(18px, 1.48vw, 22px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.035em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.navigation__link::after {
    position: absolute;
    inset: auto 0 4px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms ease;
}

.navigation__link:hover,
.navigation__link:focus-visible,
.navigation__link[aria-current="location"] {
    color: var(--blue-text);
}

.navigation__link:hover::after,
.navigation__link:focus-visible::after,
.navigation__link[aria-current="location"]::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
}

.page {
    min-height: 100svh;
    padding-top: var(--header-height);
}

.section-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 24px;
}

@media (max-width: 1199px) {
    .header__inner {
        width: calc(100% - 64px);
        gap: 28px;
        min-height: 164px;
    }

    .brand {
        flex-basis: 275px;
    }

    .navigation__list {
        gap: 16px;
    }

    .navigation__link {
        font-size: 18px;
    }
}

@media (max-width: 1050px) {
    :root {
        --header-height: 146px;
    }

    .header__inner {
        position: relative;
        flex-wrap: wrap;
        gap: 0;
        min-height: 146px;
        padding-block: 20px;
    }

    .brand {
        flex-basis: 260px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        min-height: 48px;
        padding: 10px 14px;
        color: var(--ink);
        background: rgb(255 255 255 / 85%);
        border: 1px solid #dce5ea;
        border-radius: 6px;
        font: 500 16px / 1.5 var(--font-body);
        cursor: pointer;
    }

    .menu-toggle:hover {
        border-color: var(--blue);
    }

    .menu-toggle__icon {
        position: relative;
        width: 22px;
        height: 18px;
    }

    .menu-toggle__icon span {
        position: absolute;
        inset: 4px 0 auto;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform 180ms ease;
    }

    .menu-toggle__icon span:last-child {
        top: 12px;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .navigation {
        flex-basis: 100%;
        max-width: none;
        margin-top: 20px;
        border-top: 1px solid var(--line);
    }

    .js .navigation {
        position: absolute;
        inset: 100% -32px auto;
        display: none;
        max-height: calc(100dvh - var(--header-height));
        margin: 0;
        padding: 12px 32px 24px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 20px rgb(35 60 76 / 6%);
    }

    .js .header.is-menu-open .navigation {
        display: block;
        animation: menu-enter 180ms ease both;
    }

    .navigation__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 32px;
    }

    .navigation__item {
        border-bottom: 1px solid #edf0f2;
    }

    .navigation__link {
        display: flex;
        min-height: 64px;
        font-size: 21px;
        letter-spacing: -0.025em;
    }

    .navigation__link::after {
        bottom: -1px;
    }

    html:not(.js) .header {
        position: sticky;
    }

    html:not(.js) .menu-toggle {
        display: none;
    }

    html:not(.js) .page {
        min-height: 0;
        padding-top: 0;
    }
}

@media (max-width: 540px) {
    :root {
        --header-height: 122px;
    }

    .header__inner {
        width: calc(100% - 40px);
        min-height: 122px;
        padding-block: 18px;
    }

    .brand {
        flex-basis: clamp(190px, 52vw, 240px);
    }

    .header::before {
        opacity: 0.4;
        background-size: auto 145px;
    }

    .menu-toggle {
        gap: 9px;
        padding-inline: 10px;
        font-size: 14px;
    }

    .js .navigation {
        right: -20px;
        left: -20px;
        padding-inline: 24px;
    }

    .navigation__list {
        grid-template-columns: 1fr;
    }

    .navigation__link {
        min-height: 58px;
        font-size: 22px;
    }
}

@media (max-width: 359px) {
    .menu-toggle__label {
        display: none;
    }

    .menu-toggle {
        width: 46px;
    }
}

@keyframes menu-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Hero: mensaje a la izquierda y universo industrial a la derecha. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: #020e23;
}

.hero__background {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgb(2 12 29 / 48%), transparent 54%);
    content: "";
    pointer-events: none;
}

.hero__inner {
    display: flex;
    align-items: center;
    width: min(100% - 96px, 1440px);
    min-height: clamp(650px, calc(100svh - var(--header-height)), 900px);
    margin-inline: auto;
    padding-block: 80px;
}

.hero__content {
    width: 43%;
    max-width: 600px;
    animation: hero-enter 700ms ease both;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 3.5vw, 58px);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero h1 span {
    color: #69d8ff;
}

.hero p {
    max-width: 440px;
    margin: 26px 0 34px;
    color: #c4d2e4;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.75;
    text-wrap: pretty;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 58px;
    padding: 16px 25px;
    border: 1px solid #40c5f0;
    border-radius: 5px;
    color: #001b30;
    background: #55d0f7;
    box-shadow: 0 8px 32px rgb(0 164 224 / 15%);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero__cta span {
    font-size: 25px;
    line-height: 1;
    transition: transform 180ms ease;
}

.hero__cta:hover {
    background: #8be2ff;
    box-shadow: 0 10px 36px rgb(0 164 224 / 28%);
    transform: translateY(-2px);
}

.hero__cta:hover span {
    transform: translate(2px, -2px);
}

.hero__cta:focus-visible {
    outline-color: #fff;
}

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199px) {
    .hero__inner { width: calc(100% - 64px); }
    .hero__content { width: 42%; }
}

@media (max-width: 760px) {
    .hero__inner {
        width: calc(100% - 48px);
        min-height: 0;
        padding-top: 54px;
        padding-bottom: calc(54vw + 95px);
    }
    .hero__content { width: 100%; max-width: 560px; }
    .hero h1 { font-size: clamp(34px, 6.8vw, 48px); }
    .hero p { max-width: 480px; margin-block: 22px 28px; font-size: 17px; }
    .hero__background {
        inset: auto 0 0 auto;
        width: 170%;
        max-width: none;
        height: auto;
        object-fit: contain;
    }
    .hero::after {
        background: linear-gradient(180deg, #020e23 0%, #020e23 44%, transparent 67%);
    }
}

@media (max-width: 420px) {
    .hero__inner { width: calc(100% - 40px); padding-top: 42px; padding-bottom: calc(64vw + 95px); }
    .hero h1 { font-size: 35px; }
    .hero__cta { min-height: 56px; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__content { animation: none; }
}

/* Logotipo compacto y contacto directo al final del header. */
.header__inner {
    gap: clamp(20px, 2vw, 32px);
    min-height: 156px;
    padding-block: 18px;
}

.brand {
    flex-basis: clamp(235px, 21vw, 290px);
}

.header__whatsapp {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 11px 17px;
    border: 1px solid #d5eade;
    border-radius: 6px;
    color: #185c37;
    background: #eef9f2;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 180ms ease, border-color 180ms ease;
}

.header__whatsapp img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.header__whatsapp:hover {
    background: #dff4e7;
    border-color: #77c997;
}

@media (max-width: 1199px) {
    .brand { flex-basis: 235px; }
    .header__inner { gap: 20px; }
    .header__whatsapp { padding-inline: 13px; }
}

@media (max-width: 1050px) {
    .header__inner { min-height: 130px; gap: 12px; }
    .brand { flex-basis: 235px; margin-right: auto; }
}

@media (max-width: 540px) {
    .header__inner { min-height: 108px; gap: 8px; }
    .brand { flex-basis: clamp(160px, 45vw, 205px); }
    .header__whatsapp { width: 46px; min-height: 48px; padding: 10px; }
    .header__whatsapp span { display: none; }
}

/* Marcas fijas organizadas por categoría. */
.brands {
    padding-block: 64px;
    background: #f8fafb;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.brands__heading {
    width: min(100% - 96px, 1440px);
    margin: 0 auto 32px;
    text-align: center;
}

.brands h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.brands__inner { width: min(100% - 96px, 1440px); margin-inline: auto; }
.brands__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 36px;
    border-bottom: 1px solid #dfe7ec;
}
.brands__tabs[hidden] { display: none; }
.brands__tab {
    padding: 15px 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #526775;
    background: transparent;
    font: 500 clamp(16px, 1.4vw, 20px) / 1.4 var(--font-body);
    cursor: pointer;
}
.brands__tab:hover { color: var(--blue-text); }
.brands__tab[aria-selected="true"] { color: var(--blue-text); border-bottom-color: var(--blue); }
.brands__tab:focus-visible { outline-offset: -2px; }
.brands__panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }
.brands__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 130px;
    padding: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf1f4;
    border-radius: 4px;
}
.brands__item[hidden] { display: none; }
.brands__logo { display: block; width: 160px; max-width: 100%; height: 72px; object-fit: contain; }
.brands__logo--ampliado { transform: scale(2.6); }
.brands__logo--medio { transform: scale(1.65); }

@media (max-width: 1199px) {
    .brands__heading, .brands__inner { width: calc(100% - 64px); }
    .brands__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
    .brands__tabs { gap: 6px 20px; }
}
@media (max-width: 900px) {
    .brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .brands { padding-block: 40px; }
    .brands__heading, .brands__inner { width: calc(100% - 40px); }
    .brands__heading { margin-bottom: 24px; }
    .brands__tabs { gap: 4px 12px; margin-bottom: 24px; }
    .brands__tab { padding: 12px 5px; font-size: 15px; }
    .brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .brands__item { height: 110px; padding: 10px; }
    .brands__logo { height: 64px; }
}

/* Productos: neumática. */
.product-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 24px;
    background: #eef2f4;
}

.product-hero__background {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.product-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgb(245 248 250 / 94%), rgb(245 248 250 / 75%) 35%, rgb(245 248 250 / 12%) 57%, transparent 70%);
    content: "";
    pointer-events: none;
}

.product-hero__inner {
    display: flex;
    align-items: center;
    width: min(100% - 96px, 1440px);
    min-height: 700px;
    margin-inline: auto;
    padding-block: 80px;
}

.product-hero__content {
    width: 49%;
    max-width: 650px;
}

.product-hero h2, .product-hero h3 {
    margin: 0 0 34px;
    color: #123751;
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.product-hero__items {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-hero__items li {
    max-width: 100%;
    padding: 12px 19px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 999px;
    color: #fff;
    background: #c6530b;
    box-shadow: 0 3px 10px rgb(162 65 6 / 12%);
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 500;
    line-height: 1.5;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .product-hero__items li:hover {
        transform: translateY(-4px);
        background-color: #a94106;
        border-color: #f6ad73;
        box-shadow: 0 9px 20px rgb(162 65 6 / 25%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-hero__items li:hover { transform: none; }
}

@media (max-width: 1199px) {
    .product-hero__inner { width: calc(100% - 64px); min-height: 660px; padding-block: 64px; }
    .product-hero__content { width: 51%; }
    .product-hero__items li { padding-inline: 16px; }
}

@media (max-width: 760px) {
    .product-hero__inner {
        width: calc(100% - 40px);
        min-height: 0;
        padding-top: 44px;
        padding-bottom: calc(48vw + 100px);
    }
    .product-hero__content { width: 100%; max-width: 600px; }
    .product-hero h2, .product-hero h3 { margin-bottom: 26px; font-size: clamp(36px, 7vw, 48px); }
    .product-hero__items { gap: 10px 8px; }
    .product-hero__items li { padding: 10px 15px; font-size: 14px; }
    .product-hero__background { inset: auto 0 0 auto; width: 170%; height: auto; max-width: none; }
    .product-hero::after {
        background: linear-gradient(180deg, #f1f5f7, #f1f5f7 52%, rgb(241 245 247 / 85%) 64%, transparent 82%);
    }
}

/* Separación visual entre las familias de productos. */
.product-divider {
    height: clamp(36px, 4vw, 64px);
    background: linear-gradient(110deg, #061421 0%, #123751 48%, #1d536b 72%, #081b2b 100%);
}

/* Nosotros: fotografía y detalles técnicos sobre fondo oscuro. */
.about {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 24px;
    color: #fff;
    background: radial-gradient(ellipse at 10% 60%, #12344a 0%, transparent 55%), #071b2b;
}

.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(48px, 6vw, 100px);
    width: min(100% - 96px, 1440px);
    margin-inline: auto;
    padding-block: 80px;
    row-gap: 64px;
}

.about__visual {
    position: relative;
    isolation: isolate;
    margin: 20px 0 20px 18px;
}

.about__visual::before {
    position: absolute;
    z-index: -1;
    inset: -24px 25px 28px -24px;
    border: 1px solid rgb(101 206 242 / 45%);
    border-radius: 6px;
    content: "";
}

.about__visual::after {
    position: absolute;
    z-index: -1;
    right: -35px;
    bottom: -35px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #56bedb 1.5px, transparent 2px) 0 0 / 14px 14px;
    opacity: 0.5;
    content: "";
}

.about__orbit {
    position: absolute;
    z-index: -2;
    inset: 15% -60px 8% -90px;
    border: 1px solid rgb(87 197 235 / 12%);
    border-radius: 50%;
    transform: rotate(-24deg);
}

.about__orbit::after {
    position: absolute;
    inset: -34px;
    border: 1px solid rgb(87 197 235 / 8%);
    border-radius: inherit;
    content: "";
}

.about__picture {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgb(160 216 241 / 16%);
    border-radius: 6px;
    background: #0c2639;
    box-shadow: 0 25px 65px rgb(0 0 0 / 25%);
}

.about__picture::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgb(5 23 38 / 30%));
    content: "";
    pointer-events: none;
}

.about__picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    max-height: 420px;
    object-fit: cover;
    object-position: center 10%;
}

.about h2 {
    margin: 0 0 26px;
    font-size: clamp(38px, 3.8vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.about p {
    margin: 0;
    color: #b9cbd8;
    font-size: 15px;
    line-height: 1.85;
    text-wrap: pretty;
}

.about .about__intro {
    color: #d5e0e8;
    font-size: 18px;
    line-height: 1.8;
}

.about h3 {
    margin: 0 0 14px;
    color: #70d4f4;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

@media (max-width: 1199px) {
    .about__inner { width: calc(100% - 64px); gap: 48px; padding-block: 76px; }
    .about__visual { align-self: center; margin-top: 20px; }
}

@media (max-width: 760px) {
    .about__inner { grid-template-columns: 1fr; width: calc(100% - 40px); gap: 56px; padding-block: 64px 52px; }
    .about__visual { width: calc(100% - 36px); max-width: 430px; margin: 0 auto; }
    .about__picture img { aspect-ratio: 5 / 4; object-position: center 15%; }
    .about__visual::before { inset: -15px 18px 20px -15px; }
    .about__visual::after { right: -20px; bottom: -24px; width: 110px; height: 110px; }
    .about h2 { margin-bottom: 22px; }
    .about p, .about .about__intro { font-size: 16px; line-height: 1.8; }
}

/* Contacto sobre un degradado gris suave. */
.footer {
    scroll-margin-top: 24px;
    color: var(--ink);
    background: linear-gradient(115deg, #f5f6f7 0%, #e8ecef 48%, #d4dce1 100%);
    border-top: 1px solid #d3dbe0;
}

.footer__inner {
    width: min(100% - 96px, 1440px);
    margin-inline: auto;
    padding-top: 56px;
}

.footer h2 {
    margin: 0 0 36px;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.footer__columns {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr 1fr;
    gap: clamp(28px, 5vw, 80px);
    padding-bottom: 48px;
}

.footer__brand img {
    display: block;
    width: min(100%, 250px);
    height: auto;
}

.footer__brand p {
    max-width: 250px;
    margin: 20px 0 0;
    color: #566b79;
    font-size: 14px;
    line-height: 1.7;
}

.footer__contact { font-style: normal; }

.footer h3 {
    margin: 0 0 20px;
    color: #153c55;
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.35;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer a:hover { color: var(--blue-text); }

.footer .footer__email {
    display: inline-block;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
    color: #24556f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.footer dl { margin: 0 0 24px; }
.footer dl div { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.footer dt { min-width: 54px; color: #566b79; font-size: 13px; }
.footer dd { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }

.footer .footer__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #b8c6cf;
    border-radius: 6px;
    color: #244b60;
    background: rgb(255 255 255 / 45%);
    font-size: 14px;
    font-weight: 600;
    transition: background 180ms ease, border-color 180ms ease;
}

.footer__whatsapp img { display: block; width: 22px; height: 22px; object-fit: contain; }
.footer__whatsapp span { margin-left: 12px; font-size: 20px; line-height: 1; }
.footer .footer__whatsapp:hover { background: #fff; border-color: #6f9daf; }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 23px;
    padding-bottom: 110px;
    border-top: 1px solid rgb(56 82 100 / 16%);
    color: #526674;
    font-size: 12px;
    line-height: 1.6;
}

.footer__bottom p { margin: 0; }
.footer__bottom a { display: inline-flex; align-items: center; gap: 12px; }

@media (max-width: 1050px) {
    .footer__inner { width: calc(100% - 64px); }
    .footer__columns { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
    .footer__brand { grid-column: 1 / -1; }
    .footer__brand img { width: 220px; }
}

@media (max-width: 600px) {
    .footer__inner { width: calc(100% - 40px); padding-top: 40px; }
    .footer h2 { margin-bottom: 28px; }
    .footer__columns { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
    .footer__contact { padding-top: 28px; border-top: 1px solid rgb(56 82 100 / 16%); }
    .footer__brand img { width: 210px; }
    .footer__brand p { margin-top: 14px; }
    .footer__bottom { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 20px; }
}

/* Misión, Visión y Valores: cuadros que revelan su contenido. */
.about__cards {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.about-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #47545f;
}

.about-card--vision { background: #c6530b; }

.about-card::before,
.about-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0;
    content: "";
    pointer-events: none;
    transition: opacity 350ms ease, transform 650ms ease;
}

.about-card::before {
    background: url("../images/planta-robotica-automatizacion-industrial.webp") left center / cover no-repeat;
    transform: scale(1.08);
}

.about-card--vision::before { background-position: center; }
.about-card--values::before { background-position: right center; }
.about-card::after { background: linear-gradient(180deg, rgb(3 14 24 / 63%), rgb(3 14 24 / 88%)); }
.about-card.is-revealed::before,
.about-card.is-revealed::after { opacity: 1; transform: scale(1); }

.about-card__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 420px;
    padding: 36px 30px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    font-family: var(--font-body);
    text-align: center;
    cursor: pointer;
}

.about-card__toggle:focus-visible { outline: 2px solid #8adeff; outline-offset: -6px; }

.about-card__title {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.about-card__body {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    transform: translateY(12px);
    transition: max-height 350ms ease, margin-top 350ms ease, opacity 350ms ease, transform 350ms ease;
}

.about-card.is-revealed .about-card__body {
    max-height: 420px;
    margin-top: 24px;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1050px) {
    .about__cards { gap: 16px; }
    .about-card__toggle { min-height: 440px; padding: 28px 20px; }
    .about-card__body { font-size: 14px; }
}

@media (max-width: 760px) {
    .about__cards { grid-template-columns: 1fr; gap: 20px; }
    .about-card__toggle { min-height: 330px; padding: 36px 28px; }
    .about-card__body { max-width: 460px; font-size: 15px; }
}

/* Contacto flotante, visible durante toda la navegación. */
.floating-whatsapp {
    position: fixed;
    z-index: 110;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 13px;
    max-width: calc(100vw - 32px);
    min-height: 78px;
    padding: 14px 19px 14px 14px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(120deg, #075e3c, #168348);
    box-shadow: 0 9px 30px rgb(4 53 30 / 28%);
    font-family: var(--font-body);
    text-decoration: none;
    animation: whatsapp-pulse 4s ease-out 1s infinite;
    transition: transform 220ms ease, border-color 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp::after {
    position: absolute;
    inset: -60% auto -60% -60%;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 17%), transparent);
    transform: skewX(-20deg);
    animation: whatsapp-shine 7s ease-in-out 2s infinite;
    content: "";
    pointer-events: none;
}

.floating-whatsapp__icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 9px rgb(0 0 0 / 12%);
    transition: transform 220ms ease;
}

.floating-whatsapp__icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
.floating-whatsapp__text { display: flex; flex-direction: column; gap: 5px; }
.floating-whatsapp__text > span { font-size: 12px; font-weight: 400; line-height: 1.3; }
.floating-whatsapp__text strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.floating-whatsapp__arrow { margin-left: 2px; font-size: 25px; line-height: 1; transition: transform 220ms ease; }
.floating-whatsapp:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / 65%); }
.floating-whatsapp:hover .floating-whatsapp__icon { transform: rotate(-9deg); }
.floating-whatsapp:hover .floating-whatsapp__arrow { transform: translate(2px, -2px); }
.floating-whatsapp:focus-visible { outline: 3px solid #38bc83; outline-offset: 5px; }

@keyframes whatsapp-pulse {
    0%, 70%, 100% { box-shadow: 0 9px 30px rgb(4 53 30 / 28%), 0 0 0 0 rgb(28 175 98 / 0%); }
    15% { box-shadow: 0 9px 30px rgb(4 53 30 / 28%), 0 0 0 0 rgb(28 175 98 / 28%); }
    45% { box-shadow: 0 9px 30px rgb(4 53 30 / 28%), 0 0 0 14px rgb(28 175 98 / 0%); }
}

@keyframes whatsapp-shine {
    0%, 75% { left: -60%; }
    100% { left: 150%; }
}

@media (max-width: 600px) {
    .floating-whatsapp {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        min-height: 68px;
        gap: 10px;
        padding: 11px 14px 11px 11px;
        border-radius: 15px;
    }
    .floating-whatsapp__icon { flex-basis: 42px; width: 42px; height: 42px; }
    .floating-whatsapp__icon img { width: 32px; height: 32px; }
    .floating-whatsapp__text > span { font-size: 11px; }
    .floating-whatsapp__text strong { font-size: 13px; }
    .floating-whatsapp__arrow { font-size: 22px; }
    .footer__bottom { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp, .floating-whatsapp::after { animation: none; }
    .floating-whatsapp:hover,
    .floating-whatsapp:hover .floating-whatsapp__icon,
    .floating-whatsapp:hover .floating-whatsapp__arrow { transform: none; }
}

/* Formulario de contacto integrado al footer. */
.footer__columns {
    grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1fr) minmax(300px, 1.5fr);
    gap: 40px;
    align-items: start;
}

.contact-form {
    position: relative;
    min-width: 0;
    padding: 30px;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgb(29 59 77 / 7%);
}

.contact-form__field { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 9px; color: #2e3d46; font-size: 15px; line-height: 1.5; }
.contact-form input:not([type="hidden"]),
.contact-form textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #687780;
    border-radius: 0;
    color: #243c4b;
    background: #f7f8f9;
    font: 400 15px / 1.6 var(--font-body);
    transition: border-color 180ms ease, background-color 180ms ease;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid #c6530b; outline-offset: 2px; border-bottom-color: #c6530b; background: #fffaf6; }
.contact-form__actions { display: flex; justify-content: flex-end; }
.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #c6530b;
    font: 700 15px / 1.5 var(--font-body);
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}
.contact-form__submit span { font-size: 21px; line-height: 1; }
.contact-form__submit:hover { background: #a94106; transform: translateY(-2px); }
.contact-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form__notice { margin: 0 0 22px; padding: 12px 14px; border-left: 3px solid #b74713; color: #8a3112; background: #fff2e9; font-size: 14px; line-height: 1.6; }
.contact-form__notice--success { border-color: #258451; color: #185c37; background: #edf8f0; }

@media (max-width: 1050px) {
    .footer__columns { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; }
    .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .footer__columns { grid-template-columns: minmax(0, 1fr); }
    .contact-form { padding: 24px 20px; border-radius: 16px; }
}

/* Categorías de productos en pestañas. */
.products {
    padding-top: 56px;
    scroll-margin-top: 24px;
    background: #f8fafb;
}
.products__heading {
    width: min(100% - 96px, 1440px);
    margin: 0 auto 28px;
    text-align: center;
}
.products__heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.products__tabs { width: min(100% - 96px, 1440px); margin: 0 auto 28px; }
.product-hero[hidden] { display: none; }
.product-hero[role="tabpanel"]:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }

@media (max-width: 760px) {
    .products { padding-top: 40px; }
    .products__heading, .products__tabs { width: calc(100% - 40px); }
    .products__tabs { margin-bottom: 24px; }
}
.product-hero h3 { text-transform: uppercase; }
