body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('../img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
  }
  
  .formulario-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    /*height: 100vh;*/
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .formulario-container-02 {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  form {
    /*width: 450px;*/
    background-color: #2C3145;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid white;
    text-align: center;
  }
  
  .logo {
    width: 250px;
    height: auto;
  }
  
  .titulo {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .subtitulo {
    color: white;
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  label {
    color: white;
    font-size: 12px;
    text-align: left;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
  }
  
  .campo {
    position: relative;
    margin-bottom: 15px;
  }
  
  .campo input {
    width: 420px;
    height: 40px;
    border-radius: 10px;
    border: none;
    padding-left: 10px;
    font-size: 14px;
    color: black;
  }
  
  .ver-ojo {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
  }
  
  .error {
    color: red;
    font-size: 12px;
    display: none;
  }
  
  .terminos {
    font-size: 12px;
    color: white;
    margin: 15px 0;
    text-align: left;
  }
  
  .terminos a {
    color: yellow;
    text-decoration: none;
  }
  
  .enlace-login {
    color: white;
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .enlace-login a {
    color: yellow;
    text-decoration: none;
  }
  
  button {
    width: 420px;
    height: 30px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    color: white;
    background: linear-gradient(to bottom, blue, purple);
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button:hover {
    background: linear-gradient(to top, purple, blue);
  }

.btn-perfil {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 50px;
  border: 1px solid white;
  border-radius: 10px;
  background-color: darkblue;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

/* ===== DISEÑO RESPONSIVE MEJORADO ===== */

@media screen and (max-width: 768px) {
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
  }

  .capafondo {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }

  .formulario-container,
  .formulario-container-02,
  .form {
    width: 100% !important;
    max-width: 100%;
    padding: 25px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  }

  form {
    width: 100%;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    width: 95% !important;
    font-size: 30px;
    padding: 12px;
  }

  .campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
  }

  .ver-ojo {
    font-size: 20px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .logo {
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
  }

  .titulo,
  .subtitulo,
  .titulo-planes,
  .subtitulo-planes {
    font-size: 35px;
    text-align: center;
  }

  .btn-perfil {
    width: 100% !important;
    font-size: 16px;
    padding: 14px 0;
  }

  button[type="submit"] {
    width: 100% !important;
    padding: 20px 30px 50px 30px;
  }
  
  button {
    width: 100%;
    border-radius: 10px;
    border: none;
    font-size: 30px;
    color: white;
    background: linear-gradient(to bottom, blue, purple);
    cursor: pointer;
    transition: background 0.3s;
  }

  .planes-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .plan-box {
    width: 90%;
    max-width: 60%;
  }
  
  label {
    color: white;
    font-size: 30px;
    text-align: left;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
  }
  
  .enlace-login {
    color: white;
    font-size: 30px;
    margin-bottom: 15px;
  }
  
  .terminos {
    font-size: 30px;
    color: white;
    margin: 15px 0;
    text-align: left;
  }

}

/* CODIGO MEJORADO ESCRITORIO */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.capafondo {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.formulario-container-02 {
  width: 100%;
  max-width: 1200px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
