/* ==========================================================
   CÓDIGO CSS FINAL (V5 - AJUSTES FINALES)
========================================================== */

/* --- OCULTAR ELEMENTOS DE ZOHO --- */
.Footer__footer,
.TicketDetailContainer__closeTicket,
.Social__container,
.Header__userPreference,
div[data-id="accessibility_right_panel"] {
  display: none !important;
}

/* --- ESTILOS BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Ocultar el checkbox que controla el menú */
.menu-toggle {
  display: none;
}

/* =========================
   DISEÑO DEL ENCABEZADO (DESKTOP)
========================= */
.Header__headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f2f2f2;
}

.Header__headerBrand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.Header__brandLogoImg {
  max-height: 40px;
  width: auto;
}

.Header__headerNav {
  background-color: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.Header__tabsList {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  justify-content: center;
}

.Header__tabsTab {
  padding: 10px;
}

/* Ocultar hamburguesa en escritorio por defecto */
.hamburger-menu {
  display: none;
}

/* ===============================================
   VISTA EN COMPUTADORA (PANTALLAS GRANDES)
=============================================== */
@media (min-width: 992px) {
  .Header__headerNav {
    display: block !important;
  }
  .hamburger-menu {
    display: none !important;
  }
}

/* =========================
   RESPONSIVE (MÓVILES)
========================= */
@media (max-width: 991px) {
  /* Posicionamiento y colores */
  .Header__headerRow {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 15px;
  }

  /* Mueve el botón de hamburguesa al principio (izquierda) */
  .hamburger-menu {
    order: -1;
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
  }
  .hamburger-menu span {
    display: block; position: absolute; height: 3px;
    width: 100%; background: #333; border-radius: 3px;
    left: 0; transition: .25s ease-in-out;
  }
  .hamburger-menu span:nth-child(1) { top: 0px; }
  .hamburger-menu span:nth-child(2) { top: 10px; }
  .hamburger-menu span:nth-child(3) { top: 20px; }

  /* Ocultamos el menú de navegación por defecto */
  .Header__headerNav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* Al hacer clic en la hamburguesa, mostramos el menú */
  .menu-toggle:checked ~ .Header__headerNav {
    display: block;
  }
  
  /* Animación del ícono a una 'X' */
  .menu-toggle:checked + .Header__headerRow .hamburger-menu span:nth-child(1) { top: 10px; transform: rotate(135deg); }
  .menu-toggle:checked + .Header__headerRow .hamburger-menu span:nth-child(2) { opacity: 0; left: -60px; }
  .menu-toggle:checked + .Header__headerRow .hamburger-menu span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

  /* Menú en formato vertical */
  .Header__tabsList {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #ccc;
    background: #fafafa;
  }

  .Header__tabsTab, .Header__formShort { /* Se aplica a los links y al '+' */
    border-bottom: 1px solid #ccc;
    padding: 15px;
    text-align: right; /* <-- CAMBIO: Alineado a la derecha */
  }
  
  /* Color de texto oscuro, negrita y sin subrayado */
  .Header__tabsTab a {
    color: #333 !important;
    text-decoration: none;
    font-weight: bold; /* <-- AÑADIDO: Texto en negritas */
  }

  /* =========== CORRECCIÓN DE ÍCONOS =========== */
  /* Iconos de búsqueda y "+" en negro */
  .Header__headerSearch svg, 
  .Header__formShort svg {
    color: #000000 !important;
    fill: #000000 !important;
  }
}
