/* ==========================================================================
   1. IMPORTACIONES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Evita que la barra fija de navegación tape los títulos de las secciones */
}  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #050816;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    color: white;
}

a {
    text-decoration: none;
    color: white;
}

/* ==========================================================================
   2. NAVBAR / BARRA DE NAVEGACIÓN
   ========================================================================== */
.seccion {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 90px;
}

/* LOGO Y MARCA */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    filter: drop-shadow(0 0 10px #38bdf8);
    animation: aparecer 2s ease-in-out;
    margin-bottom: 0px;
}

.unir {
    margin-left: 20px;
    animation: aparecer 2s ease-in-out;
    margin-bottom: 0px;
}

#tamaño {
    color: #38bdf8;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

#herma {
    color: white;
    font-size: 15px;
    opacity: 0.7;
}

/* MENÚ DE ENLACES (NAV) */
ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

li {
    list-style: none;
}

li a {
    position: relative;
    font-size: 15px;
    transition: 0.3s;
}

li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: 0.4s;
}

li a:hover::after {
    width: 100%;
}

li a:hover {
    color: #38bdf8;
}

/* BOTÓN DESTACADO NAV (SOLICITAR SERVICIO) */
#color a {
    padding: 14px 22px;
    border-radius: 15px;
    background: linear-gradient(40deg,#2563eb,#38bdf8);
    transition: 0.4s;
}

#color a:hover {
    background: black;
    transform: translateY(-5px);
}

/* ==========================================================================
   3. HERO / CABECERA DE LA PÁGINA
   ========================================================================== */
header {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 100px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url("../imagen/fondo.jpeg");
    background-size: cover;
    background-position: center;
}

.titular {
    position: relative;
    width: 55%;
    margin-top: 105px;
}

h1 {
    font-size: 95px;
    line-height: 1;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 8px;
}

#azul {
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

.descripcion {
    color: #cbd5e1;
    line-height: 1.9;
    margin-top: 25px;
    width: 90%;
}

.titular a {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 28px;
    border-radius: 18px;
    background: linear-gradient(40deg,#2563eb,#38bdf8);
    transition: 0.4s;
}

.titular a:hover {
    background: black;
    transform: translateY(-5px);
}

/* CONTADORES / STATS HERO */
.detalles {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.detalles div {
    padding: 25px;
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.4s;
}

.detalles div:hover {
    transform: translateY(-10px);
    background: rgba(37,99,235,0.2);
}

.detalles h2 {
    font-size: 35px;
    color: #38bdf8;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

.detalles p {
    font-size: 14px;
}

/* ==========================================================================
   4. SERVICIOS (CARRUSEL OWL)
   ========================================================================== */
.carrusel-seccion {
    position: relative;
    padding: 120px 80px;
    background: #070b1a;    
}

.titulo-servicios {
    text-align: center;
    font-size: 50px;
    margin-bottom: 20px;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

/* TARJETAS DE SERVICIO (CARDS) */
.ja {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.5s;
}

.ja:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 0 40px rgba(56,189,248,0.3);
}

.parrafo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.contenido {
    padding: 30px;
}

.contenido h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contenido p {
    color: #94a3b8;
    line-height: 1.8;
}
/* Solo los estilos del nuevo botón de WhatsApp */
.btn-solicitar {
    display: block;
    text-align: center;
    background-color: #0056b3; /* Azul entero */
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 15px; /* Deja una separación con el texto de arriba */
    transition: background-color 0.3s ease;
}

/* Efecto al pasar el cursor */
.btn-solicitar:hover {
    background-color: #063564; /* Azul un poco más oscuro */
}
/* ==========================================================================
   5. SOBRE NOSOTROS
   ========================================================================== */
.marco {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 100px;
    position: relative;
    overflow: hidden;
}

/* EFECTO DE LUZ DIFUMINADA DE FONDO */
.distancia {
    position: absolute;
    width: 500px;
    height: 500px;
    background: #2563eb;
    filter: blur(180px);
    opacity: 0.25;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.letra {
    width: 50%;
    z-index: 2;
}

.mini {
    font-size: 15px;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

.marco h2 {
    font-size: 80px;
    line-height: 1;
    margin: 20px 0;
}

.texto {
    color: #94a3b8;
    line-height: 1.8;
    width: 80%;
}

/* SUB-TARJETAS DE INFORMACIÓN (STATS) */
.info {
    display: flex;
    gap: 25px;
    margin-top: 50px;
}

.mini_info {
    padding: 30px;
    border-radius: 25px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.4s;
}

.mini_info:hover {
    transform: translateY(-10px);
    background: rgba(37,99,235,0.2);
}

.mini_info h3 {
    font-size: 30px;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

.mini_info span {
    color: #94a3b8;
}

/* IMAGEN INTERACTIVA DE LA DERECHA */
.imagen_derecha {
    width: 40%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.imagen_nosotros {
    width: 600px;
    border-radius: 30px;
    overflow: hidden;
    transform: rotate(5deg);
    transition: 0.5s;
    box-shadow: 0 0 50px rgba(56,189,248,0.3);
}

.imagen_nosotros:hover {
    transform: rotate(0deg) scale(1.05);
}

.imagen_nosotros img {
    width: 100%;
}

/* ==========================================================================
   6. TESTIMONIOS Y RESEÑAS
   ========================================================================== */
.testimonios {
    padding: 120px 80px;
    background: #070b1a;
    text-align: center;
}

.testimonios h2 {
    font-size: 70px;
    margin-bottom: 80px;
    font-family: "Bebas Neue", sans-serif;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

.cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    width: 350px;
    min-height: 320px;
    padding: 40px;
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 0 35px rgba(56,189,248,0.2);
}

.stars {
    font-size: 30px;
    margin-bottom: 20px;
}

.card p {
    color: #94a3b8;
    line-height: 1.8;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h4 {
    margin-top: 25px;
    font-size: 20px;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

/* ==========================================================================
   7. FORMULARIO DE COMENTARIOS 
   ========================================================================== */
.form-comentario {
    display: none; /* Se activa dinámicamente con JS */
    flex-direction: column;
    width: 60%;
    margin: 50px auto 0 auto;
    gap: 20px;
}

.form-comentario input,
.form-comentario textarea,
.form-comentario select {
    width: 100%;
    padding: 18px;
    border: none;
    outline: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    backdrop-filter: blur(20px);
    font-size: 16px;
}

.form-comentario textarea {
    height: 150px;
    resize: none;
}

select option {
    background: #050816;
}

/* ==========================================================================
   8. FAQ (PREGUNTAS FRECUENTES - ACORDEÓN)
   ========================================================================== */
.faq {
    padding: 120px 100px;
}

.faq h2 {
    text-align: center;
    font-size: 70px;
    margin-bottom: 80px;
    font-family: "Bebas Neue", sans-serif;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

details {
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 25px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.4s;
}

details:hover {
    background: rgba(37,99,235,0.1);
}

summary {
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
}

details p {
    margin-top: 20px;
    color: #94a3b8;
    line-height: 1.8;
}

/* ==========================================================================
   SUBMENÚ DESPLEGABLE EN NAVBAR (PC)
   ========================================================================== */
.menu-desplegable {
    position: relative; /* Permite posicionar el submenú exactamente debajo */
}

.menu-desplegable .submenu {
    display: none; /* Empieza oculto */
    position: absolute;
    top: 100%; /* Se alinea justo abajo del botón FAQ */
    left: 50%;
    transform: translateX(-50%); /* Lo centra perfectamente */
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borde sutil premium */
    border-radius: 12px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

/* Hace que aparezca suavemente al pasar el mouse por encima de FAQ */
.menu-desplegable:hover .submenu {
    display: block;
}

.menu-desplegable .submenu li {
    width: 100%;
    padding: 0;
    margin: 0;
}

.menu-desplegable .submenu li a {
    display: block;
    padding: 10px 20px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
}

/* Efecto hover para el enlace interno */
.menu-desplegable .submenu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}



/* ==========================================================================
   9. CONTACTO
   ========================================================================== */
.contacto {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinea ambos bloques por la parte de arriba */
    padding: 120px 100px;
    background: #070b1a;
    gap: 50px; /* Separación perfecta entre la columna izquierda y el formulario */
}

/* COLUMNA IZQUIERDA (Texto + Mapa) */
.contacto-info {
    width: 45%; /* Le damos un poco más de espacio para que el mapa sea ancho */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Separa el texto del mapa de forma limpia */
}

.contacto-info h2 {
    font-size: 70px;
    margin-bottom: 10px;
    font-family: "Bebas Neue", sans-serif;
    line-height: 1;
}

.contacto-info p {
    margin: 0;
    color: #94a3b8;
    line-height: 2.4;
}

.contacto_info{
    font-size: 14px;
    color: #94a3b8;
}

/* EL DIV DEL MAPA  */
.mapa-contenedor {
    width: 100%;
    border-radius: 18px; /* Mismo radio curvo que tus inputs */
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08); /* Borde sutil estilo cristal */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); /* Sombra pesada elegante */
    background: rgba(255, 255, 255, 0.02);
}

.mapa-contenedor iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 323px; /* Altura ideal para que cuadre con la altura del formulario */
}

/* COLUMNA DERECHA (Formulario) */
form {
    width: 45%;
}

input,
textarea {
    width: 100%;
    margin-bottom: 25px;
    padding: 18px;
    border: none;
    outline: none;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    color: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box; /* Evita que los inputs se deformen */
    font-family: inherit;
}

textarea {
    height: 160px;
    resize: none;
}

button {
    padding: 18px 28px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(45deg,#2563eb,#38bdf8);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.4s;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(56,189,248,0.6);
}

/* ==========================================================================
   NUEVA SECCIÓN: PASOS DEL SERVICIO (100% AISLADO)
   ========================================================================== */
.pasos-seccion {
    padding: 100px 80px !important;
    background: #050816 !important; /* Mismo fondo de tu body */
    text-align: center !important;
}

.pasos-titular {
    max-width: 1200px !important;
    margin: 0 auto 60px auto !important;
}


.pasos-titular h2 {
    font-size: 70px !important;
    font-family: "Bebas Neue", sans-serif !important;
    margin: 15px 0 !important;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear; /* Tu animación original */
}

.pasos-contenedor {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}

.paso-card {
    flex: 1 !important;
    min-width: 280px !important;
    max-width: 360px !important;
    background: rgba(255, 255, 255, 0.04) !important; /* Cristal de tus otras tarjetas */
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 30px !important;
    padding: 40px 30px !important;
    position: relative !important;
    transition: 0.4s ease !important;
}

.paso-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.2) !important;
}

/* El círculo con el número del paso */
.paso-numero {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #2563eb, #38bdf8);
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.paso-card h3 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
    color: white !important;
}

.paso-card p {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .pasos-seccion {
        padding: 60px 25px !important;
    }
    .pasos-titular h2 {
        font-size: 45px !important;
    }
    .pasos-contenedor {
        flex-direction: column !important;
        align-items: center !important;
    }
    .paso-card {
        width: 100% !important;
    }
}

/* ==========================================================================
   11. TIENDA (PRODUCTOS GRID)
   ========================================================================== */
.btn-nav-carrito {
    background: linear-gradient(40deg, #2563eb, #38bdf8);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.4s;
}

.btn-nav-carrito:hover {
    background: black;
    transform: translateY(-3px);
}

#contador-carrito {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: bold;
}

.contenedor-tienda {
    max-width: 1200px;
    margin: 140px auto 60px auto; /* Compensa la barra fija */
    padding: 0 40px;
}

.titulo-tienda {
    font-size: 70px;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #38bdf8, #2563eb, #ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}

.subtitulo-tienda {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.8;
}

/* RETÍCULA DE PRODUCTOS (GRID) */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.producto-card {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.5s;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
}

.producto-info img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.producto-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
}

.producto-info p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.precio-producto {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear;
}
.producto-info {
    height: auto !important; /* Libera cualquier altura fija vieja que la esté cortando */
    width: 100% !important;
    overflow: visible !important; /* Evita que el contenedor recorte los bordes de la foto */
    display: block !important;
}

.producto-info img {
    width: 100% !important;
    height: auto !important; /* <--- CAMBIO CLAVE: Deja que la altura sea libre según la foto real */
    max-height: 200px !important; /* Le pone un techo para que las tarjetas no se deformen */
    object-fit: contain !important; /* Muestra el producto completo sin recortar nada */
    display: block !important;
    margin: 0 auto 15px auto !important;
}

.btn-agregar-carrito {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-agregar-carrito:hover {
    background: linear-gradient(45deg, #2563eb, #38bdf8);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-agregar-carrito.animar-boton {
    background: #00bcd4 !important;
    box-shadow: 0 0 20px #00bcd4;
}

/* ==========================================================================
   12. CARRITO INTERFAZ (SIDEBAR)
   ========================================================================== */
.carrito-sidebar {
    position: fixed;
    top: 0;
    right: -380px; /* Escondido por defecto */
    width: 360px;
    height: 100vh;
    background: #070b1a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.carrito-sidebar.active {
    right: 0; /* Desplegado */
}

.carrito-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

#close-carrito {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

#close-carrito:hover {
    color: #ff4757;
}

.carrito-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.carrito-vacio {
    color: #57606f;
    text-align: center;
    margin-top: 50px;
    font-size: 15px;
}

.carrito-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carrito-item-row h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: white;
}

.carrito-item-row span {
    color: #94a3b8;
    font-size: 13px;
}

.carrito-item-acciones {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subtotal-item {
    font-weight: 600;
    color: #38bdf8 !important;
    font-size: 15px !important;
}

.carrito-item-acciones button {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 15px;
    padding: 5px;
    transition: 0.3s;
}

.carrito-item-acciones button:hover {
    transform: scale(1.2);
}

.carrito-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.carrito-total-box {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 20px;
    color: white;
}

#total-carrito {
    color: #38bdf8;
}

#btn-enviar-pedido {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.4s;
}

#btn-enviar-pedido:hover {
    background: #1ebd59;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

/* ==========================================================================
   13. EFECTOS INTEGRADOS (HOVER DE IMÁGENES)
   ========================================================================== */
.contenedor-imagen-hover {
    position: relative;
    width: 100%;
    height: 180px; 
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
}

.contenedor-imagen-hover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: opacity 0.4s ease; 
}

.contenedor-imagen-hover .foto-base {
    position: relative; 
    z-index: 2;
    opacity: 1;
}

.contenedor-imagen-hover .foto-hover {
    z-index: 1;
    opacity: 0;
}

.producto-card:hover .contenedor-imagen-hover .foto-base {
    opacity: 0 !important;
}

.producto-card:hover .contenedor-imagen-hover .foto-hover {
    opacity: 1 !important;
    z-index: 3;
}

/* ==========================================================================
   ESTILOS DE LA COLUMNA DE REDES FLOTANTES
   ========================================================================== */
.redes_flotantes {
    position: fixed;
    top: 61%; /* Desplazamos el contenedor hacia arriba para dar espacio al apilamiento */
    right: 3%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaciado perfecto de separación entre los iconos */
    z-index: 999999;
}

/* Propiedades base compartidas por todas las imágenes de redes */
.btn_social img {
    width: 70px;
    height: 70px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    animation: pulsoBrillante 2.5s infinite ease-in-out;
}

/* Efecto hover elástico general */
.btn_social img:hover {
    transform: scale(1.15) rotate(3deg);
}

/* === PERSONALIZACIÓN DE FILTROS CROMÁTICOS (DROP-SHADOWS NEÓN) === */

/* Sombra neón azul para Facebook */
.btn_facebook img {
    filter: drop-shadow(0 8px 20px rgba(24, 119, 242, 0.6));
}

/* Sombra neón cian/magenta para TikTok */
.btn_tiktok img {
    filter: drop-shadow(0 8px 20px rgba(254, 44, 85, 0.6));
}

/* Mantiene la sombra verde original de WhatsApp */
.btn_whatsapp img {
    filter: drop-shadow(0 8px 24px rgba(37, 211, 102, 0.5));
}

/* ==========================================================================
   AJUSTE RESPONSIVE AUTOMÁTICO PARA CELULARES (EVITA QUE TAPEN LA PÁGINA)
   ========================================================================== */
@media (max-width: 768px) {
    .redes_flotantes {
        right: 20px;
        bottom: 20px; /* Se ancla abajo en móviles */
        top: auto; /* Desactiva el top fijo de escritorio */
        gap: 12px;
    }
    .btn_social img {
        width: 55px; /* Reducción de escala ergonómica para celulares */
        height: 55px;
    }
}

.boton_whatsapp img:hover {
    transform: scale(1.12) rotate(5deg);
    filter: drop-shadow(0 12px 30px rgba(37, 211, 102, 0.8)) brightness(1.2);
}

.icono {
    display: none;
}



/* ==========================================================================
   15. ANIMACIONES (KEYFRAMES) - ¡NO BORRAR!
   ========================================================================== */

/* 1. Efecto de entrada para el Logo y Navbar */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. El movimiento continuo de los títulos con degradado (Azul/Celular) */
@keyframes gradient {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 300%;
    }
}

/* 3. El pulso brillante con neón del botón de WhatsApp flotante */
@keyframes pulsoBrillante {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 8px 20px rgba(37, 211, 102, 0.4)) brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 12px 35px rgba(37, 211, 102, 0.7)) brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 20px rgba(37, 211, 102, 0.4)) brightness(1);
    }
}

/* ==========================================================================
   10. FOOTER / PIE DE PÁGINA (ESTILO AZUL SÓLIDO - 100% AISLADO)
   ========================================================================== */
.footer-moderno {
    background: #070b1a !important; /* Azul oscuro profundo a juego con tus secciones */
    color: #ffffff !important;
    padding: 60px 0 20px 0 !important;
    border-top: 3px solid #2563eb !important; /* Tu línea azul sólida */
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.footer-contenedor {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 40px !important;
}

.footer-columna {
    flex: 1 !important;
    min-width: 220px !important;
}

/* MARCA EN EL FOOTER */
h2.footer-logo {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
    font-family: "Poppins", sans-serif !important;
}

h2.footer-logo span {
    background: linear-gradient(45deg,#38bdf8,#2563eb,#ffffff);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s infinite linear !important; 
}

p.footer-descripcion {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important; /* Gris claro de tu descripción original */
    margin: 0 0 20px 0 !important;
    font-family: "Poppins", sans-serif !important;
}

.footer-columna h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 25px 0 !important;
    position: relative !important;
    padding-bottom: 8px !important;
    color: #ffffff !important;
    font-family: "Poppins", sans-serif !important;
}

/* Línea decorativa azul debajo de los títulos */
.footer-columna h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #2563eb !important; /* Tu azul sólido */
    border-radius: 2px !important;
}

/* ENLACES */
.footer-columna ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-columna ul li {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-columna ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-family: "Poppins", sans-serif !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.footer-columna ul li a:hover {
    color: #38bdf8 !important; /* Al pasar el mouse ilumina en tu celeste */
    transform: translateX(5px) !important;
}

p.contacto-info {
    font-size: 14px !important;
    color: #94a3b8 !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: "Poppins", sans-serif !important;
    width: 70%;
}

/* REDES SOCIALES EN ESFERAS OSCURAS CON HOVER AZUL */
.footer-redes {
    display: flex !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.red-icono {
    width: 38px !important;
    height: 38px !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
    font-size: 16px !important;
}

.red-icono:hover {
    background-color: #2563eb !important; /* Se enciende en tu azul sólido */
    color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4) !important;
}

/* BARRA INFERIOR DE CRÉDITOS */
.footer-inferior {
    max-width: 1200px !important;
    margin: 40px auto 0 auto !important;
    padding: 20px 20px 0 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: center !important;
}

.footer-inferior p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    font-family: "Poppins", sans-serif !important;
}

/* ==========================================================================
   16. DISEÑO ULTRA RESPONSIVE (CELULARES Y TABLETS) - 100% CORREGIDO
   ========================================================================== */

/* === AJUSTES PARA PANTALLAS MEDIANAS (TABLETS - 992px o menos) === */
@media (max-width: 992px) {
    .menu {
        padding: 10px 30px !important;
    }
    .contacto {
        padding: 80px 40px !important;
        flex-direction: column !important;
        gap: 50px !important;
        justify-content: center;
    }
    .contacto-info, form {
        width: 100% !important;
    }
    /* Desactiva el flotante de PC en la vista de Tablets */
    .menu-desplegable .submenu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }
}

/* === AJUSTES EXCLUSIVOS PARA IPAD (RESOLUCIÓN EXACTA 768px) === */
@media screen and (min-width: 415px) and (max-width: 768px) {
    /* Redistribución simétrica para que las tarjetas de la tienda y servicios se vean en 2 columnas */
    .productos-grid, .carrusel-seccion .cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Ajuste de stats en "Sobre Nosotros" para que entren en dos parejas */
    #nosotros .info {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Mantiene las secciones horizontales equilibradas sin colapsar del todo */
    .marco {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
    }
    .letra, .imagen_derecha {
        width: 50% !important;
    }
}

/* === AJUSTES PARA PANTALLAS CHICAS (CELULARES - 768px o menos general) === */
@media (max-width: 768px) {
    
    body {
        font-size: 15px !important;
        overflow-x: hidden !important;
    }

    /* ==========================================================================
       PARCHE DEFINITIVO: DESACTIVAR FLOTANTE DE PC EN CELULARES
       ========================================================================== */
    .menu-desplegable .submenu {
        display: none !important; /* Lo apaga por completo al iniciar en el celular */
        position: relative !important; /* Desactiva el modo absoluto flotante de la PC */
        top: 0 !important;
        left: 0 !important;
        transform: none !important; /* Quita el centrado de escritorio */
        width: 100% !important;
        box-shadow: none !important; /* Quita sombras pesadas de PC */
        border: none !important; /* Quita bordes innecesarios */
        background: rgba(0, 0, 0, 0.4) !important; /* Fondo sutil para que se note que es un submenú */
        padding: 5px 0 !important;
    }

    /* Anula el efecto hover de la PC en celulares para que no se bugee al pasar el dedo */
    .menu-desplegable:hover .submenu {
        display: none !important; 
    }

    /* Esta es la clase que usa tu JavaScript para abrirlo con un clic en móvil */
    .menu-desplegable .submenu.mostrar-submenu {
        display: block !important; /* Solo se muestra cuando el usuario le da clic */
    }

    /* 1. NAVBAR CONTAINER CORREGIDO */
    .menu {
        padding: 15px !important;
        position: relative !important;
        display: flex !important; 
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important;
        flex-wrap: wrap !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Forzamos al logo a mantener su lado sin estorbar */
    .logo {
        display: flex !important;
        align-items: center !important;
        max-width: 80% !important;
    }

    .logo img {
        width: 45px !important;
    }

    .unir {
        margin-left: 10px !important;
    }

    #tamaño {
        font-size: 16px !important;
    }

    #herma {
        font-size: 12px !important;
    }

    /* LAS 3 BARRITAS FIJAS EN SU ESQUINA */
    .icono {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        cursor: pointer !important;
        z-index: 1000 !important;
    }

    .icono span {
        display: block !important;
        width: 28px !important;
        height: 3px !important;
        background-color: #ffffff !important;
        border-radius: 2px !important;
    }

    /* 2. EL MENÚ DESPLEGABLE */
    .menu nav {
        display: none !important; 
        width: 100% !important;
    }

    .menu nav.activo, 
    .menu .activo {
        display: block !important; 
    }

    .menu nav ul {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        gap: 15px !important;
        padding: 20px 0 10px 0 !important;
        width: 100% !important;
    }

    nav li a {
        font-size: 13px !important;
    }

    #color a {
        padding: 8px 14px !important;
        border-radius: 10px !important;
    }

    /* Estado inicial: los submenús negros están ocultos */
    .submenu {
        display: none !important; 
        background: #000000 !important; 
        border-radius: 15px;
        padding: 10px;
        list-style: none;
        margin-top: 5px;
    }

    /* Esta clase se encargará de mostrarlos cuando se haga clic */
    .submenu.mostrar-submenu {
        display: block; 
    }

    /* 2. HERO (PORTADA PRINCIPAL) */
    header {
        padding: 0 20px !important;
        justify-content: center !important;
    }

    .titular {
        width: 100% !important;
        margin-top: 140px !important;
        text-align: center !important;
    }

    h1 {
        font-size: 44px !important;
        letter-spacing: 3px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    .descripcion {
        width: 100% !important;
        font-size: 14px !important;
        text-align: center !important;
        margin-top: 15px !important;
    }

    .titular a {
        margin-top: 20px !important;
        padding: 14px 22px !important;
        font-size: 14px !important;
    }

    .detalles {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 25px !important;
    }

    .detalles div {
        padding: 15px !important;
        width: 100% !important;
    }

    .detalles h2 {
        font-size: 28px !important;
    }

    /* 3. SECCIÓN SOBRE NOSOTROS (.MARCO, CAJAS Y TU IMAGEN) */
    .marco {
        padding: 50px 20px !important;
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .marco h2 {
        font-size: 36px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .marco .texto {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        text-align: center !important;
    }

    .imagen_nosotros {
        margin-top: 50px;
    }

    /* 4. SECCIONES GENERALES Y FORMULARIOS */
    .faq, 
    .contacto, 
    .contenedor-tienda,
    .pasos-seccion,
    .carrusel-seccion {
        padding: 50px 20px !important;
    }

    

    .texto {
        width: 100% !important;
        text-align: center !important;
    }

    .faq h2, 
    .contacto-info h2, 
    .titulo-tienda,
    .pasos-titular h2,
    .testimonios h2,
    .titulo-servicios {
        font-size: 36px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }

    input, textarea {
        padding: 15px !important;
        margin-bottom: 18px !important;
        font-size: 14px !important;
        border-radius: 14px !important;
    }

    textarea {
        height: 130px !important;
    }

    form button {
        width: 100% !important;
        padding: 16px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
    }

    /* 5. GRID DE LA TIENDA Y CARRITO */
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 20px !important;
    }

    .carrito-sidebar {
        width: 300px !important;
    }

    /* 6. BOTÓN WHATSAPP FLOTANTE */
    .boton_whatsapp img {
        width: 55px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}

/* === AJUSTES CALIBRADOS PARA IPHONE 6/7/8 PLUS (ANCHO MÁXIMO 414px) === */
/* ==========================================================================
   CORRECCIÓN INTEGRAL DE TARJETAS EN MÓVIL (image_518c28.png)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Fuerza a que el contenedor de los stats se ordene de forma vertical */
    .info {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Espaciado limpio entre tarjetas */
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* 2. Corrige las tarjetas (.mini_info) para que usen todo el ancho y no rompan el texto */
    .mini_info, .caja-enlace {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 25px 20px !important; /* Espacio interno premium */
        box-sizing: border-box !important;
    }

    /* Asegura que los títulos grandes entren completos en una sola línea horizontal */
    .mini_info h3 {
        font-size: 26px !important;
        white-space: nowrap !important; /* Evita que "con el 98%" se parta en tres líneas */
        margin-bottom: 8px !important;
    }

    /* 3. Ajuste para centrar y estructurar la sección de la imagen */
    .imagen_derecha {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 35px !important;
    }

    .imagen_nosotros {
        width: 90% !important; /* Le da un margen estético a los lados */
        max-width: 350px !important;
        margin-top: 0px !important; /* Eliminamos el desfase exagerado */
    }

    .imagen_nosotros img {
        width: 100% !important;
        height: auto !important;
        border-radius: 15px !important; /* Sincroniza las esquinas con las tarjetas */
    }
}

@media screen and (max-width: 414px) {
   /* 1. Fuerza a que el contenedor de los stats se ordene de forma vertical */
    .info {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Espaciado limpio entre tarjetas */
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* 2. Corrige las tarjetas (.mini_info) para que usen todo el ancho y no rompan el texto */
    .mini_info, .caja-enlace {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 25px 20px !important; /* Espacio interno premium */
        box-sizing: border-box !important;
    }

    /* Asegura que los títulos grandes entren completos en una sola línea horizontal */
    .mini_info h3 {
        font-size: 26px !important;
        white-space: nowrap !important; /* Evita que "con el 98%" se parta en tres líneas */
        margin-bottom: 8px !important;
    }

    /* 3. Ajuste para centrar y estructurar la sección de la imagen */
    .imagen_derecha {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 35px !important;
    }

    .imagen_nosotros {
        width: 90% !important; /* Le da un margen estético a los lados */
        max-width: 350px !important;
        margin-top: 0px !important; /* Eliminamos el desfase exagerado */
    }

    .imagen_nosotros img {
        width: 100% !important;
        height: auto !important;
        border-radius: 15px !important; /* Sincroniza las esquinas con las tarjetas */
    }
}