
#codig{
  color: #145dbf;
}




/*Estilo para video como cargar codigo revendedor*/
/* --- ESTILOS PARA EL MARCO DE CELULAR REALISTA --- */
.iphone-mockup-wrapper {
    position: relative;
    width: 300px;
    height: 620px;
    margin: 0 auto 40px auto; /* Para centrarlo en la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Pequeña sombra para que el celular parezca estar levitando o apoyado */
    filter: drop-shadow(0px 20px 25px rgba(0,0,0,0.3)); 
}

.iphone-frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* El marco siempre va por ARRIBA del video */
    
    /* TRUCO CLAVE: Esto permite que tus clics "atraviesen" el marco 
       dibujado y puedas tocar los controles reales del video (pausa, volumen) */
    pointer-events: none; 
}

.iphone-video-content {
    position: absolute;
    top: 18px; /* Lo empuja hacia adentro del marco */
    left: 16px; 
    width: 268px; /* Encaja perfecto en el hueco del SVG */
    height: 584px; 
    border-radius: 36px; /* Redondea las puntas del video para que no sobresalgan del marco */
    object-fit: cover; /* Llena toda la pantalla sin deformar tu video */
    background-color: #000;
    z-index: 5; /* Va por DEBAJO del marco SVG */
}

/* Responsivo para celulares con pantallas muy pequeñas */
@media (max-width: 360px) {
    .iphone-mockup-wrapper {
        transform: scale(0.85); /* Achica todo el celular proporcionalmente */
        margin-top: -20px;
        margin-bottom: 0px;
    }
}





/*buscador para celular*/
/* --- Scroll para la tabla en el menú móvil --- */
#contenedorTablaMovil #searchSuggestions {
    max-height: 60vh; /* La tabla ocupará como máximo el 60% de la altura de la pantalla */
    overflow-y: auto; /* Habilita el scroll vertical solo para la tabla */
    
    /* Esta línea es un truco para que el scroll se sienta muy suave en los iPhone */
    -webkit-overflow-scrolling: touch; 
    
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Le da un toque bonito de profundidad */
}

/* Opcional: Asegurarnos de que el contenido del menú también permita scroll general si el celular es muy pequeño */
.menu-content {
    overflow-y: auto;
    max-height: 100vh;
}
/*resultados de busqueda scroll ara pc*/
/* --- Scroll interno para la tabla de resultados en PC --- */
.search-results-wrapper {
    max-height: 60vh; /* La tabla no crecerá más allá del 60% de la pantalla */
    overflow-y: auto; /* Activa el scroll vertical si los productos superan esa altura */
    border-radius: 8px; /* Mantiene los bordes redondeados limpios */
}

/* --- Personalización de la barra de scroll (Para Chrome, Edge, Safari) --- */
.search-results-wrapper::-webkit-scrollbar {
    width: 8px; /* Hace la barra más delgada y elegante */
}

.search-results-wrapper::-webkit-scrollbar-track {
    background: #f4f4f4; /* Color del fondo de la pista del scroll */
    border-radius: 8px;
}

.search-results-wrapper::-webkit-scrollbar-thumb {
    background-color: #cc0000; /* El color rojo de tu marca para la barra que se mueve */
    border-radius: 8px;
}

/* Efecto hover en la barra de scroll */
.search-results-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #990000; /* Un rojo más oscuro al pasar el mouse */
}

/* Soporte para Firefox */
.search-results-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #cc0000 #f4f4f4;
}












.hero {
  margin-top: 70px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #000; /* Fondo negro mientras carga */
  /* ELIMINAR background-image de aquí */
}
.info-cards2{
  display: none;
}
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1; /* Por detrás del overlay */
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición suave de 1 seg */
}

.slide.active {
    opacity: 1;
}

.slide img, .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que cubra toda la pantalla sin deformarse */
}

/* El overlay debe estar por encima de los slides */
.hero-overlay {
    position: absolute; /* Cambiado de relative a absolute */
    inset: 0;           /* Cubre todo el alto y ancho del hero */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Empuja el contenido a la derecha donde está la ruleta */
}
/* --- CAPA DE CONTENIDO (DELANTE) --- */

/* Estilo de ruleta*/
.buttons-container {
    /* Definimos una altura fija para el área visible de la rueda */
    border-radius: 1em;
    height: 500px;
    position: relative;
    overflow: hidden; /* Oculta los botones que se salen del área */
    perspective: 1000px; /* Clave para el efecto 3D si rotamos elementos */
    /* Centrado en la página */
    margin: 0 auto 60px auto;
    max-width: 600px; /* O el ancho que prefieras */

    /* Gradientes para desvanecer arriba y abajo (opcional pero recomendado) */
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  }

/* --- ESTILOS GENERALES (Fuera de Media Queries) --- */
.videos-title {
    width: 100%;            /* Ocupa todo el ancho del contenedor ruleta-pc */
    text-align: center;     /* Centra el texto internamente */
    display: block;
    margin: 0 auto 15px auto; /* Centrado horizontal y margen inferior */
    font-family: inherit;
}

/* Por defecto, ocultamos ambas para evitar saltos visuales */
.ruleta-pc, .ruleta-movil {
    display: none;
}
.rutela-delete{
  display: none;
}

/* --- VISTA PC (Desde 769px en adelante) --- */
@media (min-width: 769px) {

    /* 1. Mostramos Ruleta Hero y Ocultamos la del Main */
    .ruleta-pc {
        display: flex !important;
        flex-direction: column;
        align-items: center;    /* Centra el título y la ruleta entre sí */
        justify-content: center;
        position: absolute;
        right: 40px;           /* Distancia al borde derecho */
        top: 50%;
        transform: translateY(-25%);
        width: 500px;
        z-index: 10;
    }

    /* Ocultamos COMPLETAMENTE la sección del main para que no deje espacio en blanco */
    .ruleta-movil {
    display: block !important;
    width: 100%;
    /* Quitamos padding exagerado para que no ocupe toda la pantalla innecesariamente */
    padding: 10px 0;
    background: transparent; /* O el color que desees */
    overflow: hidden; /* Para que no se salga nada */
}


    /* 2. Configuración interna de ruleta PC */
    .hero-right-side .buttons-container {
        width: 100% !important;
        height: 500px !important;
        margin: 0 !important;
        background: transparent !important;
    }

    .hero-right-side .videos-title {
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* Sombra fuerte para que no se pierda con las fotos */
        font-size: 2.2rem;     /* Tamaño más legible */
        margin-bottom: 20px;
    }

    /* 3. Botón Revendedor abajo a la izquierda */
    .hero-left-side {
        position: absolute;
        bottom: 5px;
        left: 40px;
        z-index: 10;
        width: auto;
    }
}

/* --- VISTA MÓVIL CORREGIDA (LISTA SCROLLABLE) --- */
@media (max-width: 768px) {
  .muestro{
    display: block;
  }
  .header-banner-image {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    /* Ajuste extra: evitamos que el contenedor padre intente hacerle espacio */
    .header-left {
        gap: 10px !important;
    }

    .header-title-main h1 {
        font-size: 18px !important;
        letter-spacing: 0px !important;
    }
    .ruleta-pc { display: none !important; }

    .ruleta-movil {
        display: block !important;
        width: 100%;
        padding: 20px 0;
        background: #fff;
        height: auto !important; /* Permite que el contenedor crezca */
    }

    .ruleta-movil .buttons-container {
    display: block !important; /* Importante: Block, NO flex */
    position: relative;
    height: 450px !important; /* Altura necesaria para ver girar la ruleta */
    width: 100%;
    overflow: hidden !important;
    perspective: 1000px !important; /* Devuelve la profundidad 3D */

    /* Centrado de la rueda */
    margin: 0 auto;

    /* Máscara para desvanecer bordes (opcional, igual que en PC) */
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

    /*JUANKA*/
    /* RESET TOTAL PARA MÓVIL */
    .ruleta-movil .category-button {
    /* POSICION ABSOLUTA ES OBLIGATORIA PARA LA RULETA */
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;

    /* El JS se encargará del transform, NO pongas 'transform: none' aquí */

    width: 85% !important; /* Un poco más ancho en móvil */
    max-width: 350px !important;
    height: 100px !important; /* Altura consistente con el JS */
    margin: 0 !important;

    /* Restauramos la opacidad y visibilidad para que el JS las controle */
    visibility: visible;
    opacity: 1;
}

    /* Asegura que el contenido del botón se alinee bien */
    .ruleta-movil .button-content {
    justify-content: flex-start !important;
    padding: 0 15px !important;
}
}


.category-button {

    border-radius: 15px !important; /* Bordes muy redondeados */
    overflow: hidden; /* Asegura que la imagen/contenido respete el borde */
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Posicionamiento absoluto para poder moverlos libremente */
    position: absolute;
    top: 50%;
    left: 50%; /* Centrado horizontal inicial */
    width: 90%; /* Ancho del botón dentro del contenedor */
    max-width: 400px;
    height: 120px; /* Altura fija necesaria para los cálculos */

    /* Transformaciones base */
    transform-style: preserve-3d;
    transform: translate(-50%, -50%); /* Centra el punto de anclaje */

    /* Transición suave para el movimiento */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s ease,
                box-shadow 0.4s ease,
                filter 0.4s ease;

    /* Reset de estilos anteriores */
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    /* Importante: evitar selección de texto al arrastrar */
    user-select: none;
    -webkit-user-select: none;
  }
 /* Estado activo (el del centro) - Opcional, JS se encarga,
     pero esto ayuda si quieres un borde extra */
  .category-button.active {
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  }
.category-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}












/* --- UBICACIÓN EN LA ESQUINA INFERIOR IZQUIERDA --- */
.revendedor-corner {
    position: absolute;
    bottom: 0.2em; /* Espacio desde abajo */
    left: 30px;   /* Espacio desde la izquierda */
    padding: 0 !important; /* Reseteamos el padding anterior */
    z-index: 10;
}

/* --- EFECTO TORNASOLADO LLAMATIVO --- */
.button-revendedor.tornasol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;

    /* Gradiente tornasolado */
    background: linear-gradient(
        120deg,
        #ff2400, #e81d1d, #e8b91d, #1de840, #1ddde8, #2b1de8, #dd1de8, #ff2400
    );
    background-size: 400% 400%;
    animation: tornasol-anim 8s ease infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes tornasol-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- ESTILO DEL "PUNTERO" (CLICK AQUÍ) --- */
.custom-cursor-text {
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro para resaltar */
    padding: 1px 2px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 3px solid rgb(53, 0, 245);
    animation: pulse-click 2s infinite;
}

.pointer-icon {
    font-size: 18px;
}

@keyframes pulse-click {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hover effects */
.button-revendedor.tornasol:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* --- AJUSTE RESPONSIVE PARA MÓVIL --- */
@media (max-width: 768px) {
    .revendedor-corner {
        bottom: 7em;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center; /* En móvil lo centramos para que no se corte */
    }

    .button-revendedor.tornasol {
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ff2121;
  background-color: #f9fafb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cerrar (X) */
.modal-close-x {
  position: absolute;
  top: 10px; right: 15px;
  background: none; border: none;
  font-size: 25px; cursor: pointer; color: #aaa;
}
/* Título de la sección de resultados */
.search-results-header {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
}
/* Header */
.header {
  background-color: #c50000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
}



.cuadradoHamburguesa{
  margin-right: 0.5em;
  padding: 2px;
  border-radius: 5px;
  background-color: #f3f3f3;
}
/* Botón hamburguesa */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.hamburger:hover {
  background-color: #f3f4f6;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #1f2937;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
/* FIN ESTILO HEADER*/

/* OPCIONES DE MENU HAMBURGUESA */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.2);
  padding: 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.menu-overlay.active .menu-content {
  transform: translateX(0);
}



/* --- CONFIGURACIÓN DEL HEADER --- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

/* Franja Superior (Roja base) */
.header-top {
    background-color: #c50000;
    padding: 10px 0;
}

/* Franja Inferior (Rojo más oscuro) */
.nav-desktop-bar {
    background-color: #8B0000; /* Rojo más oscuro */
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
/* JUANKA MIX*/
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*juanka*/
.header-banner-image {
    display: flex;
    align-items: center;
    height: 90px; /* Altura controlada para que coincida con el título */
    margin-left: 10px;
}

.header-banner-image img {
    height: 100%; /* La imagen toma la altura del contenedor */
    width: auto;  /* Mantiene la proporción 1208x333 */
    object-fit: contain;
    /* Opcional: un poco de sombra para que resalte */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre logo, título e imagen */
    flex-wrap: nowrap; /* Evita que se bajen a otra línea en PC */
}

/* --- ESTILO DE TÍTULO SOLICITADO --- */
.header-title-main h1 {
    font-family: Arial, sans-serif;
    font-size: 28px; /* Ajustado para el header */
    font-weight: bold;
    color: #000000; /* Color Negro */
    background-color: transparent; /* Quitamos fondo para que luzca en el header */
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Contorno Blanco (Stroke) */
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 80px;
    height: auto;
}

/* --- NAVEGACIÓN PC --- */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffcccc;
}





.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 40px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-menu:hover {
  color: #1f2937;
}

.menu-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-nav a {
  display: block;
  padding: 15px 0;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 2px solid #e5e7eb;
  transition: color 0.3s;
}

.menu-nav a:hover {
  color: #2563eb;
}
/* FIN OPCIONES DE MENU HAMBURGUESA */
/* Hero / Portada FOTO */
.hero {
  margin-top: 70px;
  height: 100vh;
  background-image: url("../fotos/por2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}


.hero-title {
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 80px 20px;
}
/* Agregado contenedor para botón de scroll en hero */

.logo-container {
  padding: 40px;
}

/* Contenedor del logo */
.logo {
  width: 140px;      /* Ajustá según el tamaño que quieras */
  height: auto;      /* Para no deformar */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;  /* Quitamos fondo blanco */
  box-shadow: none;  /* Quitamos sombra circular */
}

/* Imagen del logo con transparencia */
.logo img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Que no se corte */
  display: block;      /* Quita espacio extra */
}

/* FIN  Hero / Portada FOTO */













/* BOTON DE REVENDEDOR*/
.button-revendedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: rgba(209, 70, 70, 0.95);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.button-revendedor:hover {
  background-color: #b11d1d;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.hero-action {
  padding: 1px 20px 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
/* ESTILO PARA FORMULARIO CARGAR O PEDIR CODIGO*/

/* FORMULARIO PARA PEDIR CODIGO*/
/* Estilos para el formulario de solicitud */
.modal-form { text-align: left; }

.radio-group { margin: 15px 0; border: 1px solid #eee; padding: 10px; border-radius: 8px; }
.radio-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.85rem; color: #555; }

.radio-option { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; cursor: pointer; }
.radio-option input { cursor: pointer; }




.modal-btn-whatsapp:hover { background: #128c7e; }

/*Estilo para cartel ingresar codigo de revendedor o solicitarlo*/

.modal-container {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* La tarjeta blanca */
.modal-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modal-card h3 { color: #ff2929; margin-bottom: 10px; font-size: 1.5rem; }
.modal-card p { color: #666; font-size: 0.9rem; margin-bottom: 20px; }

/* Input y Botón */
.modal-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  outline: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-btn-apply {
  width: 100%;
  padding: 12px;
  background: #ff2a2a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-btn-apply:hover { background: #ea6666; }

/* Enlace pedir código */
.link-pedir-codigo {
  display: block;
  margin-top: 15px;
  color: #c70c0c;
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: bold;
}
/* Mensajes */
.modal-message { margin-top: 15px; font-weight: bold; font-size: 0.9rem; }
/* FIN  ESTILO PARA FORMULARIO CARGAR O PEDIR CODIGO*/
/* Main */
.main {
  padding: 60px 0;
}

















/* Estilo boton descargar catalogo completo*/

.btn-catalog {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 90%;
}

.btn-catalog:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Contenedor principal de resultados busqueda*/
.search-results-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Sombra suave */
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  animation: fadeIn 0.3s ease-out; /* Animación de entrada */
}



.results-count-text {
  font-size: 0.9rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Ajustes específicos para la tabla de búsqueda */
.products-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; /* Espacio entre filas */
}

.products-table th {
  background-color: #f9fafb;
  color: #374151;
  padding: 12px 15px;
  font-size: 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.products-table td {
  padding: 15px;
  background-color: #ffffff;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

/* Efecto hover: se ilumina la fila al pasar el mouse */
.products-table tbody tr:hover td {
  background-color: #f0fdf4; /* Un verde muy sutil */
  transition: background-color 0.2s ease;
}

/* Imagen del producto */
.products-table img {
  border: 1px solid #e5e7eb;
  transition: transform 0.2s;
}

.products-table tr:hover img {
  transform: scale(1.1); /* Zoom suave a la foto */
}

/* Animación simple */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Contenedor responsivo */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* Ejemplo de estilo para el nuevo botón */
.social-link.tiktok {
  background-color: #000000; /* Fondo negro característico */
  color: #ffffff;
}

.social-link.tiktok:hover {
  /* Efecto de iluminado con los colores neón de TikTok */
  box-shadow: 2px 2px 0px #ee1d52, -2px -2px 0px #69c9d0;
}


.youtubeDes{
  color: #111827;
}








.client-type-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.client-type-button:hover {
  background-color: #e5e7eb;
  border-color: #2563eb;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.client-type-button.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Agregada clase hidden para ocultar botón selector */
.client-type-button.hidden {
  display: none;
}

.client-dropdown {
  position: absolute;
  left: 0;
  background-color: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.client-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.client-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  transition: background-color 0.2s;
}

.client-option:hover {
  background-color: #f3f4f6;
}

.client-option:first-child {
  border-radius: 6px 6px 0 0;
}

.client-option:last-child {
  border-radius: 0 0 6px 6px;
}

.friend-code-container {
  display: none;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
}

.friend-code-container.active {
  display: flex;
}

.friend-code-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  min-width: 0;
}

.friend-code-input:focus {
  outline: none;
  border-color: #c42020;
}

.apply-code-btn {
  padding: 8px 16px;
  background-color: #eb2525;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.apply-code-btn:hover {
  background-color: #8a0303;
}




/* Ajuste para el botón revendedor en 3 filas */
.button-revendedor {
    text-align: center;
}






.scroll-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: rgba(209, 70, 70, 0.95);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.scroll-button:hover {
  background-color: #b11d1d;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


.arrow-container {
  display: flex;
  flex-direction: column;
  gap: -8px;
}

.arrow {
  width: 24px;
  height: 24px;
  color: #ffffff;
  animation: bounce 2s infinite;
}

.arrow:nth-child(2) {
  animation-delay: 0.2s;
  margin-top: -12px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}



/* Buscador */
.search-box {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0px;
  margin-bottom: 0px;
}

.search-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  /* Agregado posición relativa para el dropdown del buscador */
  position: relative;
}

/* Estilos específicos para el dropdown en el buscador */
.search-client-dropdown {
  left: 0;
  top: 100%;
  margin-top: 4px;
}

.search-friend-code {
  /* Estilos específicos para mostrar campo de código en línea con el botón */
  flex-direction: row;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 5px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #eb2525;
}

.search-button {
  padding: 16px 32px;
  background-color: #eb2525;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: background-color 0.3s, transform 0.2s;
  white-space: nowrap;
}

.search-button:hover {
  background-color: #ba1f1f;
  transform: translateY(-2px);
}





/* Botones de categorías */
/* =========================================
   NUEVO ESTILO: CARRUSEL VERTICAL (WHEEL)
   ========================================= */





  /* Ajuste del contenido interno para que se vea bien en la rueda */
  .button-content {
    width: 100%;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box;
  }

  .icon-container {
    width: 60px;
    height: 60px;
    text-align: center;
  }

  .icon {
    width: 32px;
    height: 32px;
  }

  .button-text {
    font-size: 24px;
  }




.supers-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.rotiseria-button {

  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Added styles for new category buttons with unique colors */
.panaderia-button {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.carniceria-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.verduleria-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.restaurante-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.drugstore-button {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.minimercado-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.farmacia-button {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.boutique-button {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.estacion-button {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.clinica-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.hoteles-button {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.button-content {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px 30px;
}

.icon-container {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 48px;
  height: 48px;
  color: #ffffff;
}

.button-text {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.info-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.info-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.info-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Estilos para la sección de videos de YouTube */
.videos-section {
  margin-top: 40px; /* Reducido para móvil, se puede ajustar con media queries */
  padding: 40px 20px;
  display: flex;
  flex-direction: column; /* Alinea los elementos uno debajo del otro */
  align-items: center;    /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente si hay una altura definida */
  gap: 20px;              /* Espacio entre videos */
  width: 100%;
  box-sizing: border-box;
}

/* Para que los videos no se desborden y mantengan su forma */
.videos-section iframe {
  max-width: 100%;
  width: 560px;          /* O el ancho que prefieras para escritorio */
  aspect-ratio: 16 / 9;  /* Mantiene la proporción del video */
  height: auto;          /* Permite que la altura se ajuste sola */
  border-radius: 8px;    /* Opcional: bordes redondeados */
}




.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.video-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.video-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.video-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Footer */
.footer {
  background-color: #111827;
  color: #ffffff;
  margin-top: 80px;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-column p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: 14px;
}

.footer-column ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

/* Social links */
.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.3s, background-color 0.3s;
}

.social-link:hover {
  transform: scale(1.1);
}

.facebook {
  background-color: #1877f2;
}

.facebook:hover {
  background-color: #145dbf;
}

.instagram {
  background-color: #e4405f;
}

.instagram:hover {
  background-color: #d02d4c;
}

.whatsapp {
  background-color: #25d366;
}

.whatsapp:hover {
  background-color: #1da851;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 14px;
}

/* Added floating WhatsApp button styles */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #1da851;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  color: #ffffff;
}
/* EStilo para boton de whatsapp*/
.modal-btn-whatsapp {
    width: 100%;
    padding: 12px;
    background: #25d366; /* Color WhatsApp */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
}

/* Responsive GENERALES */
@media (max-width: 768px) {
  /* Ajustes responsive para selector de cliente en móvil */
  .client-selector-container {
    max-width: 50%;
  }

  .client-type-button {
    font-size: 12px;
    padding: 8px 12px;
  }

  .friend-code-input {
    font-size: 12px;
    padding: 6px 10px;
  }

  .apply-code-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-title h1 {
    font-size: 2.5rem;
  }

  .logo {
    width: 130px;   /* Aumenta tamaño para móviles */
  }

  .logo-container {
    padding: 20px;  /* Reduce padding para que no se vea pequeño */
  }

  .button-content {
    padding: 15px 15px;
  }

  .icon-container {
    width: 60px;
    height: 60px;
  }

  .icon {
    width: 36px;
    height: 36px;
  }

  .button-text {
    font-size: 24px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}

/*tabla de buscador*/
/* --- ESTILOS PARA CELULAR --- */
@media screen and (max-width: 768px) {

  .products-table thead {
      display: none; /* Seguimos ocultando el thead original */
  }

  .products-table,
  .products-table tbody,
  .products-table tr,
  .products-table td {
      display: block;
      width: 100%;
  }

  .products-table tr {
      margin-bottom: 20px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 5px;
      background: #fff;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      overflow: hidden;
  }

  .products-table td {
      display: flex; /* CAMBIO CLAVE: Usamos flexbox */
      justify-content: space-between; /* Manda el label a la izq y el valor a la der */
      align-items: center;
      text-align: right; /* Alinea el texto de la derecha */
      padding: 12px 15px;
      border-bottom: 1px solid #f3f4f6;
      min-height: 45px;
  }

  .products-table td:last-child {
      border-bottom: none;
  }

  /* Estilo para los encabezados de la izquierda */
  .products-table td::before {
      content: attr(data-label); /* Toma el texto del PHP */
      font-weight: 700;
      color: #374151; /* Color más oscuro para el título */
      font-size: 0.85rem;
      text-transform: uppercase;
      text-align: left;
      padding-right: 10px;
      flex-shrink: 0; /* Evita que el título se encoja */
  }

  /* Ajuste especial para la Celda de la Foto */
  .products-table td:first-child {
      background: #f9fafb;
      justify-content: center; /* Centra la foto */
      border-radius: 8px 8px 0 0;
      margin: -5px -5px 5px -5px; /* Compensa el padding del tr */
      padding: 15px;
  }

  .products-table td:first-child::before {
      display: none; /* No queremos el texto "Foto" estorbando la imagen */
  }

  .products-table img {
      width: 100px !important;
      height: 100px !important;
      border: 2px solid white;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}

/* ESTILO para la la pantalla mas chica posible*/
@media (max-width: 480px) {
  .client-type-button {
    font-size: 11px;
    padding: 6px 10px;
  }

  .dropdown-icon {
    width: 14px;
    height: 14px;
  }

  .hero-title h1 {
    font-size: 2rem;
  }

  .menu-content {
    max-width: 100%;
  }

  .info-cards {
    display: none;
    grid-template-columns: 1fr;
  }
  .info-cards2{
    display: block;
  }
}

/* Ocultar botón de scroll en desktop */
@media (min-width: 769px) {
  .scroll-button {
    display: none;
  }
}


/* Ajustes específicos para pantallas pequeñas VIDEOS */
@media (max-width: 768px) {
  .videos-section {
    margin-top: 20px;
    padding: 20px 10px;
  }

  .videos-section iframe {
    width: 100%; /* En móviles el video ocupa todo el ancho disponible */
  }
}




/* --- LÓGICA RESPONSIVE --- */

/* MÓVIL (768px o menos) */
@media (max-width: 768px) {
    .nav-desktop-bar {
        display: none; /* Desaparece la franja de botones en móvil */
    }

    .header-title-main h1 {
        font-size: 18px; /* Más pequeño en celular */
        letter-spacing: 1px;
    }

    .logo {
        width: 50px;
    }

    .header-top {
        padding: 5px 0;
    }

    .hero {
        margin-top: 1px; /* Ajuste por el header fijo */
    }
}

/* PC (769px o más) */
@media (min-width: 769px) {
    #hamburguesaContainer {
        display: none; /* Oculta hamburguesa en PC */
    }

    .hero {
        margin-top: 110px; /* Ajuste porque el header es más alto con 2 franjas */
    }
}


/*  */
