/* ==========================================================================
   RESET Y ESTILOS BASE (ESTRUCTURA Style_CustomHelp.css)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #000000;
  color: #ffffff;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.header {
  width: 100%;
  background-color: #000000;
  border-bottom: 1px solid #1a1a1a;
}

/* Top Nav */
.top-nav {
  background-color: #000000;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}

.top-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  width: 100%;
  box-sizing: border-box;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #cccccc;
}

/* Redes Sociales en Top Nav (Sin fondos blancos feos, iconos directos) */
.social-buttons-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-btn {
  display: inline-block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.social-btn img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.social-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Middle Bar / Logo, Buscador & Acciones */
.middle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: #000000;
  position: relative;
  z-index: 1005;
}

.middle-bar .logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-circular {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   BUSCADOR MEDIANO Y REDONDEADO (SOLICITADO)
   ========================================================================== */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;       /* Tamaño mediano equilibrado */
  height: 38px;           /* Altura delgada y estética */
  padding: 0 14px;
  border: 1.5px solid #ffffff; /* Borde blanco nítido */
  border-radius: 25px;    /* Completamente redondeado */
  background-color: rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  z-index: 1006;
}

.search-bar input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  padding-left: 28px;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
}

.search-results-dropdown, #searchResults {
  background-color: #0a0a0a !important;
  border: 1px solid #222222 !important;
  color: #ffffff !important;
  z-index: 9999 !important;
}

.search-results-dropdown a, #searchResults a {
  color: #ffffff !important;
  border-bottom: 1px solid #141414;
}

.right-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.user-icons {
  display: flex;
  gap: 10px;
}

.icon-circle {
  width: 38px;
  height: 38px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: border-color 0.2s;
}

.icon-circle:hover {
  border-color: #888;
}

/* ==========================================================================
   CATEGORÍAS Y SUBMENÚS DESPLEGABLES (MAQUINA / REPUESTOS)
   ========================================================================== */
.categories-nav {
  background-color: #000000;
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.categories-nav > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.categories-nav > ul > li {
  position: relative;
}

.categories-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* Submenú Nivel 1 (Vertical) */
.categories-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0d325c;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
  border: 1px solid #14467c;
  flex-direction: column;
}

.categories-nav .dropdown:hover > .submenu {
  display: flex !important;
}

.categories-nav .submenu li {
  width: 100%;
  position: relative;
}

.categories-nav .submenu li a {
  display: block;
  padding: 9px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.categories-nav .submenu li a:hover {
  background-color: #125191;
  color: #ffffff;
}

/* Submenú Nivel 2 (Máquinas / Repuestos) */
.categories-nav .dropdown-right {
  position: relative;
}

.categories-nav .submenu-right {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #0d325c;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 8px 0;
  list-style: none;
  z-index: 1002;
  border: 1px solid #14467c;
  flex-direction: column;
}

.categories-nav .dropdown-right:hover > .submenu-right {
  display: flex !important;
}

.categories-nav .submenu-right li a {
  padding: 8px 14px;
  font-size: 13px;
  color: #ffffff;
}

.categories-nav .submenu-right li a:hover {
  background-color: #125191;
}

/* Botón Ver Todos + */
.btn-ver-todo {
  font-weight: 700 !important;
  color: #00e676 !important;
  border-top: 1px solid #14467c;
  margin-top: 4px !important;
}

/* ==========================================================================
   SIDEBAR MÓVIL Y MENÚS LATERALES
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99998;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: #050505;
  color: #ffffff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  z-index: 99999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #222;
  padding-bottom: 15px;
}

.close-sidebar-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 10px;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
}

.sidebar-links summary, .sidebar-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  display: block;
  padding: 6px 0;
}

.sidebar-links details ul {
  padding-left: 15px;
  list-style: none;
  margin-top: 5px;
}

/* ==========================================================================
   SLIDER DE IMÁGENES
   ========================================================================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #333;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #fff;
}

/* ==========================================================================
   FOOTER PRINCIPAL Y CARACTERÍSTICAS (CENTRADOS)
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.footer-address-bar {
  background-color: #000000;
  padding: 20px;
  text-align: center;
}

.footer-address-bar p {
  font-size: 15px;
  color: #aaaaaa;
}

.footer-copyright-bar {
  background-color: #0a0a0a;
  padding: 12px;
  text-align: center;
  border-top: 1px solid #141414;
}

.footer-copyright-bar p {
  font-size: 13px;
  color: #888888;
}

.footer-main-content {
  background-color: #000000;
  padding: 40px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-logo-container {
  margin-bottom: 10px;
}

.footer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.footer-features {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1100px;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.feature-icon {
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 15px;
  font-weight: normal;
  color: #cccccc;
  line-height: 1.3;
  margin: 0;
}

/* ==========================================================================
   WIDGET WHATSAPP Y ELEMENTOS ADMINISTRATIVOS
   ========================================================================== */
.wa-widget-container {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

.wa-float-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-float-btn img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.wa-float-btn .wa-icon-close {
  display: none;
  font-size: 24px;
}

.wa-widget-container.active .wa-icon-open {
  display: none !important;
}

.wa-widget-container.active .wa-icon-close {
  display: block !important;
}

.wa-chat-box {
  width: 310px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  overflow: hidden;
  display: none;
}

.wa-widget-container.active .wa-chat-box {
  display: block;
}

.wa-chat-header {
  background-color: #075e54;
  color: #ffffff;
  padding: 14px;
  font-size: 13px;
}

.wa-chat-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #f0f2f5;
}

.wa-option-btn {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  font-size: 12px;
}

.hidden {
  display: none !important;
}


/* ==========================================================================
   ESTILOS PARA EL MODAL DE PIN Y EL CUADRO FLOTANTE CON SWITCH (Fidelidad a Imagen)
   ========================================================================== */

.btn-seguro-footer-dinamico {
    display: block;
    margin: 15px auto;
    padding: 10px 20px;
    background-color: #111111;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
}

.modal-pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-pin-content {
    background: #111111;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333333;
    text-align: center;
    width: 320px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

.modal-pin-content h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.input-pin-wrap {
    position: relative;
    margin: 15px 0;
}

.input-pin-wrap input {
    width: 100%;
    padding: 10px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.input-pin-wrap i {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    color: #aaaaaa;
}

.pin-mensaje {
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
    min-height: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-acceder {
    padding: 8px 18px;
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancelar {
    padding: 8px 18px;
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Cuadro flotante con switch idéntico al diseño de referencia */
.switch-admin-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    color: #ffffff;
    font-family: inherit;
}

.switch-label-hide, .switch-label-show {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

/* Estilo del Switch deslizable */
.switch-container {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2c2c2e;
    transition: .3s;
    border-radius: 26px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-container input:checked + .slider-round {
    background-color: #3a3a3c;
}

.switch-container input:checked + .slider-round:before {
    transform: translateX(24px);
}

/* Botón de cierre X en la esquina superior derecha del cuadro */
.close-switch-box {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 1.1rem;
    cursor: pointer;
}

.close-switch-box:hover {
    color: #ffffff;
}