/* RESET */

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

body{
font-family:Arial, Helvetica, sans-serif;
background:#f4f6f9;
color:#333;
line-height:1.6;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.scrolled nav {

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

}

header h1{
text-align:center;
}

/* MENU */

nav {
    position: relative;
    overflow: visible;

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

    height: 75px;
    padding: 0 30px;

    background: linear-gradient(
        to bottom,
        rgba(200, 210, 220, 0.95) 0%,   /* 🔵 gris más oscuro */
        rgba(220, 225, 230, 0.95) 60%,  /* transición */
        rgba(235, 238, 242, 0.85) 100%  /* 🌫️ más claro */
    );

    backdrop-filter: blur(6px);

    transition: all 0.3s ease;
}

/* LOGO */
.logo {
    position: relative;
    z-index: 2;
}

.logo img {
    height: 85px;
    transform: translateY(10px);

    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));

    transition: none; /* quita animación */
}

/* Barra de navegacion menu */

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Links */

nav ul li{
margin:0 15px;
}

nav ul li a {
    color: #0a3d62; /* 🔵 azul oscuro elegante */
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;

    transition: all 0.3s ease;
}

/* hover elegante */
nav ul li a:hover {
    color: #3fa9f5;
    transform: translateY(-1px);
}

/* SECCIONES */

section{
padding:60px 20px;
max-width:1200px;
margin:auto;
}

/* FOOTER */

footer{
background:#333;
color:white;
text-align:center;
padding:20px;
margin-top:40px;
}

/* TITULOS */

h1{
text-align:center;
margin:40px 0;
}

/* BUSCADOR */

.buscador{
text-align:center;
margin-bottom:20px;
position:relative;
}

#buscador{
width:300px;
padding:10px;
border:1px solid #ccc;
border-radius:5px;
}

/* SUGERENCIAS */

#sugerencias{
width:300px;
margin:auto;
background:white;
border:1px solid #ccc;
position:absolute;
left:0;
right:0;
z-index:10;
}

#sugerencias div{
padding:10px;
cursor:pointer;
}

#sugerencias div:hover{
background:#f0f0f0;
}

/* FILTROS */

select{
padding:10px;
margin:20px auto;
display:block;
border-radius:5px;
border:1px solid #ccc;
}

/* GRID PRODUCTOS */


.producto img{

width:100%;

height:200px;

object-fit:cover;

border-radius:5px;

margin-bottom:15px;

}

/* BOTONES */

.btn:hover{
background:#005fa3;
}

/* PAGINACION */

#paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}


#paginacion button {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#paginacion button:hover{

background:#f0f0f0;

}

/* PAGINA ACTIVA */

#paginacion button.active {
    background-color: #004a99; /* Ajusta al azul de tu logo */
    color: #fff;
    border-color: #004a99;
}

#paginacion button:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

#paginacion i {
    pointer-events: none; /* Evita interferencias con el click */
}

.paginacion-separador {
    padding: 0 5px;
    color: #888;
    font-weight: bold;
}

/* ===== CATALOGO PRODUCTOS ===== */

/* =========================
   BOTON CATALOGO PRO
========================= */

.btn-catalogo {
    display: inline-block;
    padding: 12px 28px;

    background: linear-gradient(135deg, #ffd600, #ffb300);
    color: #0a2a66;

    font-weight: 600;
    font-size: 0.95rem;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    text-decoration: none;

    transition: all 0.3s ease;
}

/* HOVER */
.btn-catalogo:hover {
    background: linear-gradient(135deg, #ffea00, #ffc107);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* CLICK */
.btn-catalogo:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
/*
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
padding:40px;
max-width:1200px;
margin:auto;
}*/

.grid {
    display: grid;
    /* Cambia 250px por 140px o similar */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px; /* Reduce un poco el espacio en móvil si es necesario */
    padding: 15px; /* Evita que el padding excesivo empuje las cartas afuera */
    width: 100%;
    box-sizing: border-box;
}

.producto img{
width:100%;
height:200px;
object-fit:cover;
border-radius:6px;
margin-bottom:10px;
}

.producto h3{
font-size:18px;
margin-bottom:10px;
}

.producto p{
font-size:14px;
margin-bottom:10px;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;
    border-radius: 8px;
    border: none;

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

    transition: all 0.3s ease;
}

/* ICONOS */
.btn i{
    font-size: 16px;
}

/* BUSCADOR */

.buscador{
text-align:center;
margin:20px 0;
position:relative;
}

/* SUGERENCIAS */

#sugerencias{
background:white;
border:1px solid #ccc;
width:300px;
margin:auto;
position:absolute;
left:0;
right:0;
z-index:100;
}

#sugerencias div{
padding:8px;
cursor:pointer;
}

#sugerencias div:hover{
background:#eee;
}

/* MODAL PRODUCTO */

/* MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);

    /* 🔥 CLAVE */
    overflow-y: auto;
    padding: 20px;
}

.modal-contenido {
    background: #fff;
    margin: auto;
    width: 95%;
    max-width: 1100px;

    /* 🔥 CONTROL DE ALTURA */
    max-height: 90vh;
    overflow: hidden;

    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

@keyframes fadeFondo{

from{
opacity:0;
}

to{
opacity:1;
}

}

@keyframes zoom{

from{
transform:scale(0.8);
opacity:0;
}

to{
transform:scale(1);
opacity:1;
}
}

/* layout principal */

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    /* 🔥 SCROLL INTERNO */
    overflow-y: auto;
    padding: 20px;
}

/* imagen producto */

.modal-imagen {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra la imagen, título y botones */
    padding: 20px;
    background-color: #fbfbfb; /* Un gris casi blanco para diferenciar */
    border-right: 1px solid #eee; /* Separa de la columna de info */
}

/* Estilos para la imagen misma */
#modalImagen {
    max-width: 100%;
    height: auto;
    max-height: 250px; /* Ajusta según prefieras */
    object-fit: contain;
    margin-bottom: 15px;
}

/* Estilos para el título y marca debajo de la imagen */
#modalNombre {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 5px;
}

#modalMarca {
    color: #666;
    margin-bottom: 20px; /* Espacio antes de los botones */
}

.modal-imagen img{
width:100%;
max-width:220px;
max-height:200px;
object-fit:contain;
margin:auto;
display:block;
}

.modal-info{
display:flex;
flex-direction:column;
}

.tabs{
list-style:none;
display:flex;
gap:20px;
margin-bottom:15px;
cursor:pointer;
font-weight:bold;
}

.tabs li{
padding-bottom:5px;
border-bottom:2px solid transparent;
}

.tabs li:hover{
border-bottom:2px solid #007BFF;
}

.tab-contenido{
max-height:250px;
overflow-y:auto;
padding-right:10px;
}

.tab{
display:none;
}

.tab-activo{
border-bottom:2px solid #007BFF;
}

.tabs button{
margin-right:10px;
}

.tabs button.active{

border-bottom:3px solid #0077cc;

color:#0077cc;

}

/*MODAL BOTONES*/
.modal-botones{
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.modal-botones button,
.modal-botones a {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-botones button:hover,
.modal-botones a:hover{

background:#0056b3;

}

/* CONTENIDO TAB */

.tab-contenido{

display:none;

padding:20px 0;

}

.tab-activo{

display:block;

}

.detalle-img{

width:100%;

max-height:300px;

object-fit:cover;

margin-bottom:20px;

border-radius:6px;

}

/* Diseño Tabla de cotización */
.tablaCotizacion table{

width:100%;
border-collapse:collapse;

}

.tablaCotizacion th,
.tablaCotizacion td{

padding:10px;
border-bottom:1px solid #ddd;
text-align:center;

}

/* BOTON COTIZAR */
#modalCotizar {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    border: none;
}

#modalCotizar:hover {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* 🟡 BOTON FICHA TECNICA */
#modalFicha {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

#modalFicha:hover {
    background: #ffeb3b;
    color: #000;
    border-color: #fbc02d;
    transform: translateY(-2px);
}

/* EFECTO CLICK */
.modal-botones button:active,
.modal-botones a:active {
    transform: scale(0.97);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .modal-botones {
        flex-direction: column;
    }}

.inputCantidad{

width:60px;
padding:5px;

}

.btnEliminar{

background:#d9534f;
color:white;
border:none;
padding:6px 10px;
cursor:pointer;

}

.accionesCotizacion{

margin-top:20px;
text-align:center;

}

/* CONTACTO */
.infoContacto{

display:flex;
gap:40px;
padding:40px;

}

.datosContacto{

flex:1;

}

.formularioContacto{

flex:1;

}
/*
.formularioContacto input,
.formularioContacto textarea{

width:100%;
padding:10px;
margin-bottom:10px;

}
*/
.formularioContacto button{

background:#1e88e5;
color:white;
border:none;
padding:12px;
cursor:pointer;

}

.mapa{

margin-top:40px;

}

/* DESCARGAS */
.filtrosDescargas{

display:flex;
gap:20px;
padding:20px;

}

.filtrosDescargas input,
.filtrosDescargas select{

padding:10px;
}

.listaDescargas{

padding:40px;

}

.documento{

border:1px solid #ddd;
padding:20px;
margin-bottom:20px;

}

.btnDescargar{

background:#1e88e5;
color:white;
padding:10px 15px;
text-decoration:none;
display:inline-block;

}

/* seccion contacto */
/* SECCION CONTACTO */

.contactoGrid{

display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
padding:40px;

}

.datosContacto p{

margin:8px 0;

}

.formularioContacto input {

width:100%;
padding:10px;
margin-bottom:10px;
border:1px solid #ccc;
border-radius:4px;

}

.formularioContacto textarea{

width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;    
    height: 150px;
    resize: none;

}



.formularioContacto button{

padding:10px 20px;
background:#0077cc;
color:white;
border:none;
cursor:pointer;
border-radius:4px;

}

.formularioContacto button:hover{

background:#005fa3;

}

.mapa iframe{

width:100%;
height:300px;
border:0;

}

/* RESPONSIVE */

@media(max-width:768px){

.contactoGrid{

grid-template-columns:1fr;

}}

/* GRID DE PRODUCTOS */

.gridProductos{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;

margin-top:40px;

}

.productoCard{

background:white;

border-radius:10px;

padding:20px;

text-align:center;

box-shadow:0 5px 15px rgba(0,0,0,0.08);

transition:all 0.3s ease;

}

.productoCard:hover{

transform:translateY(-8px);

box-shadow:0 10px 25px rgba(0,0,0,0.15);

}

.productoCard img{

width:100%;
height:200px;
object-fit:contain;

margin-bottom:15px;

}

.productoCard h3{

font-size:18px;
margin-bottom:10px;

}

.productoCard button{

background:#0f3d73;

color:white;

border:none;

padding:10px 20px;

border-radius:6px;

cursor:pointer;

}

.productoCard button:hover{

background:#0b2d55;

}

/* TARJETA PRODUCTO */

.producto{
    width: 100%; 
    min-width: 0; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.producto:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.producto img{

width:100%;
height:150px;
object-fit:contain;

}

.producto h3{

/* Si el título es muy largo, esto evita que deforme la tarjeta */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px; /* Ajusta el tamaño para móvil */

}

.producto p{

font-size:14px;

color:#555;

}

.btnDetalle{

display:inline-block;

margin-top:10px;

padding:8px 15px;

background:#0077cc;

color:white;

text-decoration:none;

}

/* RESPONSIVE */

@media(max-width:1200px){

.gridProductos{

grid-template-columns:repeat(4,1fr);

}}

@media(max-width:900px){

.gridProductos{

grid-template-columns:repeat(3,1fr);

}}

@media(max-width:600px){

.gridProductos{

grid-template-columns:repeat(2,1fr);

}}

/* Paginación */

.paginacion{

margin-top:40px;

text-align:center;

}

.paginacion button{

margin:5px;

padding:8px 12px;

border:none;

background:#eee;

cursor:pointer;

}

.paginacion button.activo{

background:#0077cc;

color:white;

}

/* BOTON WHATSAPP FLOTANTE 

.btnWhatsAppFlotante{

position:fixed;

bottom:25px;

right:25px;

width:60px;

height:60px;

background:#25D366;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

box-shadow:0 4px 10px rgba(0,0,0,0.3);

z-index:999;

transition:transform 0.3s;

}

.btnWhatsAppFlotante img{

width:35px;

height:35px;

}

.btnWhatsAppFlotante:hover{

transform:scale(1.1);

}*/

/* ESTILO PARA TARJETA DE PRODUCTO */

/* MODAL PRODUCTO */

.modalProducto{

display:none;
position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.7);

z-index:9999;

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

}

.modalContainer{

background:white;
width:85%;
max-width:1000px;
padding:30px;

border-radius:8px;

max-height:90%;
overflow:auto;

}

.cerrarModal{

float:right;
cursor:pointer;
font-size:22px;

}

/* HEADER */

.modalHeader{

margin-bottom:15px;

}

.modalHeader h2{

margin:0;

}

/* TABS */

.tabsProducto{

margin-bottom:20px;

}

.tabBtn{

padding:10px 18px;
border:none;
background:#eee;
cursor:pointer;
margin-right:5px;

}

.tabBtn.active{

background:#0077cc;
color:white;

}

/* TAB */

.tabContenido{

display:none;

}

.tabContenido.active{

display:block;

}

/* INFO PRODUCTO */

.productoInfo{

display:flex;
gap:30px;

}

.imagenProducto img{

width:300px;

}

/* PDF */

#visorPDF{

width:100%;
height:400px;
border:none;

}

/* RELACIONADOS */

.gridRelacionados{

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

margin-top:20px;

}

.gridRelacionados img{

width:100%;
cursor:pointer;

}

/* BOTON */

.btnDescargar{

display:inline-block;
margin-top:10px;

padding:10px 15px;

background:#0077cc;
color:white;
text-decoration:none;

}

/* =========================
PRODUCTOS RELACIONADOS
========================= */

.modalRelacionados {
    padding: 15px 20px;
    border-top: 1px solid #ddd;

    /* 🔥 QUE SIEMPRE SE VEAN */
    flex-shrink: 0;
}

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

/* tarjeta producto pequeño */

.productoRelacionado{
text-align:center;
cursor:pointer;
padding:6px;
border-radius:6px;
transition:0.2s;
}

.productoRelacionado:hover{
background:#f5f5f5;
transform:scale(1.05);
}

/* imagen pequeña */

.productoRelacionado img{
width:100%;
height:70px;
object-fit:contain;
}

/* nombre pequeño */

.productoRelacionado p{
font-size:12px;
margin-top:4px;
}

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

@media (max-width: 768px) {

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

.modal-contenido {
        max-height: 95vh;
    }
}

/* =========================
ANIMACION MODAL
========================= */

@keyframes abrirModal{
0%{
opacity:0;
transform:scale(0.9);
}

100%{
opacity:1;
transform:scale(1);
}
}

/* =========================
ZOOM IMAGEN PRODUCTO
========================= */

.zoom-container{
overflow:hidden;
border-radius:8px;
display:flex;
justify-content:center;
align-items:center;
}

.zoom-container img{
transition:transform 0.35s ease;
max-width:220px;
max-height:200px;
object-fit:contain;
}

.zoom-container:hover img{
transform:scale(1.6);
}

/* =========================
PASOS COTIZACION
========================= */

.pasosCotizacion{
display:flex;
align-items:center;
justify-content:center;
margin:30px 0;
}

.paso{
text-align:center;
width:120px;
}

.paso span{
display:inline-flex;
align-items:center;
justify-content:center;
width:35px;
height:35px;
border-radius:50%;
background:#ccc;
color:#fff;
font-weight:bold;
margin-bottom:5px;
}

.paso.activo span{
background:#0077cc;
}

.paso.completo span{
background:#28a745;
}

.lineaPaso{
flex:1;
height:3px;
background:#ccc;
margin:0 10px;
}

/* Estilo boton de datos */
.btnBorrarDatos{

background:#dc3545;
color:white;
border:none;
padding:8px 14px;
margin-top:8px;
cursor:pointer;
border-radius:4px;

}

.btnBorrarDatos:hover{

background:#b52a37;

}

/* Diseño de index */
/* CONTENEDOR GENERAL */

.contenedor{
max-width:1200px;
margin:auto;
padding:70px 20px;
}

/* SECCIONES */

.seccion-blanca{
background:white;
color:#333;
}

.seccion-celeste{
background:#e8f3ff;
color:#333;
}

.seccion-azul{
background:#0f3d73;
color:white;
}

/* HERO */

/* =========================
   HERO COMPACTO + REDONDEADO
========================= */

/* =========================
   HERO CON IMAGEN + OVERLAY AZUL
========================= */

.hero {
    position: relative;

    width: 95%;
    margin: 20px auto;

    padding: 50px 20px;
    min-height: 35vh;

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

    border-radius: 20px;
    overflow: hidden; /* 👈 importante para respetar bordes redondeados */

    background: url('../img/laboratorio-hero.jpg') center/cover no-repeat;
}

/* CAPA AZUL ENCIMA */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);

    background: rgba(10, 42, 102, 0.7); /* azul con transparencia */

    z-index: 1;
}

/* CONTENIDO POR ENCIMA */
.hero .contenedor {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white; /* importante para contraste */
}

/* tipografía más compacta */
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.hero h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.hero p {
    font-size: 0.95rem;
    margin-bottom: 18px;
}

/* =========================
   ANIMACIÓN HERO
========================= */

.hero h1,
.hero h2,
.hero p,
.hero .btn {
    opacity: 0;
    transform: translateY(40px);
}

/* cuando aparece */
.hero.visible h1,
.hero.visible h2,
.hero.visible p,
.hero.visible .btn {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* delays progresivos */
.hero.visible h2 {
    transition-delay: 0.2s;
}

.hero.visible p {
    transition-delay: 0.4s;
}

.hero.visible .btn {
    transition-delay: 0.6s;
}

/* BUSCADOR */

.buscador-home{
text-align:center;
}

.buscador-home input{
padding:12px;
width:100%;
max-width:450px;
border-radius:6px;
border:1px solid #ccc;
}

/* BOTONES */



/* Animar carta */
.animar{

opacity:0;

transform:translateY(40px);

transition:all 0.6s ease;

}

.animar.visible{

opacity:1;

transform:translateY(0);

}

.destacados.animar {
    transform: translateY(60px) scale(0.95);
}

.destacados.animar.visible {
    transform: translateY(0) scale(1);
}

/* ============================= */
/* BLOG PRO */
/* ============================= */

.blogContainer{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
}

.gridBlog {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    min-height: 400px;
}

/* CARD */

.blogCard:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 20px 40px rgba(0,0,0,0.2);
}

/* IMAGEN */

.blogImg{
position:relative;
z-index:1;
}

.blogImg img{
    transition:transform 0.5s ease;
}

.blogCard:hover img{
    transform:scale(1.1);
}

/* CATEGORIA */

.blogCategoria{
position:absolute;
bottom:10px;
left:10px;
z-index:2;
pointer-events:none;
}

/* CONTENIDO */

.blogContenido{
position:relative;
z-index:3;
}

/* UX MAS LIMPIO */
.blogCard a{
    position:relative;
    z-index:2;
}

/* FECHA */

.blogFecha{
    font-size:12px;
    color:#888;
    margin-bottom:8px;
}

/* TITULO */

.blogContenido h3{
    font-size:18px;
    margin-bottom:10px;
}

/* TEXTO */

.blogContenido p{
    font-size:14px;
    color:#555;
    margin-bottom:15px;
}

/* BOTON */

.btnLeer{
position:relative;
z-index:4;
}

.btnLeer:hover{
    letter-spacing:1px;
}

.articuloContainer{
    max-width:800px;
    margin:auto;
    padding:40px 20px;
}

.articuloContainer h1{
    font-size:28px;
    margin-bottom:10px;
}

.articuloMeta{
    color:#777;
    font-size:14px;
    margin-bottom:20px;
}

.articuloContainer img{
    width:100%;
    border-radius:10px;
    margin-bottom:20px;
}

.articuloContainer p{
    font-size:16px;
    line-height:1.6;
}

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

.articuloHero{
    position:relative;
    height:350px;
    overflow:hidden;
}

.articuloHero img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
}

/* CONTENIDO HERO */

.heroContenido{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    color:white;
    text-align:center;
    width:90%;
    max-width:800px;
}

.categoria{
    background:#0a5bd3;
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
}

.heroContenido h1{
    font-size:32px;
    margin:15px 0;
}

.meta{
    font-size:14px;
    color:#ddd;
}

/* ============================= */
/* CONTENIDO */
/* ============================= */

.articuloContenido{
    padding:50px 20px;
    background:#f9f9f9;
}

.contenidoWrapper{
    max-width:800px;
    margin:auto;
    background:white;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.contenidoWrapper p{
    font-size:16px;
    line-height:1.8;
    color:#333;
}

/*  LAYOUT + SIDEBAR  */

.layoutBlog{
    display:grid;
    grid-template-columns: 3fr 1fr;
    gap:30px;
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

/* ARTICULO */
.articulo img{
    width:100%;
    border-radius:10px;
    margin:20px 0;
}

.intro{
    font-size:18px;
    font-weight:500;
    margin-bottom:20px;
}

.articulo h2{
    margin-top:25px;
}

/* SIDEBAR */
.sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.widget{
    background:#fff;
    padding:15px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.widget h3{
    margin-bottom:10px;
}

/* CTA */
.cta{
    margin-top:30px;
    padding:20px;
    background:#0a5bd3;
    color:white;
    text-align:center;
    border-radius:10px;
}

.cta a{
    display:inline-block;
    margin-top:10px;
    background:white;
    color:#0a5bd3;
    padding:8px 15px;
    border-radius:5px;
    text-decoration:none;
}

/* RESPONSIVE */
@media(max-width:768px){
    .layoutBlog{
        grid-template-columns:1fr;
    }}

/* ANIMACION INICIAL */

.blogCard{
    opacity:1;
    transform:translateY(0);
    transition:all 0.6s ease;
}

/* SOLO LAS QUE SE ANIMAN */

.blogCard.animar{
opacity:0;
transform:translateY(30px);
}

.blogCard.animar.show{
opacity:1;
transform:translateY(0);
transition:all 0.6s ease;
}

/* =====================================
FIX GLOBAL SIN ROMPER TU SISTEMA
===================================== */

/* 🔧 Evitar conflicto de botones */


.btn:hover{
background:#005fa3 !important;
}

/* 🔧 FIX BLOG (esto es lo que te rompió todo) */
.blogCard{
display:flex !important;
flex-direction:column !important;
background:#fff !important;
border-radius:10px !important;
overflow:hidden !important;
box-shadow:0 5px 15px rgba(0,0,0,0.1) !important;
transition:0.3s !important;
}

.blogImg img{
width:100% !important;
height:180px !important;
object-fit:cover !important;
}

.blogContenido{
padding:15px !important;
display:flex !important;
flex-direction:column !important;
flex:1 !important;
}

.blogContenido p{
flex:1 !important;
}

/* 🔧 FIX LINK "LEER MÁS" */
.blogCard a{
text-decoration:none !important;
color:inherit !important;
display:block !important;
height:100% !important;
}

/* 🔧 FIX GRID BLOG */
.gridBlog {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    min-height: 400px;
}

.tab.activo,
.tab.active{
display:block !important;
}

/* 🔧 FIX CONTENEDOR TAB ANTIGUO */
.tab-contenido{
display:none;
}

.tab-contenido.activo{
display:block;
}

/* 🔧 FIX PRODUCTOS (evita desaparición) */
.producto{
display:block !important;
}

/* 🔧 FIX IMAGENES */
.producto img{
display:block;
}

/* 🔧 FIX HERO (index) */
.hero{
background-size:cover !important;
background-position:center !important;
}

/* 🔧 FIX NAV RESPONSIVE */
@media(max-width:768px){
nav{
flex-direction:column !important;
}}

/* ESTILO PARA BUSCADOR */
/* CONTENEDOR GENERAL */
.contenedorCotizacion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}



/* INPUT MODERNO */
.buscadorCotizacion input {
    width: 320px;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

/* EFECTO HOVER */
.buscadorCotizacion input:hover {
    border-color: #bbb;
}

/* EFECTO FOCUS (PRO) */
.buscadorCotizacion input:focus {
    border-color: #007BFF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* diseño para contador de productos */
/* CONTENEDOR SUPERIOR */
.topCotizacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}


.buscadorCotizacion input {
    width: 300px;
    padding: 10px 15px 10px 35px;
    border-radius: 25px;
    border: 1px solid #ddd;
    outline: none;
    background: #f9f9f9;
    transition: 0.3s;
}

/* ICONO LUPA */
.buscadorCotizacion::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* CONTADOR */
.contadorProductos {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* NÚMERO DESTACADO */
#totalProductos {
    font-weight: bold;
    color: #007BFF;
}

/* contenedor grid */
.contenedorCotizacionGrid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* BUSCADOR */
.buscadorCotizacion {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: flex-start; /* ✅ izquierda */
    position: relative;
}


/* El input de texto */
#buscarCotizacion {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Aumentamos el padding izquierdo para dejar espacio al icono */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#buscarCotizacion:focus {
    border-color: #007bff; /* Color de énfasis al escribir */
}

/* El icono de la lupa (si lo tienes como <i> o pseudo-elemento) */
.buscadorCotizacion::before {
    content: "\f002"; /* Código de FontAwesome para la lupa */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none; /* Evita que el icono interfiera con el clic en el input */
}

.buscadorCotizacion input {
    width: 300px;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .buscadorCotizacion {
        padding: 0 10px;
    }
    
    #buscarCotizacion {
        font-size: 16px; /* Tamaño ideal para evitar zoom en iOS */
        padding: 10px 10px 10px 35px;
    }
}

/* FOOTER TABLA */
.resumenInferior {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* CARRITO LATERAL */
.carritoResumen {
    display: flex;
    flex-direction: column;
    width: 330px;
    position: sticky;       /* se mantiene visible mientras scroll */
    top: 20px;              /* margen superior desde la ventana */
    max-height: 100vh;       /* altura máxima hasta los datos del cliente (ajustable) */
    overflow-y: auto;       /* scroll interno si hay muchos productos */
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.resumenLinea {
    margin: 10px 0;
}

.resumenTotal {
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* BOTONES */
.btnCarrito {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
}

.btnCarritoSec {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
}

/* DISEÑO DETALLE CARRITO */
.detalleCarrito {
    flex: 1;   
    max-height: none;
    overflow-y: auto;
    padding-right: 5px;
    font-size: 13px;
}

/* Detalle de cada producto */
.itemCarrito {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.itemCarrito:last-child {
    border-bottom: none;
}

/* Botón eliminar en flotante */
.itemCarrito button {
    background: #e74c3c;
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.itemCarrito button:hover {
    background: #c0392b;
}

/* Totales dentro del panel flotante */
.resumenLinea {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-weight: 600;
    font-size: 14px;
}

/* Botones SIEMPRE visibles */
.accionesCarrito {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 10px;
}

.accionesCarrito .btn {
    width: 100%;
}

/* Opcional: scrollbar personalizado */
.carritoResumen::-webkit-scrollbar {
    width: 6px;
}

.carritoResumen::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.itemNombre {
    font-size: 13px;
}

.itemCantidad {
    font-size: 12px;
    color: #666;
}

/* Diseño icono cotización */
.link-cotizacion {
    display: flex;
    align-items: center;
    gap: 6px;

    background: rgba(10, 61, 98, 0.08);
    padding: 6px 10px;
    border: 1px solid rgba(10, 61, 98, 0.15);

    position: relative;
}

.link-cotizacion:hover {
    background: rgba(63, 169, 245, 0.15);
}

/* Diseño icono contador */
#contadorCotizacion {
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;

    position: absolute;
    top: -5px;
    right: -8px;
}

/* ESTILO FLOTANTE MENSAJE CUANDO SE AÑADE UN PRODUCTO */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #28a745;
    color: white;
    padding: 12px 18px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% {opacity: 0; transform: translateY(-10px);}

10% {opacity: 1; transform: translateY(0);}

90% {opacity: 1;}

100% {opacity: 0; transform: translateY(-10px);}
}

.tabla-cotizacion {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.tabla-cotizacion thead {
    background: #f5f7fa;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.tabla-cotizacion th,
.tabla-cotizacion td {
    padding: 12px 10px;
    text-align: center;
}

.tabla-cotizacion tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.tabla-cotizacion tbody tr:hover {
    background: #f9fbfd;
}

/* Columna número */
.col-numero {
    font-weight: bold;
    color: #999;
}

/* Nombre producto */
.col-nombre {
    text-align: left;
    font-weight: 500;
}

/* Botón eliminar */
.col-accion button {
    background: #ff4d4f;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.col-accion button:hover {
    background: #d9363e;
}


/* ================================
   VARIANTES
================================ */

/* WHATSAPP / PRINCIPAL */
.btn-primary{
    background: #03035e;
    color: white;
}

.btn-primary:hover{
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* PDF */
.btn-secondary{
    background: #03035e;
    color: white;
}

.btn-secondary:hover{
    background: #c0392b;
    transform: translateY(-2px);
}

/* GUARDAR */
.btn-success{
    background: #03035e;
    color: white;
}

.btn-success:hover{
    background: #27ae60;
}

/* ELIMINAR */
.btn-danger{
    background: #e74c3c;
    color: white;
}

.btn-danger:hover{
    background: #c0392b;
    transform: scale(1.05);
}

/* ================================
   ESTADO DISABLED
================================ */
.btn:disabled{
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* BOTON PEQUEÑO (TABLAS) */
.btn-sm{
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* SOLO ICONO (OPCIONAL) */
.btn-icon{
    padding: 6px;
    width: 32px;
    height: 32px;
}

/* ================================
   CARD (CUADROS)
================================ */
.card{
    background: #f4f6f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* TITULOS */
.card h2,
.card h3{
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

/* ================================
   FORMULARIOS
================================ */
.form-cotizacion,
.formularioCorreo{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

/* INPUTS */
input{
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;

    font-size: 14px;
    outline: none;

    transition: all 0.3s ease;
}

/* EFECTO FOCUS */
input:focus{
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}

/* PLACEHOLDER */
input::placeholder{
    color: #999;
}

/* ================================
   ACCIONES CLIENTE
================================ */
.accionesCliente{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ================================
   BOTONES EN BLOQUE
================================ */
.formularioCorreo .btn{
    margin-top: 10px;
}

/* ================================
   ACCIONES COTIZACION
================================ */
.accionesCotizacion{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.accionesCotizacion .btn{
    flex: 1;
    min-width: 180px;
}

/* ================================
   VALIDACIONES VISUALES
================================ */

.input-error{
    border: 1px solid #e74c3c !important;
    background: #fff5f5;
}

.input-ok{
    border: 1px solid #2ecc71 !important;
    background: #f4fff7;
}

/* MENSAJE ERROR */
.mensaje-error{
    font-size: 12px;
    color: #e74c3c;
    margin-top: 2px;
}

/* CONTENEDOR */
.input-group{
    position: relative;
}

/* INPUT */
.input-group input{
    width: 100%;
    padding: 12px 40px 12px 12px;
}

/* ICONO */
.icono-validacion{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

/* ESTADOS */
.input-error{
    border: 1px solid #e74c3c !important;
}

.input-ok{
    border: 1px solid #2ecc71 !important;
}

/* ICONOS */
.input-error + .icono-validacion::before{
    content: "✖";
    color: #e74c3c;
}

.input-ok + .icono-validacion::before{
    content: "✔";
    color: #2ecc71;
}

.footerCarrito {
    border-top: 1px solid #eee;
    padding-top: 10px;
    background: #fff;
}

/* =========================
   HAMBURGUESA
========================= */

.menu-toggle {
    display: none;
    font-size: 22px;
    color: rgb(2, 34, 82);
    cursor: pointer;
}

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

@media (max-width: 768px) {

    nav {
        height: 65px;
        padding: 0 20px;
    }

/* mostrar hamburguesa */
    .menu-toggle {
        display: block;
    }

/* ocultar menú */
    nav ul {
        position: absolute;
        top: 70px;
        right: 0;

        width: 100%;
        flex-direction: column;

        background: rgba(0, 123, 255, 0.95);
        backdrop-filter: blur(8px);

        max-height: 0;
        overflow: hidden;

        transition: all 0.3s ease;
    }

/* menú abierto */
    nav ul.active {
        max-height: 500px;
        padding: 20px 0;
    }

nav ul li {
        text-align: center;
        padding: 10px 0;
    }

/* logo ajustado en móvil */
    .logo img {
        height: 70px;
        transform: translateY(8px);
    }

header.scrolled nav {
        height: 55px;
    }

header.scrolled .logo img {
        height: 45px;
    }}

/* =========================
   MISION - VISION
========================= */

.mision-vision {
    padding: 60px 20px;
    background: #f5f9ff;
    overflow: hidden;
}

/* CONTENEDOR PRINCIPAL */
.contenedor-mv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* LADO IZQUIERDO */
.mv-textos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TARJETAS */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.card h3 {
    color: #0a2a66;
    margin-bottom: 10px;
}

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

/* IMAGEN */
.mv-imagen {
    flex: 1;
    text-align: center;
}

.mv-imagen img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
}

/* TEXTO GENERAL */
.mv-general {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* =========================
   ANIMACIONES SCROLL
========================= */

/* estado inicial */
.mision-vision .mv-mision {
    transform: translateX(-80px);
    opacity: 0;
}

.mision-vision .mv-vision {
    transform: translateX(-120px);
    opacity: 0;
}

.mision-vision .mv-imagen {
    transform: translateX(80px);
    opacity: 0;
}

.mision-vision .mv-general {
    transform: translateY(60px);
    opacity: 0;
}

/* cuando aparece */
.mision-vision.visible .mv-mision,
.mision-vision.visible .mv-vision,
.mision-vision.visible .mv-imagen,
.mision-vision.visible .mv-general {
    transform: translate(0,0);
    opacity: 1;
    transition: all 0.8s ease;
}

/* delay elegante */
.mision-vision.visible .mv-vision {
    transition-delay: 0.2s;
}

.mision-vision.visible .mv-imagen {
    transition-delay: 0.3s;
}

.mision-vision.visible .mv-general {
    transition-delay: 0.4s;
}

/* JUSTIFICAR TEXTOS */
.mv-mision p,
.mv-vision p,
.mv-general p {
    text-align: justify;
    line-height: 1.6;
    hyphens: auto;
}

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

@media (max-width: 768px) {
    .contenedor-mv {
        flex-direction: column;
        text-align: center;
    }

.mv-imagen img {
        max-width: 100%;
    }}

/* =========================
   SECCION MARCAS
========================= */

.marcas {
    padding: 15px 20px;
    background: #ffffff;
    text-align: center;
    overflow: hidden;
}

.marcas h2 {
    margin-bottom: 30px;
    color: #0a2a66;
}

/* CONTENEDOR CARRUSEL */
.carrusel-marcas {
    overflow: hidden;
    position: relative;
}

/* TRACK (movimiento) */
/* TRACK */
.track {
    display: flex;
    width: max-content;
    gap: 60px;

    animation: scrollMarcas 40s linear infinite; /* 👈 MÁS LENTO */
}

/* LOGOS */
.track img {
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;

    filter: grayscale(100%); /* 👈 blanco y negro */
    opacity: 0.7;

    transition: all 0.4s ease;
}

/* AL PASAR EL MOUSE */
.track img:hover {
    filter: grayscale(0%); /* 👈 vuelve a color */
    opacity: 1;
    transform: scale(1.1);
}

/* ANIMACION INFINITA */

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

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

/* =========================
   ANIMACION SCROLL REVERSIBLE
========================= */

.marcas {
    opacity: 0;
    transform: translateY(60px);
}

.marcas.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* PAUSAR ANIMACIÓN AL HOVER */
.carrusel-marcas:hover .track {
    animation-play-state: paused;
}

/* ====================
   DISEÑO DEL FOOTER 
   ====================*/

.footer {
    background: #0b1c3d;
    padding: 12px 0;
    font-size: 13px;
}

.footer-contenedor {
    max-width: 1200px; /* un poco más ancho para separar mejor */
    margin: auto;
    padding: 0 20px;

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

    gap: 50px; /* 👈 MÁS separación entre bloques */
}

/* IZQUIERDA */
.footer-left {
    color: #ccc;
    margin: 0;
}

/* DERECHA */
.footer-right {
    color: #ccc;
    margin: 0;

    display: flex;
    align-items: center;
    gap: 12px; /* 👈 espacio interno */
}

/* LOGO MÁS GRANDE */
.footer-right img {
    width: 100px; /* Ajusta según el tamaño de tu logo */
    height: auto;
    filter: brightness(0) invert(1);
}

/* LINK */
.footer a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-contenedor {
        flex-direction: column;
        text-align: center;
        gap: 10px; /* menos separación en móvil */
    }

.footer-right {
        justify-content: center;
        flex-wrap: wrap;
    }}

/* BOTONES DENTRO DE PRODUCTO */
.producto button {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

/* 📄 BOTON FICHA TECNICA */
.producto button:first-of-type {
    background: #f1f3f5;
    color: #333;
    border: 1px solid #ddd;
}

.producto button:first-of-type:hover {
    background: #ffeb3b;
    color: #000;
    border-color: #fbc02d;
    transform: translateY(-2px);
}

/* 🛒 BOTON COTIZAR */
.producto button:last-of-type {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
}

.producto button:last-of-type:hover {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* EFECTO CLICK */
.producto button:active {
    transform: scale(0.96);
}

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.acciones-modal{
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-ficha-modal,
.btn-cotizar-modal{
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-ficha-modal{
    background: #f1f1f1;
    color: #333;
}

.btn-ficha-modal:hover{
    background: #e60023;
    color: white;
}

.btn-cotizar-modal{
    background: #007BFF;
    color: white;
}

.btn-cotizar-modal:hover{
    background: #0056b3;
}



.wrapper-carrusel {

    overflow: hidden;
    padding: 40px 0;
    background: #d8d5d5;
    position: relative;
}

/* Sombreado difuminado en los extremos */
.wrapper-carrusel::before,
.wrapper-carrusel::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.wrapper-carrusel::before { left: 0; background: linear-gradient(to right, white, transparent); }
.wrapper-carrusel::after { right: 0; background: linear-gradient(to left, white, transparent); }

.carrusel-track {
    display: flex;
    width: calc(250px * 10); /* Ajustar según cantidad de items */
    gap: 20px;
    margin-bottom: 20px;
}

/* Animaciones */
.izquierda {
    animation: scrollIzquierda 30s linear infinite;
}

.derecha {
    animation: scrollDerecha 30s linear infinite;
}

@keyframes scrollIzquierda {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } /* La mitad del total para el bucle */
}

@keyframes scrollDerecha {
    0% { transform: translateX(calc(-250px * 5)); }
    100% { transform: translateX(0); }
}

/* Tarjeta simplificada para el carrusel */
.carrusel-item {
    width: 230px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    flex-shrink: 0;
    cursor: default;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.info-item {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Por si el nombre es muy largo */
}

.nombre-prod {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    /* Limitar a dos líneas si el nombre es largo */
    display: -webkit-box;
    /**
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    */
    overflow: hidden;
}

.ver-mas {
    font-size: 0.8rem;
    color: #007BFF;
    margin-top: 4px;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

/* Mostramos "Ver detalle" solo en hover */
.carrusel-item:hover .ver-mas {
    opacity: 1;
}

/*
.carrusel-item:hover {
    background: #007BFF;
    color: white;
}
*/
.carrusel-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    background: white;
    border-radius: 5px;
}

/* Cuando el mouse esté sobre el contenedor, pausa ambas animaciones */
.wrapper-carrusel:hover .carrusel-track {
    animation-play-state: paused;
    cursor: default; /* Cambia el puntero para indicar que es interactivo */
}

/* --- Ajustes opcionales para mejorar el hover en la tarjeta --- */
.carrusel-item {
    /* ... (tus estilos anteriores) ... */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.carrusel-item:hover {
    transform: translateY(-5px) scale(1.02); /* Se eleva un poco y crece */
    border-color: #007BFF; /* Usamos tu azul de marca */
    background-color: #fff; /* Asegura que siga blanco */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Sombra más pronunciada */
}

.acciones-producto-modal {
    display: flex;
    gap: 10px; /* Espacio entre los dos botones */
    width: 100%; /* Ocupa todo el ancho disponible en .modal-imagen */
    max-width: 300px; /* Limita el ancho máximo para que no se vean gigantes en pantallas grandes */
    margin-top: auto; /* Empuja los botones hacia la parte inferior si hay espacio */
}

.acciones-producto-modal button {
    flex: 1; /* Hace que cada botón ocupe el 50% del ancho del contenedor */
    padding: 10px 5px; /* Ajuste de padding */
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: 0.9rem; /* Un poco más pequeño para que quepa el texto */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s ease;
}

/* Estilos específicos de cada botón (puedes mantener los anteriores o usar estos más limpios) */
.btn-ficha-modal {
    background-color: #eaeaea;
    color: #444;
}

.btn-ficha-modal:hover {
    background-color: #ddd;
}

.btn-cotizar-modal {
    background-color: #007BFF; /* Tu azul de marca */
    color: white;
}

.btn-cotizar-modal:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.relacionados-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.gridRelacionados {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.productoRelacionado {
    text-align: center;
    cursor: default !important; /* Mantenemos tu preferencia de flecha */
}

.productoRelacionado img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.productoRelacionado p {
    font-size: 0.7rem;
    margin-top: 5px;
    color: #555;
    display: -webkit-box;
    /*-webkit-line-clamp: 2;
    -webkit-box-orient: vertical;*/
    overflow: hidden;
}


/* Ajuste base para la sección de datos del cliente */
.seccionCliente {
    width: 100%;
    max-width: 100vw; /* Asegura que no pase del ancho de la ventana */
    padding: 15px;    /* Espaciado interno para que no pegue a los bordes */
    overflow-x: hidden; /* Evita scroll horizontal accidental */
}

/* Los inputs deben ser flexibles */
.seccionCliente input,
.seccionCliente select,
.seccionCliente textarea {
    width: 100% !important; /* Ocupa el total del contenedor */
    max-width: 100%;         /* No permite que crezca más allá */
    display: block;
    margin: 10px 0;
}

/* RESPONSIVIDAD AREA COTIZACION */

/* Estilos base para móviles (Mobile First) o dentro de un Media Query */
/* RESPONSIVO PARA TABLA Y CARRITO */
@media (max-width: 992px) {
    /* El contenedor pasa de 2 columnas a 1 sola */
    .contenedorCotizacionGrid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    /* La tarjeta del carrito deja de ser lateral y ocupa el ancho total */
    .carritoResumen.card {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    .cotizacionPrincipal, .carritoResumen, .seccionCliente {
        width: 100%; /* Ocupan todo el ancho disponible */
    }
   
    
    /* Reordenar para que el resumen aparezca después de la tabla o al final */
    .carritoResumen {
        order: 2; 
    }
}

@media (max-width: 768px) {
    /* Si tienes columnas, las pasamos a una sola fila */
    .seccionCliente .fila-inputs, 
    .seccionCliente .grid-datos { 
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Ajuste de márgenes para que respiren en pantallas pequeñas */
    .card.seccionCliente {
        margin-left: 10px;
        margin-right: 10px;
        width: auto; /* Permite que el margen funcione */
    }
}

@media (max-width: 768px) {
    .carritoResumen {
        padding: 15px;
    }
    
    .resumenInferior {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.tablaCotizacion {
    overflow-x: auto; /* Permite deslizar la tabla de izquierda a derecha en celulares */
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 600px; /* Asegura que la tabla no se colapse demasiado */
    width: 100%;
}

@media (max-width: 600px) {
    /* Forzamos a la tabla a no comportarse como tabla */
    .tablaCotizacion table, 
    .tablaCotizacion thead, 
    .tablaCotizacion tbody, 
    .tablaCotizacion th, 
    .tablaCotizacion td, 
    .tablaCotizacion tr {
        display: block;
        width: 100%;
    }

    /* Escondemos el encabezado de la tabla (th) */
    .tablaCotizacion thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .tablaCotizacion tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        padding: 10px;
    }

    .tablaCotizacion td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    /* Agregamos etiquetas automáticas usando el atributo data-label si lo usas, 
       o alineación simple para que se entienda el dato */
    .tablaCotizacion td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        text-align: left;
    }
    
    .tablaCotizacion td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 768px) {
    .form-cotizacion {
        display: flex;
        flex-direction: column;
    }

    .form-cotizacion input {
        width: 100%;
        margin-bottom: 15px;
        font-size: 16px; /* Evita que iOS haga zoom automático al enfocar */
    }

    .accionesCarrito .btn {
        width: 100%; /* Botones grandes y fáciles de presionar */
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .tituloPagina h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    #menu {
        display: none; /* Se oculta por defecto */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    #menu.active {
        display: flex; /* Se muestra cuando JS añade la clase 'active' */
    }
    
    .menu-toggle {
        display: block; /* Muestra el icono de barras */
        cursor: pointer;
    }
}

/* GRID DE BLOG PRINCIPAL */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
}

/* SECCIÓN DE COMENTARIOS */
.comentarios-section {
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comentario-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comentario-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* estilos.css */

/* Estilo para cuando el botón está bloqueado (disabled) */
#formComentario button:disabled {
    background-color: #a0a0a0 !important; /* Gris */
    cursor: not-allowed;                 /* Cambia el cursor a un círculo tachado */
    opacity: 0.8;
    transform: none !important;          /* Evita que se mueva al pasar el mouse */
}

.articulo-centrado {
    max-width: 800px; /* Evita que el texto sea demasiado largo para leer */
    margin: 40px auto;
    padding: 0 20px;
}

.articulo img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Centrar el artículo al quitar el sidebar */
.layoutBlog {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.articulo {
    max-width: 850px; /* Ancho ideal para lectura */
    width: 100%;
}

/* Ocultar el sidebar si quedara algún residuo visual */
.sidebar {
    display: none;
}

/* Ajuste para que en tablets se vean 2 o 3 y en móviles 1 */
@media (max-width: 1200px) {
    .gridBlog {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gridBlog {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Estilo para que las imágenes de la card no se deformen */
.blogImg img {
    width: 100%;
    height: 150px; /* Altura fija para mantener uniformidad en la fila */
    object-fit: cover;
}

/* Buscador */
.buscadorContainer {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}

.barraBusqueda {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50px;
    padding: 10px 20px;
}

.barraBusqueda input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 16px;
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 50px;
}

.btnPaginacion {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btnPaginacion.active {
    background: #007bff; /* Cambia al color de tu marca */
    color: white;
    border-color: #007bff;
}

/* CONTENEDOR DE BOTONES */
/* CONTENEDOR GENERAL */
.whatsapp-float {
    position: fixed; /* Mantiene el botón fijo en pantalla */
    bottom: 20px;    /* Distancia inicial del borde inferior */
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Evitar que tape el footer cuando llegamos al final */
@media (min-height: 500px) {
    /* Si usas JavaScript para detectar el final, puedes añadir una clase */
    .whatsapp-float.en-footer {
        bottom: 90px; /* Ajusta este valor según la altura de tu footer */
    }
}

/* BOTON PRINCIPAL */
.whatsapp-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.whatsapp-main:hover {
    transform: scale(1.1);
}

/* CONTENEDOR OPCIONES */
.whatsapp-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* CUANDO ESTA ACTIVO */
.whatsapp-float.activo .whatsapp-opciones {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* BOTONES SECUNDARIOS */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* COLORES DIFERENTES */
.whatsapp-btn.ventas {
    background: #25D366; /* verde */
}

.whatsapp-btn.soporte {
    background: #007BFF; /* azul */
}

/* ICONOS */
.whatsapp-btn i {
    font-size: 16px;
}

/* SERVICIO TECNICO */
/* SECCION SERVICIO TECNICO */
.servicio-tecnico {
    background: #f5f7fa;
    padding: 60px 20px;
}

.contenedor-servicio {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* TEXTO */
.servicio-texto {
    flex: 1;
}

.servicio-texto h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #0b3c5d;
}

.servicio-texto p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.servicio-texto ul {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.servicio-texto li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* BOTON */
.btn-servicio {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-servicio:hover {
    background: #0056b3;
}

/* IMAGEN */
.servicio-imagen {
    flex: 1;
    text-align: center;
}

.servicio-imagen img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* RESPONSIVIDAD SERVICIO TECNICO */

@media (max-width: 768px) {
    .contenedor-servicio {
        flex-direction: column;
        text-align: center;
    }

    .servicio-texto h2 {
        font-size: 24px;
    }
}


/* DISEÑO BLOG - ARTICULO */

.articulo ul,
.articulo ol {
    padding-left: 20px;
}

.articulo li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 🔥 CLAVE: evitar saltos raros */
.articulo li strong {
    display: inline;
}

/* ============================= */
/* TEXTO ARTICULO PRO */
/* ============================= */

.articulo p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Mejora cortes de palabras */
.articulo {
    hyphens: auto;
    word-spacing: 0.05em;
}

/* Títulos */
.articulo h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Subtítulos */
.articulo h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Optimización para móviles */
@media (max-width: 600px) {
    #paginacion {
        gap: 4px;
    }
    #paginacion button {
        padding: 6px 10px;
        font-size: 13px;
    }
}

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

/* TABLETS */
@media (max-width: 1024px) {

    .layoutBlog {
        grid-template-columns: 1fr; /* elimina sidebar */
        padding: 30px 15px;
    }

    .articulo {
        max-width: 100% !important;
    }

    .articulo img {
        border-radius: 8px;
    }

    .articulo h1 {
        font-size: 26px;
    }

}

/* CELULARES */
@media (max-width: 768px) {

    .layoutBlog {
        padding: 20px 10px;
    }

    .articulo {
        padding: 0 5px;
    }

    .articulo h1 {
        font-size: 22px;
        text-align: left;
    }

    .articulo h2 {
        font-size: 18px;
    }

    .articulo p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* listas más compactas */
    .articulo ul,
    .articulo ol {
        margin-left: 18px;
    }

}

/* CELULARES PEQUEÑOS */
@media (max-width: 480px) {

    .articulo h1 {
        font-size: 20px;
    }

    .articulo p {
        font-size: 14px;
    }

}

/* Caja del contenido */
.articulo {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Espaciado general */
#contenido {
    margin-top: 20px;
}

/* Intro destacada */
.intro {
    font-size: 18px;
    font-weight: 500;
    text-align: justify;
}

.link-blog {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
}

.link-blog:hover {
    text-decoration: underline;
}

.item-titulo,
.item-descripcion {
    display: inline;
}

li {
    line-height: 1.6;
}

li strong {
    display: inline;
}
/* RESPONSIVIDAD PARA TABLETS Y CELULARES */
@media (max-width: 1024px) {
    .contenedorCotizacionGrid {
        display: flex;
        flex-direction: column; /* Coloca el carrito debajo de la tabla */
        gap: 20px;
        padding: 15px;
    }

    .tablaCotizacion {
        width: 100%;
        overflow-x: auto; /* Permite scroll horizontal si la tabla es muy ancha */
    }

    .carritoResumen.card {
        width: 100%;
        position: static; /* Evita que flote y tape contenido */
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    /* Forzamos a que la tabla se comporte como bloques */
    .tablaCotizacion table, 
    .tablaCotizacion thead, 
    .tablaCotizacion tbody, 
    .tablaCotizacion th, 
    .tablaCotizacion td, 
    .tablaCotizacion tr {
        display: block;
    }

    /* Escondemos los títulos originales de la tabla */
    .tablaCotizacion thead tr {
        display: none;
    }

    .tablaCotizacion tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .tablaCotizacion td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px;
        border-bottom: 1px solid #eee;
        text-align: right;
        font-size: 14px;
    }

    /* Añadimos etiquetas para que el usuario sepa qué es cada dato */
    .tablaCotizacion td::before {
        content: attr(data-label); /* Esto requiere que en el HTML agregues data-label */
        font-weight: bold;
        text-align: left;
        color: #555;
    }

    .tablaCotizacion td:last-child {
        border-bottom: 0;
        justify-content: center; /* Botón de eliminar centrado */
    }

    /* Ajuste de imágenes dentro de la tabla */
    .tablaCotizacion td img {
        width: 60px !important;
        height: auto;
    }
}

/* BOTON DE WHATSAPP - COTIZACION */
@media (max-width: 768px) {
.whatsapp-float {
        /* Reducimos un poco el tamaño en móvil si es muy grande */
        transform: scale(0.9);
        right: 15px;
        /* Aseguramos que el botón no bloquee toda la franja inferior */
        bottom: 20px; 
    }
    
    #paginacion button {
        /* Hacemos los números de página un poco más grandes para facilitar el toque táctil */
        padding: 10px 15px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Si el menú de navegación se rompe */
    nav {
        padding: 0 15px;
    }
    
    .logo img {
        max-width: 150px; /* Logo más pequeño */
    }
}

/* --- TAMAÑOS REDUCIDOS PARA LA TABLA --- */
.img-tabla-mini {
    width: 40px; /* Imagen más pequeña */
    height: auto;
    border-radius: 4px;
}

.texto-reducido {
    font-size: 0.85rem; /* Texto más pequeño */
}

.inputCantidad.mini {
    width: 50px;
    padding: 2px;
    font-size: 0.85rem;
}

.btn-eliminar-simple {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-eliminar-simple:hover {
    transform: scale(1.2);
}

/* --- CONTROL DE LÍMITES DE PANTALLA --- */
.contenedorCotizacionGrid {
    max-width: 100vw;
    overflow-x: hidden; /* Evita scroll horizontal global */
}

.tablaCotizacion {
    width: 100%;
    max-width: 100%;
    overflow-x: auto; /* Permite scroll solo dentro de la tabla si es necesario */
}

/* --- BUSCADOR Y CARRITO RESPONSIVO --- */
#buscarCotizacion {
    width: 100%; /* Se ajusta al ancho del contenedor */
    max-width: 400px;
    font-size: 0.9rem;
    padding: 8px;
    margin-bottom: 15px;
}

/* --- VENTANA FLOTANTE (CARRITO) --- */
/*
.carritoResumen.card {
    width: 100%;
    max-width: 100%; 
    font-size: 0.85rem;
    padding: 15px;
}*/

.carritoResumen.card {
    position: -webkit-sticky; 
    position: sticky;
    top: 100px; /* Ajusta este valor según el alto de tu menú/header */
    
    /* PROPIEDAD CLAVE: */
    align-self: flex-start; 
    
    /* Asegura que no tenga alturas fijas que lo bloqueen */
    height: auto;
    z-index: 100;
}

/* Ajuste específico para móviles */
@media (max-width: 768px) {

    .tablaCotizacion td {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
    
    .carritoResumen.card {
        position: relative; /* Ya no flota sobre el contenido */
        margin-top: 20px;
    }

    .itemCarrito {
        font-size: 0.8rem;
        display: flex;
        justify-content: space-between;
    }
}

/* --- 1. AJUSTE DE INPUTS Y FORMULARIO (Evita desbordamiento) --- */
.seccionDatosCliente input, 
.seccionDatosCliente select, 
.seccionDatosCliente textarea {
    width: 100% !important; /* Obliga a quedarse dentro del padre */
    box-sizing: border-box; /* Incluye el padding en el ancho */
    max-width: 100%;
    margin-bottom: 10px;
}

/* --- 2. BUSCADOR (Arreglo de la lupa y placeholder) --- */
.contenedorBuscar {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#buscarCotizacion {
    width: 100%;
    padding: 10px 10px 10px 35px !important; /* Espacio extra a la izquierda para la lupa */
    font-size: 14px;
}

.contenedorBuscar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none; /* La lupa no estorba al hacer clic */
}

/* --- 3. TABLA COMPACTA (Estilo Micro-Tabla) --- */
.tablaCotizacion {
    width: 100%;
    overflow-x: auto; /* Scroll horizontal suave si es necesario */
    background: white;
    border-radius: 8px;
}

.tablaCotizacion table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px; /* Fuente pequeña para que quepa todo */
}

/* Estilo moderno para imágenes en la tabla de cotización */
.img-mini {
    width: 80px;            /* Tamaño incrementado */
    height: 80px;           /* Proporción cuadrada */
    object-fit: contain;    /* Asegura que el producto se vea completo */
    border-radius: 12px;    /* Esquinas redondeadas estilo moderno */
    background: #fff;       /* Fondo blanco para resaltar */
    border: 1px solid #eee; /* Borde sutil */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra suave */
    transition: transform 0.3s ease;
}

.img-mini:hover {
    transform: scale(1.1);  /* Efecto de aumento al pasar el mouse */
}

.td-nombre {
    max-width: 120px; /* Evita que nombres largos ensanchen la tabla */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-tabla-cantidad {
    width: 40px;
    padding: 2px;
    text-align: center;
    font-size: 12px;
}

.btn-borrar {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 14px;
    cursor: pointer;
}

/* --- 4. RESPONSIVIDAD FINAL --- */
@media (max-width: 768px) {
    /* Forzamos que el contenedor y la tabla se comporten como tales */
    .tablaCotizacion {
        overflow-x: auto; /* Permite scroll horizontal si el nombre es muy largo */
        background: white;
        border-radius: 8px;
        padding: 5px;
    }

    .tablaCotizacion table {
        display: table !important;
        width: 100% !important;
        table-layout: fixed; /* Obliga a respetar los anchos definidos */
        border-collapse: collapse;
    }

    .tablaCotizacion thead {
        display: table-header-group !important; /* Muestra los títulos */
    }

    .tablaCotizacion tbody {
        display: table-row-group !important;
    }

    .tablaCotizacion tr {
        display: table-row !important;
    }

    /* Aseguramos que las celdas de datos de esas columnas también se oculten */
    /* Nota: Esto asume que en tu JS generas las celdas en el mismo orden */
    .tablaCotizacion td:nth-child(2), /* Imagen */
    .tablaCotizacion td:nth-child(4), /* Marca */
    .tablaCotizacion td:nth-child(5)  /* Categoría */ {
        display: none !important;
    }

.td-nombre {
        width: auto !important; /* Ocupa el resto del espacio */
        text-align: left !important; /* Justificado a la izquierda */
        white-space: normal !important; /* Permite salto de línea */
        word-wrap: break-word;
        padding-left: 5px !important;
    }

    /* Ajuste de inputs para ganar espacio */
    .input-tabla-cantidad {
        width: 45px;
    }

    .contenedorCotizacionGrid {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    /* Carrito ajustado a pantalla */
    .carritoResumen.card {
        width: 100%;
        margin: 20px 0;
        position: static;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .tablaCotizacion th, 
    .tablaCotizacion td {
        display: table-cell !important;
        padding: 5px 2px !important;
        font-size: 11px !important;
        vertical-align: middle;
        overflow: hidden;
    }

 /* 2. Ajuste de anchos de columna específicos */
    
    /* Columna # (Reducir al mínimo) */
    .tablaCotizacion th:nth-child(1),
    .tablaCotizacion td:nth-child(1) {
        width: 25px !important;
        text-align: center;
    }

/* Columna Cantidad (Reducir ancho) */
    .tablaCotizacion th:nth-child(6),
    .tablaCotizacion td:nth-child(6) {
        width: 55px !important;
        text-align: center;
    }

    /* Columna Eliminar (Reducir ancho) */
    .tablaCotizacion th:nth-child(7),
    .tablaCotizacion td:nth-child(7) {
        width: 40px !important;
        text-align: center;
    }

    .input-tabla-cantidad {
        width: 100% !important;
        max-width: 35px;
        font-size: 11px;
        padding: 2px !important;
    }

    .btn-borrar {
        font-size: 14px;
        padding: 0;
    }

    .ocultar-movil {
        display: none !important;
    }

}

/* Evitar que el texto se encime */
* {
    line-height: 1.2;
}
/* Fuerza a que los elementos de la sección cliente respeten el ancho */
.seccionCliente, 
.seccionCliente * {
    box-sizing: border-box;
}

/* CONTENEDOR PRINCIPAL */
.contenedor-unificado-pro {
    display: flex;
    flex-direction: row; /* Fuerza a que siempre estén uno junto al otro */
    flex-wrap: nowrap;   /* Evita que el segundo div se baje */
    width: 100%;
    min-height: 250px;   /* Altura mínima para que se vea la imagen */
    overflow: hidden;
}

.bloque-unificado {
    flex: 1;            /* Hace que ambos midan exactamente el 50% */
    width: 50%;         
    position: relative;
    background-size: cover;    /* La imagen se ajusta para cubrir sin deformarse */
    background-position: center; /* Centra la imagen para que no se vea cortada de un solo lado */
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;      /* Espacio para que el texto no toque los bordes */
}

/* IMAGEN DE FONDO LADO HERO (EXISTENTE) */
.hero-lado {
    background: url('../img/laboratorio-hero.jpg') center/cover no-repeat;
}

/* NUEVA IMAGEN DE FONDO LADO SERVICIO TÉCNICO */
.servicio-lado {
    background: url('../img/servicio-tecnico.jpg') center/cover no-repeat; /* Cambia esta ruta por tu nueva foto */
}

/* CAPA DE COLOR PARA LEER MEJOR EL TEXTO */
.bloque-unificado::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 42, 102, 0.75); /* Azul translúcido */
    z-index: 1;
}

.contenido-unificado {
    position: relative;
    z-index: 2;
}

.contenido-unificado h2 {
    color: white;
}

.contenido-unificado p {
    color: white;
}

/* AJUSTE DE CERCANÍA CON LA SIGUIENTE SECCIÓN */
.mision-vision {
    margin-top: 0; /* Eliminamos margen superior de la siguiente sección */
    padding-top: 20px; /* Controlamos el aire solo con padding */
}

/* --- CORRECCIÓN ESPECÍFICA PARA MÓVIL (Menos de 500px) --- */
/* --- CORRECCIÓN INTEGRAL PARA MÓVIL (MENOS DE 500PX) --- */
@media (max-width: 500px) {

    /* 1. Contenedor principal: Mantiene los bloques uno al lado del otro sin desbordar */
    .contenedor-unificado-pro {
        display: flex !important;
        flex-direction: row !important; /* Fuerza la posición horizontal */
        flex-wrap: nowrap !important;
        height: 220px !important; /* Altura controlada para evitar estiramientos */
        width: 100% !important;
        overflow: hidden;
    }

    /* 2. Ajuste de los bloques (Hero y Servicio) para simetría total */
    .bloque-unificado {
        flex: 1 !important; /* Cada uno ocupa exactamente el 50% */
        width: 50% !important;
        padding: 15px 5px !important; /* Espacio interno reducido */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important; /* Centra botones y texto horizontalmente */
        text-align: center !important;
        background-size: cover !important; /* Imagen ajustada sin deformar */
        background-position: center !important;
    }

    /* 3. Contenedor de contenido interno */
    .contenido-unificado {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Asegura el centrado del botón */
    }

    /* 4. Títulos (Hero y Servicio ajustados por igual) */
    .contenido-unificado h2 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        padding: 0 5px !important;
        width: 100% !important;
    }

    /* 5. Ocultar párrafos para que no empujen el diseño hacia abajo */
    .contenido-unificado p {
        display: none !important;
    }

    /* 6. Botones: Tamaño reducido y centrado perfecto */
    .btn-hero-original, 
    .btn-servicio-original {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 5px auto 0 auto !important; /* Centrado con margen automático */
        padding: 7px 12px !important; /* Botón más compacto */
        font-size: 0.65rem !important; /* Texto pequeño y elegante */
        width: auto !important;
        min-width: 95px; /* Evita que el botón sea demasiado pequeño para tocar */
        border-width: 1px !important; /* Borde más fino para el estilo minimalista */
        text-transform: uppercase;
    }

    /* 7. Iconos dentro de los botones */
    .btn-hero-original i, 
    .btn-servicio-original i {
        font-size: 0.75rem !important;
        margin-right: 4px !important;
    }
}


/* --- AJUSTE PARA MÓVILES (TODOS LOS TAMAÑOS PEQUEÑOS) --- */
/* --- AJUSTE PARA MÓVILES (MENOS DE 600PX) --- */
@media (max-width: 600px) {

    /* 1. Incrementamos la altura del contenedor para dar aire abajo */
    .contenedor-unificado-pro {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        height: 280px !important; /* Altura incrementada de 220px a 280px */
        width: 100% !important;
        overflow: hidden;
    }

    /* 2. Ajuste de los bloques para que el contenido no toque los bordes */
    .bloque-unificado {
        flex: 1 !important;
        width: 50% !important;
        /* Aumentamos el padding superior e inferior (25px) */
        padding: 25px 10px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Mantiene el contenido centrado verticalmente */
        align-items: center !important; 
        text-align: center !important;
    }

    /* 3. Títulos más compactos */
    .contenido-unificado h2 {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important; /* Más espacio entre título y botón */
    }

    /* 4. UNIFICACIÓN DE BOTONES (Estilo Catálogo para ambos) */
    .btn-hero-original, 
    .btn-servicio-original {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 15px !important; /* Botones cómodos para pulsar */
        font-size: 0.7rem !important;
        min-width: 110px;
        margin: 0 auto !important; /* Centrado automático */
        
        /* Estilo idéntico: Transparente con borde blanco */
        background-color: transparent !important;
        color: #fff !important;
        border: 1px solid #fff !important;
        border-radius: 5px !important;
        text-transform: uppercase;
        box-shadow: none !important;
    }

    /* Ajuste de iconos */
    .btn-hero-original i, 
    .btn-servicio-original i {
        font-size: 0.8rem !important;
        margin-right: 5px !important;
    }

    /* Ocultar descripción para maximizar el espacio del botón */
    .contenido-unificado p {
        display: none !important;
    }
}

/* AJUSTE PARA MODO MÓVIL (HORIZONTAL) */
/* RESPONSIVE MANTENIENDO EL DISEÑO HORIZONTAL */
@media (max-width: 768px) {
    .contenedor-unificado-pro {
        flex-direction: row; 
        min-height: 250px;
        margin: 10px auto 5px auto;
        border-radius: 20px; /* Redondeo ligeramente menor en móviles */
    }

    .contenido-unificado h2 {
        font-size: 1rem;
    }

    .btn-hero-original, 
    .btn-servicio-original {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}

/* Estilo y diseño botones ver catalogo y servicio tecnico */

/* --- ESTILOS DE BOTONES RECUPERADOS --- */

/* 1. BOTÓN HERO (Blanco/Transparente original) */
.btn-hero-original {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 0.9rem;
}

.btn-hero-original:hover {
    background-color: #fff;
    color: #0a2a66; /* El azul oscuro de tu marca */
    transform: translateY(-2px);
}

/* 2. BOTÓN SERVICIO TÉCNICO (Verde WhatsApp / Acción) */
.btn-servicio-original {
    display: inline-block;
    padding: 12px 30px;
    background-color: #25d366; /* Verde original */
    color: #fff;
    border-radius: 50px; /* Más redondeado como lo tenías */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    font-size: 0.9rem;
}

.btn-servicio-original i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-servicio-original:hover {
    background-color: #128c7e;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --- AJUSTES DE RESPONSIVE PARA BOTONES --- */
@media (max-width: 768px) {
    .btn-hero-original, 
    .btn-servicio-original {
        padding: 10px 15px;
        font-size: 0.75rem; /* Más pequeños para que quepan horizontalmente */
        width: 90%; /* Asegura que no se desborden del cuadro */
    }
}

/* --- UNIFICACIÓN DE BOTONES (PC Y GENERAL) --- */
.btn-hero-original, 
.btn-servicio-original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: transparent !important; /* Fondo transparente */
    color: #fff !important;
    border: 2px solid #fff !important;      /* Borde blanco */
    border-radius: 5px !important;           /* Estilo rectangular suave */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 0.9rem;
    box-shadow: none !important;            /* Quitamos sombras */
}

/* Efecto Hover para ambos */
.btn-hero-original:hover, 
.btn-servicio-original:hover {
    background-color: #fff !important;
    color: #000 !important; /* Cambia a un color oscuro al pasar el mouse */
    transform: translateY(-2px);
}

.btn-hero-original i, 
.btn-servicio-original i {
    margin-right: 8px;
}

/* --- MEJORA SECCIÓN BLOG HOME --- */
.blog-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fbff; /* Un tono celeste muy suave */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-cta-wrapper:hover {
    transform: translateY(-5px);
}

.blog-cta-content {
    flex: 1;
    padding: 50px;
}

.etiqueta-novedad {
    display: inline-block;
    background: #e0edff;
    color: #0a5bd3;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blog-cta-content h2 {
    font-size: 2rem;
    color: #0f3d73;
    margin-bottom: 20px;
    text-align: left; /* Sobrescribe el centrado general de h1/h2 */
}

.blog-cta-content p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.blog-cta-image {
    flex: 1;
    height: 400px;
}

.blog-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón específico para el Blog en Home */
.btn-blog-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #0f3d73;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-blog-home:hover {
    background: #3fa9f5;
    box-shadow: 0 5px 15px rgba(63, 169, 245, 0.4);
}

/* Responsive para Blog Home */
@media (max-width: 768px) {
    .blog-cta-wrapper {
        flex-direction: column;
    }
    .blog-cta-content {
        padding: 30px;
        order: 2;
    }
    .blog-cta-image {
        width: 100%;
        height: 200px;
        order: 1;
    }
    .blog-cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ESTILO DE TEXTO DENTRO DE CARRUSEL DE IMAGENES PARA QUE NO SE DESBORDE TEXTO */
/* Ajuste para las tarjetas del carrusel */
.info-item span strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Prefijo para navegadores actuales */
    line-clamp: 2;         /* Propiedad estándar para compatibilidad futura */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;     /* (line-height * 2) */
    display: block;        /* Fallback para navegadores muy antiguos */
}

.info-item {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ALTURA DE BOTON FLOTANTE DE WHATSAAP RESPECTO A PAGINACION */

/* Ajuste para móviles: evitar que tape la paginación */
@media (max-width: 768px) {
    .whatsapp-float, .btnWhatsAppFlotante {
        bottom: 85px !important; /* Aumenta este valor según el alto de tu paginación */
        right: 15px;
    }

    /* Opcional: Si quieres que el botón sea un poco más pequeño en móvil */
    .whatsapp-float img, .btnWhatsAppFlotante img {
        width: 50px;
        height: 50px;
    }
}

/***************** CONTENEDOR DE LOS BOTONES Y EL INPUT *********************/

.control-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2px;
    width: fit-content;
    margin: 0 auto;
}

/* Botones de + y - */
.btn-qty {
    background-color: #f0f2f5;
    border: none;
    color: #333;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty:hover {
    background-color: #007bff;
    color: white;
}

/* Ajuste del input numérico */
.input-tabla-cantidad {
    width: 45px !important;
    border: none !important;
    text-align: center;
    font-weight: bold;
    background: transparent;
    -moz-appearance: textfield; /* Quita flechas nativas en Firefox */
}

.input-tabla-cantidad::-webkit-inner-spin-button, 
.input-tabla-cantidad::-webkit-outer-spin-button { 
    -webkit-appearance: none; /* Quita flechas nativas en Chrome/Safari */
    margin: 0; 
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Fuerza 2 columnas iguales */
        gap: 10px;
        padding: 10px;
    }
    
    .producto img {
        height: 120px; /* Imágenes más pequeñas para que no ocupen toda la pantalla */
    }
}

/*** DISEÑO DE BUSCADOR ***/

.buscador-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* O el ancho que prefieras */
    margin: 0 auto;
}

#buscador {
    width: 100%;
    padding-right: 35px; /* Espacio para que el texto no tape la X */
}

#clearSearch {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none; /* Oculto inicialmente */
    transition: color 0.2s;
}

#clearSearch:hover {
    color: #333;
}

/**** ESTILOS AREA DE SERVICIOS ****/

/* CONTENEDOR PRINCIPAL */
.contenedor-servicios {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 40px;
}

.titulo-seccion h1 {
    color: #003366;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* GRID DE SERVICIOS */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* TARJETAS (CARDS) */
.card-servicio {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.imagen-container {
    position: relative;
    height: 200px;
}

.imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-icono {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: #007bff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid white;
}

.info-servicio {
    padding: 30px 20px 20px;
}

.info-servicio h3 {
    margin-bottom: 15px;
    color: #003366;
}

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

.btn-contacto {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-contacto:hover {
    background-color: #0056b3;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-servicios {
        grid-template-columns: 1fr;
    }
}