:root {
    --acf-blue: #072b63;
    --acf-blue-2: #0b4389;
    --acf-ink: #141821;
    --acf-muted: #667085;
    --acf-line: #d9e1ec;
    --acf-orange: #f47700;
    --acf-orange-2: #ff9d1b;
    --acf-bg: #f4f7fb;
    --acf-white: #ffffff;
    --acf-shadow: 0 18px 50px rgba(7, 43, 99, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--acf-ink);
    background: var(--acf-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(217, 225, 236, .9);
    backdrop-filter: blur(14px);
}

.brand-link img {
    width: clamp(188px, 24vw, 340px);
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    min-height: 42px;
    padding: 10px 12px;
    color: var(--acf-blue);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--acf-orange);
}

.main-nav .nav-whatsapp {
    color: var(--acf-white);
    background: var(--acf-blue);
    border-radius: 6px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: var(--acf-blue);
    border: 0;
    border-radius: 6px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--acf-white);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--acf-blue);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .97) 42%, rgba(7, 43, 99, .32) 66%, rgba(7, 43, 99, .78) 100%),
        linear-gradient(0deg, rgba(7, 43, 99, .82) 0%, rgba(7, 43, 99, 0) 36%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 142px 0 34px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--acf-orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2 {
    margin: 0;
    color: var(--acf-blue);
    line-height: 1.02;
    font-weight: 950;
    text-transform: uppercase;
}

h1 {
    max-width: 780px;
    font-size: clamp(42px, 7vw, 86px);
}

h2 {
    font-size: clamp(30px, 5vw, 56px);
}

h3 {
    margin: 0;
    color: var(--acf-blue);
    font-size: 22px;
    line-height: 1.12;
}

.hero-copy {
    max-width: 620px;
    margin: 20px 0 30px;
    color: #2d3440;
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions,
.equipment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.btn-primary {
    color: var(--acf-white);
    background: var(--acf-orange);
    box-shadow: 0 12px 28px rgba(244, 119, 0, .26);
}

.btn-primary:hover {
    background: #da6200;
}

.btn-light,
.btn-secondary {
    color: var(--acf-blue);
    background: var(--acf-white);
    border-color: var(--acf-line);
}

.btn-secondary:hover,
.btn-light:hover {
    border-color: var(--acf-orange);
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: clamp(48px, 9vh, 92px);
    background: rgba(7, 43, 99, .94);
    border: 1px solid rgba(255, 255, 255, .18);
}

.hero-strip span {
    display: grid;
    min-height: 72px;
    place-items: center;
    padding: 12px 10px;
    color: var(--acf-white);
    border-right: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.hero-strip span:last-child {
    border-right: 0;
}

section {
    padding: clamp(64px, 9vw, 108px) clamp(18px, 4vw, 56px);
}

.section-heading {
    width: min(980px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading.left {
    margin: 0 0 28px;
    text-align: left;
}

.section-heading.compact {
    margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--acf-muted);
    font-size: 18px;
}

.service-band {
    background: var(--acf-white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.value-item {
    min-height: 220px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid var(--acf-line);
    border-radius: 8px;
}

.value-wide {
    grid-column: span 2;
}

.value-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--acf-white);
    background: var(--acf-blue);
    border-radius: 6px;
    font-weight: 950;
}

.value-item p {
    margin: 10px 0 0;
    color: var(--acf-muted);
}

.catalog-section {
    background: var(--acf-bg);
}

.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(1160px, 100%);
    margin: 0 auto 28px;
}

.filter-btn {
    min-height: 42px;
    padding: 9px 13px;
    color: var(--acf-blue);
    background: var(--acf-white);
    border: 1px solid var(--acf-line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-btn.is-active,
.filter-btn:hover {
    color: var(--acf-white);
    background: var(--acf-blue);
    border-color: var(--acf-blue);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.equipment-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--acf-white);
    border: 1px solid var(--acf-line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(7, 43, 99, .08);
    transition: transform .2s ease, opacity .2s ease;
}

.equipment-card.is-hidden {
    display: none;
}

.equipment-card:hover {
    transform: translateY(-3px);
}

.equipment-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #edf2f7;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.equipment-image span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 9px;
    color: var(--acf-white);
    background: var(--acf-blue);
    border-left: 4px solid var(--acf-orange);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.equipment-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.equipment-body h2,
.equipment-body h3 {
    font-size: 22px;
}

.equipment-body p {
    margin: 0;
    color: var(--acf-muted);
}

.spec-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec-list li {
    position: relative;
    padding-left: 16px;
    color: #384252;
    font-size: 14px;
}

.spec-list li::before {
    position: absolute;
    top: .55em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--acf-orange);
    border-radius: 2px;
    content: "";
}

.ideal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ideal-tags span {
    padding: 6px 8px;
    color: var(--acf-blue);
    background: #eef4fb;
    border: 1px solid #d8e7f7;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.equipment-actions {
    margin-top: auto;
}

.equipment-actions .btn {
    flex: 1 1 130px;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 13px;
}

.process-section {
    background: var(--acf-blue);
}

.process-panel {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    width: min(1180px, 100%);
    margin: 0 auto;
    align-items: start;
    color: var(--acf-white);
}

.process-panel h2,
.process-panel .eyebrow {
    color: var(--acf-white);
}

.process-panel .eyebrow {
    color: var(--acf-orange-2);
}

.process-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    counter-reset: process;
    list-style: none;
}

.process-list li {
    position: relative;
    min-height: 92px;
    padding: 18px 18px 18px 76px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
}

.process-list li::before {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: var(--acf-orange);
    border-radius: 6px;
    color: var(--acf-white);
    content: counter(process);
    counter-increment: process;
    font-weight: 950;
}

.process-list strong {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

.process-list span {
    color: rgba(255, 255, 255, .78);
}

.coverage-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    background: var(--acf-white);
}

.coverage-copy,
.coverage-media {
    width: min(590px, 100%);
}

.coverage-copy {
    justify-self: end;
}

.coverage-copy p {
    color: var(--acf-muted);
    font-size: 18px;
}

.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.coverage-tags span {
    padding: 8px 10px;
    color: var(--acf-blue);
    background: #f0f6fd;
    border: 1px solid #dbe8f5;
    border-radius: 4px;
    font-weight: 850;
}

.coverage-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--acf-line);
    border-radius: 8px;
    box-shadow: var(--acf-shadow);
}

.quote-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 34px;
    align-items: start;
    background:
        linear-gradient(90deg, rgba(7, 43, 99, .96), rgba(7, 43, 99, .86)),
        url("../images/sections/industrial-dusk.jpg") center/cover;
}

.quote-copy {
    color: var(--acf-white);
}

.quote-copy h2 {
    color: var(--acf-white);
}

.quote-copy p {
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.contact-stack {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.contact-stack a,
.contact-stack span {
    padding: 12px 14px;
    color: var(--acf-white);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    font-weight: 850;
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px;
    background: var(--acf-white);
    border-radius: 8px;
    box-shadow: var(--acf-shadow);
}

.quote-form label {
    display: grid;
    gap: 7px;
}

.quote-form label.full,
.quote-form .full {
    grid-column: 1 / -1;
}

.quote-form span {
    color: var(--acf-blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    color: var(--acf-ink);
    background: #f8fafc;
    border: 1px solid var(--acf-line);
    border-radius: 6px;
    outline: none;
}

.quote-form textarea {
    resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--acf-orange);
    box-shadow: 0 0 0 3px rgba(244, 119, 0, .14);
}

.site-footer {
    padding: 42px clamp(18px, 4vw, 56px) 24px;
    color: var(--acf-white);
    background: #061c40;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.footer-logo {
    width: min(330px, 100%);
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-inner p {
    max-width: 460px;
    color: rgba(255, 255, 255, .68);
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links strong {
    color: var(--acf-orange-2);
    text-transform: uppercase;
}

.footer-links a {
    color: rgba(255, 255, 255, .78);
}

.footer-links a:hover {
    color: var(--acf-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, 100%);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 16px;
    color: var(--acf-white);
    background: #16a34a;
    border-radius: 6px;
    box-shadow: 0 16px 36px rgba(22, 163, 74, .28);
    font-weight: 950;
    text-transform: uppercase;
}

.archive-main,
.single-main {
    padding-top: 88px;
}

.archive-hero {
    padding-top: 74px;
    padding-bottom: 42px;
    background: var(--acf-white);
    text-align: center;
}

.archive-hero p:not(.eyebrow) {
    margin: 16px auto 0;
    color: var(--acf-muted);
}

.archive-catalog {
    padding-top: 42px;
}

.single-hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: center;
    padding-top: 78px;
    background: var(--acf-white);
}

.single-copy p {
    color: var(--acf-muted);
    font-size: 18px;
}

.single-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #eef3f8;
    border: 1px solid var(--acf-line);
    border-radius: 8px;
}

.single-detail {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 18px;
    background: var(--acf-bg);
}

.single-detail article {
    padding: 24px;
    background: var(--acf-white);
    border: 1px solid var(--acf-line);
    border-radius: 8px;
}

.single-detail h2 {
    margin-bottom: 14px;
    font-size: 25px;
}

.entry-content p:first-child {
    margin-top: 0;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.spec-list.large li,
.ideal-tags.large span {
    font-size: 15px;
}

@media (max-width: 1180px) {
    .equipment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: var(--acf-white);
        border: 1px solid var(--acf-line);
        border-radius: 8px;
        box-shadow: var(--acf-shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        text-align: center;
    }

    .hero {
        min-height: 820px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 48%, rgba(7, 43, 99, .88) 100%),
            rgba(7, 43, 99, .36);
    }

    .hero-strip,
    .value-grid,
    .process-panel,
    .coverage-section,
    .quote-section,
    .footer-inner,
    .single-hero,
    .single-detail {
        grid-template-columns: 1fr;
    }

    .value-wide {
        grid-column: auto;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coverage-copy,
    .coverage-media {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
        padding: 10px 14px;
    }

    .brand-link img {
        width: 202px;
    }

    h1 {
        font-size: clamp(36px, 11vw, 46px);
    }

    h2 {
        font-size: clamp(28px, 10vw, 40px);
    }

    section {
        padding: 58px 16px;
    }

    .hero-inner {
        width: calc(100% - 28px);
        padding-top: 112px;
    }

    .hero-actions .btn,
    .equipment-actions .btn {
        flex: 1 1 100%;
    }

    .hero-strip,
    .equipment-grid,
    .quote-form {
        grid-template-columns: 1fr;
    }

    .hero-strip span {
        min-height: 48px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }

    .catalog-controls {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .equipment-image {
        aspect-ratio: 16 / 11;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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


/* ACF UX update: en moviles, las tarjetas de maquinaria muestran solo la foto y los botones de accion */
@media (max-width: 640px) {
    .equipment-body h3,
    .equipment-body > p,
    .equipment-body .spec-list,
    .equipment-body .ideal-tags {
        display: none;
    }
    .equipment-body {
        padding-top: 14px;
    }
    .equipment-actions {
        margin-top: 0;
    }
}


/* ACF UX update: seccion de marcas con las que trabajamos */
.brands-section {
    background: var(--acf-white);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    width: min(980px, 100%);
    margin: 0 auto;
}

.brands-grid img {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.75);
    transition: filter .2s ease, opacity .2s ease;
}

.brands-grid img:hover {
    filter: grayscale(0) opacity(1);
}

@media (max-width: 640px) {
    .brands-grid {
        gap: 26px;
    }
    .brands-grid img {
        height: 30px;
    }
}
