@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
    overflow-x: hidden;
}

::selection {
    background-color: #e42320;
    color: white;
}

img {
    max-width: 100%;
}

a,
button,
label,
img,
.lista-marcas li,
.galeria-item,
.servicios-imagen,
.contacto-imagen,
.lista-nosotros li,
.lista-servicios li,
.lista-contacto li {
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease, background-color 0.28s ease, color 0.28s ease, filter 0.28s ease;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-section.is-visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .stagger-item:nth-child(1) {
    transition-delay: 0.08s;
}

.fade-in-section.is-visible .stagger-item:nth-child(2) {
    transition-delay: 0.16s;
}

.fade-in-section.is-visible .stagger-item:nth-child(3) {
    transition-delay: 0.24s;
}

.fade-in-section.is-visible .stagger-item:nth-child(4) {
    transition-delay: 0.32s;
}

header {
    background-color: #888888;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    font-weight: 500;
    position: relative;
    z-index: 20;
}

.logoheader {
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logoheader img {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoheader:hover img,
.footer-logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.menu-toggle,
.menu-boton {
    display: none;
}

.menu-boton {
    width: 56px;
    height: 56px;
    background-color: #1d1d1c;
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    box-shadow: inset -7px -7px 14px rgba(255, 255, 255, 0.18);
}

.menu-boton span {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background-color: white;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2), inset -7px -7px 14px rgba(255, 255, 255, 0.18);
}

.menuheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    list-style: none;
    height: 50%;
}

.menuheader li {
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menuheader li a {
    background-color: #1d1d1c;
    color: white;
    border-radius: 40px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset -7px -7px 14px rgba(255, 255, 255, 0.18);
}

.menuheader li a:hover,
.cotizarheader:hover {
    transform: translateY(-3px);
    background-color: #2d2d2b;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18), inset -7px -7px 14px rgba(255, 255, 255, 0.15);
}

.menu-cotizar-mobile {
    display: none;
}

.cotizarheader {
    background-color: #1d1d1c;
    color: white;
    border-radius: 40px;
    min-height: 50px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset -7px -7px 14px rgba(255, 255, 255, 0.18);
}

.portada {
    width: 100%;
    aspect-ratio: 1518/500;
    background: url(img/portada.webp) center no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
}

.capaportada {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.521);
    z-index: 1;
}

.textoportada {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    position: absolute;
    bottom: 0;
    left: 4vw;
    transform: translateY(50%);
    z-index: 2;
}

.textoportada h1 {
    font-size: 4vw;
}

.textoportada p {
    font-size: 3vw;
}

.nosotros {
    width: 90%;
    margin: 200px auto 0;
    color: #1d1d1c;
}

.nosotros h2 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 3.5vw;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.nosotros h3 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 2.55vw;
    text-transform: uppercase;
    margin-bottom: 36px;
}

.nosotros p {
    color: #1d1d1c;
    font-family: 'Oswald', sans-serif;
    font-size: 1.55vw;
    line-height: 1.65;
    margin-bottom: 34px;
}

.lista-nosotros {
    list-style: none;
    padding-left: 0;
    color: #1d1d1c;
    font-family: 'Oswald', sans-serif;
    font-size: 1.45vw;
    line-height: 1.8;
    margin-top: 28px;
}

.lista-nosotros li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.lista-nosotros li:hover,
.lista-servicios li:hover,
.lista-contacto li:hover {
    transform: translateX(8px);
}

.lista-nosotros li img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.nosotros-carrusel {
    position: relative;
    max-width: 1040px;
    margin: 18px auto 36px;
    padding: 18px 72px 62px;
    border-radius: 34px;
    background: linear-gradient(145deg, #111111 0%, #212121 55%, #171717 100%);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.nosotros-carrusel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(228, 35, 32, 0.28), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 26%);
    pointer-events: none;
}

.nosotros-carrusel-viewport {
    position: relative;
    overflow: hidden;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 24px;
}

.nosotros-carrusel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.nosotros-carrusel-slide {
    min-width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nosotros-carrusel-slide img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    background-color: transparent;
    display: block;
    border-radius: 20px;
}

.nosotros-carrusel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-58%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

.nosotros-carrusel-control::before {
    content: "";
    width: 14px;
    height: 14px;
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    display: block;
}

.nosotros-carrusel-control.prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.nosotros-carrusel-control.next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.nosotros-carrusel-control:hover {
    background-color: rgba(228, 35, 32, 0.9);
    transform: translateY(-58%) scale(1.04);
}

.nosotros-carrusel-control.prev {
    left: 20px;
}

.nosotros-carrusel-control.next {
    right: 20px;
}

.nosotros-carrusel-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.nosotros-carrusel-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    padding: 0;
}

.nosotros-carrusel-dots button.is-active {
    width: 34px;
    background-color: #e42320;
}

.servicios {
    width: 90%;
    margin: 160px auto;
    color: #1d1d1c;
    display: block;
}

.servicios-texto {
    min-width: 0;
}

.servicios h2 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
    text-transform: uppercase;
    margin-bottom: 42px;
}

.lista-servicios {
    list-style: none;
    padding-left: 0;
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.lista-servicios li {
    margin-bottom: 0;
}

.servicio-card {
    list-style: none;
}

.servicio-card-inner {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(29, 29, 28, 0.08);
    position: relative;
}

.servicio-card-media {
    position: relative;
    margin: 0;
    height: 290px;
    overflow: hidden;
}

.servicio-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.servicio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 26px;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease, filter 0.45s ease;
    border-radius: 20px;
}

.servicio-card-body {
    padding: 24px 24px 28px;
    position: relative;
    z-index: 1;
}

.servicio-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    border-radius: 999px;
    background-color: #1d1d1c;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.servicio-card h3 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 14px;
}

.servicio-card p {
    color: #1d1d1c;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    line-height: 1.55;
}

.servicio-card:hover {
    transform: translateY(-8px);
}

.lista-servicios .servicio-card:hover {
    transform: translateY(-8px);
}

.servicio-card:hover .servicio-card-inner {
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.14);
}

.servicio-card:hover .servicio-card-media::after {
    opacity: 1;
}

.servicio-card:hover .servicio-card-media img {
    transform: scale(1.06);
    filter: brightness(1.04);
}

@media (min-width: 769px) {
    .servicio-card-inner {
        min-height: 340px;
        padding: 28px;
        display: flex;
        align-items: flex-end;
        background:
            radial-gradient(circle at top right, rgba(228, 35, 32, 0.14), transparent 30%),
            linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
    }

    .servicio-card-body {
        width: min(66%, 420px);
        padding: 0;
        transition: transform 0.45s ease;
    }

    .servicio-card-media {
        position: absolute;
        right: 22px;
        bottom: 22px;
        width: min(32%, 220px);
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 24px;
        background: transparent;
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
        opacity: 0;
        transform: translateY(18px) scale(0.92);
        transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
    }

    .servicio-card-media::after {
        opacity: 0.18;
        transition: opacity 0.45s ease;
    }

    .servicio-card-media img {
        padding: 0;
        transform: scale(0.94);
        filter: saturate(0.92);
        border-radius: 20px;
    }

    .servicio-card:hover .servicio-card-body {
        transform: translateY(-6px);
    }

    .servicio-card:hover .servicio-card-media {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 28px 44px rgba(0, 0, 0, 0.22);
    }

    .servicio-card:hover .servicio-card-media::after {
        opacity: 0.04;
    }
}

.marcas {
    width: 90%;
    margin: 160px auto 120px;
    color: #1d1d1c;
}

.marcas h2 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
    text-transform: uppercase;
    margin-bottom: 36px;
}

.marcas p {
    color: #1d1d1c;
    font-family: 'Oswald', sans-serif;
    font-size: 2vw;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 1100px;
}

.lista-marcas {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 46px;
}

.lista-marcas li {
    min-height: 290px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.lista-marcas li:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.14);
}

.lista-marcas li img {
    max-width: 100%;
    max-height: 210px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.galeria {
    width: min(66%, 860px);
    margin: 100px auto 0;
    color: #1d1d1c;
}

.galeria h2 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.galeria p {
    max-width: 760px;
    margin-bottom: 22px;
    color: #353535;
    font-family: 'Oswald', sans-serif;
    font-size: 1.35vw;
    line-height: 1.5;
}

.galeria-masonry {
    column-count: 6;
    column-gap: 10px;
}

.galeria-item {
    break-inside: avoid;
    margin: 0 0 10px;
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.galeria-boton {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
}

.galeria-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.galeria-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.09);
}

.galeria-boton:focus-visible {
    outline: 3px solid #e42320;
    outline-offset: 3px;
    border-radius: 10px;
}

.galeria-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(13, 13, 13, 0.86);
    backdrop-filter: blur(8px);
}

.galeria-lightbox[hidden] {
    display: none;
}

.galeria-lightbox-contenido {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
}

.galeria-lightbox-imagen {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

.galeria-lightbox-cerrar {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.contacto {
    width: 90%;
    margin: 160px auto 120px;
    color: #1d1d1c;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: stretch;
}

.contacto-texto h2 {
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
    text-transform: uppercase;
    margin-bottom: 34px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(29, 29, 28, 0.08);
    background-color: #ffffff;
}

.contacto-card {
    min-height: 320px;
    padding: 44px 36px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(29, 29, 28, 0.08);
}

.contacto-card:last-child {
    border-right: 0;
}

.contacto-card-simbolo {
    width: 84px;
    height: 84px;
    margin-bottom: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(228, 35, 32, 0.1);
    color: #e42320;
    font-family: 'Oswald', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contacto-card h3 {
    margin-bottom: 14px;
    color: #4b4b4b;
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contacto-card p {
    margin-bottom: 18px;
    color: #7a7a7a;
    font-family: 'Oswald', sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
}

.contacto-card a,
.contacto-card span {
    color: #1d1d1c;
    font-family: 'Oswald', sans-serif;
    font-size: 1.08rem;
    line-height: 1.7;
}

.contacto-card a {
    text-decoration: none;
}

.contacto-bloque {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.contacto-placeholder {
    color: #e42320;
    font-weight: 600;
}

.contacto-social {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(29, 29, 28, 0.08);
}

.contacto-social h3 {
    margin-bottom: 16px;
    color: #4b4b4b;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.contacto-social-links a {
    padding: 12px 22px;
    border-radius: 999px;
    background-color: #1d1d1c;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contacto-mapa {
    min-height: 420px;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.12);
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
}

.servicios-imagen:hover,
.contacto-mapa:hover,
.contacto-social-links a:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.14);
}
.footer {
    background-color: #1d1d1c;
}

footer {
    background-color: #1d1d1c;
    color: white;
    padding: 50px 5% 30px;
}

.footer-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.footer-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    padding-left: 0;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-menu a:hover {
    color: #ff8c89;
    transform: translateY(-2px);
}

.footer-inferior {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inferior p {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    margin: 0;
}

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

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

    .fade-in-section,
    .stagger-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (min-width: 1800px) {
    .menuheader li a,
    .cotizarheader {
        font-size: 1.1rem;
    }

    .nosotros,
    .servicios,
    .marcas,
    .galeria,
    .contacto {
        width: 86%;
    }

    .lista-nosotros li img {
        width: 42px;
        height: 42px;
    }

    .servicio-card-media {
        width: min(30%, 250px);
    }

    .servicio-card h3 {
        font-size: 2.2rem;
    }

    .servicio-card p {
        font-size: 1.28rem;
    }
}

@media (max-width: 1400px) {
    .menuheader {
        width: 58%;
    }

    .textoportada h1,
    .nosotros h2,
    .servicios h2,
    .marcas h2,
    .galeria h2,
    .contacto-texto h2 {
        font-size: 4.5vw;
    }

    .textoportada p,
    .nosotros h3 {
        font-size: 3.4vw;
    }

    .nosotros p {
        font-size: 1.8vw;
    }

    .lista-nosotros {
        font-size: 1.65vw;
    }

    .lista-servicios {
        gap: 24px;
    }

    .servicio-card-inner {
        min-height: 320px;
    }

    .servicio-card-body {
        width: min(64%, 390px);
    }

    .servicio-card-media {
        width: min(31%, 205px);
    }

    .servicio-card h3 {
        font-size: 1.8rem;
    }

    .servicio-card p {
        font-size: 1.08rem;
    }

    .marcas p {
        font-size: 2.15vw;
    }

    .galeria p {
        font-size: 1.9vw;
    }

    .lista-contacto li {
        font-size: 1.75vw;
    }
}

@media (max-width: 1200px) {
    header {
        height: 88px;
        padding-top: 0;
        padding-bottom: 0;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .logoheader {
        height: 58px;
        flex-shrink: 0;
    }

    .menuheader {
        width: 100%;
        height: 42px;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
        min-width: 0;
    }

    .menuheader li {
        width: auto;
        min-width: 0;
        height: 42px;
        flex: 1 1 0;
    }

    .cotizarheader {
        min-height: 42px;
        margin: 0;
        padding: 0 22px;
        flex-shrink: 0;
    }

    .menuheader li a,
    .cotizarheader {
        font-size: 0.8rem;
    }

    .portada {
        aspect-ratio: auto;
        min-height: 520px;
    }

    .textoportada {
        left: 5%;
        right: 5%;
        transform: none;
        bottom: 40px;
    }

    .textoportada h1,
    .nosotros h2,
    .servicios h2,
    .marcas h2,
    .galeria h2,
    .contacto-texto h2 {
        font-size: 3.6rem;
    }

    .textoportada p,
    .nosotros h3 {
        font-size: 2.4rem;
    }

    .nosotros h2 {
        font-size: 3.2rem;
    }

    .nosotros h3 {
        font-size: 2.1rem;
    }

    .nosotros,
    .servicios,
    .marcas,
    .galeria,
    .contacto {
        width: 84%;
    }

    .nosotros {
        margin-top: 120px;
    }

    .contacto {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contacto-mapa,
    .contacto-mapa iframe {
        min-height: 420px;
        margin: 0;
    }

    .nosotros p,
    .marcas p,
    .lista-contacto li {
        font-size: 1.5rem;
    }

    .galeria p {
        font-size: 1.2rem;
    }

    .galeria-masonry {
        column-count: 4;
        column-gap: 12px;
    }

    .lista-nosotros {
        font-size: 1.25rem;
    }

    .lista-servicios {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .servicio-card-inner {
        min-height: 300px;
        padding: 24px;
    }

    .servicio-card-body {
        width: min(64%, 340px);
        padding: 0;
    }

    .servicio-card-media {
        right: 18px;
        bottom: 18px;
        width: min(30%, 180px);
    }

    .servicio-card h3 {
        font-size: 1.55rem;
    }

    .servicio-card p {
        font-size: 1rem;
    }

    .nosotros-carrusel {
        max-width: 920px;
        padding: 16px 58px 58px;
        border-radius: 28px;
    }

    .nosotros-carrusel-viewport {
        max-width: 760px;
    }

    .nosotros-carrusel-control {
        width: 44px;
        height: 44px;
    }

    .lista-marcas {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-superior,
    .footer-inferior {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .portada {
        min-height: 460px;
    }

    .textoportada h1,
    .nosotros h2,
    .servicios h2,
    .marcas h2,
    .galeria h2,
    .contacto-texto h2 {
        font-size: 3rem;
    }

    .textoportada p,
    .nosotros h3 {
        font-size: 2rem;
    }

    .nosotros h2 {
        font-size: 2.7rem;
    }

    .nosotros h3 {
        font-size: 1.8rem;
    }

    .nosotros,
    .servicios,
    .marcas,
    .galeria,
    .contacto {
        margin-top: 110px;
    }

    .nosotros-carrusel {
        max-width: 860px;
        padding: 14px 52px 54px;
    }

    .lista-servicios {
        gap: 20px;
    }

    .servicio-card-inner {
        min-height: 280px;
        padding: 22px;
    }

    .servicio-card-body {
        width: min(63%, 300px);
        padding: 0;
    }

    .servicio-card-media {
        right: 16px;
        bottom: 16px;
        width: min(31%, 158px);
    }

    .servicio-card h3 {
        font-size: 1.45rem;
    }

    .servicio-card p {
        font-size: 0.98rem;
    }

    .lista-marcas li {
        min-height: 240px;
        padding: 28px;
    }

    .lista-marcas li img {
        max-height: 170px;
    }
}

@media (max-width: 768px) {
    header {
        padding-left: 4%;
        padding-right: 4%;
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .menuheader li {
        width: calc(50% - 12px);
        min-width: 0;
    }

    .menuheader li a,
    .cotizarheader {
        font-size: 0.82rem;
    }

    .portada {
        min-height: 420px;
        background-position: 64% center;
    }

    .textoportada {
        bottom: 28px;
    }

    .textoportada h1,
    .nosotros h2,
    .servicios h2,
    .marcas h2,
    .galeria h2,
    .contacto-texto h2 {
        font-size: 2.4rem;
    }

    .textoportada p,
    .nosotros h3 {
        font-size: 1.7rem;
    }

    .nosotros h2 {
        font-size: 2.2rem;
    }

    .nosotros h3 {
        font-size: 1.55rem;
    }

    .nosotros,
    .servicios,
    .marcas,
    .galeria,
    .contacto {
        width: 80%;
        margin-top: 90px;
    }

    .nosotros h2,
    .nosotros h3,
    .nosotros p,
    .servicios h2,
    .marcas h2,
    .marcas p,
    .galeria h2,
    .galeria p,
    .contacto-texto h2 {
        margin-bottom: 24px;
    }

    .nosotros p,
    .lista-nosotros,
    .marcas p,
    .galeria p,
    .lista-contacto li {
        font-size: 0.98rem;
    }

    .galeria-masonry {
        column-count: 3;
        column-gap: 10px;
    }

    .galeria-item {
        margin-bottom: 10px;
        padding: 5px;
        border-radius: 14px;
    }

    .galeria-item img {
        border-radius: 9px;
    }

    .lista-nosotros li,
    .lista-servicios li {
        gap: 14px;
    }

    .lista-servicios {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .servicio-card-inner {
        min-height: 0;
        padding: 0;
        display: block;
        border-radius: 24px;
    }

    .servicio-card-media {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        opacity: 1;
        transform: none;
        border-radius: 24px 24px 0 0;
        box-shadow: none;
    }

    .servicio-card-body {
        width: 100%;
        padding: 20px 18px 22px;
    }

    .servicio-card-media img {
        padding: 22px;
        transform: none;
        filter: none;
    }

    .servicio-card-media::after {
        opacity: 0.08;
    }

    .servicio-card-index {
        min-width: 44px;
        height: 30px;
        font-size: 0.84rem;
        margin-bottom: 12px;
    }

    .servicio-card h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .servicio-card p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .nosotros-carrusel {
        max-width: none;
        padding: 14px 18px 52px;
        border-radius: 22px;
    }

    .nosotros-carrusel-slide {
        aspect-ratio: 16 / 11;
    }

    .nosotros-carrusel-control {
        top: auto;
        bottom: 14px;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .nosotros-carrusel-control:hover {
        transform: scale(1.04);
    }

    .nosotros-carrusel-control.prev {
        left: 16px;
    }

    .nosotros-carrusel-control.next {
        right: 16px;
    }

    .nosotros-carrusel-dots {
        bottom: 28px;
    }

    .lista-nosotros li img {
        width: 28px;
        height: 28px;
    }

    .contacto-mapa,
    .contacto-mapa iframe {
        min-height: 340px;
    }

    .lista-marcas {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lista-marcas li {
        min-height: 210px;
    }

    .footer-menu {
        gap: 16px;
    }

    .footer-menu a,
    .footer-inferior p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    header {
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 16px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .logoheader {
        height: 54px;
    }

    .menu-boton {
        display: flex;
        margin-left: auto;
    }

    .menu-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .menuheader {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
        padding: 0 14px;
        position: static;
        background-color: #888888;
        border-radius: 0 0 22px 22px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        justify-content: flex-start;
        align-items: stretch;
        order: 3;
        flex: 0 0 100%;
        transition: max-height 0.38s ease, opacity 0.28s ease, transform 0.28s ease, padding 0.28s ease;
    }

    .menuheader li {
        width: 100%;
        height: 44px;
        flex: 0 0 auto;
    }

    .menu-toggle:checked + .menu-boton + .menuheader {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        padding-top: 14px;
        padding-bottom: 18px;
    }

    .menu-toggle:checked + .menu-boton span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-boton span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-boton span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .menuheader li a,
    .cotizarheader {
        border-radius: 18px;
        font-size: 0.78rem;
        min-height: 44px;
    }

    .menu-cotizar-mobile {
        display: flex;
    }

    .cotizarheader {
        display: none;
    }

    .portada {
        margin-top: 0;
    }

    .portada {
        min-height: 360px;
        background-position: 68% center;
    }

    .textoportada h1,
    .nosotros h2,
    .servicios h2,
    .marcas h2,
    .galeria h2,
    .contacto-texto h2 {
        font-size: 1.95rem;
        line-height: 1;
    }

    .textoportada p,
    .nosotros h3 {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .nosotros h2 {
        font-size: 1.8rem;
    }

    .nosotros h3 {
        font-size: 1.3rem;
    }

    .nosotros,
    .servicios,
    .marcas,
    .galeria,
    .contacto {
        width: 80%;
        margin-top: 72px;
    }

    .nosotros {
        margin-top: 84px;
    }

    .nosotros p,
    .lista-nosotros,
    .marcas p,
    .galeria p,
    .lista-contacto li {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .galeria-masonry {
        column-count: 2;
        column-gap: 8px;
    }

    .galeria-item {
        margin-bottom: 8px;
        padding: 4px;
        border-radius: 12px;
    }

    .galeria-item img {
        border-radius: 8px;
    }

    .galeria-lightbox {
        padding: 18px;
    }

    .galeria-lightbox-imagen {
        border-radius: 14px;
    }

    .galeria-lightbox-cerrar {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
    }

    .nosotros-carrusel {
        margin-bottom: 28px;
        padding: 12px 12px 54px;
        border-radius: 18px;
    }

    .nosotros-carrusel-slide {
        aspect-ratio: 4 / 3;
    }

    .nosotros-carrusel-control {
        width: 36px;
        height: 36px;
        bottom: 12px;
    }

    .nosotros-carrusel-dots {
        gap: 8px;
        bottom: 24px;
    }

    .nosotros-carrusel-dots button {
        width: 10px;
        height: 10px;
    }

    .nosotros-carrusel-dots button.is-active {
        width: 26px;
    }

    .lista-marcas li {
        min-height: 180px;
        padding: 22px;
    }

    .lista-marcas li img {
        max-height: 130px;
    }

    .servicio-card-inner {
        min-height: 0;
        padding: 0;
        border-radius: 20px;
    }

    .servicio-card-media {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 20px 20px 0 0;
    }

    .servicio-card-body {
        width: 100%;
        padding: 18px 16px 20px;
    }

    .servicio-card-media img {
        padding: 18px;
    }

    .servicio-card-index {
        min-width: 40px;
        height: 28px;
        font-size: 0.78rem;
    }

    .servicio-card h3 {
        font-size: 1.18rem;
    }

    .servicio-card p {
        font-size: 0.92rem;
    }

    .contacto-mapa,
    .contacto-mapa iframe {
        min-height: 260px;
    }

    footer {
        padding: 36px 6% 24px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-inferior {
        gap: 10px;
    }
}

@media (max-width: 1200px) {
    .contacto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacto-card {
        min-height: 280px;
        padding: 34px 24px 28px;
    }

    .contacto-card:nth-child(2) {
        border-right: 0;
    }

    .contacto-card:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(29, 29, 28, 0.08);
    }

    .contacto-card h3 {
        font-size: 1.6rem;
    }

    .contacto-card p,
    .contacto-card a,
    .contacto-card span {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contacto-card,
    .contacto-card:nth-child(3) {
        min-height: 0;
        padding: 28px 20px 24px;
        border-right: 0;
        border-top: 1px solid rgba(29, 29, 28, 0.08);
    }

    .contacto-card:first-child {
        border-top: 0;
    }

    .contacto-card-simbolo {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
        font-size: 1.1rem;
    }

    .contacto-social {
        margin-top: 22px;
        padding-top: 22px;
    }

    .contacto-social h3 {
        font-size: 1.3rem;
    }

    .contacto-social-links {
        gap: 10px;
    }

    .contacto-social-links a {
        width: 100%;
        justify-content: center;
        display: inline-flex;
    }

    .contacto-mapa,
    .contacto-mapa iframe {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .contacto-card h3 {
        font-size: 1.3rem;
    }

    .contacto-card p,
    .contacto-card a,
    .contacto-card span {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contacto-mapa,
    .contacto-mapa iframe {
        min-height: 240px;
    }
}
