  /* Estilos globales para eliminar márgenes y paddings por defecto y usar box-sizing */
    * {
      margin: 0; /* Elimina el margen por defecto */
      padding: 0; /* Elimina el padding por defecto */
      box-sizing: border-box; /* Asegura que el tamaño total de los elementos incluya el padding y el borde */
    }
  @font-face {
  font-family: "Bakersignet Bt";
  src: url("fonts/BakersignetBT.ttf") format("truetype");
}

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
  max-width: 990px; /* 3 tarjetas de 300px + 2 gaps de 30px */
  margin: 0 auto;

}

.tarjeta {
  flex: 0 1 300px;
  max-width: 300px;
  width: 100%;
  height: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: #f833f8;
  transition: transform 0.3s ease;
  margin-bottom: 30px;


}

    .tarjeta:hover {
      animation: sacudir 0.3s;
    }

    .contenido {
      position: absolute;
      width: 100%;
      height: 100%;
      padding: 30px 20px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: opacity 0.4s ease;
      color: #f5f0f0;
      text-align: center;
      font-size: 20px;
      
      
    }

    .contenido.frente {
      background: linear-gradient(45deg, #ff4ecd, #ffa500, #ff4ecd);
      z-index: 2;
      font-family: "Impact" fantasy;
      color: #f5efef;
      font-size: 18px;
      
      
    }
  
  .contenido.frente img{
    width: 250px;
    height: 300px;
    
  }

    .contenido.detras {
     background: linear-gradient(45deg, #f3721c, #a5189e, #f3721c);
      z-index: 1;
      opacity: 0;
      font-family: Georgia, serif;
    }

    .tarjeta.activa .contenido.frente {
      opacity: 0;
      z-index: 1;
    }

    .tarjeta.activa .contenido.detras {
      opacity: 1;
      z-index: 2;
    }

    @keyframes sacudir {
      0% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      50% { transform: translateX(5px); }
      75% { transform: translateX(-5px); }
      100% { transform: translateX(0); }
    }