/* === Ajustes para móviles === */
@media (max-width: 768px) {
  header {
    font-size: 1.2rem;
    padding: 10px;
  }

  main {
    padding: 10px;
  }

  .presentacion {
    background-image: url("../img/fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 10vh;
  }

  .h1_presentacion {
    margin-top: 4rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 10px;
  }

  /* Admin Dashboard Columns */
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  form input,
  form select,
  form textarea {
    font-size: 0.9rem;
    padding: 8px;
  }

  form button {
    width: 80%;
    padding: 10px;
  }

  .logo {
    max-width: 90px;
  }

  /* mostrar nav en mobile para el carrito/inicio */
  header nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    gap: 10px;
    box-shadow: none;
    z-index: 1000;
  }

  .menu-toggle {
    font-size: 30px;
    display: block;
  }

  /* overlay */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .overlay.active {
    display: block;
  }

  .menu-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .btn-header {
    font-size: 18px;
    padding: 12px 20px;
    right: 15px;
  }

  .btn-header span {
    display: inline;
    /* se ve el texto */
  }

  table {
    font-size: 0.9rem;
  }

  input,
  textarea,
  select {
    width: 100% !important;
    max-width: 100% !important;
  }

  #checkout-form {
    max-width: 400px;

  }
}