/* ======================================================================
 * Móvil y cambio de moneda (APP-133): menú del teléfono, iconos de la cabecera y selector USD / REF.
 * ====================================================================== */

/* ----------------------------------------------------------------- Cambio de moneda */
/* El selector lateral de FOX (pestañas oscuras y verdes) ya no se ve: lo reemplaza la pastilla de la barra superior. */
html body ul.woocs_auto_switcher {
  display: none !important;
}

html body .rv-anuncio {
  position: relative;
}

html body .rv-moneda {
  display: flex;
}

html body .rv-moneda a {
  display: block;
  margin: 0;
  padding: 5px 13px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

/* En la barra verde de arriba, a la derecha. */
html body .rv-moneda--barra {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

html body .rv-moneda--barra a {
  display: block;
  padding: 5px 13px;
  color: #fff;
  text-decoration: none;
}

html body .rv-moneda--barra a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  opacity: 1;
}

html body .rv-moneda--barra a.es-activa {
  background: #fff;
  color: var(--rv-acento);
}

@media (max-width: 921px) {
  html body .rv-moneda--barra {
    display: none;
  }
}

/* ----------------------------------------------------------------- Cabecera móvil: favoritos y carrito */
html body .rv-movil-iconos {
  display: none;
}

@media (max-width: 921px) {
  html body #ast-mobile-header {
    position: relative;
  }

  html body .rv-movil-iconos {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 5;
    display: flex;
    gap: 2px;
    align-items: center;
    transform: translateY(-50%);
  }

  html body .rv-movil-icono {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--rv-tinta);
    text-decoration: none;
  }

  html body .rv-movil-icono .rv-icono__cuenta {
    position: absolute;
    top: 2px;
    right: 0;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--rv-acento);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  html body .rv-movil-icono .rv-icono__cuenta[data-n='0'] {
    background: #b9c4c4;
  }

  /* Logo centrado de verdad: tres columnas, la central del ancho del logo. */
  html body #ast-mobile-header .ast-builder-grid-row.ast-grid-center-col-layout {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* ----------------------------------------------------------------- Cajón del menú móvil */
@media (max-width: 921px) {
  html body #ast-mobile-popup .ast-mobile-popup-inner {
    background: #fff !important;
    color: var(--rv-tinta);
  }

  html body #ast-mobile-popup .ast-mobile-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 18px 0 24px;
    border-bottom: 1px solid #e8eded;
  }

  html body #ast-mobile-popup .ast-mobile-popup-header::before {
    content: 'Menú';
    font-family: var(--rv-fuente);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rv-acento);
  }

  html body #ast-mobile-popup #menu-toggle-close,
  html body #ast-mobile-popup #menu-toggle-close svg {
    color: var(--rv-tinta) !important;
    fill: var(--rv-tinta) !important;
  }

  html body #ast-mobile-popup #menu-toggle-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #e3e9e9;
    background: #fff !important;
  }

  html body #ast-mobile-popup .ast-mobile-popup-content {
    padding: 0 0 28px;
    overflow-y: auto;
    text-align: left;
  }

  /* Enlaces del menú: grandes, en mayúsculas, con raya fina y el verde de la marca al elegir. */
  html body #ast-mobile-popup .main-header-menu,
  html body #ast-mobile-popup .main-header-menu .menu-item {
    background: transparent !important;
    text-align: left;
  }

  html body #ast-mobile-popup .main-header-menu .menu-item > .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eef2f2;
    background: transparent !important;
    color: var(--rv-tinta) !important;
    font-family: var(--rv-fuente);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
  }

  html body #ast-mobile-popup .main-header-menu .menu-item > .menu-link::after {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #9fb0b0;
    border-right: 1.5px solid #9fb0b0;
    transform: rotate(45deg);
  }

  html body #ast-mobile-popup .main-header-menu .menu-item:hover > .menu-link,
  html body #ast-mobile-popup .main-header-menu .current-menu-item > .menu-link {
    color: var(--rv-acento) !important;
  }

  /* Donde se está: colores invertidos (fondo verde, letra blanca). */
  html body #ast-mobile-popup .main-header-menu .current-menu-item > .menu-link,
  html body #ast-mobile-popup .main-header-menu .current-menu-item:hover > .menu-link {
    background: var(--rv-acento) !important;
    border-bottom-color: var(--rv-acento);
    color: #fff !important;
  }

  html body #ast-mobile-popup .main-header-menu .current-menu-item > .menu-link::after {
    border-color: #fff;
  }

  /* Bloque propio al final del menú: cuenta, WhatsApp y moneda. */
  html body #ast-mobile-popup li.rv-movil-li {
    display: block;
    padding: 0 22px;
    border: 0;
    list-style: none;
  }

  html body .rv-movil__cuenta {
    display: grid;
    margin: 18px 0 0;
  }

  html body .rv-movil__fila {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f2;
    color: var(--rv-tinta);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }

  html body .rv-movil__ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe8e8;
    border-radius: 50%;
    color: var(--rv-acento);
  }

  html body .rv-movil__fila .rv-icono__cuenta {
    position: static;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--rv-acento);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  html body .rv-movil__fila .rv-icono__cuenta[data-n='0'] {
    background: #b9c4c4;
  }

  html body .rv-movil__wa {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0;
    padding: 14px 18px;
    background: var(--rv-acento);
    color: #fff;
    text-decoration: none;
  }

  html body .rv-movil__wa span {
    display: grid;
    line-height: 1.2;
  }

  html body .rv-movil__wa small {
    font-size: 11px;
    letter-spacing: 0.04em;
    opacity: 0.8;
  }

  html body .rv-movil__wa strong {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  html body .rv-movil__moneda {
    margin: 22px 0 0;
  }

  html body .rv-movil__rotulo {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rv-acento);
  }

  html body .rv-moneda--cajon {
    display: flex;
  }

  html body .rv-moneda--cajon a {
    flex: 1;
    padding: 14px 10px;
    border: 1px solid #cfd8d8;
    background: #fff;
    color: var(--rv-tinta);
    font-size: 12px;
  }

  html body .rv-moneda--cajon a + a {
    border-left: 0;
  }

  html body .rv-moneda--cajon a.es-activa {
    border-color: var(--rv-acento);
    background: var(--rv-acento);
    color: #fff;
  }

  html body .rv-movil__nota {
    margin: 22px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #7a8586;
  }
}

/* Cabecera verde y franja dorada (APP-137): iconos del teléfono en claro y selector de moneda sobre el dorado. */
@media (max-width: 921px) {
  html body .rv-movil-icono {
    color: #fff;
  }

  html body .rv-movil-icono .rv-icono__cuenta {
    background: #b8912f;
    color: #0a2a2c;
  }

  html body .rv-movil-icono .rv-icono__cuenta[data-n='0'] {
    background: rgba(255, 255, 255, 0.5);
  }
}

html body .rv-moneda--barra {
  border-color: rgba(15, 74, 77, 0.45);
}

html body .rv-moneda--barra a {
  color: var(--rv-acento);
}

html body .rv-moneda--barra a:hover {
  background: rgba(15, 74, 77, 0.1);
  color: var(--rv-acento);
}

html body .rv-moneda--barra a.es-activa {
  background: #0f4a4d;
  color: #fff;
}
