/* css/stylemovile.css */
@media (max-width: 768px) {

  /* Oculta el título en móvil */
  .header-container h1 {
    display: none !important;
  }

  /* Ajusta el contenedor del header para centrar el logo */
  .header-container {
    justify-content: center !important;
    gap: 0 !important;
  }

  /* Logo más apropiado en móvil */
  .header-container img {
    max-width: 220px !important;  /* ajusta si lo quieres más grande/chico */
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
}



@media (max-width: 900px) {

  /* Oculta nav de escritorio en móvil (si quieres) */
  .fixed-top > nav {
    display: none !important;
  }

  /* Botón hamburguesa (solo móvil) */
  .mobile-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 6px 10px;
  }

  /* Overlay */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 998;
  }

  /* Drawer */
  .mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
  }

  /* Header del drawer */
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 800;
    color: var(--vino);
  }

  .mobile-close {
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: var(--vino);
  }

  /* Navegación dentro del drawer */
  .mobile-nav {
    overflow: auto;
    padding: 8px 0;
  }

  .mobile-nav ul { list-style: none; margin: 0; padding: 0;display: inline; }
  .mobile-nav a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--vino);
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  /* Submenus cerrados */
  .mobile-nav .submenu {
    display: none;
    padding-left: 12px;
    border-left: 2px solid rgba(0,0,0,0.10);
  }

  /* Estado abierto de submenus */
  .mobile-nav li.is-expanded > .submenu {
    display: block;
  }

  /* Flechita */
  .mobile-nav li.has-submenu > a {
    position: relative;
    padding-right: 40px;
  }
  .mobile-nav li.has-submenu > a::after {
    content: "▸";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .7;
    font-size: 14px;
  }
  .mobile-nav li.is-expanded > a::after {
    content: "▾";
  }

  /* Estado abierto del offcanvas */
  body.mobile-nav-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  body.mobile-nav-open .mobile-drawer {
    transform: translateX(0);
  }
}

/* Desktop: oculta hamburger y offcanvas */
@media (min-width: 901px) {
  .mobile-burger,
  .mobile-overlay,
  .mobile-drawer {
    display: none !important;
  }
}

