* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
}

.container {
  width: 100%;
  max-width: 720px;
  padding: 20px;
  text-align: center;
}

.frame {
  display: none;
}

.frame.active {
  display: block;
}

/* SOBRE */
.envelope {
  width: 260px;
  margin: 0 auto 20px;
  cursor: pointer;
  position: relative;
}

.envelope-body {
  background: #ffe3ec;
  height: 160px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.envelope-flap {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-top: 90px solid #f6b7cb;
  transform-origin: top;
  transition: transform 0.6s ease;
}

/* ABRIR SOBRE */
.envelope.open .envelope-flap {
  transform: rotateX(180deg);
}

.hint {
  color: #9a6a7a;
}

/* CARTA */
.letter-card {
  background: linear-gradient(180deg, #fff 0%, #fff0f5 100%);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

h1,
.big-title,
.big-question {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #b35a76;
  text-align: center;
}

.big-title,
.big-question {
  font-size: 42px;
}

.letter-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: #4a2c38;
  margin: 25px 0;
}

/* BOTONES */
.options {
  display: flex;
  justify-content: center;
  gap: 12px;
}

button {
  background: #f4c6d5;
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  cursor: pointer;
  color: #5a2f3f;
}

button:hover {
  background: #ebb1c6;
}

/* TEXTO */
.subtitle {
  color: #7a4b5e;
  margin: 12px 0 20px;
}

textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e8cbd5;
  padding: 14px;
  min-height: 120px;
  resize: none;
}

.signature {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  color: #9b7b88;
}

/* CORAZONES */
.hearts-bg span {
  position: fixed;
  bottom: -10px;
  animation: floatUp linear infinite;
  opacity: 0.4;
}

@keyframes floatUp {
  from { transform: translateY(0); }
  to { transform: translateY(-120vh); }
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .big-title,
  .big-question {
    font-size: 32px;
  }
}
/* PDF */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff6f9;
  }

  .letter-card {
    box-shadow: none;
    margin-top: 40px;
  }
}
.letter-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.7;
}
.letter-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.8;
  font-size: 16px;
}

