/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    background-color: #f4f4f4;
}

/* Fondo con imagen y efecto difuminado */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./road.webp') no-repeat center center/cover;
    filter: brightness(50%) blur(0px);
    z-index: -1;
}

/* Estilos del logo */
.logo-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 10px rgb(255, 255, 255));
}

/* Secciones con efecto de glassmorphism */
.mensaje, .contacto {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 20px auto;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.mensaje:hover, .contacto:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.mensaje h1, .contacto h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.mensaje p, .contacto p {
    font-size: 18px;
}

/* Estilos de los enlaces */
a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

button {
    background: #007bff;
    color: white;
    border: none;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #0056b3;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-header {
    background-color: #007BFF;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-content {
    background: white;
    color: black;
    padding: 20px;
    margin: 10% auto;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Pie de página */
footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    font-size: 14px;
    position: fixed;
    bottom: 0;
}

/* Formulario */
form {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
}

.col-6 {
    width: 50%;
    padding: 5px;
}

.col-12 {
    width: 100%;
    padding: 5px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: none;
    height: 80px;
}

/* Mensaje de estado */
#mensajeEstado {
    display: none;
    font-weight: bold;
    margin-top: 10px;
}

/* Responsividad */
@media (max-width: 768px) {
    .mensaje, .contacto {
        width: 90%;
        padding: 20px;
    }

    .mensaje h1, .contacto h2 {
        font-size: 22px;
    }
}
