body {
    margin: 0;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #eef2f7, #ffffff);
    
    overflow-x: hidden;

    display: block;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: 100%;
}
/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}

/* EVITA QUE NAVBAR TAPE SECCIONES */
section, .fila {
    scroll-margin-top: 100px;
}
/* ===== NAVBAR  ===== */
.custom-navbar {
    background: rgba(20, 80, 140, 0.75); /* azul más claro */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);

    padding: 18px 0;
     transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* cuando hace scroll */
.custom-navbar.navbar-scrolled {
    background: rgba(8, 60, 110, 0.92); /* ligeramente más sólido */
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.navbar-brand {
    font-weight: bold;
    color: #fdfefe !important;
    text-shadow: 0 0 10px rgba(56,189,248,0.6);
}
/* Efecto hover glow */
.nav-link {
    position: relative;
    color: #EAF6FF !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 5px;
}

.nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(56,189,248,0.7);
}

/* Línea animada debajo */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #38BDF8, #1f8ccd);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== LOGO NAVBAR ===== */
.logo-navbar {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(47,164,214,0.5));
}



/* ===== ESTADO SCROLL (se contrae) ===== */
.navbar-scrolled {
    padding: 8px 0; /*  más compacta */
    background: rgba(15, 23, 42, 0.95);
}

.navbar-scrolled .logo-navbar {
    height: 45px; /*  logo más pequeño */
}

/* Hover elegante */
.logo-navbar:hover {
    transform: scale(1.05);
}

/* Ajuste en móvil */
@media (max-width: 768px) {
    .logo-navbar {
        height: 38px;
    }
}

/* ===== HERO ===== */
#hero {
    position: relative;
    height: 100vh;
    background-image: url('../imagenes/bannercd.jpeg'); /* 🔥 CORREGIDO */
    background-size: cover;
    background-position: center;
}

/* OVERLAY (EFECTO OSCURO) */
#overlay {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    transition: 0.2s;
}

/* ===== CONTENEDOR GENERAL HERO INDEX===== */
section {
    padding: 80px 20px;
}

h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;

    background: linear-gradient(90deg, #38BDF8, #1f8ccd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== HERO ===== */
.hero-index {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-index .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
}

.hero-contenido {
    position: relative;
    color: white;
    max-width: 750px;
    padding: 20px;
}

.hero-contenido h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-contenido p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

/* BOTONES */
.hero-botones {
    margin-top: 25px;
}

.btn-principal,
.btn-whatsapp {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 8px;
    display: inline-block;
    transition: 0.3s;
}

.btn-principal {
    background: #1f8ccd;
    color: white;
}

.btn-principal:hover {
    background: #176fa5;
    transform: scale(1.05);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

/* ===== SERVICIOS ===== */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.servicio {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.servicio:hover {
    transform: translateY(-8px);
}

.servicio img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.servicio h3 {
    margin: 15px 0 10px;
    color: #1f8ccd;
}

.servicio p {
    font-size: 15px;
    color: #555;
}

.servicio a {
    display: inline-block;
    margin-top: 10px;
    color: #1f8ccd;
    font-weight: bold;
}


/* ===== MARCAS  ===== */
.marcas-pro {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.marcas-pro h2, .porque h2 {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-bottom: 5px;
}

.subtitulo-marcas {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

/* CONTENEDOR */
.slider-marcas {
    overflow: hidden;
    position: relative;
}

/* TRACK (ANIMACIÓN) */
.slide-track {
    display: flex;
    width: calc(250px * 24);
    animation: scroll 35s linear infinite;
}

/* LOGOS */
.slide-track img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    margin: 0 25px;

    
    opacity: 0.7;

    transition: 0.3s;
}

/* HOVER */
.slide-track img:hover {
   
    transform: scale(1.1);
}

/* PAUSA AL HOVER */
.slider-marcas:hover .slide-track {
    animation-play-state: paused;
}

/* ANIMACIÓN */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .slide-track img {
        width: 140px;
        height: 80px;
    }

}


/* ===== PORQUE ===== */
.porque {
    background: #f8fafc;
}

.grid-porque {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    max-width: 600px;
    margin: auto;
}

.grid-porque div {
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;

    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ===== SOBRE ===== */
.sobre-index {
    text-align: center;
}

.sobre-index .contenido {
    max-width: 700px;
    margin: auto;
}

.sobre-index p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

/* ===== TIPOS ===== */
.grid-tipos {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

.tipo {
    text-align: center;
}

.tipo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.4s;
}

.tipo img:hover {
    transform: scale(1.05);
}

.tipo h3 {
    margin-top: 10px;
    color: #1f8ccd;
}

/* ===== GALERÍA ===== */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    max-width: 1100px;
    margin: auto;
}

.grid-galeria img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.grid-galeria img:hover {
    transform: scale(1.05);
}

/* ===== CTA FINAL ===== */
.cta-final {
    text-align: center;
    background: linear-gradient(135deg, #0F172A, #020617);
    color: white;
}

.cta-final p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================= */
/* 📱 RESPONSIVE */
/* ========================= */

@media (max-width: 992px) {

    .grid-servicios,
    .grid-tipos {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-galeria {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-contenido h1 {
        font-size: 38px;
    }
}

@media (max-width: 600px) {

    section {
        padding: 60px 15px;
    }

    .hero-index {
        height: 90vh;
    }

    .hero-contenido h1 {
        font-size: 28px;
    }

    .hero-contenido p {
        font-size: 16px;
    }

    .grid-servicios,
    .grid-tipos,
    .grid-porque,
    .grid-galeria {
        grid-template-columns: 1fr;
    }

    .servicio img,
    .tipo img,
    .grid-galeria img {
        height: 160px;
    }
}



/* ===== QUIENES SOMOS ===== */
.quienes {
    padding: 80px 20px;
    background: linear-gradient(135deg, #eef3f9, #ffffff);
    display: flex;
    justify-content: center;
}

.quienes-contenido {
    max-width: 900px;
    text-align: center;
    padding: 40px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.7);
    background: rgba(255,255,255,0.85);

    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);

    animation: fadeUp 1s ease;
}

.quienes h1 {
    font-size: 40px;
    margin-bottom: 20px;

    background: linear-gradient(90deg, #1f8ccd, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;

    color: #1f8ccd; /* fallback */
    -webkit-text-fill-color: transparent;
}

.quienes h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 10px auto;
    background: linear-gradient(90deg, #6a5cff, #4facfe);
    border-radius: 5px;
}

.destacado {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
}

.quienes p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

/* ===== FILAS (MISIÓN Y VISIÓN) ===== */
.fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin: 80px auto;
    max-width: 1200px;

    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 20px;

    background: rgba(255,255,255,0.85);

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    min-height: 320px;
}

.fila:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.fila.reverse {
    flex-direction: row-reverse;
}

/* IMÁGENES */
.fila img {
    width: 45%;
    height: 260px;
    object-fit: cover;
    border-radius: 15px;
}

/* TEXTO */
.texto {
    width: 50%;
}

.texto h2 {
    font-size: 36px;
    margin-bottom: 15px;

    background: linear-gradient(90deg, #1f8ccd, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;

    color: #1f8ccd; /* fallback */
    -webkit-text-fill-color: transparent;
}

.texto h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 8px;
    background: linear-gradient(90deg, #2b63c6, #4a90e2);
    border-radius: 5px;
}

.texto p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.texto strong {
    font-weight: 600;
    color: #000;
}

/* ===== MEJORA DE PÁRRAFOS PRO ===== */
.texto p {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
    margin-bottom: 15px;
}

/* Párrafos generales (como los de industrial y suministro) */
section p {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    max-width: 850px;
    margin: 20px auto;
    text-align: justify;
}

/* Intro de aire acondicionado */
.aire h3 {
    font-size: 20px;
    font-weight: 400;
    color: #334155;
    max-width: 800px;
    margin: 10px auto;
    line-height: 1.6;
}

/* Destacar marca */
.aire strong {
    color: #1f8ccd;
    font-weight: 600;
}

/* Mejora visual en títulos */


/* ===== ANIMACIÓN ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animar {
    opacity: 0;
    transform: translateY(40px);

    transition: transform 0.6s ease, opacity 0.6s ease;

    will-change: transform, opacity;
    backface-visibility: hidden;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .fila {
        flex-direction: column;
        text-align: center;
    }

    .fila img,
    .texto {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .quienes h1 {
        font-size: 28px;
    }

    .texto h2 {
        font-size: 28px;
    }

    .texto p {
        font-size: 16px;
    }
}


/* ===== VALORES PRO ===== */
.valores {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff, #eef3f9);
    text-align: center;
}

.valores h2 {
    font-size: 36px;
    margin-bottom: 50px;

    background: linear-gradient(90deg, #1f8ccd, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;

    color: #1f8ccd; /* fallback */
    -webkit-text-fill-color: transparent;
}

/* GRID */
.contenedor-valores {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* TARJETAS */
.valor {
    padding: 25px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.7);
    background: rgba(255,255,255,0.85);

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);

    transition: all 0.3s ease;
}

/* HOVER PRO */
.valor:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* IMÁGENES */
.valor img {
    width: 100%;
    height: 160px;
    object-fit: cover; /* evita que se deformen */
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
}

/* TEXTO */
.valor h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1f8ccd;
}

.valor p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contenedor-valores {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contenedor-valores {
        grid-template-columns: 1fr;
    }

    .valor img {
        height: 140px;
    }
}


/* ===== FOOTER PRO (ALINEADO AL LOGO) ===== */
.footer {
    background: linear-gradient(135deg, #0F172A, #020617);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(47, 164, 214, 0.3);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin-top: auto;
    padding: 25px 20px;
}

/* TEXTO */
.footer h4 {
    color: #E0F2FE;
    font-weight: 500;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* LINKS */
.footer a {
    color: #2FA4D6;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.footer a:hover {
    color: #38BDF8;
}

/* ===== COTIZADOR PRO ===== */
.cotizador {
    max-width: 500px;
    margin: 60px auto;
    padding: 35px;

    background: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.85);

    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);

    text-align: center;
}

.cotizador h2 {
    margin-bottom: 25px;
    color: #1f8ccd;
}

/* CAMPOS */
.campo {
    margin-bottom: 15px;
}

.cotizador input,
.cotizador select,
.cotizador textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;

    border: 1px solid rgba(0,0,0,0.1);
    outline: none;

    font-size: 15px;

    transition: 0.3s;
}

.cotizador input:focus,
.cotizador select:focus,
.cotizador textarea:focus {
    border-color: #1f8ccd;
    box-shadow: 0 0 10px rgba(31,140,205,0.3);
}

/* TEXTAREA */
.cotizador textarea {
    min-height: 100px;
    resize: none;
}

/* BOTÓN WHATSAPP */
.btn-wsp {
    width: 100%;
    padding: 12px;
    margin-top: 10px;

    border: none;
    border-radius: 12px;

    background: #25D366;
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.btn-wsp:hover {
    background: #1ebe5d;
    transform: scale(1.03);
}


/* ===== CONTACTO ===== */
.contacto {
    display: flex;
    justify-content: center;
}

.contacto-box {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;

    background: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.85);

    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);

    text-align: center;
}

/* TÍTULOS */
.titulo-seccion {
    font-size: 36px;
    margin-bottom: 20px;

    background: linear-gradient(90deg, #1f8ccd, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.subtitulo {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

/* INFO CONTACTO */
.contacto-info p {
    font-size: 18px;
    margin: 10px 0;
}

.contacto-info a {
    color: #1f8ccd;
    text-decoration: none;
    font-weight: 600;
}

.contacto-info a:hover {
    color: #4facfe;
}

/* BOTÓN WHATSAPP */
.boton-whatsapp {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 25px;
    border-radius: 30px;

    background: #25D366;
    color: white;
    font-weight: bold;
    text-decoration: none;

    transition: 0.3s;
}

.boton-whatsapp:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

/* HORARIOS */
.horarios {
    margin-top: 30px;
}

.horarios h3 {
    color: #1f8ccd;
}

/* REDES */
.redes {
    margin-top: 30px;
}

.redes i {
    font-size: 28px;
    margin: 10px;
    color: #1f8ccd;
    transition: 0.3s;
}

.redes i:hover {
    color: #4facfe;
    transform: scale(1.2);
}

/* UBICACIÓN */
.ubicacion {
    margin-top: 40px;
}

.ubicacion h3 {
    color: #1f8ccd;
}

.ubicacion p {
    margin-bottom: 20px;
    color: #333;
}

/* ===== FIX RESPONSIVE MISIÓN / VISIÓN ===== */
@media (max-width: 900px) {

    .fila {
        flex-direction: column !important;
        text-align: center;
        gap: 25px;
        margin: 40px 20px;
    }

    .fila.reverse {
        flex-direction: column !important;
    }

    .fila img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .texto {
        width: 100%;
    }
}

/* ===== SECCIÓN AIRE ===== */
.aire {
    padding: 80px 20px;
    text-align: center;
}

.aire h1 {
    font-size: 48px;
    margin-bottom: 40px;
    color: #1f8ccd;

    background: linear-gradient(90deg, #38BDF8, #1f8ccd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== CATEGORÍAS ===== */
.categorias {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.categoria {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    transition: 0.3s;
}

.categoria img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.4s;
}

.categoria:hover img {
    transform: scale(1.1);
}

.categoria p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1f8ccd;
}

/* ===== FILAS ===== */
.fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 100px auto;
    max-width: 1200px;
}

.fila.reverse {
    flex-direction: row-reverse;
}

/* ===== TEXTO ===== */
.texto {
    width: 50%;
}

.texto h2 {
    font-size: 34px;
    margin-bottom: 15px;
    color: #1f8ccd;

    background: linear-gradient(90deg, #38BDF8, #1f8ccd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.texto p {
    font-size: 18px;
    line-height: 1.7;
}

/* ===== CAROUSEL ===== */
.carousel {
    width: 50%;
    
}

.carousel img {
    height: 280px;
    object-fit: contain;
    background-color: white;
    border-radius: 15px;
    transition: 0.5s;
}

.carousel:hover img {
    transform: scale(1.03);
}

/* ===== INDUSTRIAL ===== */
.industrial {
    text-align: center;
    padding: 80px 20px;
}

.industrial h2 {
    font-size: 36px;
    color: #1f8ccd;

    background: linear-gradient(90deg, #38BDF8, #1f8ccd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industrial p {
    max-width: 800px;
    margin: auto;
}

.industrial .carousel {
    max-width: 900px;
    margin: 40px auto 0 auto; /* centra horizontalmente */
}

.industrial .carousel img {
    width: 100%;
    height: 500px;
    background-color: white;
    object-fit: contain;
    object-position: center top;
    border-radius: 15px;
}

/* ===== SUMINISTRO ===== */
.suministro {
    padding: 80px 20px;
    text-align: center;
}

.suministro h2 {
    font-size: 36px;
    color: #1f8ccd;

    background: linear-gradient(90deg, #38BDF8, #1f8ccd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-suministro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}


/* BOTÓN FLOTANTE */
.chat-boton {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* CHAT */
.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 420px;
       max-width: calc(100% - 20px);
    max-height: 80vh;


    background: white;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}




/* HEADER */
.chat-header {
    background: #1f8ccd;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

/* BODY */
.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    
}

/* MENSAJES */
.msg {
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 80%;
}

.bot {
    background: #f1f5f9;
    align-self: flex-start;
}

.user {
    background: #1f8ccd;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

/* INPUT */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.chat-input button {
    background: #25D366;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
}

/* ===== RESPONSIVE CHAT BOT ===== */
@media (max-width: 600px) {

    .chat-box {
        width: 95%;
        height: 70vh;

        right: 50%;
        transform: translateX(50%);

        bottom: 80px;
        border-radius: 15px;
    }

    .chat-boton {
        width: 55px;
        height: 55px;
        font-size: 22px;

        bottom: 20px;
        right: 20px;
    }

}


/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE FIX GENERAL (IMPORTANTE) ===== */
@media (max-width: 900px) {

    .fila {
        flex-direction: column !important;
        text-align: center;
        gap: 25px;
        margin: 40px 15px;
    }

    .fila.reverse {
        flex-direction: column !important;
    }

    .carousel,
    .texto {
        width: 100% !important;
    }

    .carousel img {
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }

    .categorias {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-suministro {
        grid-template-columns: 1fr;
    }

    /* 🔥 FIX BOTÓN FLOTANTE */
    .chat-boton {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 99999 !important;
    }

    .chat-box {
        z-index: 99998 !important;
    }
}
    
    
    
    p {
    text-wrap: pretty;
    }

    .dots::after {
    content: '';
    animation: dots 1.2s infinite;
}

@keyframes dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

    /* ===== FIX SOLO PARA COTIZACION ===== */
.pagina-cotizacion {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Empuja el footer abajo */
.contenido-cotizacion {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px; /* separación navbar */
    padding-bottom: 40px;
}

/* evita margen extra */
.cotizador {
    margin: 0;
}
/* ===== HERO COTIZACION PRO ===== */
.contenido-cotizacion {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 120px;
    padding-bottom: 40px;

    position: relative;

    background-image: url('../imagenes/banner2.png');
    background-size: cover;
    background-position: center;
}

/* overlay oscuro elegante */
.overlay-cotizacion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.55);
}

/* FORMULARIO ENCIMA */
.cotizador {
    position: relative;
    z-index: 2;

    backdrop-filter: blur(12px);

    animation: fadeUp 0.8s ease;
}

/* MEJORAR INPUTS EN FONDO OSCURO */
.cotizador input,
.cotizador select,
.cotizador textarea {
    background: rgba(255,255,255,0.9);
}

/* BOTÓN MÁS PRO */
.btn-wsp {
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}

/* HOVER MÁS SUAVE */
.btn-wsp:hover {
    transform: translateY(-2px) scale(1.02);
}

