:root {
  --color-sobre: #f08080;
  --color-sobre-oscuro: #e57373;
  --color-carta: #ffffff;
}

.envelope-wrapper {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: var(--color-sobre-oscuro);
  margin: 100px auto;
  cursor: pointer;
}

.envelope {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Estilo específico para el texto del sobre */
.letter .click-text {
  font-family: 'Itim', cursive; /* O la fuente que prefieras */
  font-size: 1.2rem;
  color: #e57373; /* Un color que combine con el sobre */
  margin-top: 60px; /* Para centrarlo verticalmente en la carta */
  text-align: center;
  font-weight: bold;
  /* Animación suave de latido para que llame la atención */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.envelope::after {
  content: "❤";
  position: absolute;
  top: 90px;
  left: 135px;
  z-index: 4;
  color: white;
  font-size: 20px;
  background: #ffb1b1;
  border-radius: 50%;
  padding: 5px;
}

/* La solapa del sobre */
.flap {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-top: 100px solid var(--color-sobre);
  z-index: 3;
  transition: transform 0.4s ease;
  transform-origin: top;
}

/* La carta que sale */
.letter {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 280px;
  height: 180px;
  background: var(--color-carta);
  z-index: 2;
  transition: transform 0.4s ease;
  text-align: center;
  padding-top: 20px;
}

/* Animación al pasar el cursor */
.envelope-wrapper:hover .flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-wrapper:hover .letter {
  transform: translateY(-50px);
}

/* Ocultar la invitación real */
.hidden {
  display: none;
  text-align: center;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contenedor principal de la tarjeta */
.card-container {
  max-width: 450px;
  margin: 20px auto;
  background: white;
  border: 5px double var(--color-sobre); /* Usa el color que definimos antes */
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);

/* 1. Fuente para todo el CUERPO de la invitación (párrafos, datos, etc.) */
.card-container, .card-body p, .info-item span {
  font-family: 'Quicksand', sans-serif; /* Una fuente limpia y moderna */
  font-size: 16px;
  color: #555;
}

/* 2. Fuente SOLO para el TÍTULO principal */
.card-header h1 {
  font-family: 'Press Start 2P', cursive; /* La fuente de píxeles solo aquí */
  font-size: 1.2rem;
  color: var(--color-sobre-oscuro);
  margin: 10px 0;
}

/* 3. Fuente para las ETIQUETAS de información (FECHA, HORA, etc.) */
.info-item strong {
  font-family: 'Quicksand', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-sobre-oscuro);
}

/* 4. Fuente para el BOTÓN */
.confirm-btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: bold;
}

}

.card-header h1 {
  font-size: 1.5rem;
  color: var(--color-sobre-oscuro);
  text-shadow: 1px 1px #ffc1c1;
  margin-bottom: 10px;
}

.sparkle {
  font-size: 20px;
  animation: blink 1s infinite;
}

/* Rejilla de información */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 20px 0;
  border-top: 1px dashed #ccc;
  border-bottom: 1px dashed #ccc;
  padding: 15px 0;

.wishlist-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dotted #ccc; /* Una línea divisoria sutil */
  text-align: center;
}

.wishlist-note {
  font-size: 0.8rem;
  font-style: italic;
  color: #888;
  margin-bottom: 10px;
}

.wishlist-btn {
  display: inline-block;
  background-color: #fff;
  color: #f08080; /* El color del sobre */
  border: 1px solid #f08080;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  background-color: #f08080;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

}

.info-item strong {
  color: var(--color-sobre-oscuro);
  display: block;
  font-size: 0.8rem;
}

/* Botón de confirmación */
.confirm-btn {
  background-color: var(--color-sobre);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.confirm-btn:hover {
  background-color: var(--color-sobre-oscuro);
  transform: scale(1.05);
}

/* Animación simple */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}