@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    height: 100svh;
    background: linear-gradient(45deg, #1a1a1a, #2c2c2c);
    color: white;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    gap: 50px;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    text-align: center;
}

img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

h2 {
    font-size: 45px;
    margin-bottom: 20px;
}

p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.p2 {
    display: none;
}

.botones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.botones div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.boton {
    width: 170px;
    padding: 20px;
    font-size: 17px;
    border: none;
    border-radius: 50px;
    background-color: rgb(44, 44, 44);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton:hover,
.boton:focus {
    background-color: rgb(60, 60, 60);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.boton:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.acierto {
    z-index: 1000; 
    position: fixed; 
    top: 20px; /* Desde la parte superior */
    transform: translate(-50%, 0); /* Ajusta la posición para que quede justo en el centro */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: rgb(37, 116, 40); /* Color verde para el acierto */
    color: white; 
    height: 40px; 
    border-radius: 10px; 
    padding: 10px 20px; 
    opacity: 0; /* Inicialmente oculto */
    transform: scale(0.8); /* Comienza pequeño */
    transition: all 0.4s ease; /* Transición suave */
}

.acierto.show { 
    opacity: 1; /* Se hace visible */
    transform: scale(1); /* Se agranda hasta tamaño normal */
}

.error {
	z-index: 100; 
	position: fixed; 
	top: 20px; 
	transform: translate(-50%, 0); 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	background-color: rgb(207, 23, 23); 
	color: white; 
	height: 40px; 
	border-radius: 10px; 
	padding: 10px 20px; 
	opacity: 0; 
	transform: scale(0.8); 
	transition: all 0.4s ease; 
}

.error.show { 
	opacity: 1; 
	transform: scale(1); 	
}

@keyframes quitar_mensaje {
    0% {
        opacity: 0;
        transform: scale(0.8); /* Comienza pequeño y sin moverlo */
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.8); /* Termina pequeño, sin movimiento */
    }
}

/* Media Query para pantallas más pequeñas (móviles) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    * {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		font-family: "Poppins", sans-serif;
	}

	body {
		height: 100vh;
	}

    img {
        width: 250px;
    }

    h2 {
        font-size: 35px;
        margin-inline: 20px;
    }

    p {
        font-size: 14px;
        line-height: 1.4;
        margin-inline: 20px;
    }

    .p1 {
        display: none;
    }

    .p2 {
        display: block;
    }

    .boton {
        width: 150px;
        padding: 15px;
        font-size: 15px;
    }
}

/* Media Query para pantallas muy pequeñas (móviles pequeños) */
@media (max-width: 480px) {

    * {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		font-family: "Poppins", sans-serif;
	}

	body {
		height: 100vh;
	}


    img {
        width: 200px;
    }

    h2 {
        font-size: 30px;
    }

    p {
        font-size: 13px;
    }

    .p1 {
        display: none;
    }

    .p2 {
        display: block;
    }   

    .boton {
        width: 130px;
        padding: 12px;
        font-size: 14px;
    }
}