/* M&M Instalaciones — UI corporativa */
:root {
    --primary: #83072d;
    --primary-dark: #6a0625;
    --wine: #5c0818;
    --navy: #002a3a;
    --text: #2f2f2f;
    --text-light: #5a5a5a;
    --gray-bg: #f3f3f3;
    --white: #ffffff;
    --border: #d8d8d8;
    --font: 'Montserrat', Arial, Helvetica, sans-serif;
    --max: 1140px;
    --space: 24px;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover { color: var(--primary-dark); }

.container {
    width: min(100% - 48px, var(--max));
    margin-inline: auto;
}

/* ── Header: logo izquierda (con aire), menú derecha ── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(131, 7, 45, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 110px;
    padding-block: 12px;
}

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    /* Aire respecto al borde del contenedor (no pegado a la orilla) */
    padding-left: 4px;
}

.site-logo__img,
.site-logo img {
    max-height: 96px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    color: #6b0018;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    display: block;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .active > a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Flecha delgada (solo contorno) para ítems con submenú — desktop */
.main-nav > ul > li:has(> .sub-menu) > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.main-nav > ul > li:has(> .sub-menu) > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform .2s ease;
}

.main-nav > ul > li:has(> .sub-menu):hover > a::after,
.main-nav > ul > li:has(> .sub-menu):focus-within > a::after {
    transform: translateY(1px) rotate(225deg);
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    min-width: 240px;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 20;
}

.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.header-phone:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 10px;
    cursor: pointer;
    order: 3;
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Botones ── */
.btn {
    display: inline-block;
    padding: 13px 28px;
    background: var(--primary);
    color: var(--white) !important;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
}

.btn--outline-dark {
    background: transparent;
    color: var(--primary) !important;
}

.btn--outline-dark:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white) !important;
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white) !important;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Hero ── */
.home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
}

.home-hero__bg img,
.home-hero__bg .img-block {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 30, 42, 0.88) 0%, rgba(0, 42, 58, 0.72) 55%, rgba(0, 42, 58, 0.45) 100%);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    padding: 72px 0;
    max-width: 640px;
}

.home-hero__brand {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.home-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
}

.home-hero p {
    margin: 0 0 28px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Page hero ── */
.page-hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 64px 0;
    border-bottom: 3px solid var(--primary);
    overflow: hidden;
}

.page-hero--image {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 72px 0;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 30, 42, 0.88) 0%, rgba(0, 42, 58, 0.72) 60%, rgba(0, 42, 58, 0.5) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.page-hero p {
    margin: 14px 0 0;
    max-width: 560px;
    opacity: 0.92;
    font-size: 1.02rem;
    line-height: 1.65;
    font-weight: 400;
}

.job-form-logo {
    margin-bottom: 32px;
    text-align: center;
}

.job-form-logo img {
    max-height: 150px;
    width: auto;
    margin-inline: auto;
}

.section-lead {
    max-width: 820px;
    margin: 40px auto 0;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.values-list {
    margin-bottom: 0;
    columns: 2;
    column-gap: 20px;
}

.values-list li {
    break-inside: avoid;
}

/* ── Secciones ── */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }

.section-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 1.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
}

.section-intro .section-title { margin-bottom: 12px; }

.section-subtitle {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 14px;
}

.section-text {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.plain-list {
    margin: 0 0 24px;
    padding-left: 18px;
    color: var(--text-light);
}

.plain-list li { margin-bottom: 8px; }

/* ── Servicios ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: inherit;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card__body {
    padding: 16px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.service-card h3 {
    margin: 0;
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.35;
}

.service-card__link {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-card:hover .service-card__link {
    color: var(--primary);
}

/* ── Filas contenido ── */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 0;
}

.content-row--reverse .content-row__media { order: 2; }
.content-row--reverse .content-row__text { order: 1; }

.content-row h2 {
    color: var(--primary);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.content-row p {
    margin: 0 0 14px;
    color: var(--text-light);
}

.content-row__media img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.section--services-intro {
    padding-bottom: 32px;
}

.services-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.services-nav a {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.services-nav a:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.services-page .content-row {
    margin-bottom: 0;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.services-page .content-row + .content-row {
    margin-top: 28px;
}

.services-page .content-row__media img {
    transition: transform 0.55s ease;
}

.services-page .content-row__media.is-visible img {
    transform: scale(1.02);
}

.services-page .content-row__text .btn {
    margin-top: 8px;
}

/* ── Clientes ── */
.clients-band {
    background: var(--wine);
    padding: 64px 0;
}

.clients-band__title {
    text-align: center;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 36px;
}

.clients-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.clients-carousel__viewport { overflow: hidden; }

.clients-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform .4s ease;
}

.clients-carousel__slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
}

.client-logo-card {
    margin: 0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
}

.client-logo-card__img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.client-logo-card__name {
    color: var(--white);
    font-weight: 600;
}

.clients-carousel__btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
}

.clients-carousel__btn:hover { background: rgba(255, 255, 255, 0.18); }
.clients-carousel__btn:disabled { opacity: 0.3; cursor: default; }

.clients-carousel__dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.clients-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.clients-carousel__dot.is-active { background: var(--white); }

/* ── Valores / Contacto ── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
}

.value-card h3 {
    color: var(--primary);
    margin: 0 0 10px;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.value-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.value-card .plain-list {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.contact-card {
    text-align: left;
    padding: 28px 24px;
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-card i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-card h3 {
    color: var(--primary);
    margin: 0 0 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.contact-card p { margin: 0; font-size: 0.95rem; }

.map-wrap iframe {
    width: 100%;
    height: 400px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ── Bolsa de trabajo ── */
.section--job {
    padding-top: 56px;
}

.job-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

.job-form-wrap,
.job-copy {
    min-height: 100%;
}

.job-copy {
    /* Baja el texto para alinearlo con los campos (debajo del logo) */
    padding-top: 168px;
}

.job-copy h2 {
    color: var(--primary);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 22px;
    line-height: 1.25;
}

.job-copy p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.job-form {
    background: linear-gradient(160deg, var(--primary) 0%, var(--wine) 55%, #4a0612 100%);
    padding: 44px 40px;
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(92, 8, 24, 0.28);
}

.job-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.job-form input {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
}

.job-form input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 1px;
}

.job-form input[type="file"] {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    border: none;
}

.job-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.job-form .form-row .full { grid-column: 1 / -1; }

.job-form-actions {
    margin-top: 8px;
}

.job-form-actions .btn {
    min-width: 160px;
    padding: 14px 32px;
    font-size: 15px;
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}

.job-form-actions .btn:hover {
    background: transparent;
    color: var(--white) !important;
    border-color: var(--white);
}

.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid;
    border-radius: var(--radius-sm);
}

.alert-success { background: #eef8f0; border-color: #b8dfc0; color: #1e5c2a; }
.alert-error { background: #fdf0f0; border-color: #e8b4b4; color: #7a1a1a; }

.legal-content { padding: 48px 0 64px; }
.legal-content h2 { color: var(--primary); margin-top: 28px; font-size: 1.2rem; }

.img-block {
    background: var(--gray-bg);
    border: 1px dashed #bbb;
    border-radius: var(--radius);
    padding: 32px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Footer ── */
.site-footer {
    background: var(--gray-bg);
    border-top: 1px solid var(--border);
}

.footer-main { padding: 52px 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.footer-grid h3 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0 0 14px;
    letter-spacing: 0.04em;
}

.footer-grid a {
    color: var(--primary);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.footer-grid p { margin: 0 0 8px; }

.footer-email {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-grid img,
.footer-grid .site-logo__img {
    max-height: 110px;
    width: auto;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    margin: 0;
}

.footer-bottom {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 16px;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.5;
}

/* ── WhatsApp (redondo) ── */
.wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wa-btn__icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
}

.wa-btn:hover {
    color: #fff !important;
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal--left {
    transform: translateX(-36px);
}

.reveal--right {
    transform: translateX(36px);
}

.reveal--up {
    transform: translateY(36px);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.content-row__media img,
.service-card img,
.feature-split__media img,
.home-hero__bg img {
    transition: transform 0.7s ease, filter 0.4s ease;
}

.service-card:hover img,
.content-row__media.is-visible img {
    transform: scale(1.03);
}

.service-card {
    transition: border-color .2s, box-shadow .2s, transform .35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ── Responsive ── */

@media (max-width: 1100px) {
    .header-phone span { display: none; }
    .header-phone { padding: 10px 12px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .clients-carousel__slide { flex: 0 0 calc((100% - 40px) / 3); }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .footer-col--logo {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        padding-top: 4px;
    }

    .footer-col--logo .site-logo__img,
    .footer-col--logo img {
        max-height: 88px;
    }

    .content-row,
    .content-row--reverse { grid-template-columns: 1fr; gap: 28px; }
    .content-row--reverse .content-row__media,
    .content-row--reverse .content-row__text { order: unset; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 32px, var(--max)); }

    .header-inner {
        flex-wrap: wrap;
        min-height: 88px;
        gap: 12px;
    }

    .site-logo {
        padding-left: 0;
        order: 1;
    }

    .site-logo__img,
    .site-logo img { max-height: 72px; }

    .values-list { columns: 1; }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .header-right {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .header-right.is-open { display: flex; }

    .main-nav { display: block; width: 100%; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .main-nav > ul > li:has(> .sub-menu) > a::after { display: none; }
    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 12px;
        display: flex;
    }

    .header-phone {
        justify-content: center;
    }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards,
    .values-grid,
    .job-section { grid-template-columns: 1fr; align-items: stretch; }
    .job-copy { padding-top: 8px; order: -1; }
    .job-form .form-row { grid-template-columns: 1fr; }

    .footer-main { padding: 36px 0 44px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .footer-col--contact {
        grid-column: 1 / -1;
    }

    .footer-col--logo {
        grid-column: 1 / -1;
    }

    .footer-grid h3 { margin-bottom: 10px; }

    .footer-bottom {
        padding: 14px 52px 18px 16px;
        font-size: 0.8rem;
    }

    .clients-carousel {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .clients-carousel__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .clients-carousel__slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .client-logo-card {
        min-height: 96px;
        padding: 14px 10px;
    }

    .client-logo-card__img {
        max-height: 58px;
    }

    .clients-carousel__dots {
        display: flex;
        margin-top: 4px;
    }

    .home-hero { min-height: 420px; }
    .home-hero__content { padding: 48px 0; }
    .home-hero__actions .btn { width: 100%; text-align: center; }
    .page-hero { padding: 40px 0; }
    .section { padding: 52px 0; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .wa-btn { width: 60px; height: 60px; }
    .wa-btn__icon { font-size: 1.85rem; }
    .site-logo__img,
    .site-logo img { max-height: 64px; }
    .job-form {
        padding: 32px 22px;
    }
    .job-form-logo img { max-height: 120px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .footer-col--contact,
    .footer-col--logo {
        grid-column: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col--logo .site-logo__img,
    .footer-col--logo img,
    .footer-grid img,
    .footer-grid .site-logo__img {
        max-height: 72px;
        margin-inline: auto;
    }

    .footer-bottom {
        padding: 14px 16px 72px;
    }

    .clients-carousel__btn { width: 30px; height: 30px; }

    .client-logo-card {
        min-height: 84px;
        padding: 12px 8px;
    }

    .client-logo-card__img {
        max-height: 48px;
    }

    .services-page .content-row { padding: 24px 18px; }
    .section-lead { font-size: 1rem; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal--left,
    .reveal--right,
    .reveal--up {
        opacity: 1 !important;
        transform: none !important;
    }
}
