body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom, #046594, #b7c9d2);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.formularioDia1 {
    background-color: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 85vw;
    max-width: 350px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
  
.formularioDia1 img {
    width: 100%;
    max-width: 280px;
    min-width: 180px;
    height: auto;
    margin-bottom: 1.5em;
}
  
.formularioDia1 h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
  
.dniInscripcion input[type="text"] {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.accesoDenegado button{
    width: 100%;
    padding: 0.65rem;
    margin-top: 1rem;
    background-color: #046594;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
  
input[type="submit"] {
    width: 100%;
    padding: 0.65rem;
    margin-top: 1rem;
    background-color: #046594;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
  
input[type="submit"]:hover {
    background-color: #046594;
}

.tooltip-error {
    position: absolute;
    top: -32px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
  }
  
  .tooltip-error::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px;
    border-width: 6px;
    border-style: solid;
    border-color: red transparent transparent transparent;
  }
  
  .tooltip-error.visible {
    opacity: 1;
  }
  
  input.error {
    border: 2px solid red;
    animation: shake 0.3s;
  }
  
  @keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
  }
  
@media (max-width: 480px) { /*Gestiona propiedades en pantallas moviles.*/
    .formularioDia1 {
        padding: 1.5rem 1rem;
        width: 90%;
        min-height: 280px;
    }
  
    .formularioDia1 h2 {
        font-size: 1rem;
    }
}
