@font-face {
font-family: 'Nexa';
src: url('fonts/Nexa-ExtraLight.ttf') format('truetype');
font-weight: 200;
}
@font-face {
font-family: 'Nexa';
src: url('fonts/Nexa-Heavy.ttf') format('truetype');
font-weight: 800;
}
:root {
--primary-font: 'Nexa', 'Montserrat', sans-serif;
--white: #ffffff;
--glass: rgba(255, 255, 255, 0.15);
--VERDE1: #016d3c;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden; 
}
body {
font-family: var(--primary-font);
background: black url('fallback.jpg') center/cover no-repeat;
}
#bg-video {
position: fixed;
top: 50%;
left: 50%;
width: 100vw;
height: 100vh;
transform: translate(-50%, -50%);
object-fit: cover;
z-index: 0 !important;
background: black;
}
.video-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0);
z-index: 1;
pointer-events: none;
transition: background .5s ease;
}
.video-overlay.dark{
background: rgba(0,0,0,0.2);
}
.main-layout {
height: 100dvh; 
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 60px 80px;
position: relative;
z-index: 3;
overflow: hidden;
}
header {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
position: relative;
z-index:800;
}
.menu-toggle {
display: none;
position: absolute;
top: 0px;
left: 0px;
font-size: 28px;
background: none;
border: none;
color: white;
z-index: 700;
cursor: pointer;
}
/* Contenedor del logo */
.logo a {
    position: relative;
    display: inline-block;
    overflow: hidden; 
    line-height: 0;
    transition: transform 0.3s ease; /* Transición suave para el crecimiento */
}

.logo img {
    height: 55px;
    display: block;
    position: relative;
    z-index: 2;
}

/* Efecto de crecimiento sutil al pasar el mouse */
.logo a:hover {
    transform: scale(1.1); /* Crece un 5% */
}

/* El haz de luz (Brillo) */
/*
.logo a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: 3;
}
*/
/* Disparo del brillo al hacer Hover */
/*
.logo a:hover::after {
    left: 150%;
}
*/
.nav-center-group {
display: flex;
align-items: center;
gap: 25px;
justify-self: center;
}


.logo_moviles {
    display: none;
}




/* Estado base: el círculo */
.search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--glass);
    border: 1px solid var(--white);
    border-radius: 40px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transición fluida */
    width: 48px; 
    height: 48px;
    overflow: hidden;
    cursor: pointer;
}

/* Expansión del contenedor en Desktop */
.search-container.active {
    width: 250px; /* Definimos el ancho total del contenedor expandido */
    padding-left: 5px;
    background: rgba(0, 0, 0, 0.4); /* Un poco más oscuro al abrir */
}

/* El input dentro del contenedor */
.search-container input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 0;
    opacity: 0;
    transition: 0.4s;
    font-family: var(--primary-font);
    flex-grow: 1; /* Permite que el input tome el espacio disponible */
}

.search-container.active input {
    width: 180px; /* Ancho del texto */
    opacity: 1;
    margin-left: 5px;
}
.search-container input::placeholder {
color: var(--white);
}
.search-container input::-webkit-input-placeholder { color: var(--white); }
.search-container input::-moz-placeholder { color: var(--white); }
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado horizontal */
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0; /* Aseguramos que no haya padding interno */
}

.search-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    /* ELIMINAR el transform: translateX(-14px) que tenías aquí */
    transform: none; 
}
.nav-menu {
border: 1px solid white;
display: flex;
align-items: center;
background: var(--glass);
backdrop-filter: blur(10px);
border-radius: 40px;
padding: 0 35px;
gap: 30px;
height: 48px;
}
.nav-menu a {
color: var(--white);
text-decoration: none;
font-weight: 800;
}
.nav-menu a:hover{
cursor: pointer;
opacity: 0.7;
}
/* BOTÓN CIUDAD DH (idéntico al menú pero independiente) */
.city-btn-container {
    justify-self: end;
}

.city-btn {
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 0 35px;
    height: 48px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
}

.city-btn:hover {
    opacity: 0.7;
}
.hero-content {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
color: var(--white);
}
.title-large {
font-weight: 800;
font-size: clamp(3rem, 6vw + 2vh, 8rem);
line-height: 0.9;
margin-bottom: 30px;
}
.subtitle-box {
max-width: 650px;
}
.subtitle-text {
font-weight: 800;
font-size: clamp(1.1rem, 2vw, 1.6rem);
}
footer {
display: flex;
justify-content: space-between;
align-items: flex-end;
z-index: 900;
}
.social-bar {
display: flex;
gap: 20px;
}
.social-bar img {
width: 30px;
}
.assistant-trigger {
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
}
.assistant-label {
color: white;
font-weight: 800;
}
.assistant-circle {
width: 90px;
height: 90px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.assistant-circle img {
width: 100%;
height: 100%;
object-fit: contain;
}
.assistant-panel {
position: fixed;
top: 0;
right: -400px;
width: 360px;
height: 100dvh;
max-height: 100dvh;
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(20px);
border-left: 1px solid rgba(255,255,255,0.6);
z-index: 2000;
display: flex;
flex-direction: column;
transition: right 0.4s ease;
}
.assistant-panel.active {
right: 0;
}
.assistant-overlay {
position: fixed;
inset: 0;
backdrop-filter: blur(6px);
background: rgba(0,0,0,0.4);
opacity: 0;
pointer-events: none;
transition: 0.3s;
z-index: 1999;
}
.assistant-overlay.active {
opacity: 1;
pointer-events: all;
}
.assistant-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
color: white;
font-weight: 800;
font-size:1.2em;
border-bottom: 1px solid rgba(255,255,255,0.2);
}
.assistant-header img {
max-width: 150px;
width: 100%;
height: auto;
display: block;
}
.assistant-body {
flex: 1;
display: flex;
flex-direction: column;
padding: 20px;
color: white;
overflow-y: auto;
min-height: 0;
scroll-behavior: smooth;
}
.txt_emp{
text-align: center;
font-weight: 800;
}
.chat {
display: flex;
flex-direction: column;
padding-top: 20px;
gap: 1.5em;
flex-grow: 1;
}
.bubble:last-child {
margin-bottom: 0;
}
#contentSections{
position: relative;
flex-grow: 1;
}
.section{
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: center;
opacity: 0;
transform: translateY(40px);
pointer-events: none;
visibility: hidden;
transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.section.active{
opacity: 1;
visibility: visible;
transform: translateY(0);
pointer-events: auto;
}
.mision-vision-container {
display: flex;
justify-content: center;
align-items: center;
gap: 2em;
width: 100%;
height: 100%;
}
.cuadrado-mvv {
width: 25%;
aspect-ratio: 1 / 1;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.4s ease;
}
.cuadrado-mvv img {
width: 80%;
height: 80%;
object-fit: contain;
}
.cuadrado-mvv:hover {
transform: scale(1.05);
}
.mvv-modal {
position: fixed;
inset: 0;
z-index: 10000;
background: rgba(0, 0, 0, 0.6);
display: none;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.4s ease;
}
.mvv-modal.active {
display: flex;
opacity: 1;
}
.mvv-modal-content {
width: 80%;
max-width: 900px;
height: 50vh;
background: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
position: relative;
padding: 40px;
}
.mvv-grid {
display: flex;
width: 100%;
height: 100%;
align-items: center;
}
.mvv-col-img { flex: 0 0 35%; text-align: center; }
.mvv-col-img img { max-width: 80%; filter: drop-shadow(0 0 10px white); }
.mvv-col-pleca { flex: 0 0 5%; text-align: center; }
.mvv-col-pleca img { height: 150px; width: auto; }
.mvv-col-text { 
flex: 0 0 60%; 
color: white; 
padding: 0 40px;
text-align: justify;
font-size: 1.3rem;
font-weight: 200;
}
.close-mvv {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
color: white;
font-size: 2rem;
cursor: pointer;
}
#mvv-text-content strong {
font-weight: 800 !important;
display: inline;
}
.nav-menu a, .mobile-menu a {
cursor: pointer;
user-select: none;
}
.bubble {
display: flex;
opacity: 0;
transform: translateY(10px);
animation: fadeIn 0.4s forwards;
}
.bubble.right {
justify-content: flex-end;
}
.product-red-overlay {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
z-index: 2;
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease, visibility 0.5s;
pointer-events: auto;
}
.product-red-overlay {
    transition: filter 0.5s ease, opacity 0.5s ease, visibility 0.5s !important;
}
.product-red-overlay.active {
opacity: 1;
visibility: visible;
}
.product-red-overlay.soluciones-style {
background-image: url("images/interiores.jpg");
background-position: left center;
background-size: cover;
}
.reticula{
height: 100%;
display:flex;
justify-content:center;
/*align-items:center;*/
align-items: flex-end;
gap:.6%;
}
.cuadrado{
width: 23%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 10px;
}
.cuadrado span {
color: var(--white);
font-size: 1.4rem;
font-weight: 700;
}
.soluciones-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%; max-width:1220px;
margin: 0 auto;
height: 100%;
}
.soluciones-grid {
display: flex;
width: 100%;
max-width: 1400px;
height: 35vh;
gap: 15px;
align-items: stretch;
}
.soluciones-col-1 {
flex: 0 0 3%;
background: url('images/pleca.png') center right/contain no-repeat;
}
.soluciones-col-2 {
flex: 0 0 37%;
display: flex;
flex-direction: column;
gap: 10px;
}
.selector-btn {
flex: 1;
color:rgba(0,0,0,1);
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 40px;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
}
.selector-btn:hover {
color: rgba(0,0,0,0.4);
padding-left: 50px;
}
.selector-btn span { font-size: 2.5rem; font-weight: 200; line-height: 1; }
.selector-btn strong { font-size: 3rem; font-weight: 800; }
.selector-btn.active {
color:rgba(0,0,0,.5);
}
.soluciones-col-3 {
    flex: 0 0 60%;
    background: rgba(255, 255, 255, 0.05); /* Fondo muy sutil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}
.soluciones-col-3.active {
    opacity: 1;
    transform: translateX(0);
    background: rgba(0, 0, 0, 0.2); /* Fondo oscuro para resaltar texto blanco */
    backdrop-filter: blur(25px) saturate(150%); /* Desenfoque tipo cristal */
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.inner-content {
display: flex;
width: 100%;
height: 100%;
}
.inner-img {
flex: 0 0 40%;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.inner-img img {
max-width: 90%;
max-height: 80%;
object-fit: contain;
filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
}
.inner-text {
flex: 0 0 60%;
display: flex;
align-items: center;
color: white;
padding-right: 40px;
}
.inner-text ul {
list-style: none;
font-size: clamp(1rem, 1.5vw, 1.4rem);
font-weight: 200;
line-height: 1.8;
}
.bubble img {
transition: transform 0.2s;
max-width: 150px;
width: 100%;
height: auto;
display: block;
}
.bubble img:hover {
transform: scale(1.05);
}
.assistant-input {
display: flex;
border-top: 1px solid rgba(255,255,255,0.2);
flex-shrink: 0;
position: sticky;
bottom: 0;
background: rgba(0,0,0,0.3);
}
.assistant-input input {
flex-grow: 1;
padding: 15px;
border: none;
background: transparent;
color: white;
outline: none;
width: 100%;
}
.assistant-input button {
padding: 15px;
border: none;
background: white;
cursor: pointer;
}
/* Busca la clase .mobile-menu original y reemplázala o edítala así: */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background: rgba(0,0,0,0.95);
    /* Reducimos el padding superior de 80px a 40px para ganar espacio */
    padding: 40px 20px; 
    display: flex;
    flex-direction: column;
    /* Reducimos el espacio entre botones de 25px a 10px */
    gap: 10px; 
    transition: left 0.4s ease;
    z-index: 300;
    /* IMPORTANTE: Agregamos scroll por si el celular es muy chico y el menú muy largo */
    overflow-y: auto; 
}

/* Busca la regla .mobile-menu a y cámbiala por esta: */
.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    /* Bajamos el tamaño de la letra de 18px a 15px o 14px */
    font-size: 15px; 
    /* Agregamos un poco de padding interno para que sea fácil de clickear pero sin ocupar mucho aire */
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Opcional: una línea sutil divisoria */
}
.mobile-menu.active {
left: 0;
}
.close-btn {
width: 30px;
height: 30px;
background: url('images/cerrar.png') center/contain no-repeat;
border: none;
cursor: pointer;
}
#pageContent {
transition: filter 0.4s ease, transform 0.4s ease;
}
#pageContent.blur {
filter: blur(8px) brightness(0.7);
transform: scale(1.02);
}
.assistant-label {
font-size: 1.2em;
}
.cuadrado img{
transition: transform .4s ease, filter .4s ease;
}
.cuadrado:hover img{
filter: drop-shadow(0 0 15px rgba(0,255,120,0.6));
transform: scale(1.15) rotate(3deg);
}
.cuadrado:hover {
cursor: pointer;
background: radial-gradient(circle, rgba(0,255,120,0.2) 0%, transparent 70%);
}
.product-red-overlay.blurred-green {
filter: blur(20px);
transform: scale(1.1);
transition: filter 0.8s ease, transform 0.8s ease;
}
.product-red-overlay.blurred-green::after {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 128, 0, 0.15);
mix-blend-mode: overlay;
pointer-events: none;
}
#productos{
background-image: url("images/reticula_textos.png");
background-repeat: no-repeat;
background-position: bottom center;
background-size: contain;
position: fixed;
z-index:5;
}
.productos-grid {
display: flex;
width: 100%;
height: 100%;
align-items: stretch;
}
.prod-col {
height: 100%;
display: block;
text-decoration: none;
background-repeat: no-repeat;
background-position: bottom center;
background-size: contain;
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
cursor: pointer;
}
.col-1 {
width: 30.65%;
background-image: url('images/reticula_1suds.png');
}
.col-2 {
width: 19.35%;
background-image: url('images/reticula_2conducion.png');
}
.col-3 {
width: 19.35%;
background-image: url('images/reticula_3urbanismo.png');
}
.col-4 {
width: 30.65%;
background-image: url('images/reticula_4rejillas.png');
}
.prod-col:hover {
transform: translateY(-15px) scale(1.02);
filter: drop-shadow(0 0 15px rgba(0, 255, 120, 0.8)) brightness(1.1);
}
.social-bar img {
transition: transform 0.3s ease, filter 0.3s ease;
cursor: pointer;
opacity: .6;
}
.social-bar img:hover {
opacity: 1;
transform: translateY(-5px) scale(1.1);
}
.btn-reset {
    background: #f0f0f0;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto; /* Esto lo empuja a la derecha */
    margin-right: 10px;
    color: #333;
    transition: background 0.3s;
}

.btn-reset:hover {
    background: #e0e0e0;
}


#bg-video.mvv-blur {
    filter: blur(12px) brightness(0.6);
    transform: scale(1.05);
    transition: 0.5s ease;
}
#videoOverlay.mvv-blur {
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.3); /* opcional para oscurecer */
}

/* SUBMENÚ */
.submenu-prod2 {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;

    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.submenu-prod2.active {
    opacity: 1;
    visibility: visible;
}

.submenu-content {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    min-width: 300px;
    position: relative;
}

.submenu-content h2 {
    margin-bottom: 20px;
    font-weight: 800;
}

.submenu-link {
    display: block;
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
}

.submenu-link:hover {
    background: rgba(0,255,120,0.2);
    transform: scale(1.05);
}

.close-submenu {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
}



.producto-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in;
}

.producto-card img {
    width: 100%;
    height: 150px; /* Altura fija para consistencia */
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
}

.producto-card h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.producto-card p {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #444;
    margin-bottom: 15px;
}

/* Botones de Ficha Técnica y Cotizar */
.producto-card a,
.producto-card button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 5px;
    border: none;
}

.producto-card a {
    background: #000;
    color: #fff;
}

.producto-card button {
    background: #00ff78; /* Verde para destacar la acción de cotizar */
    color: #000;
}

.producto-card a:hover, .producto-card button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}



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

.msg.bot, .producto-card {
    animation: fadeIn 0.4s ease forwards;
}



#preloader {
position: fixed;
inset: 0;
background: #000;
z-index: 9999;
display: flex;
flex-direction: column; 
justify-content: center;
align-items: center;
text-align: center;
transition: opacity 0.8s ease, visibility 0.8s;
}
.hourglass-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
}
.custom-loader {
width: 80px; 
height: auto;
margin-bottom: 30px;
display: block;
}
.loading-text {
color: white;
font-family: var(--primary-font);
font-weight: 200;
letter-spacing: 4px;
font-size: 0.75rem;
text-transform: uppercase;
margin: 0;
padding: 0;
}
#preloader.fade-out {
opacity: 0;
visibility: hidden;
}
.loader-outline {
stroke-opacity: 0.5;
}
.loader-fill {
animation: liquidFill 3s infinite ease-in-out;
}
@keyframes liquidFill {
0% {
clip-path: inset(100% 0 0 0);
}
50% {
clip-path: inset(0% 0 0 0);
}
100% {
clip-path: inset(0% 0 100% 0);
}
}
.loading-text {
color: white;
font-family: var(--primary-font);
font-weight: 200;
letter-spacing: 4px;
font-size: 0.7rem;
text-transform: uppercase;
animation: pulse 2s infinite;
text-align: center:
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}

.loading {
    opacity: 0.6;
    font-style: italic;
}




.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    /* Permite que los saltos de línea (\n) del PHP se vean en el HTML */
    white-space: pre-wrap; 
    /* Evita que links o palabras técnicas larguísimas estiren el chat */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.msg a {
    color: #00ff78; /* Verde DH Integral */
    text-decoration: underline;
    font-weight: 800;
    /* Si el link es MUY largo, lo obliga a romperse para no salirse de la burbuja */
    word-break: break-all; 
    display: inline; 
}

.msg.user {
    align-self: flex-end;
    background: rgba(255,255,255,0.1); /* Un gris cristalino para el usuario */
    margin-bottom: 10px;
}

.msg.bot {
    align-self: flex-start;
    background: #333333;
    margin-bottom: 10px;
    border-bottom-left-radius: 2px; /* Efecto colita de burbuja */
}
.mvv-text-mobile {
    display: none;
}


#bg-video, header, footer, .logo_moviles, .soluciones-col-2 {
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* El rectángulo de contenido en Desktop */


/* Ajuste específico para que el icono brille dentro del rectángulo */
#solIcon {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    transition: transform 0.5s ease;
}

.soluciones-col-3.active #solIcon {
    transform: scale(1.05);
}
#bg-video {
    transition: filter 0.5s ease, transform 0.5s ease !important;
}
.dropdown-catalogos {
    position: relative;
    display: inline-block;
}

/* El contenedor que baja del menú */
.dropdown-content-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 10px; /* Separación sutil del menú principal */
    z-index: 1000;
}

.dropdown-catalogos:hover .dropdown-content-wrapper {
    display: block;
}

/* La lista principal: Ahora con estilo Glass */
.main-cat-list {
    background: var(--glass); /* Usamos tu variable de transparencia */
    backdrop-filter: blur(10px); /* El mismo desenfoque del menú */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid white; /* Borde blanco igual al menú */
    border-radius: 8px; /* Bordes redondeados consistentes */
    list-style: none;
    padding: 10px 0;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.main-cat-list li {
    padding: 12px 25px;
    color: white;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* Efecto hover sobre los items */
.main-cat-list li:hover {
    background: rgba(255, 255, 255, 0.5); /* Un brillo blanco sutil */
    background-color: var(--VERDE1);
    padding-left: 30px; /* Un pequeño empuje visual */
}

/* Quitamos el borde por defecto de los links dentro de la lista */
.main-cat-list li a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    border: none !important;
}

.main-cat-list li.has-submenu {
    position: relative; /* ¡Esto es lo que faltaba para que no se suban al tope! */
}

/* 2. Ajustamos el submenú para que su 'top: 0' se alinee exactamente con su fila */
.side-submenu {
    display: none;
    position: absolute;
    left: 100%;  /* Pegado al borde derecho */
    top: 0;      /* Nace exactamente a la misma altura de la palabra TUBERÍA o SUDS */
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid white;
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 3. El puente invisible que ya teníamos (mantenlo igual) */
.side-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: transparent;
}

.has-submenu:hover .side-submenu {
    display: block;
}


/* Ajuste para la flechita */
.arrow {
    font-size: 14px;
    font-weight: 200;
    margin-left: 10px;
    transition: transform 0.3s ease;
}


.has-submenu:hover .arrow {
    transform: translateX(5px);
    color: #ffffff; /* Color verde DH al hacer hover */
}


#solList li a {
    color: inherit;
    text-decoration: none;
    display: block;
}

#solList li a:hover {
    text-decoration: underline; /* opcional */
}


@media screen and (min-width: 999px) and (max-width: 1199px) {
.main-layout {
padding: 20px 30px;
}
.title-large {
font-size: 2.6em;
}
.logo img {
height: 40px;
}
.soluciones-grid.content-open .soluciones-col-2 {
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    /* Estilo para el botón seleccionado en escritorio */
    .selector-btn.active {
        color: rgba(255, 255, 255, 0.8);
        transform: scale(1.02);
    }
}

@media (max-width: 998px), (max-height: 450px) {
#contentSections{
        padding: 0 12px;
    }

    .section{
        inset: 0 12px;
    }
.logo_moviles {
        display: flex;
        position: fixed;
        top: calc(15px + env(safe-area-inset-top)); 
        right: 15px;
        height: 30px;
        width: auto;
        z-index: 9;
        pointer-events: auto;
    }

    .logo_moviles a {
        display: block;
        height: 100%;
    }

    .logo_moviles img {
        height: 100%;
        width: auto;
        display: block;
        object-fit: contain;
    }

.selector-btn span {
font-size: 1.3rem;
}
.selector-btn strong {
font-size: 2rem;
}
.main-layout {
padding: 4px;
}
header {
grid-template-columns: 1fr;
justify-items: center;
}
.city-btn-container {
    display: none;
}
.menu-toggle {
display: block;
}
header .logo:last-child {
display: none;
}
.nav-menu {
display: none;
}
.nav-center-group {
flex-direction: column;
gap: 15px;
margin-top: 10px;
}
.title-large {
text-align: center;
font-size: clamp(1.7rem, 8vw, 4rem);
}
footer {
flex-direction: column;
align-items: flex-start;
gap: 3px;
}
.social-bar {
justify-content: flex-start;
gap: 3px;
}
.assistant-trigger {
position: fixed;
bottom: 15px;
right: 15px;
left: auto;
z-index: 600;
}
.assistant-circle {
width: 50px;
height: 50px;
}
.assistant-panel {
border-left: none;
width: 100%;
right: -100%;
}
.logo img {
height: 35px;
}
header {
grid-template-columns: 1fr;
position: relative;
}
.nav-center-group {
position: absolute;
top: 0;
right: 0;
margin-top: 0;
flex-direction: row;
}
.search-container.active {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw !important; /* Forzamos el ancho en móvil */
        max-width: 400px;
        z-index: 2000;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: flex-start;
        padding-left: 10px;
    }

    .search-container.active input {
        width: 100% !important; /* Que el input llene el 90vw */
        opacity: 1;
    }
.search-container {
        justify-content: center; /* Centra la lupa cuando el buscador está cerrado en móvil */
    }

    /* Evitar que el botón de la lupa se mueva raro en móvil */
    .search-btn img {
	transform: none !important;
        margin: 0 auto; /* Refuerzo de centrado */
    }
header .logo:first-of-type {
display: none;
}
.hero-content {
align-items: flex-start;
}
.title-large, .subtitle-box {
text-align: left;
}
.assistant-label {
display: none;
}
#productos {
        background-image: none !important;
        height: 100dvh; /* Forzamos a que la sección sea exactamente el alto de pantalla */
        overflow: hidden; /* Prohibimos el scroll */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .productos-grid {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        /* El "aire" se genera automáticamente por el espacio sobrante de los 18vh */
        gap: 0; 
    }

.prod-col {
    position: relative;
    height: 18vh; 
    aspect-ratio: 1.75 / 1; 
    width: auto;
    background: none !important;
    /* PERMITIMOS que la imagen se salga de los bordes */
    overflow: visible; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -1px;
    z-index: 1;
}

/* Creamos la capa del fondo */
.prod-col::before {
    content: "";
    position: absolute;
    inset: 0; /* Ocupa todo el div */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, filter 0.4s ease;
    z-index: 1; /* Por debajo del marco */
}
.prod-col::after {
    content: "";
    position: absolute;
    inset: 0; /* Se ajusta exacto al tamaño del div */
    border: 1px solid white;
    pointer-events: none; /* Para que no bloquee los clics */
    z-index: 2; /* Siempre por encima de la imagen */
}

.col-1::before { background-image: url('images/reticula_1suds_mov.png'); }
.col-2::before { background-image: url('images/reticula_2conducion_mov.png'); }
.col-3::before { background-image: url('images/reticula_3urbanismo_mov.png'); }
.col-4::before { background-image: url('images/reticula_4rejillas_mov.png'); }

.prod-col:hover::before {
    transform: scale(1.15); /* La imagen crece y se sale del marco */
    filter: drop-shadow(0 0 20px rgba(0, 255, 120, 0.9)) brightness(1.2);
}

.prod-col:hover {
    transform: none !important; /* El div padre no se mueve */
    z-index: 10; /* Importante: que el que está en hover suba para que el brillo no quede debajo de los otros */
}

.mvv-col-text { 
font-size: 1rem !important;
padding: 0 20px;
}
.mvv-modal-content {
    border: none !important; /* Quitamos bordes */
    border-radius: 0px;
    height: auto;
    width: 95%;
    padding: 6px;
    /* Usamos 'background: none' para anular color e imágenes previas */
    background: transparent !important; 
    /* Quitamos el blur solo al cuadro si quieres que sea invisible */
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
}
#mvv-title-content {
        text-align: center;
        font-weight: 800; /* Super Bold */
        color: white;
        text-transform: uppercase;
        margin-bottom: 15px; /* Espacio con el texto de abajo */
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }
#mvv-text-content {
        text-align: left; /* Las listas suelen verse mejor alineadas a la izquierda */
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Clase específica para Misión y Visión */
    #mvv-text-content.text-centered {
        text-align: center !important;
        text-justify: none !important; /* Aseguramos que no haya rastro de justify */
    }
    
    #mvv-text-content {
        text-align: justify; /* El cuerpo se mantiene justificado */
    }



.mvv-modal {
        background: rgba(0, 0, 0, 0.2) !important; /* Mucho más transparente */
        backdrop-filter: blur(15px); /* Desenfoque directo sobre el fondo */
        -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
    }

.mvv-grid {
flex-direction: column;
}
.mvv-col-pleca {
display: none;
}
.mision-vision-container {
        flex-direction: column;
        gap: 20px; /* Espacio entre botones */
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    /* Transformamos el div en el botón solicitado */
    .mision-vision-container .cuadrado-mvv {
        width: 250px;       /* Ancho del botón */
        height: auto;      /* Que se ajuste al texto */
        aspect-ratio: auto; /* Quitamos el 1/1 de desktop */
        padding: 15px 0;
        background: rgba(0, 0, 0, 0.3); /* Negro con opacidad .5 */
        border: 1px solid white;        /* Delineado blanco */
        box-shadow: none; 
border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;              /* Sin sombra */
        transition: transform 0.2s;
    }

    /* Ocultamos la imagen en móvil */
    .mision-vision-container .cuadrado-mvv img {
        display: none;
    }

    /* Mostramos el texto como blanco y centrado */
    .mvv-text-mobile {
        display: block;
        color: white;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 1.2rem;
    }
.mvv-col-img img {
        max-width: 50% !important; 
        margin-bottom: 10px;
    }

    /* Suavizamos el fondo del modal para que el blur sea el protagonista */
    




.mobile-menu {
    z-index: 1500 !important; /* Lo subimos al nivel máximo */
}

/* 2. El Logo Móvil debe estar en medio */
.logo_moviles {
    display: flex;
    position: fixed;
    top: calc(15px + env(safe-area-inset-top)); 
    right: 15px;
    z-index: 1400 !important; /* Más alto que el header, pero más bajo que el menú */
    pointer-events: auto;
}

/* 3. El Header debe quedar por debajo del logo */
header {
    z-index: 1000 !important; /* Bajamos el header para que no tape el clic del logo */
}







.soluciones-container {
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .soluciones-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* Columna de botones iniciales */
    .soluciones-col-2 {
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: opacity 0.4s ease, filter 0.4s ease;
        z-index: 2;
    }

    /* OCULTAR BOTONES cuando el contenido está abierto */
    .soluciones-grid.content-open .soluciones-col-2 {
        opacity: 0 !important;
        filter: blur(15px) !important;
        pointer-events: none;
    }

    /* CONTENIDO DINÁMICO CENTRADO */
    #solucionesDynamicContent {
        display: none; /* Oculto por defecto */
        width: 90%;
        max-width: 400px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.1); /* Opcional: fondo glassmorphism */
        backdrop-filter: blur(5px);
        padding: 20px;
        border-radius: 15px;
        text-align: center;
    }

  #solucionesDynamicContent.active {
        display: flex !important;
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(0px) !important; /* El interior no se blurea */
        border: 1px solid rgba(255,255,255,0.2);
        z-index: 9999;
    }

    /* ALINEACIÓN: Icono Izquierda | Texto Derecha */
    .inner-content {
        display: flex;
        flex-direction: row; /* Alineación horizontal */
        align-items: center; /* Centrado vertical entre icono y lista */
        justify-content: center;
        gap: 10px; /* Espacio entre icono y texto */
        width: 100%;
    }

    .inner-img {
        flex: 0 0 auto; /* No se estira */
        padding:8px;
    }

    .inner-img img {
        width: 65px; /* Ajusta según el tamaño de tus iconos */
        height: auto;
    }

    .inner-text {
        flex: 0 1 auto; /* Se ajusta al contenido */
    }

    .inner-text ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left; /* Alineación del texto a la izquierda */
    }

    .inner-text ul li {
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 0.6rem; /* Tamaño adecuado para móvil */
        line-height: 1.5;
        margin-bottom: 5px;
        text-transform: none; /* O uppercase si lo prefieres */
    }

    /* OCULTAR BOTONES Y DESENFOCAR COLUMNA 2 */
    .soluciones-grid.content-open .soluciones-col-2 {
        opacity: 0 !important;
        filter: blur(15px) !important;
        pointer-events: none;
    }

    /* Forzamos que el video se desenfoque en móvil (truco de escala para evitar fugas de luz) */
    #bg-video {
        transition: filter 0.4s ease;
    }

    /* Transición suave para los filtros de JS */
    #bg-video, header, .logo_moviles {
        transition: filter 0.5s ease;
    }

    @keyframes fadeInCenter {
        from { opacity: 0; transform: translate(-50%, -45%); }
        to { opacity: 1; transform: translate(-50%, -50%); }
    }





.mobile-catalogos {
    width: 100%;
}

.mob-title {
    color: white;
    font-weight: 800;
    font-size: 15px;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mob-sub-links {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    background: rgba(255,255,255,0.05);
}

.mob-subtitle {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 5px;
}

.mob-sub-links a {
    font-size: 13px !important;
    font-weight: 200 !important;
    padding: 5px 0 !important;
    border: none !important;
}





.mob-sub-inner-links {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    padding-left: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03); /* Un fondo apenas visible para agrupar */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hacemos que el subtítulo parezca clickeable */
.mob-subtitle {
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.mob-subtitle:active {
    color: rgba(255, 255, 255, 0.5);
}






}
@media (max-height: 611px) {
  .title-large {
  	font-size: clamp(2rem, 4vw + 1vh, 3.5rem);
  }
}		




 


/* ==========================================================================
   EFECTO CINEMÁTICO BASE: DESENFOQUE GLOBAL SÓLO AL HACER HOVER EN CATÁLOGOS
   ========================================================================== */
@media screen and (min-width: 999px) {
    
    /* Transiciones suaves para los elementos involucrados (incluyendo el overlay de soluciones) */
    #bg-video, 
    .product-red-overlay,
    #contentSections, 
    footer, 
    header .logo, 
    header .city-btn-container {
        transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease !important;
    }

    /* 1. Desenfoca, oscurece y escala el video de fondo al abrir Catálogos */
    body:has(.dropdown-catalogos:hover) #bg-video {
        filter: blur(15px) brightness(0.6) !important;
        transform: translate(-50%, -50%) scale(1.08) !important;
    }

    /* 2. NUEVO: Desenfoca, oscurece y escala la imagen de fondo de Soluciones (interiores.jpg) */
    body:has(.dropdown-catalogos:hover) .product-red-overlay.soluciones-style {
        filter: blur(15px) brightness(0.6) !important;
        transform: scale(1.08) !important; /* Mismo escalado del video para ocultar halos semi-transparentes */
    }

    /* 3. Desenfoca el contenedor central de la página */
    body:has(.dropdown-catalogos:hover) #contentSections {
        filter: blur(10px);
        opacity: 0.2;
        pointer-events: none;
    }

    /* 4. Desenfoca el footer de la web */
    body:has(.dropdown-catalogos:hover) footer {
        filter: blur(10px);
        opacity: 0.2;
        pointer-events: none;
    }

    /* 5. Desenfoca el Logo y el botón Ciudad DH (Aislando por completo la navegación de catálogos) */
    body:has(.dropdown-catalogos:hover) header .logo,
    body:has(.dropdown-catalogos:hover) header .city-btn-container {
        filter: blur(6px);
        opacity: 0.3;
        pointer-events: none;
    }
}