/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    background-image: url(pradaz.jpeg);
    background-size:cover;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.form-container {
    /* background-image: url(pradap.png); <-- Ya no usamos esto */
    background-color: #fff;
    background-size: cover;

    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 510px;
    box-sizing: border-box;
    margin: 30px auto;
    overflow: auto;
    text-align: center; /* Para centrar la imagen de encabezado */
}

.form-header {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
h5 {
  text-align: center;
    margin-bottom: 20px;
    color: #333;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
button {
    width: 100%; /* Hacemos que los campos y el botón ocupen todo el ancho disponible */
    padding: 12px;
    margin: 8px 0; /* Reducimos los márgenes para ajustarlos */
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box; /* Aseguramos que el padding no afecte el tamaño total */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="datetime-local"]:focus {
    border-color: #4c0f21;
}

button {
    background-color: #4c0f21;
    color: rgb(255, 255, 255);
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #4c0f21;
}

/* Estilos para el Modal */
.modal {
    display: none; /* Escondido por defecto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    padding-top: 60px;
    animation: fadeIn 0.5s ease-in-out;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    animation: zoomIn 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    font-size: 24px;
    color: #4c0f21;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

button {
    background-color: #4c0f21;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #4c0f21
}

.close {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.close:hover,
.close:focus {
    color: rgb(255, 255, 255);
    text-decoration: none;
    cursor: pointer;
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Medias Queries para diseño responsivo */
@media (max-width: 768px) {
    .form-container {
        width: 90%; /* El formulario ocupará el 90% del ancho */
        max-width: 450px; /* Limitamos el tamaño máximo en tablets */
    }

    h2 {
        font-size: 20px;
    }

    label {
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="datetime-local"],
    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-container {
        width: 95%;
        max-width: 100%;
    }

    h2 {
        font-size: 18px;
    }

    label {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="datetime-local"],
    button {
        font-size: 12px;
    }
}
