:root {
  --bg-main: #120816;
  --bg-alt: #201225;
  --primary: #ff4b8b;
  --primary-soft: #ff9ac1;
  --accent: #ffc6e0;
  --text-main: #fff6ff;
  --text-muted: #d1bfd6;
  --glass: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #3d123e 0, #120816 45%, #05010a 100%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.text-gradient {
  background: linear-gradient(120deg, #ffe0f0, #ff9ac1, #ff4b8b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Layout principal de tarjeta */

.valentine-wrapper {
  min-height: 100vh;
  padding: 3rem 1rem;
}

.valentine-card {
  background: radial-gradient(circle at top, rgba(255, 198, 224, 0.18), rgba(11, 11, 21, 0.96));
  border-radius: 2rem;
  padding: 2.2rem 1.6rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7);
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 768px) {
  .valentine-card {
    padding: 2.6rem 2.4rem 2.8rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.valentine-photo {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
}

.valentine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.valentine-badge {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #ff9ac1, #ff4b8b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.valentine-badge span {
  font-size: 1.2rem;
}

.valentine-content {
  max-width: 520px;
  margin-inline: auto;
}

.valentine-eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--primary-soft);
}

.valentine-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.valentine-subtitle {
  color: var(--text-muted);
}

.valentine-message {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.valentine-message p + p {
  margin-top: 0.6rem;
}

.valentine-signature {
  font-style: italic;
}

.valentine-signature span {
  color: var(--primary-soft);
  font-weight: 600;
}

.valentine-btn-primary,
.valentine-btn-secondary {
  border-radius: 999px;
}

.valentine-btn-primary {
  box-shadow: 0 12px 30px rgba(255, 75, 139, 0.4);
}

.music-toggle {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(6, 6, 14, 0.75);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.music-toggle:hover {
  background: rgba(255, 155, 193, 0.35);
}

/* Header y carrusel */

.valentine-header {
  position: relative;
}

.valentine-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.6rem;
  width: 80px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe0f0, #ff4b8b);
  transform: translateX(-50%);
  opacity: 0.8;
}

.valentine-carousel {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.valentine-carousel img {
  max-height: 320px;
  object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

/* Contador de días */

.valentine-counter {
  margin-top: 1.8rem;
}

.counter-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-soft);
}

.counter-value {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.3rem;
  color: #ffe0f0;
}

.counter-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.counter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.7rem;
}

.counter-unit {
  min-width: 80px;
  padding: 0.4rem 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.counter-caption {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.floating-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.floating-hearts span {
  position: absolute;
  display: block;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff, #ff4b8b);
  opacity: 0.25;
  border-radius: 50% 50% 40% 60%;
}

.floating-hearts span:nth-child(1) {
  left: 4%;
  bottom: -10%;
}

.floating-hearts span:nth-child(2) {
  left: 10%;
  bottom: -15%;
}

.floating-hearts span:nth-child(3) {
  left: 18%;
  bottom: -12%;
}

.floating-hearts span:nth-child(4) {
  right: 18%;
  bottom: -18%;
}

.floating-hearts span:nth-child(5) {
  right: 10%;
  bottom: -14%;
}

.floating-hearts span:nth-child(6) {
  right: 4%;
  bottom: -16%;
}

.floating-hearts span:nth-child(7) {
  left: 6%;
  bottom: -22%;
}

.floating-hearts span:nth-child(8) {
  right: 6%;
  bottom: -24%;
}

.floating-hearts span:nth-child(9) {
  left: 15%;
  bottom: -26%;
}

.floating-hearts span:nth-child(10) {
  right: 15%;
  bottom: -28%;
}

.floating-hearts span:nth-child(11) {
  left: 2%;
  bottom: -30%;
}

.floating-hearts span:nth-child(12) {
  right: 2%;
  bottom: -32%;
}

[data-tilt] {
  transform-style: preserve-3d;
  transform-origin: center;
}

@media (max-width: 575.98px) {
  .valentine-card {
    padding: 2rem 1.3rem 2.3rem;
  }
}
