:root {
    --color-principal: #e62222;
    --color-oscuro: #1e252b;
    --color-claro: #f4f6f7;
    --color-texto: #333333;
    --blanco: #ffffff;
}

/* ==========================================
   RESET BÁSICO Y UTILITIES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--color-texto);
    background-image: linear-gradient(rgba(30, 37, 43, 0.2), rgba(30, 37, 43, 0.2)), url(../assets/diamond\ plate\ gray.png);
    background-size: 500px;
    background-position: center;
    background-color: var(--blanco);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.container-marcas {
    max-width: 1200px;
    max-height: 300px;
    margin: 0 auto;
    padding: 10px 20px;
}

.separador {
    width: 60px;
    height: 4px;
    background-color: var(--color-principal);
    border: none;
    margin: 15px 0 25px 0;
}

.titulo-centrado {
    text-align: center;
}

.titulo-centrado+.separador {
    margin: 15px auto 40px auto;
}

.placeholder-img {
    background-color: transparent;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #999;
}

.placeholder-img img {
    height: 100%;
    object-fit: contain;
}

/* ==========================================
   BOTONES GENERALES
   ========================================== */
.btn-main,
.btn-nav,
.btn-card {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-principal);
    color: var(--blanco);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-main:hover,
.btn-nav:hover,
.btn-card:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.btn-card {
    width: 100%;
    text-align: center;
    background-color: transparent;
    border: 2px solid var(--color-principal);
    color: var(--color-principal);
}

.btn-card:hover {
    background-color: var(--color-principal);
    color: var(--blanco);
}

/* ==========================================
   HEADER Y NAVEGACIÓN COMPLETA
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: linear-gradient(rgba(30, 37, 43, 0.1), rgba(117, 132, 145, 0.1)), url(../assets/diamond\ plate\ gray.png);
    background-color: #c2c2c2 !important;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease-in-out;
}

.header.scroll-oculto {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.header-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-contenedor {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
}

.logo {
    color: var(--blanco);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-principal);
}

.nav-menu a {
    color: #1e252d !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a i {
    color: #1e252d !important;
}

.nav-menu a:hover {
    color: var(--blanco);
}

header .nav-menu a.btn-nav,
.header-nav-container .btn-nav {
    background-color: var(--color-principal) !important;
    color: #ffffff !important;
}

header .nav-menu a.btn-nav:hover,
.header-nav-container .btn-nav:hover {
    background-color: #c51d1d !important;
    color: #ffffff !important;
}

.header .btn-main {
    color: #ffffff !important;
}

/* ==========================================
   MENÚS DESPLEGABLES (DROPDOWNS)
   ========================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-menu {
    background-color: #ffffff !important;
    min-width: 200px;
    border-radius: 4px;
    padding: 10px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu a {
    color: #1e252d !important;
    display: block;
    padding: 10px 20px !important;
    margin: 0 !important;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f8fafc !important;
    color: var(--color-principal) !important;
}

/* ==========================================
   BOTÓN HAMBURGUESA
   ========================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburguesa {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburguesa span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-oscuro);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: left center;
}

.nav-toggle.abierto .hamburguesa span:nth-child(1) {
    transform: rotate(39deg);
}

.nav-toggle.abierto .hamburguesa span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.abierto .hamburguesa span:nth-child(3) {
    transform: rotate(-39deg);
}

/* ==========================================
   SECCIONES HERO
   ========================================== */
.hero,
.hero-presupuesto {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    padding: 80px 20px 0 20px;
    background-color: #ffffff !important;
}

.hero {
    height: 70vh;
}

.hero-presupuesto {
    height: 50vh;
}

.hero-image {
    position: absolute;
    min-height: 250px !important;
    padding: 40px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-image h1 {
    font-size: 2.2rem !important;
    margin-bottom: 10px;
}

.hero-image p {
    font-size: 1rem !important;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero::before,
.hero-presupuesto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 37, 43, 0.68);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   NUEVAS BURBUJAS DE ADORNO / BENEFICIOS
   ========================================== */
.bubbles-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
}

.hero-content .bubbles-beneficio {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;

    width: 130px;
    height: 130px;
    border-radius: 50%;

    background-color: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--blanco);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s;
}

.hero-content .bubbles-beneficio:hover {
    transform: translateY(-5px);
    border-color: var(--color-principal);
}

.bubbles-beneficio i {
    font-size: 1.8rem;
    color: var(--blanco);
    margin-bottom: 8px;
}

.bubbles-beneficio span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ==========================================
   LAYOUT GENERAL Y SECCIONES
   ========================================== */
.layout-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nosotros-img img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.productos-section {
    position: relative;
    z-index: 5;
    padding-top: 60px;
    padding-bottom: 20px;
}

.productos-section .container {
    padding-top: 60px !important;
    padding-bottom: 20px !important;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.producto-card {
    background-color: transparent;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-info {
    padding: 25px;
}

.producto-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.producto-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ==========================================
   SECCIÓN SEGUIMIENTO / CONTACTO
   ========================================== */
.contacto-info ul {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contacto-info ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    width: max-content;
    text-align: left;
}

.contacto-info ul li i {
    color: var(--color-principal);
    margin-right: 12px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ==========================================
   GALERÍA DE OBRAS
   ========================================== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.obras-realizadas-item {
    display: flex;
    flex-direction: column;
    background-color: var(--blanco);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.obras-realizadas-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.obras-realizadas-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #eee;
}

.obras-realizadas-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.obras-realizadas-item:hover .obras-realizadas-img-box img {
    transform: scale(1.05);
}

.obras-realizadas-info-box {
    padding: 15px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: border-color 0.3s;
}

.obras-realizadas-item:hover .obras-realizadas-info-box {
    border-top-color: var(--color-principal);
}

.obras-realizadas-info-box h3 {
    font-size: 1.1rem;
    color: var(--color-oscuro);
    font-weight: 600;
}

/* ==========================================
   FORMULARIO DE PRESUPUESTOS
   ========================================== */
.form-presupuesto {
    max-width: 850px;
    margin: 0 auto;
    background-color: transparent;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 10 4px 20px rgba(0, 0, 0, 0.08);
}

.form-grupo-seccion {
    margin-bottom: 35px;
}

.form-grupo-seccion h3 {
    font-size: 1.3rem;
    color: var(--color-oscuro);
    border-bottom: 2px solid #eaeded;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-grupo-seccion h3 i {
    color: var(--color-principal);
    margin-right: 8px;
}

.grid-2-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.campo label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.form-presupuesto input[type="text"],
.form-presupuesto input[type="email"],
.form-presupuesto input[type="tel"],
.form-presupuesto input[type="number"],
.form-presupuesto select,
.form-presupuesto textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 1rem;
    color: var(--color-texto);
    background-color: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-presupuesto input:focus,
.form-presupuesto select:focus,
.form-presupuesto textarea:focus {
    border-color: var(--color-principal);
    box-shadow: 0 0 0 3px rgba(230, 34, 34, 0.1);
    background-color: var(--blanco);
}

.form-boton-contenedor {
    text-align: center;
    margin-top: 10px;
}

.btn-formulario-ancho {
    width: 100%;
    max-width: 350px;
    font-size: 1.1rem;
    padding: 14px;
}

/* ==========================================
   EFECTOS LIGHTBOX (MULTIMEDIA EN GRANDE)
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 37, 43, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.activo {
    display: flex;
    opacity: 1;
}

.lightbox-contenido {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
    object-fit: contain;
}

.lightbox.activo .lightbox-contenido {
    transform: scale(1);
}

.lightbox-cerrar {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--blanco);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.lightbox-cerrar:hover {
    color: var(--color-principal);
    transform: scale(1.1);
}

.lightbox-titulo {
    margin-top: 15px;
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.video-miniatura {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-video {
    display: none;
    max-width: 85%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    outline: none;
}

.lightbox.mostrando-video .lightbox-video {
    display: block;
}

.lightbox.mostrando-video #lightbox-img {
    display: none;
}

/* ==========================================
   SLIDESHOW ESTILIZADO - 2 COLUMNAS FIJAS
   ========================================== */
.container {
    width: 100%;
    padding: 20px;
    /* Ajusta el padding lateral según tu gusto */
}

/* El slideshow principal de las imágenes grandes */
.mySlides {
    display: none;
    /* Se maneja con JS */
    text-align: center;
    /* Por si alguna imagen tiene texto o alineación */
    transition: transform 0.5s ease;
}

/* -----------------------------------------------
   IMAGEN PRINCIPAL CON FLECHAS (LightBox)
   ----------------------------------------------- */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    /* Oculta contenido fuera del contenedor */
    border-radius: 10px;
    /* Opcional: esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Indica que se puede hacer clic */
}

/* La imagen grande dentro del contenedor */
.slideshow-container img {
    width: 100%;
    height: 660px;
    max-height: 80vh;
    /* Mantiene proporciones */
    display: block;
    object-fit: cover;
    /* Asegura que la imagen cubra todo el contenedor sin deformarse */
}

/* -----------------------------------------------
   FLECHAS PARA NAVEGAR ENTRE IMÁGENES
   ----------------------------------------------- */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    /* Centra verticalmente las flechas */
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.6s ease;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    /* Fondo semitransparente */
}

/* Posición de la flecha derecha */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
    /* Bordes redondeados a la izquierda */
}

/* Posición de la flecha izquierda */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
    /* Bordes redondeados a la derecha */
}

/* Efecto hover en las flechas */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo más oscuro al pasar el mouse */
}

/* Texto informativo (número de imagen y descripción) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente para el texto */
    border-radius: 0 0 10px 0;
    /* Bordes redondeados en la parte inferior derecha */
}

/* Contenedor para texto de pie de foto (si se usa) */
.caption-container {
    text-align: center;
    padding: 16px;
    background-color: #333;
    color: white;
    font-size: 16px;
}

/* -----------------------------------------------
   MINI-THUMBNAILS EN 2 COLUMNAS
   ----------------------------------------------- */
.row {
    display: flex;
    /* Usa Flexbox para crear el grid */
    flex-wrap: nowrap;
    /* Evita que los thumbnails pasen a la siguiente línea */
    justify-content: left;
    /* Alinea los thumbnails a la izquierda */
    margin-top: 15px;
    gap: 10px;
    /* Espacio entre las miniaturas */
    overflow-x: auto;
    /* Habilita el scroll horizontal si hay muchas miniaturas */
    padding-bottom: 10px;
}

/* Estilo de las miniaturas (la caja donde va la imagen) */
.column {
    flex: 0 0 auto;
    /* Evita que los thumbnails se expandan */
    width: calc((100% - 50px) / 11);
    /* 6 columnas con espaciado */
    max-width: 120px;
    /* Ancho máximo opcional */
    box-sizing: border-box;
}

/* La miniatura en sí */
.demo {
    opacity: 0.6;
    width: 100%;
    height: 80px;
    /* Altura fija para todas las miniaturas */
    object-fit: cover;
    /* Recorta la imagen para que llene la caja */
    object-position: center;
    /* Centra la imagen dentro de la caja */
    border-radius: 5px;
    /* Bordes redondeados */
    display: block;
    transition: all 0.3s ease;
}

/* Miniatura activa (la que coincide con la imagen grande) */
.active,
.demo:hover {
    opacity: 1;
    border: 2px solid #2196F3;
    /* Borde azul para indicar selección */
}

/* -----------------------------------------------
   RESPONSIVE - MÓVILES Y TABLETS
   ----------------------------------------------- */
@media screen and (max-width: 768px) {

    .column {
        width: calc((100% - 40px) / 4);
        /* 4 columnas en tablets */
        max-width: 90px;
        /* Miniaturas más pequeñas en móvil */
        height: 60px;
    }

    .prev,
    .next {
        font-size: 18px;
        padding: 14px;
    }

    .caption-container {
        font-size: 14px;
        padding: 10px;
    }

    .numbertext {
        font-size: 10px;
        padding: 6px 10px;
    }
}

* {
    box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
    position: relative;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* Container for image text */
.caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Six columns side by side */
.column {
    float: left;
    width: 16.66%;
}

.demo {
    opacity: 0.6;
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease-in-out;
}

.active,
.demo:hover {
    opacity: 1;
}

/* ==========================================
   REDES SOCIALES Y BOTONES FLOTANTES
   ========================================== */
.wsp-float,
.ig-float,
.linkedin-float {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 15px;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.wsp-float:hover,
.ig-float:hover,
.linkedin-float:hover {
    transform: scale(1.1);
}

.wsp-float {
    bottom: 30px;
    background-color: #25d366;
}

.ig-float {
    bottom: 100px;
    background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
}

.linkedin-float {
    bottom: 170px;
    background: linear-gradient(135deg, #0077b5 0%, #004b7c 100%);
}

/* ==========================================
   ELEMENTOS DEL FOOTER
   ========================================== */
footer {
    background-color: var(--color-oscuro);
    color: #78909c;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
    border-top: 1px solid #2c373e;
}

/* ==========================================
   CARRUSEL DE MARCAS / CLIENTES
   ========================================== */
.marcas-section {
    padding: 40px 0;
    background-color: rgba(30, 37, 43, 0.2);
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
}

.marcas-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marcas-track {
    display: flex;
    width: max-content;
    gap: 60px;
    animation: scrollMarcas 50s linear infinite;
}

.marcas-track:hover {
    animation-play-state: paused;
}

.marca-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 70px;
    padding: 0 20px;
    flex-shrink: 0;
}

.marca-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.marca-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@keyframes scrollMarcas {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marcas-section {
        padding: 25px 0;
    }

    .marca-logo {
        width: 110px;
        height: 45px;
    }

    .marcas-track {
        gap: 35px;
    }
}


/* ==========================================
   MEDIA QUERIES (TABLETS Y PC MEDIANA)
   ========================================== */
@media (max-width: 992px) {
    .layout-2-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        padding: 0;
        box-shadow: none;
    }

    .nav-menu a {
        margin: 0 0 0 20px;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    }

    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* ==========================================
   MEDIA QUERIES EXCLUSIVAS PARA SMARTPHONES
   ========================================== */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .nav-toggle {
        display: block;
    }

    .menu-hamburguesa,
    .nav-toggle,
    .menu-icon {
        color: #1e252d !important;
    }

    .nosotros-img {
        width: 100%;
        padding: 0;
    }

    /* El contenedor del menú desplegable completo en celular */
    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff !important;
        padding: 25px 30px;
        gap: 18px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #f1f5f9;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
    }

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

    /* Enlaces del menú mobile */
    .nav-menu a {
        margin: 0 !important;
        padding: 8px 0;
        color: #1e252d !important;
        font-size: 1.15rem;
        font-weight: 600;
        border-bottom: 1px solid #f8fafc;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Botón de ubicación mobile */
    .nav-menu .btn-nav {
        margin-top: 10px;
        padding: 14px 20px;
        text-align: center;
        width: 100%;
        display: block;
        border-radius: 6px;
        font-size: 1.1rem;
        border-bottom: none !important;
    }

    .nav-item-dropdown {
        display: block;
        width: 100%;
    }

    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #f8fafc !important;
        padding: 10px 20px;
        margin-top: 8px;
        border-radius: 6px;
        display: none;
        border: none;
    }

    .nav-menu .dropdown-menu a {
        color: #475569 !important;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: none;
        padding: 6px 0;
    }

    .nav-item-dropdown.activo .dropdown-menu {
        display: block;
    }

    .nav-item-dropdown.activo .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Formulario e inputs a una columna */
    .grid-2-columnas,
    .grid-3-columnas {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-presupuesto {
        padding: 20px 15px;
    }

    /* Ajustes multimedia Lightbox mobile */
    .lightbox-cerrar {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }

    .lightbox-contenido {
        max-width: 95%;
    }

    /* Ajuste responsivo de burbujas */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .bubbles-container {
        gap: 15px;
    }

    .hero-content .bubbles-beneficio {
        width: 110px;
        height: 110px;
        padding: 10px;
    }

    .bubbles-beneficio i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .bubbles-beneficio span {
        font-size: 0.75rem;
    }
}

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

    .obras-realizadas-img-box {
        height: 200px;
    }
}