/* ===== COLORES BASE (adaptados a Arbol Parts) ===== */
:root {
  --seinto-green-dark: #004534;   /* verde cabecera */
  --seinto-green-mid:  #006d4c;   /* verde intermedio */
  --seinto-yellow:     #ffd600;   /* amarillo botones */
  --seinto-text-dark:  #123026;
  --seinto-border-soft:#e3e7e6;
  --seinto-bg-soft:    #f5f7f6;
}

/* ===== BOTÓN HAMBURGUESA EN CABECERA ===== */
#seinto-megamenu-wrapper {
  display: inline-block;
}

.seinto-megamenu-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.seinto-megamenu-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  position: relative;
}

.seinto-megamenu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  display: block;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.seinto-megamenu-icon span:nth-child(1) { top: 0; }
.seinto-megamenu-icon span:nth-child(2) { top: 7px; }
.seinto-megamenu-icon span:nth-child(3) { top: 14px; }

/* ===== OVERLAY ===== */
#seinto-megamenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 998;
}

/* ===== SIDEBAR ===== */
#seinto-megamenu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  max-width: 82%;
  height: 100%;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.22s ease-out;
  z-index: 999;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

/* cabecera sidebar */
.seinto-megamenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background-color: transparent;
  background-image: linear-gradient(160deg, #144633 56%, #3e997b 100%);
  color: #ffffff;
}

.seinto-megamenu-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

#seinto-megamenu-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
}

/* cuerpo */
.seinto-megamenu-nav {
  padding: 0.75rem 0;
  overflow-y: auto;
  flex: 1;
  background: var(--seinto-bg-soft);
}

/* ===== MENÚ PRINCIPAL ===== */
.seinto-megamenu-main {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 1rem;
}

.seinto-megamenu-main > li {
  margin-bottom: 0.35rem;
}

.seinto-megamenu-main > li > a,
.seinto-megamenu-main > li > button {
  width: 100%;
  text-align: left;
  border: none;
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--seinto-text-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid var(--seinto-border-soft);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.seinto-megamenu-main > li > a:hover,
.seinto-megamenu-main > li > button:hover {
  background: var(--seinto-yellow);
  color: var(--seinto-green-dark);
  border-color: var(--seinto-yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* item + icono */
.seinto-megamenu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.seinto-megamenu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--seinto-green-dark);
}

.seinto-megamenu-main > li > a:hover .seinto-megamenu-item-icon,
.seinto-megamenu-main > li > button:hover .seinto-megamenu-item-icon {
  color: var(--seinto-green-dark);
}

/* Categorías con un poco más de peso visual */
.seinto-megamenu-has-submenu .seinto-megamenu-submenu-toggle {
  font-weight: 600;
}

.seinto-megamenu-arrow {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-left: 0.25rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== SUBMENÚ CATEGORÍAS ===== */
.seinto-megamenu-submenu {
  list-style: none;
  margin: 0.25rem 0 0.35rem;
  padding-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease-out;
}

.seinto-megamenu-submenu > li {
  margin: 0.1rem 0;
}

.seinto-megamenu-submenu > li > a {
  display: block;
  padding: 0.55rem 0.95rem 0.35rem;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--seinto-text-dark);
}

/* subniveles (sub y sub-subcategorías) */
.seinto-megamenu-sublevel {
  list-style: none;
  margin: 0 0 0.35rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(0, 0, 0, 0.06);
}

.seinto-megamenu-sublevel li a {
  display: block;
  padding: 0.3rem 0.7rem 0.25rem;
  font-size: 0.88rem;
  color: #3b4a44;
  text-decoration: none;
}

/* hover categorías */
.seinto-megamenu-submenu a:hover {
  color: var(--seinto-green-mid);
  background: rgba(0, 0, 0, 0.015);
}

/* estados abiertos */
#seinto-megamenu-sidebar.seinto-open {
  transform: translateX(0);
}

#seinto-megamenu-overlay.seinto-open {
  opacity: 1;
  visibility: visible;
}

.seinto-megamenu-has-submenu.open .seinto-megamenu-submenu {
  max-height: 600px;
}

.seinto-megamenu-has-submenu.open .seinto-megamenu-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

/* sin categorías */
.seinto-megamenu-submenu-empty {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* scroll en móviles, por si el menú es muy largo */
#seinto-megamenu-sidebar {
  -webkit-overflow-scrolling: touch;
}


/* ===== COLORES BASE (adaptados a Arbol Parts) ===== */
:root {
  --seinto-green-dark: #004534;
  --seinto-green-mid:  #006d4c;
  --seinto-yellow:     #ffd600;
  --seinto-text-dark:  #123026;
  --seinto-border-soft:#e3e7e6;
  --seinto-bg-soft:    #f5f7f6;
}

/* ===== BOTÓN HAMBURGUESA ===== */
#seinto-megamenu-wrapper {
  display: inline-block;
}

.seinto-megamenu-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.seinto-megamenu-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  position: relative;
}

.seinto-megamenu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  display: block;
  border-radius: 999px;
}

.seinto-megamenu-icon span:nth-child(1) { top: 0; }
.seinto-megamenu-icon span:nth-child(2) { top: 7px; }
.seinto-megamenu-icon span:nth-child(3) { top: 14px; }

/* ===== OVERLAY ===== */
#seinto-megamenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 998;
}

/* ===== SIDEBAR ===== */
#seinto-megamenu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  max-width: 82%;
  height: 100%;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.22s ease-out;
  z-index: 999;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* ===== CABECERA ===== */
.seinto-megamenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background-image: linear-gradient(160deg, #144633 56%, #3e997b 100%);
  color: #ffffff;
}

.seinto-megamenu-title {
  font-weight: 600;
  font-size: 1.05rem;
}

#seinto-megamenu-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: #ffffff;
}

/* ===== CUERPO ===== */
.seinto-megamenu-nav {
  padding: 0.75rem 0;
  overflow-y: auto;
  flex: 1;
  background: var(--seinto-bg-soft);
}

/* ===== LISTA PRINCIPAL ===== */
.seinto-megamenu-main {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 1rem;
}

.seinto-megamenu-main > li {
  margin-bottom: 0.35rem;
}

.seinto-megamenu-main > li > a,
.seinto-megamenu-main > li > button {
  width: 100%;
  border: 1px solid var(--seinto-border-soft);
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--seinto-text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seinto-megamenu-main > li > a:hover,
.seinto-megamenu-main > li > button:hover {
  background: var(--seinto-yellow);
  color: var(--seinto-green-dark);
  border-color: var(--seinto-yellow);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

/* ===== ITEM ===== */
.seinto-megamenu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.seinto-megamenu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--seinto-green-dark);
}

/* ===== SUBMENÚ ===== */
.seinto-megamenu-arrow {
  font-size: 0.75rem;
  opacity: .7;
}

.seinto-megamenu-submenu {
  list-style: none;
  padding-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}

.seinto-megamenu-has-submenu.open .seinto-megamenu-submenu {
  max-height: 600px;
}

.seinto-megamenu-has-submenu.open .seinto-megamenu-arrow {
  transform: rotate(90deg);
}

/* ===== SEPARADOR ===== */
.seinto-megamenu-separator {
  margin: .75rem 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* ===== TÍTULO INFORMACIÓN ===== */
.seinto-megamenu-section-title {
  margin: .9rem 0 .45rem;
  padding: .55rem .9rem;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--seinto-green-dark), var(--seinto-green-mid));
}

.seinto-megamenu-section-title .seinto-megamenu-item-label {
  color: #ffffff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ==================================================
   BLOQUE HORARIO + TELÉFONO (ESTILO BARRA VERDE)
   ================================================== */

.seinto-megamenu-contact {
  margin-top: .6rem;
}

.seinto-megamenu-contact-inner {
  display: flex;
  align-items: center;
  padding: .65rem .85rem;
  border-radius: 8px;
  background: var(--seinto-green-dark);
  color: #ffffff;
  font-size: .9rem;
  font-weight: 600;
}

.seinto-megamenu-contact-hours {
  white-space: nowrap;
}

/* Separador vertical */
.seinto-megamenu-contact-hours::after {
  content: "";
  display: inline-block;
  height: 16px;
  width: 1px;
  background: rgba(255,255,255,.45);
  margin: 0 .75rem;
  vertical-align: middle;
}

/* Teléfono */
.seinto-megamenu-contact-phone {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.seinto-megamenu-contact-phone:hover {
  text-decoration: underline;
}

/* ===== ESTADOS ===== */
#seinto-megamenu-sidebar.seinto-open {
  transform: translateX(0);
}

#seinto-megamenu-overlay.seinto-open {
  opacity: 1;
  visibility: visible;
}

/* ===== SOLO PC ===== */
@media (min-width: 992px) {
  li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vehicle-block p {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}
/* === ICONOS SVG del bloque contacto (tamaño correcto) === */
.seinto-megamenu-contact-phone{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

/* Tamaño fijo para los iconos */
.seinto-megamenu-contact-phone svg{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Color blanco dentro del fondo verde */
.seinto-megamenu-contact-phone svg path{
  fill: #fff;
}

/* Si quieres WhatsApp un pelín más pequeño */
.seinto-megamenu-contact-phone svg:nth-of-type(2){
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
