/* Estilo general */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-color: transparent;
}

/* Pseudo-elemento para el fondo animado */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg,
        #ff6ec4,
        #0f0f0f,
        #e0e1f1,
        #e0e1f1,
        #ff6ec4
    );
    background-size: 1000% 1000%;
    animation: stripeRainbow 40s ease infinite;
    z-index: -1;
}

/* Animación del fondo */
@keyframes stripeRainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estilo para las banderas */
.flags {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.flags img {
    width: 30px !important;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flags img:hover {
    transform: scale(1.1);
}

/* Header y logo */
header {
    margin-top: 20px;
    text-align: center;
    z-index: 1;
}

.logo {
    max-width: 250px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 1.8em;
    color: #9370DB;
    font-weight: 600;
    margin: 10px 0;
    font-family: 'Georgia', serif;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #f7f2f2;
    font-family: 'Georgia', serif;
}

/* Formulario */
form {
    background: none;
    border-radius: 10px;
    max-width: 400px;
    margin: 20px auto;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* Inputs con fondo gris pastel */
input[type="text"], input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    background-color: #cfbef8; /* 🎯 Fondo gris pastel dentro del campo */
    color: #000; /* Texto oscuro */
    font-size: 1em;
    transition: all 0.3s ease;
    border-radius: 6px;
}

/* Estilo al enfocar */
input[type="text"]:focus, input[type="email"]:focus {
    border-color: #9370DB;
    box-shadow: 0 0 5px rgba(147, 112, 219, 0.5);
    background-color: #eaeaea;
}

/* Ajustes para campos pequeños */
.campo-pequeno {
    width: 150px;
    padding: 8px;
    font-size: 14px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Botón */
button {
    background-color: #9370DB;
    border: none;
    padding: 12px 24px;
    color: white;
    font-size: 1.2em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #e89c00;
    transform: scale(1.05) translateY(-2px);
}

/* Botón alternativo */
#botonEnviar {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #c8d45a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#botonEnviar:hover {
    background-color: #6a3fb2;
}

/* Asegurar tamaño en campo pequeño */
input.campo-pequeno[type="text"] {
    width: 150px !important;
    padding: 10px;
    font-size: 16px;
}

/* Organización interna del formulario */
.formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.campo-grupo label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    font-size: 1em;
}

.boton-grupo {
    margin-top: 10px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: transparent;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.form-card {
    margin-top: 20px;
}

/* Animación de aparición */
.logo, h1, p {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive para móviles */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .form-card {
        padding: 20px;
    }

    button {
        padding: 12px 15px;
        font-size: 1.1em;
    }

    .logo {
        max-width: 200px;
    }

    h1 {
        font-size: 1.5em;
    }

    .campo-grupo {
        margin-bottom: 10px;
    }

    input[type="text"], input[type="email"] {
        padding: 10px;
    }

    .campo-pequeno {
        width: 130px;
        font-size: 13px;
    }
}
