:root {
  --main-color: #f5a6b9;
  --soft-color: #fde2ea;
  --text-color: #333;
  --bg-color: #fff;
  --card-color: #ffffff;
  --shadow: 0 15px 35px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  height: 330px;
  background-image: url('portada.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), #fff 88%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(245,166,185,0.25);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h2 {
  font-family: 'Cinzel', serif;
  font-size: 30px;
  margin-top: 15px;
}

.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 58px;
  color: var(--main-color);
  line-height: 1;
}

.hero p {
  color: var(--main-color);
  font-weight: 500;
  margin-top: 10px;
}

.container {
  width: 92%;
  max-width: 900px;
  margin: 0 auto;
}

.stats-card {
  margin: 10px auto 35px;
  background: var(--card-color);
  border: 1px solid #eee;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  gap: 70px;
  padding: 22px;
  max-width: 460px;
}

.stats-card div {
  text-align: center;
}

.stats-card span {
  display: block;
  font-size: 25px;
}

.stats-card strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.stats-card p {
  font-size: 12px;
  color: #777;
}

.upload-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: var(--shadow);
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  margin-bottom: 35px;
}

.upload-card h3,
.note-form-card h3 {
  color: var(--main-color);
  font-size: 28px;
  margin-bottom: 10px;
}

.upload-card p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: #666;
}

.main-btn,
.secondary-btn {
  display: inline-block;
  text-decoration: none;
  background: var(--main-color);
  color: white;
  font-weight: 700;
  padding: 14px 35px;
  border-radius: 999px;
  margin: 10px 0;
  transition: 0.3s;
}

.main-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245,166,185,0.4);
}

.upload-card small {
  display: block;
  color: #888;
  font-size: 12px;
  margin-top: 8px;
}

.tabs {
  background: #eee;
  padding: 7px;
  border-radius: 999px;
  display: flex;
  margin-bottom: 30px;
}

.tab-btn {
  width: 50%;
  border: none;
  background: transparent;
  padding: 13px;
  border-radius: 999px;
  font-weight: 700;
  color: #777;
  cursor: pointer;
}

.tab-btn.active {
  background: #fff;
  color: var(--main-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 1 / 1.15;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-btn {
  margin: 28px auto;
  display: block;
  max-width: 250px;
  text-align: center;
}

.note-form-card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 25px;
  padding: 28px;
  margin-bottom: 35px;
}

form input,
form textarea {
  width: 100%;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 18px;
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin-bottom: 15px;
  outline: none;
}

form textarea {
  height: 120px;
  resize: vertical;
}

.color-picker {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 15px 0 22px;
}

.color-picker input {
  display: none;
}

.color {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
}

.color-picker input:checked + .color {
  outline: 3px solid var(--main-color);
  outline-offset: 4px;
}

.color.pink { background: #ffd1dc; }
.color.green { background: #ddf8d1; }
.color.black { background: #2f2f2f; }
.color.blue { background: #d5efff; }

#submitBtn {
  width: 100%;
  border: none;
  background: var(--main-color);
  color: #fff;
  font-weight: 700;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#formMessage {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.notes-wall {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 90px;
}

.note-item {
  padding: 45px 25px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: rotate(-1deg);
}

.note-item:nth-child(even) {
  transform: rotate(1deg);
}

.note-name {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-size: 14px;
}

.note-text {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  line-height: 1.2;
}

.note-item.pink {
  background: #ffd1dc;
  color: #222;
}

.note-item.green {
  background: #ddf8d1;
  color: #222;
}

.note-item.blue {
  background: #d5efff;
  color: #222;
}

.note-item.black {
  background: #303030;
  color: #fff;
}

.loading {
  text-align: center;
  color: #999;
}

.floating-btn {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 99;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,123,255,0.35);
}

.music-btn {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 100;
  border: none;
  background: var(--main-color);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

footer {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 30px 0 90px;
}

@media (max-width: 700px) {
  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .stats-card {
    gap: 35px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-text {
    font-size: 28px;
  }

  .floating-btn {
    padding: 15px 26px;
  }
}

.retry-btn {
  border: none;
  background: var(--main-color);
  color: #fff;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}