/* ========================================
   ECHOS Ã¢â‚¬" Sidebar Menu + Hamburger Button
   ======================================== */

/* Ã¢"â‚¬Ã¢"â‚¬ Hamburger Button (fijo inferior izquierdo) Ã¢"â‚¬Ã¢"â‚¬ */
.echos-hamburger {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 10000;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #ff5c00;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 92, 0, 0.4);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.echos-hamburger:hover {
  background: #e65100;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255, 92, 0, 0.55);
}

.echos-hamburger:active {
  transform: scale(0.95);
}

/* Icono hamburger (barras) */
.echos-hamburger__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  position: relative;
}

.echos-hamburger__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1),
              opacity 0.25s ease,
              width 0.3s ease;
  position: absolute;
  left: 0;
}

.echos-hamburger__bar:nth-child(1) { top: 0; }
.echos-hamburger__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.echos-hamburger__bar:nth-child(3) { bottom: 0; }

/* AnimaciÃƒÂ³n a "X" cuando estÃƒÂ¡ abierto */
.echos-hamburger.is-active .echos-hamburger__bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.echos-hamburger.is-active .echos-hamburger__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.echos-hamburger.is-active .echos-hamburger__bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Ã¢"â‚¬Ã¢"â‚¬ Backdrop Ã¢"â‚¬Ã¢"â‚¬ */
.echos-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.echos-sidebar-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Ã¢"â‚¬Ã¢"â‚¬ Sidebar Panel Ã¢"â‚¬Ã¢"â‚¬ */
.echos-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 360px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #111;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.echos-sidebar.is-open {
  transform: translateX(0);
}

/* Ã¢"â‚¬Ã¢"â‚¬ Sidebar Header Ã¢"â‚¬Ã¢"â‚¬ */
.echos-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.echos-sidebar__logo {
  height: 32px;
  width: auto;
}

.echos-sidebar__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  font-size: 28px;
  line-height: 1;
}

.echos-sidebar__close:hover {
  color: #ff5c00;
}

/* Ã¢"â‚¬Ã¢"â‚¬ Sidebar Nav Ã¢"â‚¬Ã¢"â‚¬ */
.echos-sidebar__nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

/* Reset del menÃƒÂº de WP */
.echos-sidebar__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items de primer nivel */
.echos-sidebar__nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.echos-sidebar__nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s, padding-left 0.3s;
}

.echos-sidebar__nav > ul > li > a:hover,
.echos-sidebar__nav > ul > li.current-menu-item > a,
.echos-sidebar__nav > ul > li.current-page-ancestor > a {
  color: #ff5c00;
  background: rgba(255, 92, 0, 0.06);
  padding-left: 36px;
}

/* Indicador de sub-menÃƒÂº (flecha) */
.echos-sidebar__nav li.menu-item-has-children > a {
  position: relative;
  padding-right: 52px;
}

.echos-submenu-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 6px;
  transition: transform 0.3s ease, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.echos-submenu-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.echos-submenu-toggle.is-expanded svg {
  transform: rotate(180deg);
}

.echos-submenu-toggle:hover {
  color: #ff5c00;
}

/* Sub-menÃƒÂº */
.echos-sidebar__nav ul ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(0, 0, 0, 0.25);
}

.echos-sidebar__nav ul ul.is-expanded {
  max-height: 600px;
}

.echos-sidebar__nav ul ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.echos-sidebar__nav ul ul li:last-child {
  border-bottom: none;
}

.echos-sidebar__nav ul ul a {
  display: block;
  padding: 12px 28px 12px 48px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: color 0.2s, padding-left 0.3s, background 0.2s;
  position: relative;
}

.echos-sidebar__nav ul ul a::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 92, 0, 0.4);
  transition: background 0.2s;
}

.echos-sidebar__nav ul ul a:hover {
  color: #ff5c00;
  padding-left: 56px;
  background: rgba(255, 92, 0, 0.04);
}

.echos-sidebar__nav ul ul a:hover::before {
  background: #ff5c00;
}

.echos-sidebar__nav ul ul li.current-menu-item a {
  color: #ff5c00;
}

.echos-sidebar__nav ul ul li.current-menu-item a::before {
  background: #ff5c00;
}

/* Sub-sub-menÃƒÂº (nivel 3) */
.echos-sidebar__nav ul ul ul a {
  padding-left: 68px;
}

.echos-sidebar__nav ul ul ul a::before {
  left: 52px;
  width: 4px;
  height: 4px;
}

.echos-sidebar__nav ul ul ul a:hover {
  padding-left: 76px;
}

/* Ã¢"â‚¬Ã¢"â‚¬ Sidebar Footer Ã¢"â‚¬Ã¢"â‚¬ */
.echos-sidebar__footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.echos-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: #ff5c00;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.echos-sidebar__cta:hover {
  background: #e65100;
  transform: translateY(-1px);
}

.echos-sidebar__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.echos-sidebar__cta-arrow .echos-arrow-icon {
  width: 18px;
  height: 18px;
}

.echos-sidebar__cta:hover .echos-sidebar__cta-arrow {
  transform: translateX(3px);
}

/* Redes sociales en sidebar */
.echos-sidebar__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.echos-sidebar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.echos-sidebar__social a:hover {
  color: #ff5c00;
  border-color: #ff5c00;
  background: rgba(255, 92, 0, 0.08);
}

/* Ã¢"â‚¬Ã¢"â‚¬ Body lock cuando sidebar estÃƒÂ¡ abierto Ã¢"â‚¬Ã¢"â‚¬ */
body.echos-sidebar--lock {
  overflow: hidden;
}

/* Ã¢"â‚¬Ã¢"â‚¬ Responsive Ã¢"â‚¬Ã¢"â‚¬ */
@media (max-width: 480px) {
  .echos-hamburger {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }

  .echos-hamburger__icon {
    width: 20px;
    height: 16px;
  }

  .echos-hamburger__bar {
    width: 20px;
    height: 2px;
  }

  .echos-sidebar {
    width: 100vw;
    max-width: 100vw;
  }

  .echos-sidebar__header {
    padding: 20px 20px 16px;
  }

  .echos-sidebar__nav > ul > li > a {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .echos-sidebar__nav ul ul a {
    padding: 10px 20px 10px 40px;
  }

  .echos-sidebar__footer {
    padding: 16px 20px 24px;
  }
}

/* Tablet/mobile toggle overrides */
.echos-hamburger,
.echos-sidebar,
.echos-sidebar-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .echos-hamburger {
    display: flex;
  }

  .echos-sidebar {
    display: flex;
  }

  .echos-sidebar-backdrop {
    display: block;
  }
}


