@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #03499a;
    --accent-color: #f47621;
    --secondary-color: #c4c4c4;
    --secondary-color-light: #e7e7e7;

    --text-color: #1e1e1e;
    --neutral-color: #ede0d4;
    --white-color: #ffffff;
    --black-color: #000000;

    --gray-100: #f5f5f5;
    --gray-200: #eaeaea;
    --gray-300: #d6d6d6;
    --gray-400: #bdbdbd;
    --gray-500: #7a7a7a;
    --gray-600: #535353;
    --gray-700: #333333;

    --font-primary: "Poppins", sans-serif;

    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.5rem; /* 24px */
    --font-size-xl: 2rem; /* 32px */
    --font-size-xxl: 2.75rem; /* 48px */

    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem; /* 8px */
    --border-radius-lg: 0.875rem; /* 12px */
    --border-radius-xl: 1rem; /* 16px */

    --filter-primary: brightness(0) saturate(100%) invert(18%) sepia(100%)
        saturate(1616%) hue-rotate(199deg) brightness(97%) contrast(101%);
    --filter-accent: brightness(0) saturate(100%) invert(63%) sepia(62%)
        saturate(4409%) hue-rotate(348deg) brightness(100%) contrast(92%);
    --filter-secondary: brightness(0) saturate(100%) invert(84%) sepia(2%)
        saturate(21%) hue-rotate(335deg) brightness(96%) contrast(87%);
}

* {
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

::selection {
    background-color: #afe9ff;
}

/* Las animaciones de aparición (.scroll_right) arrancan corridas fuera de la pantalla:
   sin esto, en el celular la página se arrastra de costado. `clip` y no `hidden`,
   porque `hidden` crea un contenedor de scroll y rompe el position: sticky de Trayectoria. */
html,
body {
    overflow-x: clip;
}

/* El atributo `hidden` se aplica con la prioridad más baja: cualquier `display` del
   tema le gana (`.input-group` es flex) y el elemento sigue a la vista. */
[hidden] {
    display: none !important;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: var(--font-size-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

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

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

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    color: var(--white-color);
    font-size: var(--font-size-base);
    height: 48px;
    padding: 1.5rem 0.875rem;
    width: fit-content;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.bg-secondary-light {
    background: var(--secondary-color-light);
}

.padding-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.bg-padding-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}
.bg-last-padding-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
}
.page-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-section-special {
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-head {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}
.section-head-content {
    position: relative;
    max-width: 600px;
}
.section-heading {
    color: var(--primary-color);
    font-size: var(--font-size-xxl);
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0;
    text-align: center;
}
.section-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 35px;
    margin-bottom: 1rem;
    max-width: 700px;
}

.section-title-special {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 35px;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    margin-bottom: 0;
}

.hero-section,
.hero-contact-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url(../images/banner-pages.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
    padding: 2rem 1rem;
}
.hero-section {
    height: 287px;
    justify-content: end;
}
.hero-contact-section {
    height: 581px;
    justify-content: center;
}

.hero-section-wrapper {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-section-content {
    padding-bottom: 1rem;
}

.hero-section-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
}

.hero-section-description {
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0;
}

.wave-separator-page {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator-page svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 44px;
}

.hidden {
    display: none;
}
.show {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.overlay.open {
    opacity: 1;
    visibility: visible;
}
.bodyPag.scrollnone {
    overflow: hidden;
}

/*==== INICIO HEADER ====*/

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header-img {
    height: 50px;
    width: auto;
}

.nav-menu-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-menu ul {
    list-style: none;
    margin-bottom: 0;
    padding: 1rem 0;
}

.nav-menu li {
    padding: 0;
}

.nav-menu a {
    display: block;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu a:hover {
    color: var(--accent-color);
    padding-left: 2rem;
}

.has-submenu-deskotp {
    display: none;
}

.has-submenu {
    position: relative;
}

.btn-languague {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.5rem;
    color: var(--white-color);
    background: transparent;
    border: 1px solid var(--white-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.has-submenu .submenu {
    position: absolute;
    top: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white-color);
    border-radius: 0.5rem;
    padding: 0.875rem 0;
    width: 53px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.has-submenu .submenu li {
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0.875rem;
    transition: all 0.3s;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.has-submenu .submenu li:hover {
    background-color: var(--secondary-color-light);
}

.submenu.active {
    display: block;
}

/*==== FIN HEADER ====*/

/*==== INICIO INDEX ====*/

.hero {
    /* El alto sale de la proporción de la imagen o el video del banner, que la vista pasa en
       --proporcion (y --proporcion-mobile): se ve completa a todo el ancho, sin recortar los
       laterales. Antes era 100vh, y la imagen se ampliaba hasta llenar la pantalla. 16 / 9 es
       la medida recomendada, y la que se usa hasta conocer la del video. Nunca pasa el alto de
       la pantalla, que era el de antes: una imagen más alta que ancha se recorta arriba y
       abajo, nunca a los costados. */
    aspect-ratio: var(--proporcion, 16 / 9);
    max-height: 100vh;
    /* Ancho explícito: con `auto`, el navegador traslada el tope de alto al ancho y lo angosta. */
    width: 100%;
    /* Cada banner trae su imagen o su video: esto es solo lo que se ve mientras carga. */
    background-color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.hero h1 span {
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
    .hero {
        aspect-ratio: var(--proporcion-mobile, var(--proporcion, 16 / 9));
        /* Por lo menos 4:3, la medida recomendada para celular: más bajo no entran el header,
           que va encima, el título y los puntos. Una imagen más ancha que 4:3 (la de escritorio,
           si no hay de celular) se recorta un poco a los costados. */
        min-height: 75vw;
    }
}

/* SVG Wave */
.wave-separator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-separator .shape-fill {
    fill: #ffffff;
}

/* = inicio about home section = */

/* Una o varias certificaciones, cada una con su logo y su texto. */
.certificaciones {
    display: grid;
}

.certification-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-bottom: 3rem;
}

.certification-logo img {
    width: auto;
    object-fit: cover;
    height: 140px;
}

.certification-text p {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Trayectoria: texto y mosaico a la izquierda, datos y botón a la derecha.
   Las áreas ordenan el móvil (texto, datos y botón, mosaico) sin duplicar
   marcado. */
.about-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "texto"
        "datos"
        "mosaico";
    row-gap: 2.5rem;
}

/* Columna lateral: la lista de datos y el botón. */
.about-aside {
    grid-area: datos;
    display: grid;
    row-gap: 2.5rem;
}

.about-content {
    grid-area: texto;
}

.about-home-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.about-home-description {
    font-size: 1.063rem;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 540px;
}

/* Datos: ícono en círculo tenue, sin tarjeta ni sombra. */
.about-stats {
    display: grid;
    align-content: start;
    gap: 2.25rem;
}

.about-stat {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
}

.about-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* El gris de fondo del sitio, como el mosaico; los íconos de la lista van
       en #2cb34a. */
    background: var(--secondary-color-light);
}

.about-stat-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.about-stat-title {
    font-size: 1.188rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.about-stat-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.about-stat-foto {
    margin-top: 1rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.about-stat-foto img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


.btn-primary.about-home-btn {
    border-radius: 999px;
    height: auto;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* Mosaico: bloque en el gris de fondo del sitio; las imágenes llenan su
   casilla, sin fondo detrás, y se dan vuelta en ola para mostrar la
   secundaria.
   Todo en porcentajes del contenedor, así escala sin puntos de quiebre.
   El recorte deja salir las casillas por arriba y los costados, no por abajo.
   Las posiciones de las casillas salen de MosaicoImagen::CASILLAS. */
.about-mosaic {
    grid-area: mosaico;
    --mosaico-fondo: var(--secondary-color-light);
    --mosaico-lado: 22.8%;
    position: relative;
    aspect-ratio: 731 / 480;
    clip-path: inset(-10% -10% 0 -10%);
}

.about-mosaic::before {
    content: "";
    position: absolute;
    top: 9.8%;
    right: 3.8%;
    bottom: 0;
    left: 7.7%;
    background: var(--mosaico-fondo);
}

.about-mosaic__tile {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--mosaico-lado);
    aspect-ratio: 1;
    /* Sin fondo: al girar se ve el gris del bloque. */
    perspective: 800px;
}

/* Cada casilla gira como una tecla: queda de frente, se da vuelta, muestra la
   secundaria y sigue girando en el mismo sentido hasta volver al frente.
   360deg equivale a 0, así que el ciclo empalma sin salto. */
.about-mosaic__flip {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: mosaico-giro 9s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.18s);
}

.about-mosaic__cara {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.about-mosaic__cara--dorso {
    transform: rotateY(180deg);
}

.about-mosaic__cara img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes mosaico-giro {
    0%,
    38% {
        transform: rotateY(0deg);
    }
    46%,
    84% {
        transform: rotateY(180deg);
    }
    92%,
    100% {
        transform: rotateY(360deg);
    }
}

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

/* El logo ISO del pie puede venir del panel con cualquier proporción: se
   ajusta al cuadro de 107 px sin deformarse. */
.footer-certificaciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-iso {
    object-fit: contain;
}

/* = fin about home section = */

/* = inicio services home = */
.grid-carousel-home {
    display: grid;
    grid-template-columns: 100%;
    column-gap: 1.6rem;
    row-gap: 1.5rem;
}
.carousel-services {
    height: 100%;
}

.swiper-services {
    padding-bottom: 3rem;
}

.services-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.services-pagination .swiper-pagination-bullet {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    opacity: 1;
    border: none;
    transition: all 0.3s ease;
}

.services-pagination .swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
    transform: translate(-45%, -49%);
}

.services-pagination .swiper-pagination-bullet-active {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    width: 24px;
    height: 24px;
}

.services-pagination .swiper-pagination-bullet-active::after {
    background-color: var(--primary-color);
}

.services-img {
    border-radius: var(--border-radius-lg);
    width: 100%;
}
.services-name {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    padding-top: 1rem;
}

/* = fin services home = */

/* = inicio brand home = */
.carousel-brand {
    padding-bottom: 1.2rem;
}

.card-brand {
    width: 90%;
    height: auto;
    aspect-ratio: 2 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}
.image-brand {
    width: auto;
    height: 60px;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    transition: all 0.3s;
}

.card-brand:hover img {
    transform: scale(1.1);
    transition: all 0.3s;
}

/* = fin brand home = */

/* = inicio product home = */

.card-image-product {
    padding: 2rem;
}
.image-product {
    width: 100%;
}

/* = fin product home = */

/* = inicio content home = */

.grid-content-home {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    /* En una columna, el texto y la imagen no van pegados. */
    row-gap: 2rem;
}
.btn-content-home {
    margin-top: 2rem;
}
.item-content-home {
    position: relative;
}

.title-content-home {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}
.description-content-home {
    color: var(--gray-600);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
}
.image-content-home {
    position: relative;
    margin: 0 auto;
}
.img-content-home {
    width: 100%;
}

/* Las hojas decorativas. En celular, más chicas y pegadas a los bordes de la imagen
   para que no tapen el texto; desde 576 px y 992 px las ubican sus media queries. */
.img-content-home-one,
.img-content-home-two,
.img-content-home-three,
.img-content-home-four {
    display: block;
    position: absolute;
    height: 50px;
    pointer-events: none;
}

/* La del texto: abajo a la derecha, en el espacio entre el texto y la imagen. */
.img-content-home-one {
    z-index: 1;
    top: unset;
    right: 0;
    bottom: -3.25rem;
    left: unset;
    height: 55px;
}

.img-content-home-two {
    top: 2.5em;
    left: -0.75em;
    height: 65px;
}

.img-content-home-three {
    top: 3.5em;
    left: 2.5em;
    height: 30px;
}

.img-content-home-four {
    bottom: 2.5em;
    right: -0.5em;
    height: 55px;
}

/* = fin content home = */

/* = inicio occupational home = */

.grid-occupational {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.image-occupational.medium {
    width: calc(40% - 0.8rem);
}

.image-occupational:not(.medium) {
    width: calc(60% - 0.8rem);
}

.wrapper-images-occupational {
    display: flex;
    align-items: start;
    gap: 1.6rem;
}

.image-occupational {
    width: 100%;
}

.title-content-occupational {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.wrapper-content-occupational {
    margin-bottom: 2rem;
}

.subtitle-content-occupational {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.description-content-occupational {
    font-size: 1.063rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
}

/* = fin occupational home = */

/*==== FIN INDEX ====*/

/*==== INICIO NOSOTROS ====*/

.about-content-intro {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
/* Contenido cargado con el editor del panel (Summernote): los párrafos se
   separan entre sí —aunque la sección les quite el margen— y el último bloque
   no suma margen al contenedor. */
.texto-enriquecido p:not(:last-child) {
    margin-bottom: 1rem;
}
.texto-enriquecido > :last-child,
.about-content-text > :last-child,
.description-box-feature > :last-child,
.card-rse__description > :last-child,
.item-list-special > :last-child {
    margin-bottom: 0;
}

/* Línea de tiempo de Nosotros: un hito por vez, con la línea de puntos debajo.
   El recuadro de la imagen o el video es 4:3 al lado del texto y cuadrado arriba
   del texto en celular; las medidas que recomienda el panel (Hito::MEDIDAS) salen
   de acá. El archivo se recorta para llenarlo (object-fit: cover). */
.historia-titulo {
    color: var(--primary-color);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.historia-carrusel {
    border-radius: 1rem;
}
.historia-hito {
    display: grid;
    background-color: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
}
.historia-medio {
    position: relative;
    background-color: var(--gray-200);
}
/* La altura mínima sale del ancho (4:3) y crece si el texto es más alto. */
.historia-medio::before {
    content: "";
    display: block;
    padding-top: 75%;
}
.historia-medio img,
.historia-medio video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.historia-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    color: var(--gray-600);
}
.historia-anio {
    border: 1.5px solid var(--primary-color);
    border-radius: 6.25rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.5rem 1.5rem;
}
.historia-hito-titulo {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}
.historia-descripcion {
    font-size: 1rem;
    line-height: 1.5;
}

/* La línea de puntos: se desplaza de costado si no entran todos. El relleno
   contiene el área táctil de los puntos de las puntas (si no, la línea se puede
   desplazar aunque entren todos) y el margen negativo lo compensa, para que los
   puntos queden alineados con los bordes de la tarjeta. */
.historia-linea {
    margin: 1rem -0.75rem 0;
    padding: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.historia-linea::-webkit-scrollbar {
    display: none;
}
.historia-puntos {
    --punto: 1.125rem;
    --avance: 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    min-width: 100%;
    width: max-content;
}
.historia-puntos::before,
.historia-progreso {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--punto) / 2);
    height: 2px;
    transform: translateY(-50%);
}
.historia-puntos::before {
    right: calc(var(--punto) / 2);
    background-color: var(--secondary-color);
}
.historia-progreso {
    width: calc((100% - var(--punto)) * var(--avance));
    background-color: var(--accent-color);
    transition: width 0.6s ease;
}
.historia-punto {
    position: relative;
    z-index: 1;
    flex: none;
    width: var(--punto);
    height: var(--punto);
    padding: 0;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    background-color: var(--secondary-color-light);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}
/* Área táctil de 42 px alrededor del punto. */
.historia-punto::after {
    content: "";
    position: absolute;
    inset: -0.75rem;
}
.historia-punto.es-pasado {
    border-color: var(--accent-color);
}
.historia-punto.es-activo {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    transform: scale(1.25);
}
.historia-punto:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.historia-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}
.historia-boton {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    cursor: pointer;
}
.historia-flecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--secondary-color);
    border-radius: 0.375rem;
    color: var(--primary-color);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.historia-boton:hover .historia-flecha,
.historia-boton:focus-visible .historia-flecha {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
}
.historia-contador {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
    .historia-titulo {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .historia-medio::before {
        padding-top: 100%;
    }
    .historia-puntos {
        --punto: 0.875rem;
        gap: 1rem;
    }
}
@media (min-width: 768px) {
    .historia-texto {
        padding: 2rem 2.5rem;
    }
}
@media (min-width: 992px) {
    .historia-hito {
        grid-template-columns: 1fr 1fr;
    }
    .historia-hito--sin-medio {
        grid-template-columns: 1fr;
    }
    .historia-hito--sin-medio .historia-texto {
        padding: 3rem 4rem;
    }
}

.features-section {
    padding-top: 1rem;
    padding-bottom: 4rem;
}
.title-features {
    color: var(--color-principal);
    font-size: 2rem;
    letter-spacing: 0.02rem;
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
}
.grid-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
}
.card-feature {
    background-color: var(--white-color);
    border: 1px solid #e5f4f2;
    border-radius: 1.25rem;
    box-shadow: 34.85px 29.63px 48.34px 0px #3366ff0d;
    height: 100%;
    padding: 3.75rem;
    text-align: center;
}
.card-feature .image-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-md);
    margin: 0 auto;
    padding: 0.5rem;
    width: 82px;
    height: 82px;
}
.card-feature .image-feature img {
    width: 42px;
    height: 42px;
    object-fit: cover;
}
.card-feature h3 {
    color: var(--color-principal-3);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.card-feature p {
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 23px;
    margin-bottom: 0;
}

.item-list-feature {
    list-style: none;
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 23px;
    padding-left: 0;
}

.grid-box-feature {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 1rem;
    /* La misma separación que hay entre las tarjetas de Valores e ISO (.grid-features). */
    margin-bottom: 4rem;
}
/* Si un bloque intercalado parte el cascarón, el último de cada tramo no suma su
   margen al padding de la sección. */
.features-section .container > :last-child {
    margin-bottom: 0;
}

.item-box-feature:first-child {
    order: 2;
}

.item-box-feature:last-child {
    order: 1;
}

.box-feature {
    border: 1px solid var(--gray-400);
    border-radius: 1.875rem;
    padding: 2rem 2rem;
}

.description-box-feature {
    color: var(--gray-600);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 23px;
    margin-bottom: 0;
}

.img-box-feature {
    height: 100px;
    width: 100px;
}

/* Conocé nuestras instalaciones: fotos 4:3 en una sola fila (carrusel Swiper,
   tres a la vista en escritorio) que se amplían con la lupa. */
.instalaciones-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray-600);
    text-align: center;
}
.instalaciones-foto img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
/* Antes de que arranque Swiper (o sin JavaScript), las fotos ya ocupan el ancho
   que van a tener: la sección no salta al iniciar. */
.instalaciones-carrusel:not(.swiper-initialized) .swiper-slide {
    width: 83.333%;
    margin-right: 0.75rem;
}
.instalaciones-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* La barra se puede arrastrar; Swiper calcula el ancho del tramo oscuro. */
.instalaciones-nav .instalaciones-barra.swiper-scrollbar {
    position: relative;
    inset: auto;
    flex: 1;
    width: auto;
    height: 4px;
    margin: 0;
    border-radius: 2px;
    background-color: var(--secondary-color);
}
.instalaciones-barra .swiper-scrollbar-drag {
    background-color: var(--primary-color);
    cursor: grab;
}
/* Mismo botón que las flechas de la línea de tiempo (.historia-flecha). */
.instalaciones-boton {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--secondary-color);
    border-radius: 0.375rem;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.instalaciones-boton:hover:not(.swiper-button-disabled),
.instalaciones-boton:focus-visible {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
}
/* En el primer y el último tramo, la flecha que no lleva a ningún lado se apaga. */
.instalaciones-boton.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}
@media (min-width: 576px) {
    .instalaciones-carrusel:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 0.75rem) / 2);
    }
}
@media (min-width: 768px) {
    .instalaciones-carrusel:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 3rem) / 3);
        margin-right: 1.5rem;
    }
}

/*==== FIN NOSOTROS ====*/

/*==== INICIO CONTACTO ====*/

.contact-main {
    padding: 3rem 1rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
}

.contact-form-section {
    padding: 2.5rem 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 0.5rem 0.5rem;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid var(--gray-600);
    background: var(--white-color);
    outline: none;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: none;
    box-shadow: none;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    font-size: var(--font-size-base);
    color: var(--gray-600);
    pointer-events: none;
    background: var(--white-color);
    padding: 0 0.25rem;
    transition: all 0.3s;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 1.5rem;
}

.form-textarea + .form-label {
    top: 1.5rem;
}

.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    top: 0.25rem;
}

.submit-btn {
    width: 100px;
    text-align: center;
    justify-content: center;
}

.contact-info-section {
    background: var(--primary-color);
    border-radius: 1.875rem;
    color: var(--white-color);
    padding: 2.5rem 2rem;
}

.contact-info-text {
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.contact-map {
    margin-bottom: 2rem;
    border-radius: 0.625rem;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 252px;
    border: none;
    border-radius: 0.625rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.contact-detail-icon {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-detail-text {
    font-size: 1rem;
    color: var(--white);
    text-decoration: none;
}

.social-media {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/*==== FIN CONTACTO ====*/

/*==== INICIO responsabilidad social ====*/

.grid-list-special {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.item-list-special img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.grid-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.card-rse {
    position: relative;
    display: block;
    /* display: flex;
    flex-direction: column;
    gap: 1rem; */
    overflow: hidden;
    transition: all 0.3s;
}
.card-rse__image {
    border-radius: 1.25rem;
    overflow: hidden;
}
.card-rse__image img {
    width: 100%;
    object-fit: cover;
}
.card-rse__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white-color);
    border-radius: 1.25rem;
    margin: 0 1rem 1rem 1rem;
    padding: 1rem 1.2rem;
    min-height: 190px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.card-rse__title {
    color: var(--black-color);
    font-size: 0.938rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}
.card-rse__description {
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0;
}

/*==== FIN responsabilidad social ====*/

/* ====  INICIO FOOTER ==== */

.footer {
    background-color: var(--secondary-color-light);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    color: var(--text-color);
    padding-top: 2rem;
}
.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.footer-column:nth-child(2),
.footer-column:nth-child(3),
.footer-column:nth-child(4) {
    display: flex;
    gap: 1rem;
}
.footer-logo {
    width: auto;
    height: 65px;
}
.footer-description {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-top: 1rem;
    margin-bottom: 0;
}
.footer-description span {
    color: var(--primary-color);
    font-weight: 700;
}
/* Certificación FSC: logo a la izquierda y el compromiso al lado. */
.footer-certificacion {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-certificacion .footer-description {
    margin-top: 0;
    max-width: 15rem;
}

.footer-fsc {
    height: 80px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 1.125rem;
    padding: 0;
    list-style: none;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}
.footer-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    padding: 0;
    margin-bottom: 1rem;
}
.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    letter-spacing: 0.02rem;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social img {
    width: 18px;
    height: 18px;
    transition: all 0.3s;
}

.footer-contact img,
.footer-links img {
    width: 16px;
    height: 16px;
    transition: all 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-social a:hover {
    color: var(--primary-color);
}

.footer-contact a:hover img,
.footer-info a:hover img {
    filter: var(--filter-primary);
}

.footer-span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.container-porta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #103559;
    margin-top: 2rem;
}
.text-footer {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    padding-top: 1.2rem;
    padding-bottom: 1rem;
    letter-spacing: 0.02rem;
    margin-bottom: 0;
}
.text-footer a {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    letter-spacing: 0.05rem;
    text-decoration: none;
}

/* ==== FIN FOOTER ==== */

/* = MEDIA QUERIES = */

@media (min-width: 475px) {
    .container {
        max-width: 100%;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 100%;
    }

    /* == inicio index == */

    .img-content-home-two,
    .img-content-home-three,
    .img-content-home-four {
        display: block;
        position: absolute;
    }

    .img-content-home-two {
        height: 100px;
        top: 4em;
        left: -1em;
    }

    .img-content-home-three {
        height: 45px;
        top: 5em;
        left: 3.5em;
    }

    .img-content-home-four {
        height: 75px;
        bottom: 8em;
        right: 1em;
    }

    /* == fin index == */
}

@media (min-width: 768px) {
    .container {
        max-width: 960px;
    }

    /* === inicio index === */

    .hero h1 {
        font-size: 4rem;
    }

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

    /* inicio about section */
    .certification-content {
        display: grid;
        grid-template-columns: 191px 1fr;
        align-items: center;
        gap: 1rem;
        max-width: 900px;
        margin: 0 auto;
    }
    .certification-logo img {
        height: 191px;
    }
    .certification-text p {
        font-size: var(--font-size-xl);
    }
    .about-home-title {
        font-size: 2.75rem;
    }
    .about-home-description {
        font-size: 1.125rem;
    }
    .about-stat {
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 1.75rem;
    }
    .about-stat-icon {
        width: 72px;
        height: 72px;
    }
    .about-stat-icon img {
        width: 34px;
        height: 34px;
    }
    .about-stat-title {
        font-size: 1.375rem;
    }
    .about-stat-description {
        font-size: 1.125rem;
    }
    .btn-primary.about-home-btn {
        font-size: 1.125rem;
        padding: 1rem 2.5rem;
    }
    /* fin about section */

    .wrapper-content-home {
        padding-left: 3em;
    }
    /* Alineado con la sangría del texto; en celular no hay sangría. */
    .btn-content-home {
        margin-left: 4%;
    }
    .title-content-home {
        font-size: 2.813rem;
    }
    .description-content-home {
        font-size: 1.313rem;
    }

    /* === fin index === */

    /* === inicio nosotros  === */
    .grid-features {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .grid-box-feature {
        grid-template-columns: 1fr 158px;
    }

    .item-box-feature:first-child {
        order: 1;
    }

    .item-box-feature:last-child {
        order: 2;
    }

    .box-feature {
        padding: 2rem 4rem;
    }

    .img-box-feature {
        height: 158px;
        width: 158px;
    }

    /* === fin nosotros  === */

    /* === inicio contacto === */
    .contact-main {
        padding: 3rem 2rem;
    }
    .contact-info-section {
        flex: 1;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-top-right-radius: 1.875rem;
        border-bottom-right-radius: 1.875rem;
    }
    .contact-form-section {
        padding: 2.5rem 2rem;
    }
    /* === fin contacto === */

    /*=== inicio footer ===*/
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 2rem;
    }
    /*=== fin footer ===*/
}

@media screen and (min-width: 992px) {
    .certificaciones--varias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3rem;
    }

    .certificaciones--varias .certification-content {
        grid-template-columns: 140px 1fr;
        max-width: none;
        margin: 0;
    }

    .certificaciones--varias .certification-logo img {
        height: 140px;
    }

    .hero-section-title {
        font-size: var(--font-size-xxl);
    }

    .section-title,
    .section-title-special {
        font-size: var(--font-size-xl);
    }

    /* == inicio index == */
    .about-home-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-areas:
            "texto datos"
            "mosaico datos";
        column-gap: 4rem;
        row-gap: 2rem;
    }

    /* Datos compactos: cuanto más baja la columna, más recorrido tiene el
       efecto de abajo. */
    .about-stats {
        gap: 1.5rem;
    }

    .about-stat {
        grid-template-columns: 60px minmax(0, 1fr);
        column-gap: 1.25rem;
    }

    .about-stat-icon {
        width: 60px;
        height: 60px;
    }

    .about-stat-icon img {
        width: 28px;
        height: 28px;
    }

    .about-stat-title {
        font-size: 1.188rem;
        margin-bottom: 0.25rem;
    }

    .about-stat-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Columna lateral fija al centro de la ventana: mientras se baja, el texto
       y el mosaico se deslizan a su lado, y cuando el mosaico llega a su borde
       inferior la columna se suelta y sigue con el resto de la página.
       --alto-aside lo publica el script del bloque; sin él, la columna se pega
       arriba con un margen, que también funciona. */
    .about-aside {
        position: sticky;
        top: max(2rem, calc(50vh - var(--alto-aside, 100vh) / 2));
        align-self: start;
        row-gap: 2rem;
    }

    .about-home-cta {
        justify-self: end;
    }

    .about-mosaic {
        align-self: start;
    }

    .grid-content-home {
        grid-template-columns: 1fr 490px;
    }
    /* En dos columnas el botón queda como estaba, al pie del texto. */
    .btn-content-home {
        margin-top: 0;
    }
    .title-content-home {
        padding-right: 0;
    }
    .image-content-home {
        width: 100%;
        max-width: 100%;
    }
    .img-content-home-one {
        display: block;
        height: 100px;
        bottom: -7em;
        left: -1em;
        top: unset;
        right: unset;
    }

    .grid-occupational {
        display: flex;
    }
    .item-content-occupational:first-child {
        width: calc(60% - 1rem);
    }
    .item-content-occupational:last-child {
        width: calc(40% - 1rem);
    }
    .title-content-occupational {
        font-size: 2.5rem;
    }

    /* == fin index == */

    /* == inicio contacto == */
    .contact-content {
        flex-direction: row;
    }

    .contact-form-section {
        flex: 1;
    }
    /* == fin contacto == */

    /* === inicio responsabilidad social === */
    .grid-list {
        flex-wrap: nowrap;
    }
    /* Las tarjetas de RSE van siempre de a tres por fila, con el ancho que tienen cuando son
       tres (370 px, el de la imagen); las demás bajan a la fila siguiente. Con el flex de
       arriba se ponían todas en una fila y se achicaban. */
    .grid-list--tres {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 370px));
        justify-content: center;
        align-items: start;
    }
    .grid-list-special {
        grid-template-columns: 1fr 1fr;
    }
    /* === fin responsabilidad social === */
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    /* === inicio header === */
    .logo-header-img {
        height: 71px;
        width: auto;
    }

    .nav-menu-mobile,
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: none;
        box-shadow: none;
    }

    .nav-menu ul {
        display: flex;
        gap: 2rem;
        padding: 0;
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-menu a {
        color: var(--white-color);
        border-bottom: none;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-menu a:hover {
        background: none;
        padding-left: 0;
        color: var(--white-color);
    }

    .nav-menu a::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--white-color);
        transition: width 0.3s ease;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .btn-languague {
        padding: 0.5rem 0.875rem;
    }

    .has-submenu .submenu {
        width: 120px;
    }

    .has-submenu-deskotp {
        display: block;
    }
    /* === fin header === */

    /* === inicio index === */

    .grid-carousel-home {
        grid-template-columns: calc(20% - 0.7rem) calc(80% - 0.7rem);
    }

    /* === fin index === */

    /* === inicio contacto === */

    .contact-form-section {
        padding: 2rem 4rem 2rem 0;
    }

    .contact-info-section {
        padding: 4rem;
    }

    /* === fin contacto === */

    /*= inicio footer =*/
    .footer {
        border-top-left-radius: 4.313rem;
        border-top-right-radius: 4.313rem;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 0.8fr 0.8fr;
        grid-column-gap: 2rem;
    }
    .footer-column {
        justify-content: center;
        flex-direction: row;
    }
    .footer-column:nth-child(2) {
        padding-left: 2rem;
    }
    /*= fin footer =*/
}

@media screen and (min-width: 1200px) {
    .container {
        max-width: 1160px;
    }

    /* == inicio about home == */

    .certification-content {
        padding-bottom: 0;
    }

    .certificaciones {
        row-gap: 3rem;
    }

    .certificaciones + .about-home-grid {
        margin-top: 4rem;
    }

    .about-home-grid {
        column-gap: 6rem;
    }

    .about-home-title {
        font-size: 3.25rem;
    }

    /* == fin about home == */
}

@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Animaciones de entrada */
.hero-content {
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* animacion de hojas de arbol */
.img-content-home-one,
.img-content-home-two,
.img-content-home-three,
.img-content-home-four {
  animation: sway 6s ease-in-out infinite;
  transform-origin: center bottom;
}

/* delay diferentes de las hojas */
.img-content-home-one {
  animation-delay: 0s;
}

.img-content-home-two {
  animation-delay: 1s;
}

.img-content-home-three {
  animation-delay: 2s;
}

.img-content-home-four {
  animation-delay: 3s;
}

/* Animación tipo vaivén */
@keyframes sway {
  0%   { transform: rotate(0deg) translateY(0); }
  25%  { transform: rotate(2deg) translateY(1px); }
  50%  { transform: rotate(0deg) translateY(0); }
  75%  { transform: rotate(-2deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}

/*==== LUPA DE IMÁGENES ====*/

/* Miniatura que se amplía al hacer clic (partials/lupa.blade.php y
   assets_front/js/lupa.js). La usan las instalaciones de Nosotros y el carrusel de
   instalaciones de la portada. Con el mouse encima, la foto se acerca y aparece la
   lupa; en pantallas táctiles, sin hover, la lupa queda siempre en una esquina. */
.lupa-marco {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: zoom-in;
}
.lupa-marco img {
    display: block;
    transition: transform 0.4s ease;
}
.lupa-marco::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(3, 73, 154, 0.35);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.lupa-icono {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: -1.5rem 0 0 -1.5rem;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.lupa-marco:hover img,
.lupa-marco:focus-visible img {
    transform: scale(1.06);
}
.lupa-marco:hover::after,
.lupa-marco:focus-visible::after,
.lupa-marco:hover .lupa-icono,
.lupa-marco:focus-visible .lupa-icono {
    opacity: 1;
}
.lupa-marco:hover .lupa-icono,
.lupa-marco:focus-visible .lupa-icono {
    transform: scale(1);
}
.lupa-marco:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}
@media (hover: none) {
    .lupa-icono {
        top: auto;
        left: auto;
        right: 0.5rem;
        bottom: 0.5rem;
        width: 2.25rem;
        height: 2.25rem;
        margin: 0;
        opacity: 1;
        transform: none;
    }
    .lupa-icono svg {
        width: 16px;
        height: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lupa-marco img,
    .lupa-icono {
        transition: none;
    }
}

/* El modal: la imagen entera, sin texto, en un recuadro blanco como el de
   Terminaciones especiales. El recuadro toma el ancho de la imagen, con el alto
   de la pantalla como tope. */
.lupa .lupa-dialogo {
    width: fit-content;
    /* 100% y no 100vw: con barra de desplazamiento, el modal es más angosto que el
       viewport (Bootstrap le suma su ancho de padding) y el recuadro quedaba corrido. */
    max-width: calc(100% - 2rem);
    margin: 1rem auto;
}
.lupa-contenido {
    position: relative;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--border-radius-lg);
    background-color: var(--white-color);
}
.lupa-imagen {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 3rem);
    max-height: calc(100dvh - 3rem);
    min-width: 12rem;
    min-height: 9rem;
    margin: 0 auto;
    border-radius: var(--border-radius-md);
    object-fit: contain;
    background-color: var(--gray-100);
}
.lupa-boton {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lupa-boton:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
}
.lupa-boton:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
.lupa-cerrar {
    top: 1rem;
    right: 1rem;
}
.lupa-flecha {
    top: 50%;
    margin-top: -1.375rem;
}
.lupa-anterior {
    left: 1rem;
}
.lupa-siguiente {
    right: 1rem;
}

/*==== FIN LUPA DE IMÁGENES ====*/

/*==== RECAPTCHA V3 ====*/
/* Google permite ocultar su insignia flotante si el aviso de reCAPTCHA queda a la vista
   en el formulario (.recaptcha-aviso, front/bloques/contacto/formulario.blade.php). */
.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-aviso {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--gray-600);
}

.recaptcha-aviso a {
    color: inherit;
    text-decoration: underline;
}
/*==== FIN RECAPTCHA V3 ====*/
