html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Asegura que no haya desplazamiento horizontal */
}

body {
    background: url('../images/Jaguares1.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

form {
    height: 450px;
    width: 400px;
    background-color: rgba(255,255,255,0.13);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(8,7,16,0.6);
    padding: 50px 35px;
    margin-bottom: 20px; /* Añade un margen inferior para separar el formulario del footer */
}

form * {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

form h2, form h3 {
    color: #ffffff;
    margin: 0; 
    text-align: center;
}

form h2 {
    font-size: 32px;
    line-height: 42px;
}

form h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    margin-top: 10px; 
}

label {
    color: #ffffff;
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    display: block;
    height: 50px;
    width: 87%;
    background-color: rgba(255,255,255,0.07);
    border-radius: 25px; /* Bordes más circulares */
    padding: 0 10px 0 40px; /* Añade espacio para el icono */
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
    text-align: center; /* Centra el texto del placeholder */
    border: 2px solid transparent; 
    transition: border-color 0.3s ease-in-out; 
    color: white;
}

.input-container .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
}

input:hover, input:focus {
    border-color: #ee3248; 
}

::placeholder {
    color: rgba(229, 229, 229, 0.7); 
}

/* Hacer que el placeholder desaparezca al enfocar el input */
input:focus::placeholder {
    color: transparent; /* Hace que el texto del placeholder sea invisible */
    transition: color 0.3s ease-in-out; /* Transición suave para desaparecer */
}

button {
    margin-top: 50px;
    width: 70%;
    background-color: #ffffff;
    color: #080710; /* Color inicial del texto en negro */
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px; /* Bordes más circulares */
    cursor: pointer;
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
    position: relative;
    overflow: hidden; /* Asegura que la animación no se desborde */
    transition: color 0.4s; /* Transición suave para el color del texto */
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ee3248;
    transition: left 0.4s; /* Transición suave para la animación */
    z-index: 0; /* Asegura que la animación esté detrás del texto */
}

button:hover::before {
    left: 0; /* Mueve la animación de izquierda a derecha */
}

button:hover {
    color: #ffffff; /* Cambia el color del texto a blanco durante la transición */
}

button span {
    position: relative;
    z-index: 1; /* Asegura que el texto esté delante de la animación */
}

/* Estilo del mensaje de error */
.error-message {
    font-family: 'Poppins', sans-serif;
    position: fixed;
    top: -100px; /* Inicialmente fuera de la pantalla (parte superior) */
    right: 20px;
    background-color: rgba(255, 0, 0, 0.8); /* Fondo rojo transparente */
    color: white; /* Texto blanco */
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Inicialmente invisible */
    transition: all 0.5s ease-in-out; /* Transición suave */
    z-index: 1000;
}

/* Mostrar el mensaje */
.error-message.show {
    top: 20px; /* Aparece en la esquina superior derecha */
    opacity: 1; /* Visible */
}


/**************************************************************************************/

footer {
    text-align: center;
    padding: 10px;
    background-color: #212121;
    width: 100%;
    position: relative;
    bottom: 0;
}

footer p {
    margin: 0;
    font-size: 12px; /* Reduce el tamaño de la fuente */
}

footer a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}

footer a:hover {
    text-decoration: underline;
}

.wrapper-Icons {
    display: flex;
    justify-content: center;
    margin-bottom: 5px; /* Reduce el margen inferior para acercar los iconos al texto */
    background-color: #212121;
}

.icon {
    margin: 0 10px;
    text-decoration: none;
    color: #ffffff; /* Asegura que los iconos sean blancos y visibles sobre el fondo oscuro */
    position: relative;
}

.icon span {
    font-size: 24px;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.mainFooter {
    text-align: center;
    padding: 5px; /* Reduce el padding para acercar el texto a los iconos */
    background-color: #212121;
}

.textPrivacy {
    margin: 0;
    font-size: 12px; /* Reduce el tamaño de la fuente */
    color: #ffffff;
}

._link1 {
    text-decoration: none;
    color: #333;
    color: #ffffff;
}

._link1:hover {
    text-decoration: underline;
}