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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #ffffff;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


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

.topbar {
    background: #111;
    color: #cfcfcf;
    font-size: 13px;
}

.topbar-content {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    gap: 25px;
}

.main-header {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    min-height: 84px;
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    width: 210px;
    max-width: 25%;
}

.logo img {
    max-height: 62px;
    width: auto;
}

/* =========================================
   MENÚ PRINCIPAL - ESCRITORIO

   Contiene los enlaces principales del sitio:
   Inicio, Maquinaria, Categorías, Marcas,
   Nosotros y Contacto.

   Aquí se controla:
   - Separación entre opciones.
   - Tamaño y grosor del texto.
   - Línea verde que aparece al pasar
     el mouse sobre cada opción.
========================================= */

.main-nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    align-items: center;
}


/* =========================================
   ENLACES DEL MENÚ PRINCIPAL
========================================= */

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    position: relative;
}


/* =========================================
   LÍNEA INFERIOR DE LOS ENLACES

   La línea inicia oculta y se extiende
   cuando el usuario pasa el mouse.
========================================= */

.main-nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -8px;
    background: #859b19;
    transition: .25s;
}


/* =========================================
   EFECTO HOVER DEL MENÚ
========================================= */

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

/* =========================================
   SUBMENÚ DE CATEGORÍAS - ESCRITORIO

   Controla el menú desplegable de categorías
   que aparece al pasar el mouse sobre la opción
   "Categorías" del menú principal.

   Las categorías y subcategorías se cargan
   dinámicamente desde la base de datos.
========================================= */

.nav-categories {
    position: relative;
}


/* =========================================
   ENLACE PRINCIPAL "CATEGORÍAS"
========================================= */

.nav-categories-link {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* Flecha hacia abajo */
.nav-categories-link > i {
    font-size: 12px;
}


/* =========================================
   MENÚ DESPLEGABLE PRINCIPAL
========================================= */

.categories-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;

    min-width: 250px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #fff;

    border: 1px solid #e7e7e7;
    border-radius: 6px;

    box-shadow: 0 14px 35px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .20s ease,
        visibility .20s ease,
        transform .20s ease;

    z-index: 1200;
}


/* =========================================
   MOSTRAR MENÚ AL PASAR EL MOUSE
========================================= */

.nav-categories:hover > .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================
   ELEMENTOS DEL SUBMENÚ
========================================= */

.category-menu-item {
    position: relative;
}


/* =========================================
   ENLACES DE LAS CATEGORÍAS
========================================= */

.main-nav .category-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 18px;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    color: #222;

    transition:
        background .20s ease,
        color .20s ease;
}


/* =========================================
   QUITAR LÍNEA INFERIOR DEL MENÚ PRINCIPAL
   DENTRO DEL SUBMENÚ
========================================= */

.main-nav .category-menu-item > a::after {
    display: none;
}


/* =========================================
   EFECTO HOVER EN CATEGORÍAS
========================================= */

.main-nav .category-menu-item > a:hover {
    background: #f5f5f5;
    color: #859b19;
}


/* =========================================
   FLECHA DE CATEGORÍA CON SUBCATEGORÍAS
========================================= */

.category-menu-arrow {
    font-size: 12px;
    color: #888;
}


/* =========================================
   SUBCATEGORÍAS - SEGUNDO NIVEL

   Los niveles secundarios aparecen a la
   derecha de su categoría principal.
========================================= */

.category-menu-item > .categories-dropdown {
    top: -8px;
    left: 100%;

    margin-left: 2px;
}


/* =========================================
   MOSTRAR SUBCATEGORÍAS AL PASAR EL MOUSE
========================================= */

.category-menu-item:hover > .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon,
.mobile-menu-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
}

.header-whatsapp {
    background: #111;
    color: #fff;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================
   BOTÓN DEL MENÚ MÓVIL

   Se mantiene oculto en escritorio.
   En resoluciones menores a 1050px
   se muestra como botón hamburguesa.
========================================= */

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


/* =========================
   HERO
========================= */

.hero {
    min-height: 590px;
    position: relative;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.62) 42%,
            rgba(0,0,0,.10) 100%
        ),
        url('../../img/hero.jpg')
        center center / cover no-repeat;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* =========================================
   VIDEO DEL SLIDER
   El video ocupa completamente el fondo
   manteniendo la proporción sin deformarse.
========================================= */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Mantiene el oscurecimiento sobre imagen/video */
.hero-slide .hero-overlay {
    z-index: 1;
}

/* Mantiene textos y botones encima del video */
.hero-slide .hero-content {
    position: relative;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider .hero-content {
    min-height: 590px;
    display: flex;
    align-items: center;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(0,0,0,.25);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-arrow:hover {
    background: #93ab20;
    border-color: #93ab20;
    color: #fff;
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}

.hero-dots {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
    transition: .25s;
}

.hero-dot:hover {
    background: #93ab20;
}

.hero-dot.active {
    background: #93ab20;
    transform: scale(1.25);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
    color: #fff;
}

.hero-tag,
.section-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 800;
    color: #8fa71b;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -3px;
    max-width: 650px;
}

.hero h1 span {
    color: #a3bb29;
}

.hero p {
    font-size: 19px;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 560px;
    margin-top: 25px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 6px;
    font-weight: 700;
    transition: .25s;
}

.btn-primary {
    background: #93ab20;
    color: #fff;
}

.btn-primary:hover {
    background: #7f9518;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.55);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #fff;
    color: #111;
}


/* =========================
   SEARCH
========================= */

.search-section {
    margin-top: -60px;
    position: relative;
    z-index: 4;
}

.search-box {
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.13);
    border-radius: 10px;
    padding: 30px;
}

.search-title span {
    font-size: 13px;
    color: #8fa71b;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.search-title h2 {
    font-size: 26px;
    margin-top: 5px;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    margin-top: 24px;
}

.field input,
.field select {
    width: 100%;
    height: 52px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 0 15px;
    outline: none;
    background: #fff;
}

.field input:focus,
.field select:focus {
    border-color: #93ab20;
}

.btn-search {
    height: 52px;
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 6px;
    padding: 0 28px;
    cursor: pointer;
    font-weight: 700;
}

/* =========================================
   SELECT2 - BUSCADOR DE PORTADA
========================================= */

.search-form select.search-select2 {
    display: none;
}

.search-form .select2-container {
    position: relative;
    display: inline-block;
    width: 100% !important;
    vertical-align: middle;
    font: inherit;
}

.search-form .select2-selection--single {
    position: relative;
    display: block;
    height: 52px;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.search-form .select2-selection--single .select2-selection__rendered {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 38px 0 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #171717;
}

.search-form .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 0;
    right: 10px;
    width: 20px;
    height: 50px;
}

.search-form .select2-selection--single .select2-selection__arrow b {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin-top: -2px;
    margin-left: -4px;
    border-width: 5px 4px 0;
    border-style: solid;
    border-color: #888 transparent transparent;
}

.select2-container--open .select2-selection__arrow b {
    margin-top: -3px;
    border-width: 0 4px 5px;
    border-color: transparent transparent #888;
}

.select2-dropdown {
    position: absolute;
    z-index: 9999;
    display: block;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    overflow: hidden;
}

.select2-container--open .select2-dropdown--below {
    margin-top: 4px;
}

.select2-results {
    display: block;
}

.select2-results__options {
    margin: 0;
    padding: 5px 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
}

.select2-results__option {
    padding: 8px 14px;
    color: #171717;
    cursor: pointer;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #93ab20;
    color: #fff;
}

.select2-search--dropdown {
    position: relative;
    display: block;
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 10px 0 34px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #fff;
    outline: none;
    font: inherit;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #93ab20;
}

.select2-search--dropdown::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 50%;
    width: 10px;
    height: 10px;
    border: 1.5px solid #777;
    border-radius: 50%;
    transform: translateY(-65%);
    pointer-events: none;
    z-index: 2;
}

.select2-search--dropdown::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 56%;
    width: 6px;
    height: 1.5px;
    background: #777;
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
    z-index: 2;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
    padding: 95px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-heading h2,
.brands-heading h2,
.about-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1.5px;
}

.section-link {
    color: #7d911c;
    font-weight: 700;
}


/* =========================
   CATEGORIES
========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    transition: .25s;
}

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

.category-image {
    height: 255px;
    overflow: hidden;
}

.category-image img {
    height: 100%;
    object-fit: cover;
    transition: .35s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-info {
    padding: 21px;
}

.category-info h3 {
    font-size: 22px;
}

.category-info span {
    display: inline-block;
    margin-top: 9px;
    font-size: 14px;
    color: #7b901a;
    font-weight: 700;
}


/* =========================
   MACHINERY
========================= */

.machinery-section {
    background: #f5f5f3;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter {
    border: 1px solid #d7d7d7;
    background: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.filter.active,
.filter:hover {
    background: #111;
    color: #fff;
}

/* Muestra cuatro tarjetas de maquinaria por fila en escritorio */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.machine-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: .25s;
	cursor: pointer;
    color: inherit;
    text-decoration: none;
    display: block;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,.08);
}

.machine-image {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.machine-image img {
    height: 100%;
    object-fit: cover;
	transition: transform .35s ease;
}

.machine-card:hover .machine-image img {
    transform: scale(1.03);
}

.machine-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #93ab20;
    color: #fff;
    padding: 7px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.machine-label-upcoming {
    background: #e59a16;
}

.machine-content {
    padding: 22px;
}

.machine-category {
    color: #8a9f1e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.machine-content h3 {
    font-size: 23px;
    margin-top: 8px;
}

.machine-data {
    display: flex;
    gap: 20px;
    margin-top: 13px;
    color: #707070;
    font-size: 14px;
}

.machine-location {
    margin-top: 12px;
    color: #777;
    font-size: 14px;
}

.machine-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #ededed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.machine-footer strong {
    font-size: 17px;
}

.machine-footer a {
    color: #7c901a;
    font-size: 13px;
    font-weight: 700;
}

/* Diseño general de la página de inventario */


/* =========================
   BRANDS
========================= */

.brands-section {
    padding: 90px 0;
}

.brands-heading {
    text-align: center;
    margin-bottom: 40px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.brand-card {
    min-height: 120px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    cursor: pointer;
    transition: .25s;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: #93ab20;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.brand-card img {
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 82px;
    object-fit: contain;
}

/* =========================================
   CARRUSEL DE MARCAS
   - Autoplay
   - Flechas manuales
   - Puntitos de navegación
   - Pausa al pasar el mouse
========================================= */

.brands-section {
    overflow: visible;
}

.brands-carousel {
    position: relative;
}


/* =========================================
   FILA DEL CARRUSEL
   Contiene únicamente:
   flecha + logos + flecha.
   Los puntos quedan fuera para que las
   flechas se centren solamente con las
   tarjetas de las marcas.
========================================= */

.brands-slider-row {
    position: relative;
    padding: 10px 36px;
}


/* =========================================
   ÁREA VISIBLE DEL CARRUSEL

   Se deja espacio superior e inferior para
   que la tarjeta pueda subir con el hover
   sin que se corte su borde o sombra.
========================================= */

.brands-viewport {
    width: 100%;
    overflow: hidden;

    padding-top: 10px;
    padding-bottom: 10px;
}

.brands-carousel.has-carousel .brands-grid {
    display: flex;
    gap: 18px;
    transition: transform .45s ease;
    will-change: transform;
    align-items: stretch;
}

.brands-carousel.has-carousel .brand-card {
    flex: 0 0 calc((100% - 90px) / 6);
}

.brand-card {
    min-height: 120px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.brand-card:hover {
    transform: translateY(-6px);
    border-color: #93ab20;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* =========================================
   FLECHAS
========================================= */

.brands-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.brands-arrow span {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-top: -1px;
}

.brands-arrow:hover {
    background: #93ab20;
    border-color: #93ab20;
    color: #fff;
}

.brands-arrow:disabled {
    opacity: .40;
    cursor: default;
}

.brands-arrow:disabled:hover {
    background: #fff;
    border-color: #dcdcdc;
    color: #111;
}

.brands-prev {
    left: 0;
}

.brands-next {
    right: 0;
}

/* =========================================
   PUNTOS DE NAVEGACIÓN
========================================= */

.brands-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 12px;
}

.brands-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #d6d6d6;
    cursor: pointer;
    transition: .25s;
    padding: 0;
}

.brands-dot:hover {
    background: #b7c55b;
}

.brands-dot.active {
    background: #93ab20;
    transform: scale(1.2);
}

/* =========================================
   CARRUSEL DE MARCAS

   Si existen hasta 6 marcas conserva
   exactamente la cuadrícula original.

   Cuando existen más de 6 marcas,
   JavaScript activa el desplazamiento
   horizontal manteniendo las mismas
   tarjetas y dimensiones visuales.
========================================= */

.brands-carousel {
    position: relative;
}

.brands-viewport {
    width: 100%;
    overflow: hidden;
}


/* =========================================
   CARRUSEL ACTIVO
========================================= */

.brands-carousel.has-carousel .brands-grid {
    display: flex;
    gap: 16px;
    transition: transform .40s ease;
    will-change: transform;
}


/* 6 marcas visibles en escritorio */
.brands-carousel.has-carousel .brand-card {
    flex: 0 0 calc((100% - 80px) / 6);
}


/* =========================================
   FLECHAS DEL CARRUSEL
========================================= */

.brands-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: 1px solid #e5e5e5;
    border-radius: 50%;

    background: #fff;
    color: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 5;

    box-shadow: 0 6px 20px rgba(0,0,0,.08);

    transition: .25s;
}

.brands-arrow:hover {
    background: #93ab20;
    border-color: #93ab20;
    color: #fff;
}

.brands-prev {
    left: -21px;
}

.brands-next {
    right: -21px;
}

.brands-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.brands-arrow:disabled:hover {
    background: #fff;
    border-color: #e5e5e5;
    color: #111;
}

.brand-item {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e3e3e3;
    font-weight: 800;
    color: #555;
}

.brand-item:last-child {
    border-right: 0;
}


/* =========================
   ABOUT
========================= */

.about-section {
    padding: 100px 0;
    background: #111;
    color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    height: 480px;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.about-content p {
    color: #c6c6c6;
    font-size: 17px;
    line-height: 1.7;
    margin-top: 20px;
}

.btn-dark {
    background: #93ab20;
    color: #fff;
    margin-top: 28px;
}

.btn-dark:hover {
    background: #7f9518;
    transform: translateY(-2px);
}


/* =========================
   CONTACT
========================= */

.contact-section {
    padding: 70px 0;
    background: #93ab20;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-box span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.contact-box h2 {
    font-size: 38px;
    margin-top: 4px;
}

.btn-whatsapp {
    background: #111;
    color: #fff;
}

/* =========================================
   PÁGINA CONTACTOS
========================================= */

.contacts-hero {
    padding: 65px 0;
    background: #f5f5f3;
    border-bottom: 1px solid #e8e8e8;
}

.contacts-hero .section-tag {
    margin-bottom: 10px;
}

.contacts-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.contacts-hero p {
    max-width: 680px;
    margin-top: 18px;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.contacts-content {
    padding: 80px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 75px;
    align-items: start;
}

.contacts-form-column h2,
.contacts-info-column h2 {
    margin-bottom: 30px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.contacts-form {
    width: 100%;
}

.contacts-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contacts-recaptcha {
    margin-bottom: 22px;
}

.contacts-result {
    display: none;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.contacts-result-success {
    display: block;
    background: #edf8f0;
    border: 1px solid #b8dfc1;
    color: #256b35;
}

.contacts-result-error {
    display: block;
    background: #fff1f1;
    border: 1px solid #efc2c2;
    color: #9d2929;
}

.contacts-submit:disabled {
    cursor: not-allowed;
    opacity: .65;
}

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

.contacts-field {
    margin-bottom: 20px;
}

.contacts-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.contacts-field input,
.contacts-field textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #fff;
    outline: none;
    font: inherit;
    transition: border-color .20s ease, box-shadow .20s ease;
}

.contacts-field input {
    height: 52px;
    padding: 0 15px;
}

.contacts-field textarea {
    min-height: 170px;
    padding: 15px;
    resize: vertical;
}

.contacts-field input:focus,
.contacts-field textarea:focus {
    border-color: #93ab20;
    box-shadow: 0 0 0 3px rgba(147,171,32,.10);
}

.contacts-submit {
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.contacts-submit:hover {
    background: #93ab20;
    transform: translateY(-2px);
}

.contacts-info-column {
    padding: 35px;
    border-radius: 10px;
    background: #f5f5f3;
}

.contacts-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #dddddd;
}

.contacts-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #93ab20;
    color: #fff;
    font-size: 17px;
}

.contacts-info-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.contacts-info-item p,
.contacts-info-item a {
    display: block;
    margin-top: 3px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.contacts-info-item a {
    transition: color .20s ease;
}

.contacts-info-item a:hover {
    color: #93ab20;
}

.contacts-hours {
    margin-top: 28px;
}

.contacts-hours h3 {
    margin-bottom: 16px;
    font-size: 21px;
}

.contacts-hours > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    font-size: 14px;
}

.contacts-hours > div strong {
    color: #222;
}

.contacts-hours > div span {
    color: #666;
    text-align: right;
}

.contacts-map {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.contacts-map iframe {
    display: block;
    width: 100% !important;
    height: 450px !important;
    border: 0 !important;
}


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

.site-footer {
    background: #0d0d0d;
    color: #bdbdbd;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
}

.footer-brand img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.7;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-column a,
.footer-column span {
    display: block;
    margin: 11px 0;
    font-size: 14px;
}

.footer-column a:hover {
    color: #9eb725;
}

.footer-bottom {
    border-top: 1px solid #252525;
    margin-top: 55px;
    padding: 23px 0;
    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

    /* =========================================
       MENÚ PRINCIPAL - TABLET Y MÓVIL

       A partir de 1050px el menú normal
       se oculta y se controla mediante
       el botón hamburguesa.
    ========================================= */

    .main-nav {
        display: none;
    }


    /* =========================================
       MENÚ MÓVIL ABIERTO

       La clase "mobile-open" es agregada
       mediante JavaScript al presionar
       el botón hamburguesa.
    ========================================= */

    .main-nav.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 10px 20px 16px;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 14px 30px rgba(0,0,0,.08);
        z-index: 999;
    }


    /* =========================================
       ENLACES DENTRO DEL MENÚ MÓVIL
    ========================================= */

    .main-nav.mobile-open a {
        padding: 14px 4px;
        border-bottom: 1px solid #eeeeee;
    }


    /* El último enlace no lleva línea inferior */
    .main-nav.mobile-open a:last-child {
        border-bottom: 0;
    }


    /* En móvil se elimina el efecto de línea
       verde utilizado en escritorio */
    .main-nav.mobile-open a::after {
        display: none;
    }


    /* =========================================
       MOSTRAR BOTÓN HAMBURGUESA
    ========================================= */

    .mobile-menu-btn {
        display: block;
    }
	
	/* =========================================
       SUBMENÚ DE CATEGORÍAS - TABLET Y MÓVIL

       En pantallas pequeñas las categorías
       dejan de depender del hover y se abren
       mediante toque con ayuda de JavaScript.
    ========================================= */

    .nav-categories {
        width: 100%;
    }


    /* =========================================
       ENLACE PRINCIPAL "CATEGORÍAS"
    ========================================= */

    .nav-categories-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* =========================================
       SUBMENÚ PRINCIPAL DE CATEGORÍAS

       En móvil permanece oculto hasta que
       JavaScript agrega la clase:
       mobile-categories-open
    ========================================= */

    .nav-categories > .categories-dropdown {
        display: none;

        position: static;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0 0 0 14px;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        background: #f8f8f8;

        opacity: 1;
        visibility: visible;

        transform: none;
    }


    /* =========================================
       MOSTRAR CATEGORÍAS EN MÓVIL
    ========================================= */

    .nav-categories.mobile-categories-open
    > .categories-dropdown {

        display: block;
    }


    /* =========================================
       ELEMENTOS DEL SUBMENÚ
    ========================================= */

    .category-menu-item {
        width: 100%;
    }


    /* =========================================
       ENLACES DE CATEGORÍAS EN MÓVIL
    ========================================= */

    .main-nav.mobile-open
    .category-menu-item > a {

        width: 100%;

        padding: 12px 12px;

        border-bottom: 1px solid #eeeeee;

        background: transparent;

        font-size: 14px;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* =========================================
       SUBCATEGORÍAS EN MÓVIL

       Permanecen ocultas hasta que JavaScript
       agrega la clase mobile-submenu-open.
    ========================================= */

    .category-menu-item
    > .categories-dropdown {

        display: none;

        position: static;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0 0 0 18px;

        border: 0;

        box-shadow: none;

        background: #f2f2f2;

        opacity: 1;
        visibility: visible;

        transform: none;
    }


    /* =========================================
       MOSTRAR SUBCATEGORÍAS
    ========================================= */

    .category-menu-item.mobile-submenu-open
    > .categories-dropdown {

        display: block;
    }


    /* =========================================
       FLECHAS DEL MENÚ MÓVIL
    ========================================= */

    .category-menu-arrow,
    .nav-categories-link > i {

        transition: transform .20s ease;
    }


    /* Flecha de Categorías al abrir */
    .nav-categories.mobile-categories-open
    > .nav-categories-link > i {

        transform: rotate(180deg);
    }


    /* Flecha de subcategorías al abrir */
    .category-menu-item.mobile-submenu-open
    > a > .category-menu-arrow {

        transform: rotate(90deg);
    }

    .search-form {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
	
	.brands-carousel.has-carousel .brand-card {
        flex: 0 0 calc((100% - 36px) / 3);
    }
	
	.brands-carousel.has-carousel .brand-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }
	
	.brand-item {
        border-bottom: 1px solid #e3e3e3;
    }

    /* =========================================
       PÁGINA CONTACTOS - TABLET
    ========================================= */

    .contacts-hero {
        padding: 55px 0;
    }

    .contacts-content {
        padding: 65px 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contacts-info-column {
        padding: 30px;
    }

}


@media (max-width: 760px) {

    .container {
        width: min(100% - 26px, 1180px);
    }

    .topbar {
        display: block;
    }

    .topbar-content {
        min-height: 34px;
    }

    .topbar-left {
        width: 100%;
        gap: 18px;
        justify-content: center;
    }

    .topbar-left .topbar-contact-link:first-child {
        display: none;
    }

    .topbar-right {
        display: none;
    }

    .topbar-contact-link {
        font-size: 12px;
        white-space: nowrap;
    }

    .header-content {
        min-height: 72px;
    }

    .logo {
        max-width: 60%;
    }

    .header-whatsapp {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-section {
        margin-top: -35px;
    }

    .search-box {
        padding: 22px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .btn-search {
        height: 52px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .category-grid,
    .machinery-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {

        grid-template-columns: repeat(2, 1fr);
    }
	
	.brands-carousel.has-carousel .brand-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }

    .brands-prev {
        left: -4px;
    }

    .brands-next {
        right: -4px;
    }
	
	.brands-carousel.has-carousel .brand-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .brands-prev {
        left: -10px;
    }

    .brands-next {
        right: -10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        height: 350px;
    }

    .contact-box {
        flex-direction: column;
        align-items: flex-start;
    }
	
	.footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* =========================================
       PÁGINA CONTACTOS - MÓVIL
    ========================================= */

    .contacts-hero {
        padding: 42px 0;
    }

    .contacts-hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .contacts-hero p {
        margin-top: 14px;
        font-size: 15px;
    }

    .contacts-content {
        padding: 55px 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contacts-form-column h2,
    .contacts-info-column h2 {
        font-size: 28px;
    }

    .contacts-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contacts-info-column {
        padding: 26px;
    }

    .contacts-map iframe {
        height: 350px !important;
    }

}


@media (max-width: 520px) {

    .brands-grid {
        grid-template-columns: 1fr;
    }
	
	.brands-carousel.has-carousel .brand-card {
        flex: 0 0 100%;
    }
	
	.brands-carousel.has-carousel .brand-card {
        flex: 0 0 100%;
    }

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

}

/* =========================================
   ICONOS DE CONTACTO DEL FOOTER
========================================= */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-column .footer-contact-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: rgba(255,255,255,.08);
    color: #93ab20;
    border-radius: 4px;
    line-height: 1;
}

.footer-column .footer-contact-icon i {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

/* =========================================
   REDES SOCIALES DEL FOOTER
   Efecto vertical:
   el icono verde sube y entra uno blanco.
========================================= */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: block;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.10);
    border-radius: 4px;
    text-decoration: none;
}

.footer-social-icons {
    position: absolute;
    inset: 0;
    display: block;
}

.footer-social-icons i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: transform .30s ease;
}

.footer-social-icons i::before {
    position: relative;
    top: -10px;
}

.footer-social-icons .social-icon-normal {
    top: 0;
    color: #93ab20;
    transform: translateY(0);
}

.footer-social-icons .social-icon-hover {
    top: 36px;
    color: #fff;
    transform: translateY(0);
}

.footer-social-link:hover .social-icon-normal {
    transform: translateY(-36px);
}

.footer-social-link:hover .social-icon-hover {
    transform: translateY(-36px);
}

/* =========================================
   PARTE INFERIOR DEL FOOTER
========================================= */
.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-design a {
    color: #93ab20;
    text-decoration: none;
    transition: .25s;
}

.footer-design a:hover {
    color: #fff;
}

/* =========================================
   CONTACTO EN BARRA SUPERIOR
========================================= */
.topbar-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.topbar-contact-link i {
    color: #93ab20;
    font-size: 13px;
}

.topbar-contact-link:hover {
    color: #93ab20;
}

/* =========================================
   REDES SOCIALES EN BARRA SUPERIOR
========================================= */
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-social-link {
    color: #93ab20;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.topbar-social-link i {
    font-size: 14px;
}

.topbar-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}