/******************************************************************
 * IMPORTACIÓN DE FUENTE INSTITUCIONAL: MONTSERRAT
 ******************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&display=swap');

/******************************************************************
 * DEFINICIÓN DE VARIABLES DE COLOR Y TIPOGRAFÍA INSTITUCIONAL
 ******************************************************************/
:root {
    /* Paleta Oficial */
    --azul-principal: #1E3AD4;
    --azul-oscuro: #0D1628;
    --naranja-acento: #E8700A;
    --blanco: #FFFFFF;
    --verde-certificacion: #38A845;

    /* Sobrescribimos las variables de Bootstrap */
    --bs-primary: #1E3AD4;
    --bs-dark: #0D1628;
    --bs-secondary: #E8700A;
}

/* Tipografía Base General */
body {
    font-family: 'Montserrat', sans-serif !important;
    color: #333333;
}

/* Encabezados y Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/******************************************************************
 * APLICACIÓN DE COLORES Y COMPONENTES GENERALES
 ******************************************************************/
/* Logo pequeño en la barra superior de contacto */
.logo-top-barra {
    max-height: 35px; /* Controla la altura para que encaje perfecto */
    width: auto;
    object-fit: contain;
    display: block;
}
/* Franja superior de contacto */
.franja-contacto-superior {
    background-color: var(--azul-principal) !important;
}

/* Botones Principales (CTA, Iconos destacados) */
.btn-primary,
.bg-primary {
    background-color: var(--azul-principal) !important;
    border-color: var(--azul-principal) !important;
}

/* Acentos, Bullets e Íconos Destacados en Naranja */
.text-primary,
.seccion-resumen-historia i.text-primary,
.seccion-resumen-historia .fa-check-square,
.tarjeta-ventaja .icono-ventaja i,
.indicativo-carrusel [data-bs-target].active {
    color: var(--naranja-acento) !important;
}

/* Separadores y Bordes de Énfasis */
.destacado-laboratorio,
.marco-imagen-nosotros::before {
    border-color: var(--naranja-acento) !important;
}
/******************************************************************
 * PIE DE PÁGINA / FOOTER
 ******************************************************************/
.pie-pagina-principal,
.bloque-derechos-autor {
    background-color: var(--azul-oscuro, #0D1628) !important;
}

.bloque-derechos-autor {
    background-color: #080e1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Color gris claro uniforme para textos, spans e íconos informativos */
.pie-pagina-principal,
.pie-pagina-principal p,
.pie-pagina-principal span,
.pie-pagina-principal div {
    color: #CCCCCC !important;
}

/* Enlaces del Footer */
.pie-pagina-principal .enlace-footer {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #CCCCCC !important;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s ease;
}

.pie-pagina-principal .enlace-footer::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--naranja-acento, #E8700A) !important;
    margin-right: 10px;
}

.pie-pagina-principal .enlace-footer:hover {
    color: var(--naranja-acento, #E8700A) !important;
    letter-spacing: 1px;
    text-decoration: none;
}

/* Bloque inferior de Copyright */
.bloque-derechos-autor,
.bloque-derechos-autor * {
    color: #A0AEC0 !important;
}

/*** Botón Flotante Volver Arriba (Translúcido) ***/
/* Botón Volver Arriba Flotante */
.btn-volver-arriba-fijo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--azul-principal, #1E3AD4);
    color: #ffffff !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Asegura que floté por encima de todo */
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-volver-arriba-fijo:hover {
    background-color: var(--naranja-acento, #E8700A);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(232, 112, 10, 0.5);
}

/* Desplazamiento suave para toda la página */
html {
    scroll-behavior: smooth;
}
/* Espaciados generales */
.mt-6 { margin-top: 5rem; }
.mb-6 { margin-bottom: 5rem; }
.pt-6 { padding-top: 5rem; }
.pb-6 { padding-bottom: 5rem; }

/*** Pantalla de Carga / Spinner ***/
#pantalla-cargando {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#pantalla-cargando.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Botones Generales ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-xl-square { width: 60px; height: 60px; }
.btn-xxl-square { width: 75px; height: 75px; }

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navegación y Menú ***/
.bloque-navegacion {
    top: -100px;
    transition: .5s;
}

/* Empuja todos los items hacia la derecha en pantallas grandes */
.bloque-navegacion .navbar .navbar-nav {
    margin-left: auto;
    align-items: center;
}

.bloque-navegacion .navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 25px 0;
    color: var(--bs-dark);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

.bloque-navegacion .navbar .navbar-nav .nav-link:hover,
.bloque-navegacion .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.bloque-navegacion .navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Estilo destacado para el botón Tienda Online */
.bloque-navegacion .navbar .navbar-nav .nav-link.boton-tienda {
    background-color: var(--azul-principal, #1E3AD4);
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* Hover del botón Tienda Online */
.bloque-navegacion .navbar .navbar-nav .nav-link.boton-tienda:hover {
    background-color: var(--naranja-acento, #E8700A);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/*** Carrusel y Portadas INDEX ***/
.seccion-portada .carousel-item {
    height: 60vh;
    min-height: 420px;
    max-height: 650px;
    position: relative;
    overflow: hidden;
}

.seccion-portada .carousel-item img.w-100 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Texto alineado a la izquierda */
.seccion-portada .texto-carrusel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

/* Ubicación absoluta con EFECTO GLASSMORPHISM / TRANSLÚCIDO para los logos */
.contenedor-logos-centrados {
    position: absolute;
    top: 45%;
    left: 48%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
    background: transparent; /* Sin caja de fondo */
    padding: 0;
    border: none;
    box-shadow: none;
}

.logo-flotante {
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}
/* Indicadores del carrusel con caja de vidrio translúcido */
.seccion-portada .indicativo-carrusel {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0 0 0 3rem;
    z-index: 3;
    background: transparent !important; /* Sacamos la plaqueta oscura */
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.seccion-portada .indicativo-carrusel [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.seccion-portada .indicativo-carrusel [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.encabezado-pagina-interna {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}


/*** Barra Flotante de Redes Sociales (Derecha) ***/

.barra-redes-flotante {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1000;

    /* Fondo rectangular translúcido gris oscuro elegante */
    background: rgba(13, 22, 40, 0.15) !important; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 10px;
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 4px 15px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
}

.icono-flotante {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Colores propios de cada red social */
.icono-flotante.whatsapp {
    background-color: rgba(44, 151, 71, 0.55) !important;
}

.icono-flotante.facebook {
    background-color: rgba(24, 119, 242, 0.55) !important;
}

.icono-flotante.instagram {
    background: rgba(223, 130, 24, 0.55) !important;
}

/* Hover de ampliación suave */
.icono-flotante:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/*** Sección Nosotros y Marcos de Fotos ***/
.marco-imagen-nosotros {
    position: relative;
    padding-left: 45px;
}

.marco-imagen-nosotros::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    animation: animacionArribaAbajo 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animacionArribaAbajo { 
    0%, 100% { top: -25px; }
    50% { top: -45px; }
}

/* Alinemento y justificación del texto */
.seccion-resumen-historia h1,
.seccion-resumen-historia h4,
.seccion-resumen-historia h5,
.seccion-resumen-historia p {
    text-align: justify;
}

/*** Tarjetas de Ventajas ***/
.fila-ventajas {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.tarjeta-ventaja {
    border-color: rgba(0, 0, 0, .05) !important;
}

.icono-ventaja {
    position: relative;
    transition: .5s;
}

.tarjeta-ventaja:hover .icono-ventaja {
    margin-left: 2rem;
}/******************************************************************
 * BANNER ESTADÍSTICAS Y BARRAS DE PROGRESO
 ******************************************************************/
.banner-estadisticas {
    background: linear-gradient(to right, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0.9) 50%), url(../img/carousel-1.jpg) left center no-repeat;
    background-size: cover;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    overflow: hidden; /* El corte se hace en los bordes de la pantalla completa */
}

/* Permitir que la columna desborde hacia la izquierda sin recortar el título */
.banner-estadisticas .row,
.banner-estadisticas [class*="col-"] {
    overflow: visible !important;
}

/* Estilo y bordes finos para las cajas */
.caja-contador,
.caja-medidores {
    background-color: rgba(13, 22, 40, 0.6);
    border-radius: 6px;
}

.titulo-flotante {
    display: inline-block;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    animation: flotarGranIzquierda 8s ease-in-out infinite;
}

@keyframes flotarGranIzquierda {
    0% {
        opacity: 0;
        transform: translateX(120px);
    }
    15% {
        opacity: 1;
        transform: translateX(0);
    }
    85% {
        opacity: 1;
        transform: translateX(-600px);
    }
    100% {
        opacity: 0;
        transform: translateX(-750px);
    }
}

.subtitulo-gris {
    color: #CCCCCC !important;
    font-weight: 500;
    font-size: 1.15rem;
}

/* Barras de progreso */
.medidor-progreso .progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.medidor-progreso .progress .progress-bar {
    width: 0%; /* Ancho inicial desde cero */
    transition: width 2.5s ease-in-out;
}
/*** Tarjetas de Productos (Recuadro Azul Eliminado) ***/
.tarjeta-producto {
    position: relative;
    margin-top: 45px;
}

.interior-tarjeta-producto {
    position: relative;
    height: 100%;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

/* Se elimina por completo la capa de fondo azul que se asomaba al scrollear */
.interior-tarjeta-producto::before,
.interior-tarjeta-producto:hover::before {
    display: none !important;
}

.tarjeta-producto img {
    margin-top: -45px;
    padding-left: 45px;
}

.tarjeta-producto * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.tarjeta-producto:hover h5,
.tarjeta-producto:hover p {
    color: var(--bs-primary);
}

.tarjeta-producto:hover a {
    padding-left: 40px !important;
}
/*** Sección Comuníquese Ahora Mismo / Ventajas ***/

/* Ajustamos el título para achicar el margen arriba y tirarle la línea superior */
.titulo-contacto-directo {
    position: relative;
    margin-top: 1.5rem !important; /* Reducimos el espacio gigante de arriba */
    margin-bottom: 2rem !important;
    padding-top: 1.5rem; /* Espacio entre la línea y el texto */
    text-align: center;
}

/* Línea finita sutil arriba del título */
.titulo-contacto-directo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Ancho de la línea decorativa */
    height: 3px; /* Grosor fino */
    background-color: var(--naranja-acento, #E8700A); /* Línea naranja institucional */
    border-radius: 2px;
}
/*** Banner Compromiso ***/
.banner-compromiso {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-2.jpg) left center no-repeat;
    background-size: cover;
}

/*** Galería de Fotos y Cobertura ***/
.tarjeta-cobertura,
.tarjeta-foto-historia {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

/*** Sección Líneas de Productos ***/
.seccion-lineas-productos {
    background-color: #f8f9fa;
}

.card-linea-producto {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-linea-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 58, 212, 0.15);
}

.contenedor-imagen-linea {
    height: 190px;
    overflow: hidden;
    position: relative;
}

.contenedor-imagen-linea img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-linea-producto:hover .contenedor-imagen-linea img {
    transform: scale(1.08);
}

.cuerpo-card-linea {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

.cuerpo-card-linea h4 {
    font-size: 1.1rem;
    line-height: 1.3;
}
/* Tamaño controlado para el logo de Proindar dentro de la tarjeta */
.logo-proindar-card {
    max-height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-linea-producto:hover .logo-proindar-card {
    transform: scale(1.08);
}
.icono-sector i {
    color: var(--naranja-acento, #E8700A) !important;
}

/*** SECTION Banda Destacada PROINDAR (1500px) ***/
/*** Banda Destacada PROINDAR (1500px con imagen visible y Glow en Logo) ***/
.banda-proindar-destacada {
    padding: 0;
    display: flex;
    justify-content: center;
}

.contenedor-banda-proindar {
    width: 100%;
    max-width: 1500px;
    min-height: 280px;
    /* Imagen directa 100% visible sin ningún filtro u opacidad encima */
    background: url(../img/tamberia.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contenido-banda-proindar {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: 100%;
    z-index: 2;
}

/* Logo Proindar sin fondo blanco y con Glow/Resplandor */
.bloque-logo-banda {
    flex-shrink: 0;
    background: transparent !important; /* Sacamos el cuadro blanco */
    padding: 0;
    box-shadow: none;
}

.logo-banda-proindar {
    max-height: 95px; /* Logo más grande */
    width: auto;
    object-fit: contain;
    display: block;
    /* Resplandor luminoso blanco (Glow effect) alrededor del logo */
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.85)) drop-shadow(0px 0px 18px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-banda-proindar:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 1)) drop-shadow(0px 0px 22px rgba(255, 255, 255, 0.7));
}

/* Títulos flotantes a la derecha */
.bloque-titulos-banda {
    color: #ffffff;
}
.titulo-banda-principal {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8);
    animation: flotarSutil 4s ease-in-out infinite alternate;
}
.subtitulo-banda-secundario {
    color: var(--naranja-acento, #E8700A);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Movimiento flotante sutil */
@keyframes flotarSutil {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-4px);
    }
}
/******************************************************************
 * SECCIÓN BANNER TIENDA ONLINE ANIMADO (1500px)
 ******************************************************************/

.seccion-banner-tienda {
    padding: 0;
    display: flex;
    justify-content: center;
}

.contenedor-banner-tienda {
    width: 100%;
    max-width: 1500px;
    position: relative; /* FUNDAMENTAL: Ancla las capas hijas */
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background-color: var(--azul-principal, #1E3AD4);
}

.imagen-banner-base {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Capa contenedor ajustada 100% al marco del banner */
.capa-interactiva-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/******************************************************************
 * POSICIONAMIENTO DE TEXTOS
 ******************************************************************/

/* 1. COMPRÁ TODO! (Vuelve a su lugar arriba a la derecha) */
.frase-compra-todo {
    position: absolute;
    top: 15%;
    right: 20%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    color: #ffffff;
    font-size: calc(1.8rem + 1.4vw);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.85);
    background: transparent !important;
    animation: latidoTiempo1 3s ease-in-out infinite;
}

/* 2. ON LINE.!! (En la zona exacta del recuadro rojo) */
.frase-online-recta {
    position: absolute;
    top: 48%;
    right: 12%; /* Corregido más a la derecha para no tocar los bidones */
    font-weight: 900;
    font-style: normal !important;
    font-size: calc(2.2rem + 1.6vw);
    color: var(--naranja-acento, #E8700A);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.9);
    background: transparent !important;
    animation: latidoTiempo2 3s ease-in-out infinite;
}

/* 3. DOMINIO ABAJO */
.dominio-prominente-estirado {
    position: absolute;
    bottom: 8%;
    right: 8%;
    width: 55%;
    text-align: right;
    font-size: calc(1rem + 0.6vw);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95);
}

/******************************************************************
 * ANIMACIÓN LATIDO EN DOS TIEMPOS
 ******************************************************************/
@keyframes latidoTiempo1 {
    0%, 100% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.08);
        text-shadow: 2px 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(255,255,255,0.9);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes latidoTiempo2 {
    0%, 40%, 100% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.08);
        text-shadow: 3px 3px 15px rgba(0,0,0,0.9), 0 0 25px rgba(232,112,10,0.9);
    }
    80% {
        transform: scale(1);
    }
}

/******************************************************************
 * 2. CHANGUITO INTERACTIVO Y BOTÓN ENTRAR
 ******************************************************************/
.bloque-changuito-flotante {
    position: absolute;
    top: 12%;
    right: 6%;
    width: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.changuito-interactivo {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: vaivenChanguito 3s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes vaivenChanguito {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-2px) rotate(2deg); }
}

.btn-entrar-tienda-banner {
    pointer-events: auto;
    position: absolute;
    bottom: 24%;
    right: 5%;
    background: linear-gradient(135deg, #E8700A, #FF8C1A);
    color: #ffffff !important;
    font-weight: 800;
    font-size: calc(0.75rem + 0.35vw);
    padding: 6px 26px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-entrar-tienda-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
}

.btn-entrar-tienda-banner:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(232, 112, 10, 0.6);
}

.btn-entrar-tienda-banner:hover::before {
    animation: destelloBoton 0.8s ease;
}

@keyframes destelloBoton {
    100% { left: 125%; }
}

/******************************************************************
 * 3. DOMINIO PROMINENTE (HTTP://) Y MARQUESINA INFERIOR
 ******************************************************************/
.dominio-prominente-blanco {
    position: absolute;
    bottom: 11%;
    right: 15%;
    font-size: calc(1rem + 0.6vw);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.85);
}

.cinta-marquesina-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 22, 40, 0.65);
    backdrop-filter: blur(4px);
    overflow: hidden;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.marquesina-track {
    display: flex;
    width: 200%;
    animation: cintaSinFin 16s linear infinite;
}

.marquesina-track span {
    width: 50%;
    font-size: calc(0.85rem + 0.35vw);
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}

@keyframes cintaSinFin {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
/******************************************************************
 * AJUSTE DE ESPACIADO Y TÍTULO EN UNA SOLA LÍNEA (COBERTURA)
 ******************************************************************/

/* Reducimos el margen superior respecto a la banner de 50 años */
.seccion-cobertura {
    padding-top: 2rem !important; /* Reduce la separación con la banda superior */
    padding-bottom: 3rem !important;
}

/* Título forzado en una sola línea */
.titulo-cobertura-unica {
    font-size: calc(1.1rem + 0.8vw); /* Tamaño fluido que se adapta para no romperse */
    white-space: nowrap; /* Fuerza que quede en 1 sola línea */
    letter-spacing: 0.5px;
    margin-top: 0;
}

/* Adaptación responsive para celulares */
@media (max-width: 992px) {
    .titulo-cobertura-unica {
        white-space: normal; /* Permite salto solo en pantallas muy chicas si no entra */
        font-size: 1.3rem;
    }
}

/******************************************************************
 * MODAL TIENDA EN CONSTRUCCIÓN CON TEXTOS ANIMADOS
 ******************************************************************/
.contenedor-modal-construccion {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

.img-fondo-construccion {
    width: 100%;
    height: auto;
    display: block;
}

/* Capa de posicionamiento alineada en la zona del óvalo */
.capa-textos-construccion {
    position: absolute;
    top: 25%; /* Ajustado al área del óvalo central */
    left: 8%;
    right: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

/* Texto A: Estamos trabajando para terminar pronto nuestra tienda */
.texto-construccion-a {
    font-size: calc(0.95rem + 0.5vw);
    font-weight: 700;
    color: #2D3748;
    line-height: 1.25;
    opacity: 0;
    animation: animTextoEntrada 0.8s ease-out 0.2s forwards;
}

/* Texto B: ¡Muy pronto ya la podrás usar! */
.texto-construccion-b {
    font-size: calc(1.1rem + 0.6vw);
    font-weight: 900;
    color: var(--naranja-acento, #E8700A);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: animTextoEntrada 0.8s ease-out 0.6s forwards;
}

/* Animación Entrada FadeInUp */
@keyframes animTextoEntrada {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/******************************************************************
 * PAGINA QUIENES.HTML (HISTORIA + GALERÍA INFINITA)
 ******************************************************************/

/* Marco de la sección historia actual */
.marco-imagenes-historia {
    padding-left: 20px;
    padding-top: 20px;
}

.borde-naranja-decorativo {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 5px solid var(--naranja-acento, #E8700A);
    z-index: 1;
    border-radius: 8px;
}

/* MARQUESINA CONTINUA DE FOTOS ANTIGUAS (DERECHA A IZQUIERDA) */
.pista-marquesina-fotos {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.bloque-fotos-animado {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: marquesinaFotosInfinita 30s linear infinite;
}

/* Pausa suave al pasar el mouse sobre las fotos */
.pista-marquesina-fotos:hover .bloque-fotos-animado {
    animation-play-state: paused;
}
/******************************************************************
 * AJUSTES DE SIMETRÍA Y GALERÍA EN NARANJA (QUIENES.HTML)
 ******************************************************************/

/* Contenedor e Imagen de la sección superior para formar el bloque equilibrado */
.contenedor-foto-bloque {
    width: 100%;
    height: 100%;
    min-height: 380px; /* Asegura altura rectagular en sintonía con el texto */
}

.img-foto-equilibrada {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover; /* Recorta proporcionalmente la foto para no deformar */
    display: block;
}

/* Galería de Fotos en Fondo Naranja */
.foto-galeria-item {
    height: 190px;
    width: 260px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.foto-galeria-item:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    border-color: #0D1628; /* Resalta con el azul oscuro de la marca al pasar el mouse */
}

/* Animación de traslación fluida */
@keyframes marquesinaFotosInfinita {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Se desplaza la mitad para el empalme continuo */
    }
}

/******************************************************************
 * IR A ID# MARGEN DE DESPLAZAMIENTO PARA MENÚS ANCLA (OFFSET HEADER)
 ******************************************************************/
/* Para Tambo */
#tambo {
    scroll-margin-top: 400px;
}

/* Para Líneas de Productos (Aumentamos el offset para subida limpia) */
#lineas-productos {
    scroll-margin-top: 150px; /* Ajusta la frenada antes del padding */
}
/******************************************************************
 * ESTILOS PARA LA PÁGINA DE CONTACTO (CONTACTO.HTML)
 ******************************************************************/

/* Campos de entrada del formulario */
.campo-contacto {
    background-color: #F8F9FA;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.campo-contacto:focus {
    background-color: #FFFFFF;
    border-color: var(--naranja-acento, #E8700A);
    box-shadow: 0 0 0 0.2rem rgba(232, 112, 10, 0.15);
}

/* Botón de envío */
.btn-enviar-contacto {
    background-color: var(--naranja-acento, #E8700A) !important;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-enviar-contacto:hover {
    background-color: #C65C05 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 112, 10, 0.3);
}

/* Tarjetas informativas de contacto a la derecha */
.caja-info-contacto {
    transition: all 0.3s ease;
}

.caja-info-contacto:hover {
    transform: translateX(5px);
    border-color: var(--naranja-acento, #E8700A) !important;
}

.icono-contacto-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(232, 112, 10, 0.1) !important;
    color: var(--naranja-acento, #E8700A) !important;
}

/* Ajustes del mapa */
.mapa-contenedor iframe {
    filter: grayscale(10%) contrast(100%);
    display: block;
}/******************************************************************
 * MEDIA QUERIES RESPONSIVE CORREGIDAS Y UNIFICADAS
 ******************************************************************/

/* Bloqueo global de desborde horizontal */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* 1. TABLETS Y PANTALLAS MEDIANAS (max-width: 992px) */
@media (max-width: 992px) {
    /* Contenedores generales */
    section,
    .seccion-portada,
    .banner-estadisticas,
    .banda-proindar-destacada,
    .seccion-banner-tienda {
        background-size: cover !important;
        background-position: center center !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* Corrección de márgenes Bootstrap */
    .container, 
    .container-fluid, 
    .row {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Banda Proindar */
    .contenedor-banda-proindar {
        padding: 2.5rem 1.5rem !important;
    }

    .contenido-banda-proindar {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .logo-banda-proindar {
        max-height: 75px;
    }

    .titulo-banda-principal {
        font-size: 1.3rem;
    }

    .subtitulo-banda-secundario {
        font-size: 1rem;
    }

    /* Navegación */
    .bloque-navegacion .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }

    .bloque-navegacion .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .bloque-navegacion .navbar .navbar-nav .nav-link.boton-tienda {
        display: inline-block;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .contenedor-logos-centrados {
        left: 50%;
        top: 40%;
        padding: 20px 25px;
    }
    
    .logo-flotante {
        max-width: 150px;
    }
    
    .seccion-portada .texto-carrusel {
        padding-left: 2rem;
    }

    /* Animación flotante de título */
    @keyframes flotarGranIzquierda {
        0% { opacity: 0; transform: translateX(40px); }
        20% { opacity: 1; transform: translateX(0); }
        80% { opacity: 1; transform: translateX(-60px); }
        100% { opacity: 0; transform: translateX(-100px); }
    }
}

/* 2. CELULARES Y TABLETS EN MÓVIL (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. SECCIÓN VENTAJAS (BANDA LATERAL): SE REMUEVE EL FONDO TRANSLÚCIDO Y DEGRADADO */
    .seccion-ventajas {
        background: #FFFFFF !important;
        background-image: none !important;
        box-shadow: none !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .seccion-ventajas h1,
    .seccion-ventajas h2,
    .seccion-ventajas h3,
    .seccion-ventajas h4,
    .seccion-ventajas p {
        color: #212529 !important; /* Texto en color oscuro legible */
    }

    /* 2. AJUSTE DE CONTENEDORES Y FILAS DE BOOTSTRAP */
    section, 
    .container-fluid,
    .seccion-cobertura,
    .seccion-portada {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 3. REAJUSTE DE IMÁGENES Y CARDS */
    .seccion-cobertura img,
    .seccion-ventajas img,
    .card-body img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }

    /* 4. OTRAS IMÁGENES DE FONDO RESPONSIVAS */
    .seccion-portada,
    .seccion-cobertura,
    .banner-estadisticas,
    .banda-proindar-destacada,
    .seccion-banner-tienda {
        background-size: cover !important;
        background-position: center center !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Carrusel principal */
    .seccion-portada .carousel-item {
        height: auto !important;
        min-height: 300px !important;
    }

    .seccion-portada .texto-carrusel {
        padding-left: 1.5rem;
    }

    .contenedor-logos-centrados {
        left: 50%;
        top: 35%;
        padding: 12px 18px;
    }
    
    .logo-flotante {
        max-width: 110px;
    }

    /* Frases promocionales */
    .frase-compra-todo { top: 10%; right: 10%; }
    .frase-online-recta { top: 40%; right: 5%; }
    .dominio-prominente-estirado { bottom: 5%; right: 2%; width: 96%; letter-spacing: 0px; font-size: 0.8rem; }


    .barra-redes-flotante {
        position: fixed !important;
        bottom: 25px !important;
        right: 15px !important;
        top: auto !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        z-index: 9999 !important;
    }

    .barra-redes-flotante .icono-flotante {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
        margin: 0 !important;
    }

}

/* 3. PANTALLAS MUY PEQUEÑAS (max-width: 576px) */
@media (max-width: 576px) {
    .capa-textos-construccion {
        top: 20%;
    }
    .texto-construccion-a {
        font-size: 0.8rem;
    }
    .texto-construccion-b {
        font-size: 0.9rem;
    }
}