/* RESPONSIVE */
@media screen and (max-width: 768px) {
  #mainContent {
    margin-right: 0; /* deja que el main ocupe toda la pantalla */
    transition: margin-right 0.3s ease;
  }

  #sideNav {
    width: 70%;
    transform: translateX(100%);
  }

  #menuToggle {
    display: block;
  }

  /* Cuando sideNav abierto en mobile, oscurecer el fondo */
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 900;
  }

  #overlay.show {
    display: block;
  }

main {
  margin-left: 0;
  border-radius: 30px;
  background-color: #ffff;
  display: inline-block;
}

}

/* Siempre visible en PC */
@media (min-width: 769px) {
  #sideNav {
    transform: translateX(0);
  }
  main {
    margin-right: 270px; /* espacio para el sideNav */
  }
  #menuToggle {
    display: none; /* ocultar botón en desktop */
  }
  #overlay {
    display: none; /* ocultar overlay en desktop */
  }
}

/* ---------------------------
   RESPONSIVE LOGIN / ADMIN
---------------------------- */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    h2, h3 {
        font-size: 20px;
    }

    form input, form textarea, form button {
        font-size: 14px;
        padding: 8px;
    }

    .item input, .item textarea {
        flex: 1 1 100%;
    }

    .item button {
        flex: 1 1 100%;
    }

    .save-btn {
        width: 100%;
    }
}
