*{
    font-family: sans-serif;
    padding: 0;
    margin:0;
    box-sizing: border-box;
}

body {
    background: #f2f2f2;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.formulario {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.formulario label{
    position: relative;
}

input, select, textarea  {
    width: 100%;
    margin-top: 15px;
    padding: 10px 1.5%;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    outline: none;
    resize: none;
    background-color: #f9f9f9;;
}

select{
    cursor: pointer;
}

input::placeholder, textarea::placeholder{
    color: #212121;

}

.cursor {
    cursor: pointer;
}

button {
    border:none;
    background-color: var(--color-primario);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 30px;
    border-radius: 5px;
}

button:hover {
    background-color: #313131;
}

.radio-date{
    padding: 0px 0;
    display: flex;
    flex-wrap: wrap;
    gap:2%;
    justify-content: left;
}

.radio-date input[type="radio"] {
    display: none;
}
.radio-date label {
    background-color: #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 2%;
    border-radius: 5px;
    margin:5px 0;
    width: 18%;
    cursor: pointer;
    text-align: center;
}  

.radio-date input[type="radio"]:checked + label {
    background-color: var(--color-primario);
    color: #fff;
    border-color: var(--color-primario);
}

/* Estilo cuando el radio está seleccionado */
.radio-date label:has(input[type="radio"]:checked) {
    background-color: var(--color-primario);
    color: #fff;
    border-color: var(--color-primario);
    transition: background-color 0.3s ease;
}


/* Alerta base */
.alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-out;
    max-width: 600px;
}

/* Éxito */
.alerta.exito {
    background-color: #e6f4ea;
    color: #207144;
    border-color: #c1e6cf;
}

/* Error */
.alerta.error {
    background-color: #fcebea;
    color: #b3261e;
    border-color: #f5c6cb;
}

/* Ícono SVG */
.alerta .icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alerta .icono svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mensaje */
.alerta .mensaje {
    flex: 1;
    word-break: break-word;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* animation.css */
@keyframes spin2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-spin2 {
    display: inline-block;
    animation: spin2 1s linear infinite;
}
