 body{
 background: linear-gradient(to right, #1f2a44, #5c5c5c);
  min-height: 100vh; /* ocupa todo el alto de la pantalla */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Opcional, da efecto estático */
  background-size: cover;
 }
 header{
display: flex;
justify-content: space-between;
margin-top: 50px;
padding: 15px;
}  
.logo{
  display: flex;
    align-items: center;
}  
.logo img{
    height: 100px;
   width: 100px;
   margin-right: 10px;
max-width: 100%;
 object-fit: cover;
    border-radius: 50%;
}
nav{
     display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Permite que los links salten de línea si es necesario */
}
nav a{
    text-decoration: none;
    color: white;
}
h1{
    font-size: 50px;
    font-family: fantasy;
}
p{
    color: white;
}
img{
      height: 400px;
    width: 400px;
    max-width: 100%;
}
nav{
display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Permite que los links salten de línea si es necesario */
}
div{
    padding: 20px;
}
.tarjeta{
 width: 40%;
 margin: auto;
 height: 40%;
 border-radius: 20px;
 background: #1f2a44;
 position: relative;
 padding: 1.8rem;
 border: 2px solid #c3c6ce;
 transition: 0.5s ease-out;
 overflow: visible;
}

.tarjeta-details {
 color: black;
 height: 100%;
 gap: .5em;
 display: grid;
 place-content: center;
}

.tarjeta-button {
 transform: translate(-50%, 125%);
 width: 60%;
 border-radius: 1rem;
 border: none;
 background-color: #008bf8;
 color: #fff;
 font-size: 1rem;
 padding: .5rem 1rem;
 position: absolute;
 left: 50%;
 bottom: 0;
 opacity: 0;
 transition: 0.3s ease-out;
}

.text-body {
 color: rgb(134, 134, 134);
}
.text-title {
 font-size: 1.5em;
 font-weight: bold;
}

.tarjeta:hover {
 border-color: #008bf8;
 box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.tarjeta:hover .card-button {
 transform: translate(-50%, 50%);
 opacity: 1;
}

.tarjeta-registrate{
    color: red;

}

@media (max-width:600px) {
    header 
    {
      width: 100%;
        padding: 10px;
        margin: auto;
        text-align: center;  
    }
    .tarjeta {
        width: 100%;
        padding: 10px;
        margin: 0 auto;
        text-align: center;
    }
 nav {
    flex-direction: column; /* Apila los links en columna */
    align-items: center;    /* Centra el contenido */
    gap: 10px;              /* Espacio entre links */
  }
}
@media (max-width:380px) {
    header 
    {
      width: 100%;
        padding: 10px;
        margin: 0 auto;
        text-align: center;  
    }
    .tarjeta {
        width: 100%;
        padding: 10px;
        margin: auto;
        text-align: center;
    }
 nav {
    flex-direction: column; /* Apila los links en columna */
    align-items: center;    /* Centra el contenido */
    gap: 10px;              /* Espacio entre links */
  }
}

@media (max-width:700px) {
    header 
    {
      width: 100%;
        padding: 10px;
        margin: 0 auto;
        text-align: center;  
    }
    .tarjeta {
        width: 100%;
        padding: 10px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
 nav {
    flex-direction: column; /* Apila los links en columna */
    align-items: center;    /* Centra el contenido */
    gap: 10px;              /* Espacio entre links */
  }
}