body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #b80000, #330000);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }
  
  .logo {
    width: 120px;
    margin-top: 20px;
    border-radius: 20px;
    box-shadow: 0 0 20px #fff;
  }
  
  .titulo {
    font-size: 2.5rem;
    margin: 10px 0 0 0;
    color: #fff;
  }
  
  .subtitulo {
    margin-bottom: 20px;
    color: #ffd;
    text-align: center;
    max-width: 90%;
  }
  
  .container {
    text-align: center;
    padding: 20px;
  }
  
  .tablero {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .carta {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    border: 3px solid #880000;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s;
  }
  
  .carta.volteada {
    transform: rotateY(180deg);
  }
  
  .carta .frente, .carta .dorso {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
  }
  
  .carta .frente {
    background: #fff;
  }
  
  .carta .dorso {
    transform: rotateY(180deg);
    background: #fff;
  }
  
  .carta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .ganaste {
    display: none;
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px #fff;
    text-align: center;
    margin-top: 20px;
  }
  
  #formulario input {
    display: block;
    margin: 10px auto;
    padding: 8px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #formulario button {
    padding: 10px 20px;
    background: #b80000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #formulario button:hover {
    background: #880000;
  }
  