/* styles.css
   Tema: Azul + Rojo (premium), con glow, grid, tarjeta 3D, secciones tipo Apple,
   y carta con sobre animado.
*/

:root {
  --bg: #05070f;
  --bg2: #070a16;

  --text: #eaf0ff;
  --muted: #a9b5d6;

  --blue: #2b6cff;
  --blue2: #57b7ff;

  --red: #ff2d55;
  --red2: #ff6b6b;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  --shadow2: 0 14px 40px rgba(0, 0, 0, 0.55);

  --radius: 22px;
  --radius2: 28px;

  --max: 1120px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      1200px 800px at 25% 10%,
      rgba(43, 108, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      1000px 800px at 75% 15%,
      rgba(255, 45, 85, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

/* Background effects */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.bg__glow {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.9;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
}
.bg__glow--blue {
  left: -12vw;
  top: -18vw;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(87, 183, 255, 0.65),
    rgba(43, 108, 255, 0.12) 55%,
    transparent 70%
  );
}
.bg__glow--red {
  right: -16vw;
  top: -16vw;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 107, 107, 0.55),
    rgba(255, 45, 85, 0.12) 55%,
    transparent 72%
  );
}
.bg__grid {
  position: absolute;
  inset: -2px;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(
    circle at 40% 15%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0) 70%
  );
}

/* Layout */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.section {
  padding: 110px 0;
  position: relative;
}
.section__title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section__subtitle {
  margin: 0 0 34px;
  color: var(--muted);
  max-width: 70ch;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 22, 0.55);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.95;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}
.dot--blue {
  background: linear-gradient(135deg, var(--blue2), var(--blue));
}
.dot--red {
  background: linear-gradient(135deg, var(--red2), var(--red));
}

.topbar__btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.topbar__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
  user-select: none;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  background: linear-gradient(
    135deg,
    rgba(87, 183, 255, 0.95),
    rgba(43, 108, 255, 0.95) 45%,
    rgba(255, 45, 85, 0.92)
  );
  color: #081022;
  box-shadow:
    0 18px 50px rgba(43, 108, 255, 0.18),
    0 18px 50px rgba(255, 45, 85, 0.12);
}
.btn--primary:hover {
  box-shadow:
    0 22px 70px rgba(43, 108, 255, 0.22),
    0 20px 65px rgba(255, 45, 85, 0.18);
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding-top: 90px;
  padding-bottom: 90px;
  min-height: 100vh; /* recomendado para el pin tipo Apple */
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero__title {
  margin: 0 0 14px;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.accent {
  display: inline-block;
  transform: translateY(-2px);
  margin-left: 6px;
}
.hero__subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(234, 240, 255, 0.9);
  font-size: 12.5px;
}

/* Hero visual: card 3D */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.card3d {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.card3d::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      800px 520px at 25% 20%,
      rgba(87, 183, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      700px 520px at 78% 22%,
      rgba(255, 45, 85, 0.22),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(11, 16, 34, 0.55), rgba(11, 16, 34, 0.25));
  opacity: 0.95;
}
.card3d__content {
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius2) - 10px);
  background: rgba(7, 10, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateZ(24px);
}
.card3d__shine {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.22),
    transparent 38%
  );
  opacity: 0.55;
  transform: translateZ(28px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Card interior elements */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: fit-content;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.badge__split {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}
.rings {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  transform: translateZ(18px);
}
.ring {
  position: absolute;
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.92;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.ring--blue {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(87, 183, 255, 0.95),
    rgba(43, 108, 255, 0.18) 58%,
    transparent 72%
  );
  border: 1px solid rgba(87, 183, 255, 0.32);
  transform: translateX(-10%) translateZ(12px);
}
.ring--red {
  background: radial-gradient(
    circle at 70% 70%,
    rgba(255, 107, 107, 0.9),
    rgba(255, 45, 85, 0.18) 58%,
    transparent 72%
  );
  border: 1px solid rgba(255, 45, 85, 0.3);
  transform: translateX(10%) translateZ(16px);
}
.card3d__title {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.card3d__line {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(87, 183, 255, 0.55),
    rgba(255, 45, 85, 0.55)
  );
  opacity: 0.75;
}
.card3d__small {
  color: var(--muted);
  font-size: 13px;
}

/* Scroll hint */
.scrollhint {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 38px;
  color: rgba(234, 240, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scrollhint__mouse {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
}
.scrollhint__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
  animation: wheel 1.3s ease-in-out infinite;
}
@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.6;
  }
  60% {
    transform: translate(-50%, 10px);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 0.6;
  }
}

/* Timeline steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      540px 240px at 15% 10%,
      rgba(87, 183, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      540px 240px at 85% 10%,
      rgba(255, 45, 85, 0.12),
      transparent 60%
    );
  opacity: 0.9;
  pointer-events: none;
}
.step__num {
  min-width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: rgba(7, 10, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(234, 240, 255, 0.92);
  position: relative;
  z-index: 1;
}
.step__body {
  position: relative;
  z-index: 1;
}
.step__title {
  margin: 4px 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.step__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Rules */
.rules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rule {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}
.rule::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      560px 260px at 20% 10%,
      rgba(87, 183, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      560px 260px at 85% 15%,
      rgba(255, 45, 85, 0.1),
      transparent 62%
    );
  opacity: 0.95;
  pointer-events: none;
}
.rule__title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.rule__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.rule__list li {
  margin: 6px 0;
}

/* Letter actions */
.letter__actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Carta con sobre animado
========================= */

.letter__stage {
  margin-top: 10px;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.envelopeWrap {
  width: min(520px, 100%);
  perspective: 1200px;
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3.3;
  border-radius: 22px;
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
}

/* Parte trasera */
.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(
      700px 320px at 18% 15%,
      rgba(87, 183, 255, 0.22),
      transparent 62%
    ),
    radial-gradient(
      700px 320px at 82% 18%,
      rgba(255, 45, 85, 0.18),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Frente */
.envelope__front {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  transform: translateZ(6px);
}

.envelope__front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 22, 0.35),
    rgba(7, 10, 22, 0.15)
  );
}

.envelope__front::after {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(
      135deg,
      transparent 49%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 51%
    ),
    linear-gradient(
      225deg,
      transparent 49%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 51%
    ),
    linear-gradient(
      315deg,
      transparent 49%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 51%
    ),
    linear-gradient(
      45deg,
      transparent 49%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 51%
    );
  opacity: 0.55;
  mix-blend-mode: overlay;
}

/* Solapa */
.envelope__flap {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 50%;
  border-radius: 18px;
  transform-origin: top center;
  transform: rotateX(0deg) translateZ(10px);
  background:
    radial-gradient(
      520px 240px at 25% 30%,
      rgba(87, 183, 255, 0.16),
      transparent 62%
    ),
    radial-gradient(
      520px 240px at 75% 30%,
      rgba(255, 45, 85, 0.14),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.04)
    );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Sello */
.envelope__seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%) translateZ(18px);
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(7, 10, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.seal__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
}
.seal__dot--blue {
  left: 20px;
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  box-shadow: 0 0 18px rgba(87, 183, 255, 0.25);
}
.seal__dot--red {
  right: 20px;
  background: linear-gradient(135deg, var(--red2), var(--red));
  box-shadow: 0 0 18px rgba(255, 45, 85, 0.22);
}

/* Hoja */
.paper {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;

  height: 120%;
  border-radius: 18px;
  transform: translateY(42%) translateZ(4px);
  background:
    radial-gradient(
      700px 340px at 20% 10%,
      rgba(87, 183, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 340px at 80% 12%,
      rgba(255, 45, 85, 0.08),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.paper__top {
  height: 16px;
  background: linear-gradient(
    90deg,
    rgba(87, 183, 255, 0.6),
    rgba(255, 45, 85, 0.55)
  );
  opacity: 0.6;
}

.paper__content {
  padding: 16px 18px 18px;
  max-height: calc(100% - 16px);
  overflow: auto;
}

.paper__content p {
  margin: 0 0 12px;
  line-height: 1.75;
  color: rgba(234, 240, 255, 0.92);
  font-size: 15.5px;
}

.paper__signature {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.paper__sigline {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    rgba(87, 183, 255, 0.95),
    rgba(255, 45, 85, 0.95)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll inside paper */
.paper__content::-webkit-scrollbar {
  width: 10px;
}
.paper__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.paper__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

/* Close */
.close__inner {
  text-align: center;
  max-width: 820px;
}
.close__title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 50px);
  letter-spacing: -0.04em;
}
.close__text {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.6;
}
.close__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(234, 240, 255, 0.65);
}
.footer__small {
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: 2;
    margin-top: 18px;
  }
  .rules__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .section {
    padding: 86px 0;
  }
  .step {
    padding: 16px;
  }
  .step__num {
    min-width: 50px;
    height: 50px;
  }
  .topbar {
    padding: 12px 14px;
  }
  .letter__stage {
    justify-items: stretch;
  }
  .envelopeWrap {
    width: 100%;
  }
}
/* =========================
   CARTA (PÁRRAFOS) — DISEÑO PREMIUM
   Aplica a #letterModalBody (modal)
========================= */

/* Contenedor del texto: ancho de lectura + respiración */
#letterModalBody {
  padding: 18px 20px 22px;
  max-width: 72ch;
  margin: 0 auto;

  /* sensación de papel */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Párrafos generales: lectura suave */
#letterModalBody p {
  margin: 0 0 14px;
  line-height: 1.85;
  font-size: 16.2px;

  color: rgba(234, 240, 255, 0.92);
  letter-spacing: -0.01em;

  /* “ink” look sutil */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

/* Primer párrafo (saludo) más “lead” */
#letterModalBody p:first-child {
  font-size: 17px;
  color: rgba(234, 240, 255, 0.96);
  margin-bottom: 16px;
}

/* Dropcap suave (solo en el primer párrafo) */
#letterModalBody p:first-child::first-letter {
  float: left;
  font-weight: 850;
  font-size: 42px;
  line-height: 0.92;
  margin-right: 10px;
  margin-top: 4px;

  background: linear-gradient(
    90deg,
    rgba(116, 199, 255, 0.98),
    rgba(255, 45, 85, 0.95)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* Separación elegante entre párrafos */
#letterModalBody p + p {
  padding-top: 6px;
}

/* “Micro highlight” para frases fuertes sin tocar HTML:
   (si en algún momento envuelves algo con <em>) */
#letterModalBody em {
  font-style: normal;
  color: rgba(234, 240, 255, 0.98);
  background: linear-gradient(
    90deg,
    rgba(116, 199, 255, 0.18),
    rgba(255, 45, 85, 0.14)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 8px 2px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Firma: ya existe .modal__signature en tu HTML */
#letterModalBody .modal__signature {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  font-size: 16px;
  line-height: 1.75;
  color: rgba(234, 240, 255, 0.95);

  /* “tarjetita” sutil para cerrar bonito */
  background:
    radial-gradient(
      900px 300px at 20% 0%,
      rgba(116, 199, 255, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px 300px at 80% 0%,
      rgba(255, 45, 85, 0.06),
      transparent 60%
    );
  border-radius: 16px;
  padding: 14px 14px 12px;
}

/* La línea “Te amo.” con gradient ya la tienes en .modal__sigline.
   Solo la hacemos un poquito más “wow”. */
#letterModalBody .modal__sigline {
  display: inline-block;
  margin-top: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 18px;
  filter: drop-shadow(0 10px 30px rgba(116, 199, 255, 0.12))
    drop-shadow(0 10px 30px rgba(255, 45, 85, 0.1));
}

/* Scroll del body del modal (más “fino”) */
.modal__body {
  padding: 16px 18px 20px;
}

.modal__body::-webkit-scrollbar {
  width: 10px;
}
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.18);
}
.modal__body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

/* Responsive: lectura cómoda en móvil */
@media (max-width: 520px) {
  #letterModalBody {
    padding: 16px 14px 18px;
    border-radius: 16px;
  }

  #letterModalBody p {
    font-size: 15.6px;
    line-height: 1.82;
  }

  #letterModalBody p:first-child::first-letter {
    font-size: 38px;
    margin-right: 9px;
  }

  #letterModalBody .modal__sigline {
    font-size: 17px;
  }
}
