/* ============================================= */
/* BASE STYLES */
/* ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 50%, #f7f7f7 100%);
}


    /* ========================================= */
        /* TOP BAR - NUEVO COMPONENTE */
        /* ========================================= */
        .top-bar {
            position: fixed;
            transition: transform 0.3s ease;
            top: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(135deg, #0a275d 0%, #0c3278 100%);
            height: 40px;
            z-index: 101;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .top-bar-content {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .top-bar-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.85rem;
            transition: color 0.3s ease;
        }

        .top-bar-item i {
            color: #ff8f3f;
            font-size: 0.9rem;
        }

        .top-bar-item:hover {
            color: #ffffff;
        }

        .top-bar-item a {
            color: inherit;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .top-bar-item a:hover {
            color: #ff8f3f;
        }

        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .social-links-top {
            display: flex;
            gap: 10px;
        }

        .social-links-top a {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.85rem;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-links-top a:hover {
            background: #ff8f3f;
            color: white;
            transform: translateY(-2px);
        }

        .divider {
            height: 20px;
            width: 1px;
            background: rgba(255, 255, 255, 0.2);
        }


/* ============================================= */
/* HEADER & NAVIGATION */
/* ============================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 0;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 160%);
  z-index: 100;
   top: 40px; /* Debajo del top bar */
}

.container__menu {
  width: 100%;
  height: 75px;
  background: transparent;
  padding: 0 20px;
}

.menu {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  position: static;
  width: 50px;
  transform: translateZ(40px);
  padding-right: 150px;
}

.logo img {
  height: 80px;
  width: 204px;
}

/* Navigation */
nav {
  height: 100%;
}

nav > ul {
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: auto;
}

nav > ul > li {
  height: 100%;
  list-style: none;
  position: relative;
}
/* Opción de administrador destacada */
.admin-option a {
    background: linear-gradient(135deg, #fff5f5, #ffecec);
    border-left: 3px solid #ff6b6b;
    color: #d63031 !important;
    font-weight: 600;
    margin: 2px 4px;
    border-radius: 4px;
}
nav > ul > li > a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 14px;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.7em;
  transition: all 300ms ease;
}

nav > ul > li > a:hover {
  transform: scale(1);
  background: #0a275dec;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}


      /* Submenu */
nav ul li ul {
  position: absolute;
  top: 50px;
  left: 0;
  width: 250px;
  background: rgb(255, 255, 255);
  flex-direction: column;
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  z-index: 10;
  
}
nav ul li ul {
  min-height: 200px; /* Altura mínima */
  padding: 20px 0; /* Más padding vertical */
}

nav ul li ul li {
  margin: 8px 0; /* Más espacio entre items */
}

nav ul li ul li a {
  padding: 12px 25px; /* Más padding en los links */
  font-size: 0.9em; /* Texto ligeramente más grande */
  display: flex;
  align-items: center;
  min-height: 40px; /* Altura mínima por item */
}

nav ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  top: 60px;
}

nav ul li ul li {
  list-style: none;
}

nav ul li ul li a {
  color: #333333;
  padding: 10px 20px;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.8em;
  text-transform: none;
}

nav ul li ul li a:hover {
  color: #0c3278;
  background: #eaeaea;
}

/* ============================================= */
/* MEGA MENU MINIMALISTA Y COMPACTO */
/* ============================================= */

.mega-menu {
    position: static;
}

.mega-menu-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #0c3278;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 10px; /* Reducido verticalmente */
    box-sizing: border-box;
}

.mega-menu:hover .mega-menu-content {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

/* Grid de columnas optimizado */
.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* Reducido para menos espacio */
    max-width: 1200px;
    margin: 0 auto;
}

/* Columnas individuales más compactas */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-radius: 6px;
    padding: 12px; /* Aumentado ligeramente */
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    min-height: 120px; /* Aumentado para mejor visualización */
}

.mega-menu-column:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(12, 50, 120, 0.08);
    border-color: rgba(12, 50, 120, 0.15);
}

/* Contenedor de imagen corregido */
.category-image {
    width: 100%;
    height: auto; /* Cambiado de 10px fijo a auto */
    min-height: 60px; /* Altura mínima en lugar de fija */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    position: relative;
    padding: 8px; /* Agregado padding para espacio interno */
}

/* Imágenes dentro del contenedor */
.category-image img {
    width: auto;
    height: 35px; /* Altura fija para consistencia */
    max-width: 80%; /* Máximo ancho del 80% del contenedor */
    object-fit: contain; /* Asegura que la imagen completa sea visible */
    transition: all 0.3s ease;
    filter: grayscale(30%) opacity(0.85);
}

.mega-menu-column:hover .category-image img {
    transform: scale(1.05);
    filter: grayscale(0%) opacity(1);
}

/* Títulos más compactos y elegantes */
.mega-menu-column h4 {
    color: #2c3e50;
    font-size: 0.8rem; /* Reducido de 0.9rem */
    margin-bottom: 5px; /* Reducido significativamente */
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Enlaces más pequeños y elegantes */
.category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: auto;
}

.category-link:hover {
    background: linear-gradient(135deg, #0a275d 0%, #1558b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 50, 120, 0.25);
}

/* Animación de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* RESPONSIVE DESIGN MEJORADO */
/* ============================================= */

/* Tablets grandes */
@media (max-width: 1024px) {
    .mega-menu-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .mega-menu-content {
        padding: 15px 10px;
    }
    
    .category-image {
        height: 28px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .mega-menu-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .mega-menu-content {
        padding: 12px 8px !important;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .mega-menu-column .category-image {
        display: none;
    }
    
    .mega-menu-column {
        padding: 12px;
        text-align: center;
        min-height: 70px;
    }
    
    .mega-menu-column h4 {
        margin-bottom: 8px;
        font-size: 0.85rem;
    }
    
    .category-link {
        width: 100%;
        padding: 8px;
        font-size: 0.7rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .mega-menu-columns {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .mega-menu-content {
        padding: 10px 5px !important;
        max-height: 60vh;
    }
    
    .mega-menu-column {
        padding: 10px;
        margin-bottom: 5px;
        background: #ffffff;
        border-radius: 6px;
        min-height: 60px;
    }
    
    .mega-menu-column h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .category-link {
        padding: 6px 10px;
        font-size: 0.65rem;
        border-radius: 12px;
    }
}

/* ============================================= */
/* ESTADOS Y EFECTOS ADICIONALES */
/* ============================================= */

/* Efecto de carga suave */
.mega-menu-column {
    opacity: 0;
    transform: translateY(10px);
    animation: slideInUp 0.4s ease-out forwards;
}

.mega-menu-column:nth-child(1) { animation-delay: 0.05s; }
.mega-menu-column:nth-child(2) { animation-delay: 0.1s; }
.mega-menu-column:nth-child(3) { animation-delay: 0.15s; }
.mega-menu-column:nth-child(4) { animation-delay: 0.2s; }
.mega-menu-column:nth-child(5) { animation-delay: 0.25s; }
.mega-menu-column:nth-child(6) { animation-delay: 0.3s; }
.mega-menu-column:nth-child(7) { animation-delay: 0.35s; }
.mega-menu-column:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Línea decorativa sutil */
.mega-menu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1.2px;
    background: linear-gradient(80deg, transparent, #0c3278, transparent);
    border-radius: 0 0 3px 3px;
}

/* Mejoras de accesibilidad */
.category-link:focus {
    outline: 2px solid #0c3278;
    outline-offset: 2px;
}

.mega-menu-column:focus-within {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(12, 50, 120, 0.08);
}

/* Optimización para pantallas de alta densidad */
@media (min-resolution: 2dppx) {
    .category-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


/* Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 24px;
  background: none;
  border: none;
  padding: 10px;
}
/* Estilos específicos para el submenú de usuario */
nav > ul > li.has-submenu.user-menu > ul {
  left: auto;
  right: 0;
  width: 200px;
}

nav > ul > li.has-submenu.user-menu:hover > ul {
  top: 75px;
  right: 0;
  left: auto;
}

/* Estilos para los elementos del submenú de usuario */
.user-submenu li {
  margin: 0;
}

.user-submenu li a,
.user-submenu li form button {
  padding: 12px 20px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  min-height: 40px;
  width: 100%;
  text-align: left;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.user-submenu li a:hover,
.user-submenu li form button:hover {
  color: #0c3278;
  background: #c4c4c4;
}

/* Iconos en el submenú de usuario */
.user-submenu li a i,
.user-submenu li form button i {
  margin-right: 10px;
  width: 18px;
  text-align: center;
}
/* ============================================= */
/* MAIN CONTENT */
/* ============================================= */
.contenedor__principal {
  max-width: 95%;
  margin: 0 auto;
  padding-top: 15px;
  display: grid;
  gap: 25px;
  justify-content: center;
  grid-template-columns: 1fr;
}

/* ============================================= */
/* SECTIONS */
/* ============================================= */
/* About Section */
.about {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
  margin-top: 200px;
}

.about__container {
  max-width: 800px;
  margin: 0 auto;
}

.about__title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 20px;
}

.about__description {
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  color: #555;
  line-height: 1.6;
}

/* Services Section */
.seccion-servicios {
  margin-top: 50px;
  padding: 60px 20px;
  background-color: #f7f7f7;
}

.servicios-contenedor {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.servicios-imagen {
  flex: 1 2 400px;
  transform: translateY(88px);
}

.servicios-imagen img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.servicios-texto {
  flex: 1 1 500px;
}

.servicios-texto h2 {
  font-size: 29px;
  margin-bottom: 29px;
  color: #222;
}

.servicios-texto h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #666;
}

.servicios-texto p {
  font-size: 17px;
  line-height: 1.5;
  color: #444;
}

/* Nosotros Section */
.seccion-nosotros {
  margin-top: 0;
  padding: 100px 20px;
  background: linear-gradient(135deg, #fffefe1f 0%, #e2e8f031 100%);
  position: relative;
  overflow: hidden;
}

.seccion-nosotros::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(135deg, rgba(12, 50, 120, 0.03), rgba(26, 109, 223, 0.05));
  border-radius: 50%;
  z-index: 0;
}

.nosotros-contenedor {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.nosotros-imagen {
  position: relative;
}

.imagen-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.imagen-wrapper:hover {
  transform: translateY(-1px);
}

.nosotros-imagen img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.imagen-wrapper:hover img {
  transform: scale(1.05);
}

.experience-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: linear-gradient(90deg, #E55422 0%, #FFA726 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(12, 50, 120, 0.3);
  z-index: 2;
}

.nosotros-texto {
  padding: 0 20px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 50, 120, 0.1);
  color: #0c3278;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nosotros-texto h2 {
  font-size: 3.2rem;
  font-weight:800;
  color: #1d1d1d;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nosotros-texto h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a6ddf;
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.nosotros-texto h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
  border-radius: 2px;
}

.nosotros-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 30px;
  font-weight: 400;
}


/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.stat-item {
  text-align: left;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(12, 50, 120, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(12, 50, 120, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0c3278;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================= */
/* BUTTONS */
/* ============================================= */
.linktree-btn1, .nosotros-btn, .servicio-boton {
  display: inline-block;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.linktree-btn1 {
  margin-top: 40px;
  padding: 12px 28px;
  font-size: 18px;
}

.nosotros-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 35px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(12, 50, 120, 0.2);
  position: relative;
  overflow: hidden;
}

.nosotros-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nosotros-btn:hover::before {
  left: 100%;
}

.nosotros-btn:hover {
  background: linear-gradient(135deg, #0a275d 0%, #1558b8 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(12, 50, 120, 0.3);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.nosotros-btn:hover .btn-icon {
  transform: translateX(3px);
}

.servicio-boton {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.linktree-btn1:hover, .servicio-boton:hover {
  background: linear-gradient(135deg, #0a275d 0%, #1558b8 100%);
  transform: translateY(-3px);
}

/* ============================================= */
/* SERVICES CARDS */
/* ============================================= */
.servicio {
  flex: 1 1 23%;
  min-width: 200px;
  background: white;
  padding: 30px;
  border-radius: 7px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-10px);
}

.servicio-icono {
  font-size: 2.5rem;
  color: #0e3886;
  margin-bottom: 20px;
}

.servicio-titulo {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #222;
}

.servicio-descripcion {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 20px;
}

/* Service Icons */
.servicio-icono {
  background: linear-gradient(90deg, #E55422 0%, #FFA726 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* ============================================= */
/* UTILITY COMPONENTS */
/* ============================================= */

/* Floating Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;        /* Tamaño controlado por width/height */
  height: 60px;
  background-color: #25D366;
  color: white;
  font-size: 32px;    /* Tamaño del icono */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none; /* Si es un enlace <a> */
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #1ebd5b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Versión móvil */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 15px;
    right: 15px;
  }
}

.btn-volver-arriba {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: #e55422;
  color: white;
  border: none;
  border-radius: 20%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.btn-volver-arriba.mostrar {
  opacity: 1;
  visibility: visible;
}

.btn-volver-arriba:hover {
  background-color: #e55422;
}

/* ============================================= */
/* ANIMATIONS */
/* ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================= */
/* RESPONSIVE STYLES */
/* ============================================= */
@media (max-width: 768px) {
  /* Mobile Menu */
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 75px);
    background: #0e3886;
    transition: left 0.3s;
    padding: 20px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
  }
  
  nav ul li {
    height: auto;
    width: 100%;
    margin: 10px 0;
  }
  
  /* CORRECCIÓN CRÍTICA: Submenús en móvil */
  nav ul li ul {
    position: static !important;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 10px;
  }
  
  /* Mostrar submenú cuando está activo */
  nav ul li.active > ul {
    display: block !important;
  }
  
  /* Enlaces de submenú en móvil */
  nav ul li ul li a {
    color: #ffffff !important;
    padding: 10px 15px;
  }
  
  nav ul li ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Indicador visual de menú desplegable */
  nav .has-submenu > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
  }
  
  nav .has-submenu.active > a::after {
    transform: rotate(180deg);
  }
  
  .logo img {
    height: 70px;
  }
  
  .search-container {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-input:focus {
    width: 100%;
  }
  
  .search-item {
    order: -1;
    width: 100%;
    padding: 10px;
  }
  
  .search-input {
    position: static;
    width: 100%;
    opacity: 1;
    border-radius: 20px;
    margin-right: 10px;
  }
  
  .search-input.active {
    width: calc(100% - 50px);
  }
  
  /* Services */
  .servicios-contenedor {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .servicios-imagen,
  .servicios-texto {
    flex: 1 1 100%;
  }

  .linktree-btn1 {
    margin-top: 20px;
  }

  .servicios-texto h2 {
    font-size: 24px;
    margin-top: 50px;
  }

  .servicios-texto h4 {
    font-size: 18px;
  }

  .servicios-texto p {
    font-size: 15px;
  }
  
  /* Nosotros */
  .seccion-nosotros {
    padding: 80px 20px;
  }

  .nosotros-contenedor {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .nosotros-imagen {
    order: 2;
  }

  .nosotros-texto {
    order: 1;
    padding: 0;
  }

  .nosotros-texto h2 {
    font-size: 2.2rem;
  }

  .nosotros-texto h4 {
    font-size: 1.2rem;
    padding-left: 0;
  }

  .nosotros-texto h4::before {
    display: none;
  }

  .nosotros-texto p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    text-align: center;
  }

  .experience-badge {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
  }
  
  /* Services Cards */
  .servicios-contenedor {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .servicio {
    flex: 1 1 45%;
    margin-bottom: 20px;
  }
}
/* ==================== */
/* VARIABLES Y GENERALES */
/* ==================== */
:root {
  --primary-blue: #0c3278;
  --secondary-blue: #1a6ddf;
  --accent-orange: #e55322;
  --light-gray: #f0f0f0;
  --medium-gray: #7f8c8d;
  --dark-gray: #2c3e50;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s ease;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ========== */
/* COMPONENTES */
/* ========== */

/* ----------------- */
/* SLIDER PRINCIPAL */
/* ----------------- */
.slider {
  position: relative;
  width: 100vw;
  height: clamp(300px, 50vw, 620px);
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  will-change: transform;
  transition: transform var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  user-select: none;
  -webkit-user-drag: none;
}

.slide.loading {
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0, #f0f0f0);
  background-size: 200% 200%;
  animation: loading 1.5s ease-in-out infinite;
}

/* Controles de navegación */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 50px;
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  pointer-events: all;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 160%);
  border: none;
  color: var(--white);
  font-size: 18px;
  width: 50px;
  height: 50px;
  border-radius: 10%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  margin: 10px;
}

.slider:hover .nav-btn {
  opacity: 1;
}

.nav-btn:hover {
  background: linear-gradient(135deg, rgba(12, 50, 120, 0.37) 0%, var(--secondary-blue) 160%);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn:focus {
  outline: 2px solid #2290cb;
  outline-offset: 2px;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Indicadores */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--accent-orange);
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.indicator:focus {
  outline: 2px solid #2290cb;
  outline-offset: 2px;
}

/* Barra de progreso */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), #2290cb);
  width: 0%;
  transition: width 0.1s ease;
}

/* ----------------- */
/* MENÚ DE IMÁGENES */
/* ----------------- */
.has-submenu ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
}

.menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.has-submenu ul {
  min-width: 200px;
}

/* ----------------- */
/* CONTENIDO PRINCIPAL */
/* ----------------- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30%;
  width: 100%;
  box-sizing: border-box;
}

.catalogo-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
  padding: 0 10px;
}

.catalogo-header h1 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--dark-gray);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.catalogo-header p {
  font-size: 1rem;
  color: var(--medium-gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ----------------- */
/* PRODUCTOS */
/* ----------------- */
.productos-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  padding: 0 89.5px;
}

.producto-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm), 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 8px;
  animation: fadeInUp 0.6s ease-out forwards;
}

.producto-card:nth-child(1) { animation-delay: 0.1s; }
.producto-card:nth-child(2) { animation-delay: 0.2s; }
.producto-card:nth-child(3) { animation-delay: 0.3s; }
.producto-card:nth-child(4) { animation-delay: 0.4s; }
.producto-card:nth-child(5) { animation-delay: 0.5s; }
.producto-card:nth-child(6) { animation-delay: 0.6s; }
.producto-card:nth-child(7) { animation-delay: 0.7s; }
.producto-card:nth-child(8) { animation-delay: 0.8s; }

.producto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), #19229d);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.producto-card:hover::before {
  transform: scaleX(1);
}

.producto-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.08);
}

.producto-imagen {
  height: 160px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(45deg, #f8f9fa, var(--white));
}

.producto-imagen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
  padding: 10px;
}

.producto-card:hover .producto-imagen img {
  transform: scale(1.05);
}

.producto-info {
  padding: 15px;
  text-align: left;
  background: var(--white);
}

.producto-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.producto-info p {
  font-size: 0.85rem;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.btn-ver-mas {
  background: linear-gradient(90deg, var(--accent-orange));
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(8px);
  display: inline-block;
  width: auto;
  margin-top: 5px;
}

.producto-card:hover .btn-ver-mas {
  opacity: 1;
  transform: translateY(0);
}

.btn-ver-mas:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(240, 141, 28, 0.3);
}

/* ========== */
/* COMPONENTES */
/* ========== */

/* ----------------- */
/* SLIDER PRINCIPAL */
/* ----------------- */
.slider {
  position: relative;
  width: 100vw;
  height: clamp(300px, 50vw, 620px);
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  will-change: transform;
  transition: transform var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  user-select: none;
  -webkit-user-drag: none;
}

.slide.loading {
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0, #f0f0f0);
  background-size: 200% 200%;
  animation: loading 1.5s ease-in-out infinite;
}

/* Controles de navegación */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 50px;
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  pointer-events: all;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 160%);
  border: none;
  color: var(--white);
  font-size: 18px;
  width: 50px;
  height: 50px;
  border-radius: 10%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.slider:hover .nav-btn {
  opacity: 1;
}

.nav-btn:hover {
  background: linear-gradient(135deg, rgba(12, 50, 120, 0.37) 0%, var(--secondary-blue) 160%);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn:focus {
  outline: 2px solid #2290cb;
  outline-offset: 2px;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Indicadores */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--accent-orange);
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.indicator:focus {
  outline: 2px solid #2290cb;
  outline-offset: 2px;
}

/* Barra de progreso */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), #2290cb);
  width: 0%;
  transition: width 0.1s ease;
}

/* ----------------- */
/* MENÚ DE IMÁGENES */
/* ----------------- */
.has-submenu ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
}

.menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.has-submenu ul {
  min-width: 200px;
}

/* ----------------- */
/* CONTENIDO PRINCIPAL */
/* ----------------- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30%;
  width: 100%;
  box-sizing: border-box;
}

.catalogo-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
  padding: 0 10px;
}

.catalogo-header h1 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--dark-gray);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.catalogo-header p {
  font-size: 1rem;
  color: var(--medium-gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ----------------- */
/* PRODUCTOS */
/* ----------------- */
.productos-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  padding: 0 89.5px;
}

.producto-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm), 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 8px;
  animation: fadeInUp 0.6s ease-out forwards;
}

.producto-card:nth-child(1) { animation-delay: 0.1s; }
.producto-card:nth-child(2) { animation-delay: 0.2s; }
.producto-card:nth-child(3) { animation-delay: 0.3s; }
.producto-card:nth-child(4) { animation-delay: 0.4s; }
.producto-card:nth-child(5) { animation-delay: 0.5s; }
.producto-card:nth-child(6) { animation-delay: 0.6s; }
.producto-card:nth-child(7) { animation-delay: 0.7s; }
.producto-card:nth-child(8) { animation-delay: 0.8s; }

.producto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), #19229d);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.producto-card:hover::before {
  transform: scaleX(1);
}

.producto-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.08);
}

.producto-imagen {
  height: 160px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(45deg, #f8f9fa, var(--white));
}

.producto-imagen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
  padding: 10px;
}

.producto-card:hover .producto-imagen img {
  transform: scale(1.05);
}

.producto-info {
  padding: 15px;
  text-align: left;
  background: var(--white);
}

.producto-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.producto-info p {
  font-size: 0.85rem;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.btn-ver-mas {
  background: linear-gradient(90deg, var(--accent-orange));
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(8px);
  display: inline-block;
  width: auto;
  margin-top: 5px;
}

.producto-card:hover .btn-ver-mas {
  opacity: 1;
  transform: translateY(0);
}

.btn-ver-mas:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(240, 141, 28, 0.3);
}

/* ----------------- */
/* SIDEBAR */
/* ----------------- */
.sidebar-container {
  flex: 0 0 280px;
  position: sticky;
  top: 150px;
  height: fit-content;
  overflow-x: hidden;
  align-self: flex-start;
}

.sidebar {
  width: 100%;
  background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 50%, #f7f7f7 100%);
  border-radius: 0.2px;
  padding: 31.5px;
  transform: translateX(16.2px);
}

/* Encabezado del sidebar */
.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 30px;
  border-bottom: 0.9px solid #eee;
}

.sidebar-title {
  font-size: 1.6rem;
  font-weight: 0;
  color: #000000;
  margin: 0;
  position: relative;
  padding-left: 15px;
}

.sidebar-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Menú del sidebar */
.sidebar-menu-category-list,
.sidebar-submenu-category-list,
.sidebar-accordion-menu {
  width: 100%;
  max-width: 100%;
  list-style: none !important;
}

.sidebar-submenu-category-list {
  padding-left: 15px !important;
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.sidebar-submenu-category-list.active {
  max-height: 500px;
  padding: 10px 0 10px 15px;
}

.sidebar-menu-category {
  margin-bottom: 5px;
}

.sidebar-accordion-menu {
  width: 100%;
  background: none;
  border: none;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 50px;
}

.sidebar-accordion-menu:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.menu-title-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1; /* Ocupa todo el espacio */
  min-width: 0; /* Permite truncamiento */
}

.menu-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
  margin: 0;
  position: relative;
  padding-bottom: 10px;
   white-space: nowrap; /* Evita salto de línea */
}

.menu-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 0.7px;
  background: var(--primary-blue);
  transition: all var(--transition-medium);
  border-radius: 0.8px;
}

.sidebar-accordion-menu:hover .menu-title {
  color: var(--white);
  font-weight: 285;
}

.sidebar-accordion-menu:hover .menu-title::after {
  width: 100%;
  background: var(--white);
}






/* Submenú */
.sidebar-submenu-category {
  margin-bottom: 10px;
}

.sidebar-submenu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #6a6a6a;
  font-size: 0.8rem;
  font-weight: 300;
  padding: 5px 10px;
  transition: color var(--transition-fast);
}

.sidebar-submenu-title:hover {
  color: var(--primary-blue) !important;
}

.sidebar-submenu-category:hover {
  background-color: #f0f5ff;
  transition: background-color var(--transition-medium);
}

.sidebar-submenu-title:hover .product-name,
.sidebar-submenu-title:hover .stock {
  color: var(--primary-blue) !important;
}

.product-name {
  margin: 0;
}

.stock {
  color: #888;
  font-size: 0.9rem;
}

/* Productos destacados */
.product-showcase {
  margin-top: 40px;
}

.showcase-heading {
  font-size: 1.4rem;
  font-weight: 550;
  color: #e55422;
  margin-bottom: 15px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.showcase-wrapper {
  overflow: hidden;
}

.showcase-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    will-change: transform;
}

.showcase {
  min-width: 200px;
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.showcase-img-box {
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

.showcase-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  border-radius: 5px;
}

.showcase-content {
  text-align: center;
}

.showcase-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin: 5px 0;
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-category {
  font-size: 0.8rem;
  color: #3498db;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.showcase-rating {
  color: #f39c12;
  font-size: 0.8rem;
  margin: 5px 0;
}

.price-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.price {
  font-weight: 600;
  color: #333;
}

del {
  color: #888;
  font-size: 0.8rem;
}

/* Botones de navegación mejorados */
.showcase-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.showcase-prev, 
.showcase-next {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
}

.showcase-prev:hover:not(:disabled), 
.showcase-next:hover:not(:disabled) {
    background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(12, 50, 120, 0.25);
}

.showcase-prev:disabled,
.showcase-next:disabled {
    background: #f8f9fa;
    color: #ced4da;
    cursor: not-allowed;
    border-color: #e9ecef;
    opacity: 0.5;
}
/* Scroll personalizado */
.has-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.has-scrollbar::-webkit-scrollbar {
  height: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.has-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ============= */
/* ANIMACIONES */
/* ============= */
@keyframes loading {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= */
/* RESPONSIVE */
/* ============= */

/* Tablets */
@media (max-width: 768px) {
  .slider {
    height: clamp(250px, 60vw, 400px);
  }
  
  .slider-nav {
    padding: 0 10px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  /* Main content */
  .main-content {
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    max-width: 100%;
  }
  
  .catalogo-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .catalogo-header p {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 15px;
  }
  
  .productos-contenedor {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0;
  }
  
  .producto-imagen {
    height: 180px;
  }
  
  .producto-info {               
    padding: 20px 15px;
  }
  
  .producto-info h3 {
    font-size: 1.1rem;
    line-height: 1.3;             
  }
  
  .producto-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;             
  }
  
  .btn-ver-mas {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Sidebar */
  .product-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 30px;
  }
  
  .sidebar-close-btn {
    display: block;
  }
  
  .sidebar[data-mobile-menu] {
    display: none;
  }
  
  .showcase-container {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 10px;
  }
  
  .showcase {
    min-width: calc(50% - 15px);
  }
}

/* Móviles */
@media (max-width: 480px) {
  .main-content {
    padding: 10px;
    margin: 0;
  }
  
  .catalogo-header h1 {
    font-size: 1.5rem;
  }
  
  .catalogo-header p {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  
  .productos-contenedor {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 5px;
  }
    
  .producto-imagen {
    height: 150px;
  }
    
  .producto-info {
    padding: 15px 12px;
  }
    
  .producto-info h3 {
    font-size: 1rem;
  }
  
  .producto-info p {
    font-size: 0.85rem;
  }
  
  .btn-ver-mas {
    padding: 8px;
    font-size: 0.8rem;
  }
  
  .showcase {
    min-width: 100%;
  }
}

/* Móviles muy pequeños */
@media (max-width: 320px) {
  .main-content {
    padding: 8px;
  }
  
  .productos-contenedor {
    padding: 0 2px;
  }
  
  .producto-info {
    padding: 12px 10px;
  }
}

      /* Estilos para el catálogo---------------------------------- (2)*/
.catalogo-seccion {
  padding: 60px 20px;
  background-color: #f9f9f9;
 
}

.catalogo-header {
  text-align: center;
  margin-bottom: 60px;
}

.catalogo-header h2 {
  font-size: 2.4rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 850;
}

.catalogo-header p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.filtros {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 8px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filtro-btn.active, .filtro-btn:hover {
  background: #166188;
  color: white;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 160%);
}

/* -------------------------------------------------------------------------Estilos para el catálogo (2)*/

/* SECCIÓN PRINCIPAL */
.catalogo-seccion {
   grid-column: 1 / -1; /* Ocupa todas las columnas */
  padding: 80px 20px;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* Efecto de fondo con el logo/mundo sutil */
.catalogo-seccion::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: url('https://www.grupodiarventilacion.com/wp-content/uploads/2023/05/logo-Diar-1.png') no-repeat;
  background-size: contain;
  opacity: 0.03;
  z-index: 0;
}

/* HEADER MEJORADO */
.catalogo-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.catalogo-header h2 {
  font-size: 2.8rem;
  color: #0c3278;
  margin-bottom: 15px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.catalogo-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0c3278 0%, #1a6ddf 100%);
  border-radius: 2px;
}

.catalogo-header p {
  color: #555;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* FILTROS MEJORADOS */
.filtros {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filtro-btn {
  padding: 10px 25px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filtro-btn.active, 
.filtro-btn:hover {
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(12, 50, 120, 0.2);
  transform: translateY(-2px);
}


/*-------------------------------------------------------------- CATÁLOGO MEJORADO */
.catalogo-seccion {
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  background-color: #f9fbfe;
}

.catalogo-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.catalogo-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e8f0fe;
  display: flex;
  flex-direction: column;
}

.catalogo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #c2d8ff;
}

/* CONTENEDOR DE IMAGEN CON EFECTO */
.catalogo-imagen-contenedor {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f8faff;
}

.catalogo-imagen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  padding: 15px;
}

.catalogo-item:hover .catalogo-imagen {
  transform: scale(1.08);
}
/* ============================================= */
/* CATEGORY CARDS STYLES */
/* ============================================= */
.category-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 50, 120, 0.7), rgba(12, 50, 120, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.category-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0c3278;
    margin-bottom: 15px;
    line-height: 1.3;
}

.category-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
    text-decoration: none;
}

.category-btn:hover {
    background: linear-gradient(135deg, #092862 0%, #1557b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 50, 120, 0.3);
}

.category-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.category-btn:hover i {
    transform: translateX(3px);
}

/* ============================================= */
/* RESPONSIVE STYLES */
/* ============================================= */
@media (max-width: 1024px) {
    .category-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .category-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category-content {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .category-cards-container {
        padding: 0 10px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* EFECTO HOVER CON LOGO MUNDO */
.catalogo-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom, 
    rgba(12, 50, 120, 0.7) 0%, 
    rgba(229, 83, 34, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalogo-item:hover .catalogo-hover {
  opacity: 1;
}

.catalogo-hover::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background: url('https://www.grupodiarventilacion.com/wp-content/uploads/2023/05/logo-Diar-1.png') no-repeat center;
  background-size: contain;
  opacity: 0.2;
}

.ver-detalles {
  background: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 15px;
}

.ver-detalles:hover {
  background: #fffffff5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ---------------------------------------------------------------INFO DEL PRODUCTO MEJORADA */
.catalogo-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.catalogo-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0c3278;
  font-weight: 700;
  line-height: 1.3;
}

.catalogo-descripcion {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.catalogo-precio {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0c3278;
  padding: 6px 12px;
  background-color: #f0f7ff;
  border-radius: 5px;
  margin: 10px 0;
}

/* BOTÓN MEJORADO */
.contactar-asesor {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contactar-asesor:hover {
  background: linear-gradient(135deg, #092862 0%, #1557b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 50, 120, 0.25);
}

/* FOOTER MEJORADO */
.catalogo-footer {
  text-align: center;
  margin-top: 50px;
  padding: 0 15px;
}

.cargar-mas {
  padding: 12px 30px;
  background: white;
  border: 2px solid #0c3278;
  color: #0c3278;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.cargar-mas:hover {
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 50, 120, 0.15);
}

.contacto-link {
  color: #0c3278;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
}

.contacto-link:hover {
  color: #1a6ddf;
  text-decoration: underline;
}

/* ANIMACIONES DE FILTRADO */
.catalogo-item.filtering-out {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.catalogo-item.filtering-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE ADAPTACIONES */
@media (max-width: 1024px) {
  .catalogo-contenedor {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .catalogo-imagen-contenedor {
    height: 180px;
  }
  
  .catalogo-info {
    padding: 16px;
  }
  
  .catalogo-info h3 {
    font-size: 1.15rem;
  }
  
  .catalogo-descripcion {
    font-size: 0.85rem;
  }
  
  .catalogo-precio {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .catalogo-seccion {
    padding: 40px 0;
  }
  
  .catalogo-contenedor {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 12px;
  }
  
  .catalogo-imagen-contenedor {
    height: 160px;
  }
  
  .ver-detalles {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .contactar-asesor {
    padding: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .catalogo-contenedor {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
  }
  
  .catalogo-item {
    border-radius: 12px;
  }
  
  .catalogo-imagen-contenedor {
    height: 140px;
  }
  
  .catalogo-info h3 {
    font-size: 1.05rem;
  }
  
  .catalogo-descripcion {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .catalogo-precio {
    font-size: 1.1rem;
    margin: 8px 0;
  }
  
  .cargar-mas {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .catalogo-contenedor {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .catalogo-imagen-contenedor {
    height: 180px;
  }
  
  .catalogo-info {
    padding: 18px;
  }
  
  .catalogo-info h3 {
    font-size: 1.1rem;
  }
}
/*----------------------------------------------------- FINAL DE BARRA-INICIO  */


.footer {
  width: 100%;
  margin-top: 100px;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 160%);
  padding: 45px 0;
 grid-column: 1 / -1; /* Ocupa todas las columnas */
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 150px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
  
}

.footer-logo-img {

  width: 280px;
  height: 100px;
}
/* El resto de tus estilos se mantienen igual */
.footer-logo h2 {
 
  color: #ffffff;
  font-size: 24px;
}

.footer-logo p {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
   margin-top: 170px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ff8f3f;
}

.footer-social .social-icons a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  margin-right: 15px;
  transition: all 0.3s;
}

.footer-social .social-icons a:hover {
  color: #ff8f3f;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  margin-right: 15px;
  transition: all 0.3s;
  display: inline-block;
}

.social-icons a:hover {
  color: #ff8f3f;
  transform: scale(1.2);
}

/* Colores específicos para cada red social al hacer hover */
.social-icons a[aria-label="Pinterest"]:hover {
  color: #e60023; /* Rojo Pinterest */
}

.social-icons a[aria-label="Instagram"]:hover {
  color: #E1306C; /* Rosa Instagram */
}

.social-icons a[aria-label="WhatsApp"]:hover {
  color: #25D366; /* Verde WhatsApp */
}

.social-icons a[aria-label="TikTok"]:hover {
  color: #000000; /* Negro TikTok */
}
/* 5. CORRECCIÓN DEL FOOTER */
.footer {
  width: 100%;
  margin-top: 50px;
  background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 160%);
  padding: 45px 0;
  grid-column: 1 / -1;
  box-sizing: border-box;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px; /* Reducido de 150px que causaba overflow */
  max-width: 1200px; /* Reducido de 1300px */
  margin: 0 auto;
  padding: 0 20px; /* Reducido de 30px */
  box-sizing: border-box;
}

/* Responsive para footer */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 15px;
  }
  
  .footer-links h3,
  .footer-social h3 {
    margin-top: 0; /* Elimina el margin-top excesivo */
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
    padding: 0 10px;
  }
  
  .footer-logo-img {
    width: 200px;
    height: 70px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0;
    margin-top: 30px;
  }
  
  .footer-container {
    gap: 20px;
    padding: 0 15px;
  }
  
  .footer-logo-img {
    width: 180px;
    height: 60px;
  }
}

.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr; /* sidebar fijo, main flexible */
  gap: 20px;
}
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr; /* Cambia a una sola columna en móviles */
  }
  
  .sidebar-container {
    position: static; /* Elimina el sticky en móviles */
    width: 100%;
    margin-bottom: 20px;
  }
  
  .productos-contenedor {
    margin: 20px 10px; /* Ajusta márgenes para móviles */
  }
}

@media (min-width: 993px) {
  .sidebar-container {
    position: sticky;
    top: 150px;
    height: fit-content;
  }
}


/* Encabezado del showcase */
        .showcase-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #eee;
        }

        .showcase-heading {
            font-size: 1.4rem;
            font-weight: 600;
            color: #e55422;
            margin: 0;
        }

        /* Botones de navegación */
        .showcase-nav {
            display: flex;
            gap: 4px;
        }

        .showcase-prev, 
        .showcase-next {
            background: #f0f0f0;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #0c3278;
            font-size: 14px;
        }

        .showcase-prev:hover, 
        .showcase-next:hover {
            background: #0c3278;
            color: white;
            transform: scale(1);
        }

        .showcase-prev:disabled,
        .showcase-next:disabled {
            background: #e0e0e0;
            color: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        /* Contenedor del carrusel */
 .showcase-wrapper {
    height: 310px; /* Aumentamos la altura para mostrar mejor los productos */

    overflow: hidden;
    position: relative;
    
}
        .showcase-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            transition: transform 0.5s ease;
            width: 100%;
            
        }

        /* Productos individuales */
.showcase {
    min-height: 80px;
    min-width: 160px; /* Reducido de 200px */
    max-width: 180px; /* Nuevo límite máximo */
    background: #fff;
    border-radius: 10px;
    padding: 12px; /* Reducido de 15px */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px; /* Reducido de 15px */
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 10px; /* Reducido de 15px */
}


.showcase:hover {
    transform: translateY(-3px); /* efecto visual ligero */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #0c3278;
}


        .showcase:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            border-color: #0c3278;
        }

.showcase-img-box {
    flex-shrink: 0;
    width: 40px; /* Reducido de 50px */
    height: 40px; /* Reducido de 50px */
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    padding: 4px; /* Reducido de 5px */
}

.showcase-img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.showcase:hover .showcase-img {
    transform: scale(1.05);
}

        .showcase-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .showcase-content {
            flex: 1;
            min-width: 0;
        }

      /* Ajusta el tamaño de fuente del título */
.showcase-title {
    font-size: 0.85rem; /* Reducido de 0.9rem */
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0; /* Reducido de 8px */
    display: -webkit-box;
  
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

        .showcase-rating {
            color: #f39c12;
            font-size: 0.8rem;
            margin-bottom: 8px;
        }

        .price-box {
            display: flex;
            align-items: center;
            gap: 8px;
        }

      /* Ajusta el precio */
.price {
    font-weight: 700;
    color: #0c3278;
    font-size: 0.9rem; /* Reducido de 0.95rem */
}

        del {
            color: #999;
            font-size: 0.8rem;
        }

        /* Indicador de posición */
        .carousel-indicator {
            text-align: center;
            margin-top: 15px;
            font-size: 0.8rem;
            color: #666;
            padding-top: 10px;
            border-top: 1px solid #eee;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                max-width: 400px;
            }
            
            .showcase-wrapper {
                height: 280px;
            }
        }


        /* OV PRELOADER */
.ov-preloader {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #fefefefb;
   z-index: 999999;
   height: 100%;
   width: 100%;
   overflow: hidden !important;
}
.ov-preloader .ov-icon {
    width: 400px;
    height: 400px;
    position: absolute;
    left: 50%;
    top: 50%;
    background: url('/imagenes-comun/preload-logo.gif') no-repeat center center;
    background-size: cover;
    margin: -200px 0 0 -200px;
}

 .catalogo-header {
            text-align: center;
            margin-bottom: 10px;
            animation: fadeInDown 0.8s ease-out;
        }

        .catalogo-header h1 {
            font-size: 2.8rem;
            font-weight: 300;
            color: #34495e;
            margin-bottom: 16px;
            letter-spacing: -0.02em;
        }
    .catalogo-header p {
            font-size: 1.1rem;
            color: #7f8c8d;
            max-width: 600px;
            margin: 0 auto;
        }
        







        /* CORRECCIONES PRINCIPALES PARA RESPONSIVE */

/* 1. CORRECCIÓN DEL MAIN-LAYOUT - PROBLEMA PRINCIPAL */
.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr; /* Una sola columna en móviles */
    gap: 10px;
  }
  
  .sidebar-container {
    position: static;
    width: 100%;
    margin-bottom: 20px;
    flex: none; /* Elimina flex que puede causar problemas */
  }
}

/* 2. CORRECCIÓN DEL MAIN-CONTENT PARA CATÁLOGO DE PRODUCTOS */
.main-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive para main-content */
@media (max-width: 768px) {
  .main-content {
    margin: 0;
    padding: 15px 10px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 10px 5px;
  }
}

/* 3. CORRECCIÓN DEL PRODUCTOS-CONTENEDOR */
.productos-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive para productos-contenedor */
@media (max-width: 768px) {
  .productos-contenedor {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .productos-contenedor {
    grid-template-columns: 1fr; /* Una sola columna en móviles pequeños */
    gap: 12px;
  }
}

/* 4. CORRECCIÓN DEL CATÁLOGO-CONTENEDOR (SEGUNDO CATÁLOGO) */
.catalogo-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Responsive para catálogo-contenedor */
@media (max-width: 1024px) {
  .catalogo-contenedor {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .catalogo-contenedor {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .catalogo-contenedor {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 15px;
    padding: 0 10px;
  }
}

@media (max-width: 400px) {
  .catalogo-contenedor {
    padding: 0 5px;
    gap: 10px;
  }
}


/* 6. CORRECCIÓN DE HEADERS DE CATÁLOGOS */
.catalogo-header h1 {
  font-size: 2.4rem;
  font-weight: 300;
  color: #34495e;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.catalogo-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive para headers */
@media (max-width: 768px) {
  .catalogo-header h1 {
    font-size: 2rem;
  }
  
  .catalogo-header p {
    font-size: 1rem;
    padding: 0 15px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .catalogo-header h1 {
    font-size: 1.6rem;
  }
  
  .catalogo-header p {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}
       
        /* Mega menu responsive - permitir navegación directa en móvil */
@media (max-width: 768px) {
  .mega-menu > a {
    pointer-events: all; /* Asegurar que el enlace sea clickeable */
  }
  
  .mega-menu-content {
    display: none !important; /* Ocultar el mega menú en móvil */
  }
  
  /* Permitir que el enlace de Productos funcione normalmente */
  .mega-menu {
    pointer-events: all;
  }
}

.services-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c3278 0%, #1a6ddf 160%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.service-btn:hover {
    color: #2980b9;
}

.service-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-btn:hover i {
    transform: translateX(5px);
}

.services-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    max-width: 1200px;
    margin: 0 auto;
}

.services-footer p {
    color: #6c757d;
    margin: 0;
}

.contacto-link {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 15px;
    }
    
    .services-header h2 {
        font-size: 2rem;
    }
    
    .services-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .services-header h2 {
        font-size: 1.8rem;
    }
    
    .services-header p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

.btn-ver-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(90deg, #FF6B35, #FF8E53);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-ver-catalogo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-ver-catalogo:hover::before {
    left: 100%;
}

.btn-ver-catalogo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(90deg, #FF6B35, #FF8E53);
}

.btn-ver-catalogo:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-ver-catalogo i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-ver-catalogo:hover i {
    transform: scale(1.1);
}

/* Versión industrial/más robusta */
.btn-ver-catalogo.industrial {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 2px solid #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-ver-catalogo.industrial:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Versión minimalista */
.btn-ver-catalogo.minimal {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    box-shadow: none;
}

.btn-ver-catalogo.minimal:hover {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-ver-catalogo {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .btn-ver-catalogo i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .btn-ver-catalogo {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}


.social-icons a[aria-label="Facebook"]:hover {
  color: #1877F2; /* Azul de Facebook */
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        height: auto;
        padding: 2px 2px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 2px;
    }
    
    body {
        padding-top: 135px;
    }
}

/* ============================================= */
/* RESPONSIVE STYLES - CORRECCIÓN */
/* ============================================= */
@media (max-width: 768px) {
  /* CORRECCIÓN 1: Top bar responsive */
  .top-bar {
    height: auto;
    padding: 8px 10px;
    z-index: 1000; /* Mantener alto pero NO sobre el menú */
  }
  
  /* CORRECCIÓN 2: Header en móvil */
  header {
    z-index: 1001; /* MÁS ALTO que top-bar en móvil */
  }
  
  /* CORRECCIÓN 3: Menu hamburguesa siempre visible */
  .menu-toggle {
    display: block;
    z-index: 1002; /* El MÁS ALTO de todos */
    position: relative;
  }
  
  /* CORRECCIÓN 4: Navegación móvil */
  nav {
    position: fixed;
    top: 115px; /* 40px top-bar + 75px header */
    left: -100%;
    width: 80%;
    height: calc(100vh - 115px);
    background: #0e3886;
    transition: left 0.3s;
    z-index: 1000; /* Menor que header y menu-toggle */
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
    z-index: 1000; /* Mantener consistente */
  }
  
  /* CORRECCIÓN 5: Contenido del header */
  .container__menu {
    position: relative;
    z-index: 1001;
  }
  
  /* CORRECCIÓN 6: Logo en móvil */
  .logo {
    z-index: 1001;
  }
  
  .logo img {
    height: 60px;
    width: auto;
  }
  
  /* Resto de tus estilos móviles... */
  nav ul {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
  }
  
  nav ul li {
    height: auto;
    width: 100%;
    margin: 10px 0;
  }
  
  /* Submenús en móvil */
  nav ul li ul {
    position: static !important;
    display: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 10px;
  }
  
  nav ul li.active > ul {
    display: block !important;
  }
  
  nav ul li ul li a {
    color: #ffffff !important;
    padding: 10px 15px;
  }
  
  nav ul li ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  /* Top bar más compacto */
  .top-bar {
    height: auto;
    min-height: 35px;
    padding: 5px 10px;
    overflow: visible; /* IMPORTANTE: permite ver contenido completo */
  }
  
  .top-bar-content {
    flex-direction: column;
    gap: 8px;
    padding: 5px 0;
    width: 100%;
  }
  
  /* Sección izquierda más compacta */
  .top-bar-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  
  .top-bar-item {
    font-size: 0.75rem;
  }
  
  /* Ocultar textos largos, solo íconos */
  .top-bar-item span {
    display: none;
  }
  
  .top-bar-item[data-short]::after {
    content: attr(data-short);
    font-size: 0.7rem;
    margin-left: 3px;
  }
  
  /* Divider oculto en móvil */
  .divider {
    display: none;
  }
  
  /* Redes sociales visibles y centradas */
  .top-bar-right {
    width: 100%;
    justify-content: center;
  }
  
  .social-links-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-links-top a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    flex-shrink: 0; /* Evita que se compriman */
  }
  
  /* Ajustar header debajo del top-bar ajustado */
  header {
    top: auto; /* Remover top fijo */
    margin-top: 10px; /* Espacio para top-bar expandido */
  }
  
  /* Ajustar padding del body */
  body {
    padding-top: 60px; /* 60px top-bar + 75px header */
  }
}

@media (max-width: 480px) {
  .top-bar-left {
    gap: 5px;
  }
  
  .top-bar-item {
    font-size: 0.7rem;
  }
  
  .social-links-top {
    gap: 10px;
  }
  
  .social-links-top a {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}


/* Línea indicadora naranja al hacer hover */
nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B35, #FF8E53);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav > ul > li > a:hover::after {
  width: 80%; /* Ancho de la línea al hacer hover */
}

nav > ul > li > a:hover {
  transform: scale(1);
  background: #0a275dec;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

@media (max-width: 768px) {
  /* En móvil, líneas más discretas */
  nav > ul > li > a::after {
    height: 1px;
  }
  
  nav ul li ul li a::after {
    height: 1px;
  }
  
  /* En móvil, mostrar línea completa en elementos activos */
  nav > ul > li.active > a::after {
    width: 100%;
  }
}