/* Reset y fuente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #2e3c3f;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0; /* stacking context base */
}

/* Fondo de montañas animadas */
body::before {
    content: "";
    position: fixed;
    width: 300%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23516b4f" fill-opacity="1" d="M0,96L80,106.7C160,117,320,139,480,149.3C640,160,800,160,960,144C1120,128,1280,96,1360,80L1440,64L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"></path></svg>') repeat-x;
    background-size: cover;
    animation: moverMontana 30s linear infinite;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none; /* <-- Previene bloquear clics */
}

@keyframes moverMontana {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

h1 {
    font-size: 2em;
    color: #e8f5e9;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 5px #1b1b1b;
    z-index: 1;
}

.formulario {
    background-color: rgba(34, 49, 46, 0.88);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    z-index: 1;
    position: relative;
}

form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #c8e6c9;
}

form input,
form select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background-color: #f1f8e9;
    color: #2e3c3f;
    font-size: 1em;
    transition: all 0.3s ease;
}

form input:focus,
form select:focus {
    outline: none;
    background-color: #ffffff;
    border: 2px solid #81c784;
}

button {
    margin-top: 20px;
    padding: 14px;
    width: 100%;
    border: none;
    background-color: #689f38;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #558b2f;
}

.mensaje-espera {
    display: none;
    margin-top: 20px;
    color: #fff176;
    font-weight: bold;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5em;
    }

    .formulario {
        padding: 20px;
    }
}
