/* =========================
   Base / Variables
========================= */
:root {
  --bg-1: #070710;
  --bg-2: #0c0c18;
  --card: rgba(255, 255, 255, 0.06);
  --card-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);

  --heart-1: #ff4d7d;
  --heart-2: #ff7aa2;
  --heart-3: #ffd1dc;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);

  --radius: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);

  --max: 520px;
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Reset ligero
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: radial-gradient(
      1200px 700px at 10% 15%,
      rgba(255, 77, 125, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 90% 30%,
      rgba(255, 209, 220, 0.1),
      transparent 55%
    ),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 18px;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus {
  left: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Layout
========================= */
.page {
  width: 100%;
  max-width: var(--max);
}

.card {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 20px 18px 18px;
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
      680px 300px at 20% 0%,
      rgba(255, 77, 125, 0.18),
      transparent 60%
    ),
    radial-gradient(
      520px 260px at 90% 10%,
      rgba(255, 209, 220, 0.12),
      transparent 65%
    );
  pointer-events: none;
  opacity: 0.9;
}

/* Branding mini */
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--heart-1));
  box-shadow: 0 0 18px rgba(255, 77, 125, 0.65);
}

.brand__text {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}

/* =========================
   Heart
========================= */
.heart-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 28px 0 12px;
}

.heart {
  width: min(320px, 72vw);
  height: auto;
  filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.35));
}

.heart__path {
  /* JS setea dasharray/dashoffset para que se dibuje */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 6.5s var(--ease) forwards;
  will-change: stroke-dashoffset;
}

.heart__glow {
  opacity: 0.55;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================
   Message (aparece al final)
========================= */
.message {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  text-align: center;
  padding: 10px 6px 0;

  /* Arranca oculto */
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.message.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 700ms var(--ease), transform 750ms var(--ease);
  pointer-events: auto;
}

.message__kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.98rem;
}

.message__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.12;
  font-size: clamp(1.55rem, 4.8vw, 2.15rem);
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.message__body {
  margin: 0 auto 16px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* CTA */
.cta {
  width: 100%;
  max-width: 260px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 77, 125, 0.95), rgba(255, 209, 220, 0.9));
  color: #1b0a11;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(255, 77, 125, 0.18);
  transition: transform 180ms var(--ease-soft), filter 180ms var(--ease-soft);
  touch-action: manipulation;
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 2px solid rgba(255, 209, 220, 0.9);
  outline-offset: 3px;
}

/* Footer */
.foot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  padding-top: 16px;
}

.foot__line {
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.foot__text {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================
   Responsive (tablet/desktop)
========================= */
@media (min-width: 720px) {
  body {
    padding: 28px;
  }

  .card {
    padding: 22px 22px 20px;
  }

  .heart-wrap {
    padding: 30px 0 12px;
  }
}