/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #151515;
    --clr: #005cbf;
    --clrr: #bf0000;
}

.tarjeta {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 600px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    border-radius: 20px;
}

.circulo {
    position: absolute;
    top: 50%;
    left: 50%; 
    width: 85%; 
    height: 85%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #191919;
    border: 8px solid var(--clr);
    transition: 0.5s;
}

.instrucciones {
    position: absolute;
    top: 10%; /* Ajusta la posición vertical */
    left: 50%;
    transform: translateX(-50%);
    color: #fff; /* Color del texto */
    font-size: 1.2em; /* Tamaño del texto */
    text-align: center; /* Centrar el texto */
    opacity: 0.8; /* Opcional: transparencia del texto */
    transition: opacity 0.5s; /* Suavizar la transición */
}

.tarjeta:hover .instrucciones {
    opacity: 0; /* Hacer que el texto desaparezca */
}

.circulo .logo {
    position: absolute;
    left: 3%; 
    top: -5%;
    height: 100%; 
    transition: 0.5s;
}

.tarjeta:hover .circulo {
    background: var(--clr);
}

.tarjeta:hover .logo {
    transform: scale(0);
}

.logotipo {
    position: absolute;
    top: 30%; 
    left: 48%; 
    transform: translate(-50%, -50%) scale(1) rotate(15deg);
    height: 80%; 
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.tarjeta:hover .logotipo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.contenido {
    position: absolute;
    top: 60%;
    bottom: 40px;
    left: 50%; 
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s;
}

.tarjeta:hover .contenido {
    opacity: 1;
}

.contenido h2 {
    text-transform: uppercase;
    font-size: 1em;
    margin-bottom: 10px;
}

.contenido p {
    margin-bottom: 20px;
}

.boton-circulo, .boton-contenido {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background-color: var(--clrr);
    border-radius: 5px;
    transition: background 0.3s;
}

.boton-circulo {
    position: absolute;
    bottom: 7%; /* Ajusta la posición según sea necesario */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Asegúrate de que el botón esté por encima de otros elementos */
}

.boton-contenido {
    margin-top: 20px; /* Espacio entre el contenido y el botón */
}

.boton-circulo:hover, .boton-contenido:hover {
    background: var(--clr);
    color: #fff;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .tarjeta {
        height: 80vh; /* Ajustar altura en móviles */
    }

    .circulo {
        width: 80%; /* Ajustar el tamaño del círculo */
        height: 50%;
        border-width: 5px; /* Reducir el grosor del borde */
    }

    .circulo .logo {
        height: 95%; /* Ajustar el tamaño del logotipo */
    }

    .logotipo {
        height: 30%; /* Reducir el tamaño del logotipo principal */
        top: 39%; /* Ajustar la posición del logotipo */
    }

    .contenido {
        top: 65%; /* Mantener el contenido centrado verticalmente */
        transform: translateX(-50%) translateY(-50%); /* Centrar verticalmente y horizontalmente */
    }

    .contenido h2 {
        font-size: 1.2em; /* Ajustar el tamaño del texto */
    }

    .contenido p {
        font-size: 1.0em; /* Ajustar el tamaño del párrafo */
    }

    .contenido a {
        padding: 8px 16px; /* Ajustar el padding del botón en móviles */
    }

    .instrucciones {
        font-size: 0.8em; /* Ajustar el tamaño del texto en móviles */
        top: 5%; /* Ajustar la posición si es necesario */
    }
}

/* Estilos para pantallas grandes */
@media (min-width: 1024px) {
    .tarjeta {
        width: 95vw;
        height: 95vh;
    }

    .circulo {
        width: 90%;
        height: 90%;
    }

    .contenido h2 {
        font-size: 1.5em;
    }

    .contenido p {
        font-size: 1.2em;
    }
}
