/* Reset básico */
* {
   
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2e1a57;
    color: #fff;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Nuevo contenedor centrado */
.container {
    max-width: 520px; /* Aumentado el ancho */
    margin: 0 auto;
}

/* Contenedor principal */
.form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px; /* Más ancho */
    width: 100%;
    gap: 16px;
    background: rgba(255,255,255,0.07);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(44, 19, 84, 0.25);
    padding: 20px 36px;
    backdrop-filter: blur(2px);
    border: 1.5px solid rgba(212, 175, 55, 0.18);
}

/* Texto dentro del formulario */
.form-texto {
    padding: 10px 28px;
    border-radius: 12px;
    width: 100%;
    font-size: 1.08rem;
    line-height: 1.5;
    text-align: justify;
    background: rgba(255,255,255,0.13);
    color: #e0d7f7;
    box-shadow: 0 2px 8px rgba(44, 19, 84, 0.07);
    border-left: 4px solid #e65100;
}

/* Formulario */
form {
    background: linear-gradient(120deg, #fff 80%, #f7e7ff 100%);
    color: #2e1a57;
    padding: 18px 32px;
    border-radius: 14px;
    max-width: 740px; /* Más ancho */
    width: 100%;
    box-shadow: 0 6px 32px rgba(44, 19, 84, 0.13);
    border: 1.5px solid #D4AF37;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #1c0e38;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 8px;
    border: 1.5px solid #d1c4e9;
    border-radius: 7px;
    background: #f6f2ff;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #2e1a57;
    box-shadow: 0 1px 4px rgba(44, 19, 84, 0.04);
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px #ffd3bb55;
}

input[type="submit"] {
    background: linear-gradient(90deg, #e65100 60%, #ff9800 100%);
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.08em;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px #ffd3bb44;
    transition: background 0.3s, transform 0.15s;
}

input[type="submit"]:hover {
    background: linear-gradient(90deg, #1c0e38 60%, #e65100 100%);
    transform: translateY(-2px) scale(1.03);
}

/* Responsividad */
@media (max-width: 600px) {
    .form-wrapper {
        padding: 10px 2vw;
        max-width: 98vw;
    }
    .form-texto {
        font-size: 0.97rem;
        padding: 8px 4vw;
    }
    form {
        padding: 8px 2vw;
        max-width: 99vw;
    }
    h2 {
        font-size: 19px;
    }
}

.logo-esquina {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 9999;
}

.logo-esquina img {
    max-height: 50px;
    width: auto;
}

.texto-logo {
    margin-top: 4px;
    font-weight: normal;
    font-size: 12px;
}

/* Asegura que el contenido no choque con el logo */
.container {
    margin-top: 80px; /* Ajusta según el tamaño del logo */
}

/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
    .logo-esquina {
        top: 5px;
        right: 5px;
    }

    .logo-esquina img {
        max-height: 40px;
    }

    .container {
        margin-top: 100px;
    }
}


.form-container {
    text-align: center;
}

.modal.show {
    display: flex;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
} 
.modal-contenido {
    background-color: #ffffff;
    color: #2e1a57;
    padding: 25px 20px;
    /* padding: 40px 30px; */
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 8px 25px #ffd3bb; /* Corregido */
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}


.modal-icono {
    margin-bottom: 20px;
} 
 
.modal-icono svg {
    width: 64px;
    height: 64px;
    fill: #4caf50;
}

/*Botón */
 #confirmarRedireccion {
    margin-top: 25px;
    background-color: #e65100;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
} 

#confirmarRedireccion:hover {
    background-color: #1c0e38;
}

.aviso-privacidad {
    margin-top: 30px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.aviso-privacidad p {
    color: #D4AF37;
    font-size: 0.95em;
}

.aviso-privacidad a {
    color: rgb(255, 134, 21);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #D4AF37;
}

.aviso-privacidad a:hover {
    text-decoration: underline;
} 