/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* ==========================================================================
   FUENTE GLOBAL DM Sans
   ========================================================================== */
body {
  font-family: 'DM Sans', sans-serif;
}

/* ==========================================================================
   BOTÓN "MI CUENTA" (MENÚ DE USUARIO LOGUEADO) - DESKTOP
   ========================================================================== */
.menu-cuenta-wrap {
  position: relative;
  margin-left: 12px;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  z-index: 9999;
}

.menu-cuenta-wrap button {
  background-color: #F1C524;
  color: #074B94;
  font-weight: 700;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.menu-cuenta-wrap button:hover {
  background-color: #FFD84D;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.menu-cuenta-wrap button i {
  font-size: 16px;
  color: #074B94;
}

/* Menú desplegable - DESKTOP */
.menu-cuenta-wrap ul {
  position: absolute;
  top: 110%;
  right: 0;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 10000;
}

.menu-cuenta-wrap .cuenta-menu.show {
  display: block;
}

.menu-cuenta-wrap ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #074B94;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-cuenta-wrap ul li a:hover {
  background-color: #F1C524;
  color: #ffffff;
}

/* ==========================================================================
   MÓVIL - DISEÑO SIMPLE Y FUNCIONAL
   ========================================================================== */
@media screen and (max-width: 768px) {
  
  /* Botón en móvil - más compacto */
  .menu-cuenta-wrap button {
    padding: 8px 16px;
    font-size: 14px;
    margin-left: 8px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Menú móvil - SIMPLE Y DIRECTO */
  .menu-cuenta-wrap ul {
    /* Resetear todos los estilos de desktop */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: auto !important;
    max-width: none !important;
    
    /* Estilos simples para móvil */
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 60px 0 20px 0 !important;
    box-shadow: none !important;
    
    /* Scroll si es necesario */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Items del menú en móvil - SIMPLE */
  .menu-cuenta-wrap ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .menu-cuenta-wrap ul li a {
    display: block !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    color: #333333 !important;
    text-decoration: none !important;
    background: none !important;
    border-radius: 0 !important;
    transition: none !important;
    min-height: 48px;
    line-height: 1.4;
    
    /* Touch friendly */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    user-select: none;
  }
  
  .menu-cuenta-wrap ul li a:hover,
  .menu-cuenta-wrap ul li a:focus,
  .menu-cuenta-wrap ul li a:active {
    background-color: #f8f8f8 !important;
    color: #333333 !important;
  }
  
  /* Botón cerrar en móvil */
  .menu-cuenta-wrap ul::before {
    content: '×';
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Prevenir scroll del body cuando el menú está abierto */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Ocultar submenús por defecto en móvil */
  .menu-cuenta-wrap ul ul {
    display: none !important;
  }
  
  /* Solo mostrar el menú principal */
  .menu-cuenta-wrap > ul {
    display: none;
  }
  
  .menu-cuenta-wrap > ul.show {
    display: block !important;
  }
}

/* ==========================================================================
   JAVASCRIPT HELPER CLASSES
   ========================================================================== */
.menu-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.menu-mobile-overlay.show {
  display: block;
}