* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    /* Dark mode colors */
    --text-color: #c6cfff;
    --subheading-color: #637b94;
    --placeholder-color: #4e637b;
    --primary-color: #222831;
    --secondary-color: #323c48;
    --secondary-hover-color: #384454;
    --btn-registrar: #323c48;
    --btns-hover: #262c36;
    --gradient-1: #323c48;
    --gradient-2: #384454;
    --gradient-3: #405064;
    --gradient-4: #637b94;
    --gradient-5: #8297ae;
    --background: rgba(90, 90, 90, 0.5);
  }
  
  .light_mode {
    /* Light mode colors */
    --text-color: #481c87;
    --subheading-color: #cdb4fe;
    --placeholder-color: #9155f7;
    --primary-color: #EDE4FF;
    --secondary-color: #e3d5ff;
    --secondary-hover-color: #d3b9ff;
    --btn-registrar: #883aed;
    --btns-hover: #6528f7;  
    --gradient-1: #a076f9;
    --gradient-2: #b492fc;
    --gradient-3: #c8adfe;
    --gradient-4: #dbc8ff;
    --gradient-5: #ede4ff;
    --background: rgba(0,0,0,0.5);
  }

  body {
    font-family: "Nunito", sans-serif;
    color: var(--text-color);
    background-color: var(--gradient-5);
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gradient-1);
    padding: 20px;
  }
  
  .logo_header{
    width: 13%;
    margin-right: 4%;
    pointer-events: none;
  }

  header .logo {
    font-size: 24px;
    color: white;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    display: flex;
    align-items: center;
    user-select: none;
  }
  
  .icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    display: flex;
    font-size: 1.4rem;
    color: var(--text-color);
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    position: relative;
    transition: background-color 0.3s ease;
  }

  header nav button {
    background-color: #EDE4FF;
    border: none;
    border-radius: 8px;
    color: var(--btn-registrar);
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
  }

  header nav button:hover {
    background-color: var(--btns-hover);
    color: white;
  }
  
  .hero {
    text-align: center;
    padding: 5% 8% 50px;
    background-image: linear-gradient(to bottom, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4), var(--gradient-5));    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-image 0.3s ease;
  }
  
  .hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    user-select: none;
    transition: background-color 0.3s ease;
  }
  
  .hero p {
    font-size: 20px;
    margin-bottom: 40px;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    user-select: none;
    transition: background-color 0.3s ease;
  }
  
  .hero-btn {
    background-color: var(--btn-registrar);
    border-radius: 30px;
    color: #c6cfff;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    user-select: none;
  }
  
  .hero-btn:hover {
    background-color: var(--btns-hover);
  }
  

  @keyframes mostrar_modal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

}
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    animation: mostrar_modal 0.5s ease forwards;
  }
  
  .modal-content {
    background-color: var(--primary-color);
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
  }
  
  .modal-content h2 {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
  }
  
  .modal-content form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-bottom: var(--placeholder-color) 2px solid;
    border-radius: 4px;
    outline: none;
    background-color: transparent;
    color: var(--text-color);
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
  }
  
  .modal-content form button {
    width: 100%;
    padding: 10px;
    background-color: var(--btn-registrar);
    color: white;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-content form button:hover {
    background-color: var(--btns-hover);
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .iniciosesion_arriba{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .error{
    color: #d2ed3a;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    margin: 10px;
    animation: quitar_error 2s forwards;
  }

  @keyframes quitar_error {
    from{
      display: block;
    }
    to{
      display: none;
    }
    
  }

  .hero p.error {
    margin: 10px;
  }

.contenedor_error{
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  background-color: #333;
  border-radius: 10px;
  margin: 0;
}

.icon{
  user-select: none;
  background-color: transparent;
}

#btn-modo{
  margin: 0;
}

input[type="file"] {
  display: none;
}

.input-file label {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  width: 100%; /* Asegura que los inputs ocupen el 100% del ancho de su columna */
  height: 40px;
  border-radius: 20px;
  align-items: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding-left: 20px;
  background-color: var(--placeholder-color);
  color: var(--text-color);
  cursor: pointer;
  animation: 0.4s ease;
}

.input-file label:hover {
  background-color: var(--secondary-hover-color);
}

.input-file p{
  margin-top: 5px;
  color: var(--text-color);
}

@media (max-width: 768px) {
  header .logo {
    width: 35%;
    font-size: 18px;
  }
  nav {
    display: flex;
    align-items: center;
    font-size: 18px;
  }
  header nav button{
    font-size: 12px;
    width: auto;
    height: auto;
  }
  .hero{
    height: 85vh;
  }
}

@media (max-width: 425px) {
  header {
    padding: 15px;
  }
  header .logo {
    width: 40%;
    font-size: 17px;
  }
  nav {
    display: flex;
    align-items: center;
    font-size: 15px;
  }
  #btn-modo{
    margin: 0;
  }
  header nav button{
    padding: 10px;
    font-size: 11px;
    width: auto;
    height: auto;
  }
  .hero{
    height: 85vh;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero p {
    font-size: 17px;
    text-align: start;


  }
}

@media (max-width: 375px) {
  header {
    padding: 15px;
  }
  header .logo {
    width: 40%;
    font-size: 16px;
  }
  nav {
    display: flex;
    align-items: center;
    font-size: 14px;
  }
  #btn-modo{
    margin: 0;
    width: 30px;
  }
  header nav button{
    padding: 10px;
    font-size: 10px;
    width: auto;
    height: auto;
  }
  .hero{
    height: 85vh;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    font-size: 15px;
    text-align: start;
  }
}

@media (max-width: 320px) {
  header {
    padding: 10px;
  }
  header .logo {
    width: 35%;
    font-size: 12px;
  }
  nav {
    display: flex;
    align-items: center;
    font-size: 14px;
  }
  #btn-modo{
    margin: 0;
    width: 30px;
    font-size: 18px;
  }
  header nav button{
    padding: 7px;
    font-size: 10px;
    width: auto;
    height: auto;
  }
  .hero{
    height: 90vh;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 14px;
    text-align: start;
  }
}

