* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-x: hidden;
}

.container, .contenedor {
  background: #fff;
  width: 95%;
  max-width: 900px;
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
  animation: aparecer 0.6s ease;
  margin: 20px auto;
}

h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

h2, h3 {
  margin-bottom: 15px;
  color: #222;
}

form, #formRegistro, #formLogin {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

input[type="text"], input[type="email"], input[type="file"], input[type="number"], input[type="password"] {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #f0db65;
  width: 100%;
  background: #fff7c8;
  color: #444;
  outline: none;
  transition: 0.3s ease;
}

input:focus {
  background: #fff3a9;
  border-color: #d1bc00;
}

input[type="file"]::file-selector-button {
  background: #c7b54e;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-right: 5px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #d1bc00;
  transform: translateY(-1px);
}

button {
  padding: 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #c7b54e;
  color: white;
  transition: 0.3s ease;
  width: 100%;
}

button:hover {
  background: #d1bc00;
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.97);
}

.header-nav {
    background: #f0db65;
    padding: 10px 15px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
}

.header-mini, .footer {
  background: #f0db65;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
}

.header-mini h2 {
  font-size: 1.2rem;
  margin: 10px;
  margin-top: 20px;
  color: #222;
}

.footer a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  color: #bfa700;
}

.footer .creditos {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #444;
  opacity: 0.9;
}

.whatsapp-icon {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal, .modal-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-login { display: none; }

.modal-content, .modal-login-content {
  background: #fff;
  width: 95%;
  max-width: 400px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: aparecer 0.6s ease;
}

@keyframes aparecer {
  from { opacity:0; transform:translateY(-20px); }
  to { opacity:1; transform:translateY(0); }
}

.modal-content input,
.modal-login-content input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 12px;
}

.modal-content button,
.modal-login-content button {
  width: 100%;
  padding: 12px;
}

@media (max-width: 500px) {
  
  body {
    padding: 0;  
    min-height: 100vh;
    display: block; 
    align-items: flex-start;
  }
  
  .container, .contenedor {
    width: 95%;
    max-width: 400px;
    height: auto;
    border-radius: 25px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .header-mini {
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 20px;
  }

  form, #formRegistro, #formLogin {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  input[type="text"], input[type="email"], input[type="file"], input[type="number"], input[type="password"] {
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 15px;
  }

  input[type="file"]::file-selector-button {
    padding: 12px 20px;
    border-radius: 15px;
  }

  button {
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 20px;
  }

  .footer {
    font-size: 0.95rem;
    padding: 12px;
  }

  .modal-content, .modal-login-content {
    width: 90%;
    max-width: 350px;
    padding: 20px;
    border-radius: 25px;
    gap: 15px;
  }

  .whatsapp-icon {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }
}
#submit-btn:disabled{
    background-color:gray;
}
.modal-content input[type="checkbox"]{
    width: 20px;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
}

input[type="checkbox"]:checked + label {
    color: #0fbf12;
}
/*te falto un loading puto nenuco parece que no hace nada esta madre*/
*{box-sizing:border-box;margin:0;padding:0}

    #fullscreen-loader{
      position:fixed;
      inset:0; /* top:0; right:0; bottom:0; left:0 */
      display:flex;
      align-items:center;
      justify-content:center;
      background:rgba(255,255,255,0.95);
      z-index:9999;
      transition:opacity 350ms ease, visibility 350ms ease;
      opacity:1;
      visibility:visible;
    }

    #fullscreen-loader.hidden{
      opacity:0;
      visibility:hidden;
      pointer-events:none;
    }

    .loader-card{
      display:flex;
      gap:1rem;
      align-items:center;
      padding:18px 22px;
      border-radius:14px;
      box-shadow:0 6px 24px rgba(0,0,0,0.12);
      backdrop-filter: blur(4px);
      background:rgba(255,255,255,0.6);
      font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
    }

    .spinner{
      width:48px;
      height:48px;
      border-radius:50%;
      border:5px solid rgba(0,0,0,0.08);
      border-top-color: #0b84ff; /* color visible */
      animation:spin 1s linear infinite;
      flex:0 0 48px;
    }

    @keyframes spin{to{transform:rotate(360deg)}}

    .loader-text{
      display:flex;
      flex-direction:column;
    }
    .loader-text .title{
      font-weight:600;
      font-size:16px;
      color:#111;
    }
    .loader-text .subtitle{
      font-size:13px;
      color:#444;
      opacity:0.9;
    }

    #fullscreen-loader.hidden *{pointer-events:none}

    @media (max-width:420px){
      .loader-card{padding:12px 14px;border-radius:10px}
      .spinner{width:38px;height:38px;border-width:4px}
      .loader-text .title{font-size:15px}
      .loader-text .subtitle{font-size:12px}
    }