::-webkit-scrollbar {
    width: 12px; 
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--secondary-color);
    width: 1.2rem;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 2px solid var(--secondary-color); 
    width: 1rem;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 209, 18, 0.8); 
    cursor: pointer; 
}
/* Campos base */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  max-width: 520px;
  background: #0f0f0f;
  color: #f2f2f2;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0 16px 0;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
input::placeholder, textarea::placeholder { color: #9a9a9a; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(230,209,18,.15);
}
input:active, select:active, textarea:active { transform: translateY(1px); }

/* Etiquetas y agrupación */
label { display: block; color: #e9e9e9; margin-bottom: 6px; letter-spacing: .5px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-col { flex: 1 1 260px; min-width: 240px; }

/* Botones de formulario */
.btn-form,
button[type="submit"],
input[type="submit"],
button.btn-primary-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-form:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
button.btn-primary-form:hover {
  transform: translateY(-1px);
  background: #000;
  color: var(--primary-color);
  box-shadow: 0 0 12px rgba(230,209,18,.35);
}
.btn-form:active,
button[type="submit"]:active,
input[type="submit"]:active,
button.btn-primary-form:active { transform: translateY(1px); }

/* Ayuda y errores */
.form-help { color: #c9c9c9; font-size: .9rem; margin-top: -10px; margin-bottom: 10px; }
.form-error { color: #ff7b7b; font-weight: 700; margin-top: -6px; margin-bottom: 12px; }

/* Checkboxes & Radios */
.form-check { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; color: #e9e9e9; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { accent-color: var(--primary-color); width: 18px; height: 18px; }

/* Switch simple */
.switch { position: relative; width: 44px; height: 24px; }
.switch input { display:none; }
.slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#2a2a2a; transition:.2s; border-radius:24px; }
.slider:before { position:absolute; content:""; height:18px; width:18px; left:3px; bottom:3px; background:white; transition:.2s; border-radius:50%; }
.switch input:checked + .slider { background: var(--primary-color); }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* Fieldsets */
fieldset { border: 2px solid var(--primary-color); border-radius: 12px; padding: 16px; margin: 10px 0 18px; }
legend { color: var(--primary-color); padding: 0 8px; font-weight: 700; }

/* Contenedores de formulario */
.form-card { background:#0d0d0d; border:2px solid #2a2a2a; border-radius:14px; padding:18px; box-shadow: 0 0 20px rgba(0,0,0,.25); }
.form-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:16px; }

/* Select estilizado básico */
select { appearance:none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 20px) calc(1em + 4px), calc(100% - 15px) calc(1em + 4px); background-size: 5px 5px, 5px 5px; background-repeat:no-repeat; }

/* Textarea */
textarea { min-height: 120px; resize: vertical; }

:root{
    --primary-color: rgb(230, 209, 18);
    --secondary-color: #141414;
    --font-family: "Lexend", sans-serif;
}
*{
    margin: 0;
    font-family: "Lexend", sans-serif;
    box-sizing: border-box; /* Ensure padding and border are included in width */
}
body { 
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: #161616;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z' fill='%23383838' fill-opacity='0.24' fill-rule='evenodd'/%3E%3C/svg%3E");
}
h1{
    padding-top: 6rem;
    padding-bottom: 3rem;
    color: white;
    font-size: 7rem;
    text-align: center; /* Center the heading */
    font-weight: normal;
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  background-color: rgba(255, 251, 2, 0.08);
  box-shadow: 0 0 15px rgba(255, 251, 2, 0.15);
  backdrop-filter: blur(6px);
  color: var(--secondary-color);
  padding: 28px;
  text-align: left;
  border: 2px solid var(--primary-color);
  border-radius: 16px;
}
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre los botones */
    margin-top: 10px;
}

.btn-form {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.division{
height: 10px;
width: auto;
}
.mensaje { max-width: 420px; background-color: #0d0d0d; color: var(--primary-color); padding: 12px 14px; margin-top: 10px; border-radius: 8px; border: 2px solid var(--primary-color); }
.btn-form:hover{
    cursor: pointer;
    transform: scale(1.1);
    box-shadow: 1px 1px 10px rgb(92, 89, 59);
    background: #383838;
    color: var(--primary-color);
    font-weight: normal;

}
input {
        font-weight: normal;
}
label{ font-weight: 600; font-size: 1rem; }
img { margin-top: 2rem; width: 300px; height: 300px; }
.icono-volver {
    width: 20px;   /* Tamaño de la imagen */
    height: 20px;
    margin: 0;     /* Eliminar márgenes que podrían desalinear */
    vertical-align: middle; /* Asegura la alineación vertical */
    position: relative;
    left:1px;
}
    .formulario { display:flex; flex-direction:column; align-items:flex-start; }
@media (max-width: 600px){
    body {
        justify-content: center;
        align-content: center;
        justify-items: center;
        display: flex;
        flex-direction: column;
        width: 100vw;
    }
    h1{
        font-size: 6rem; 
        font-family: "Lexend", sans-serif;;
    }
    .label{
        font-size: 1rem;
        margin: 0;
        padding: 0;
        justify-content: center;
        align-content: center;
        justify-items: center;
    }
    .container {
        width: 60%; /* Responsive width */
        height: 800px;
        padding: 10px; /* Adjust padding */
        justify-content: center;
        align-content: center;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .btn-form{
        font-size: 1rem;
        padding: 10px 15px; 
        margin: 1rem 1.4rem;
        border-radius: 0;
    }
    .formu {
        width: 100%;
    }
    input {
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-right: -5rem;
    }
    img {
        position: absolute;
        margin-top: 2rem;
        width: 180px;
        height: 180px;
        left: 20rem;
    }
    form {
        width: 80%;
        height: 800px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        text-align: center;
    }
    .formulario {
        display: flex;
        flex-direction: column;
        justify-items: center;
        align-items: center;
        align-content: center;
        justify-content: center;
    }
}
                /* Registro de eventos */
                h4{
                    padding-top: 6rem;
                    padding-bottom: 3rem;
                    color: white;
                    font-size: 7rem;
                    text-align: center; /* Center the heading */
                    font-weight: normal;
                }
li {
    color: var(--secondary-color);
    background-color: rgba(255, 251, 2, 0.8);
    padding: 15px;
    border-radius: 1rem;
    width: 200px;
}
ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}
.container-events {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
    align-items: center;
}
.no-txt {
    color: whitesmoke;
    text-align: center;
    font-size: 2rem;
}
ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
    align-items: center;
}
@media (max-width: 600px){
    .container-events {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .no-txt {
        font-size: 1.5rem;
    }
    li {
        width: 200px;
    }
    h4 {
        font-size: 4rem;
        padding-top: 1rem;
    }
    ul {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        justify-items: center;
        align-items: center;
    }
}