/* ===== ADMIN ===== */
.admin-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.admin-wrap h1 {
  font-size: 28px;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.admin-section {
  margin-bottom: 32px;
}

.admin-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-count {
  font-family: monospace;
  font-size: 13px;
  background: #111;
  color: #fff;
  padding: 2px 8px;
}

.admin-empty {
  font-size: 14px;
  color: #777;
  font-style: italic;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-item {
  border: 2px solid #111;
  border-left-width: 6px;
  padding: 10px 12px;
  background: #fff;
}

.admin-item-body {
  font-size: 15px;
  word-break: break-word;
}

.admin-item-body a {
  color: inherit;
}

.admin-item-meta {
  font-family: monospace;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  background: #8a8578;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.08) 0, transparent 50%);
  color: #1a1a17;
}

/* ===== KEYFRAMES ===== */
@keyframes marquee {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

@keyframes shake {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2deg); }
}

@keyframes blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes rainbowtext {
  0%   { color: #1d3557; }
  17%  { color: #b5651d; }
  33%  { color: #6b4226; }
  50%  { color: #4a5859; }
  67%  { color: #a63d40; }
  83%  { color: #2f2f2f; }
  100% { color: #1d3557; }
}

@keyframes confetti-fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner, .shake, .blink, .rainbow, .confetti-piece { animation: none !important; }
  .confetti-wrap { display: none; }
}

/* ===== CONTENEDOR ===== */
.page-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: #ece7d8;
  border-left: 6px solid #1a1a17;
  border-right: 6px solid #1a1a17;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ===== BARRA DE MARCA ===== */
.brand-bar {
  display: flex;
  height: 8px;
}
.brand-bar div { flex: 1; }

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: #111;
  color: #0f0;
  font-family: monospace;
  font-size: 14px;
  padding: 6px 0;
  white-space: nowrap;
  overflow: hidden;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 12s linear infinite;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 32px 20px 0px 20px;
  text-align: center;
  border-bottom: 6px solid #1a1a17;
  background: repeating-linear-gradient(45deg, #ece7d8, #ece7d8 18px, #ddd6c2 18px, #ddd6c2 36px);
  overflow: hidden;
}

/* ===== CONFETTI ===== */
.confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero > *:not(.confetti-wrap):not(.collage-deco) {
  position: relative;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  animation: confetti-fall 5.5s linear infinite;
}

.confetti-piece--1 { background: #c9a13b; }
.confetti-piece--2 { background: #6b7a4f; }
.confetti-piece--3 { background: #a63d40; }
.confetti-piece--4 { background: #1d3557; border-radius: 50%; }
.confetti-piece--5 { background: #3d4a2a; }
.confetti-piece--6 { background: #8a8578; border-radius: 50%; }

.confetti-piece:nth-child(1)  { left: 2%;  animation-delay: 0s;    animation-duration: 5.2s; }
.confetti-piece:nth-child(2)  { left: 8%;  animation-delay: 1.1s;  animation-duration: 6.1s; }
.confetti-piece:nth-child(3)  { left: 14%; animation-delay: 2.4s;  animation-duration: 5.8s; }
.confetti-piece:nth-child(4)  { left: 20%; animation-delay: 0.6s;  animation-duration: 6.4s; }
.confetti-piece:nth-child(5)  { left: 26%; animation-delay: 3.1s;  animation-duration: 5.5s; }
.confetti-piece:nth-child(6)  { left: 32%; animation-delay: 1.8s;  animation-duration: 6.7s; }
.confetti-piece:nth-child(7)  { left: 38%; animation-delay: 0.3s;  animation-duration: 5.9s; }
.confetti-piece:nth-child(8)  { left: 44%; animation-delay: 2.9s;  animation-duration: 6.2s; }
.confetti-piece:nth-child(9)  { left: 50%; animation-delay: 1.4s;  animation-duration: 5.4s; }
.confetti-piece:nth-child(10) { left: 56%; animation-delay: 3.6s;  animation-duration: 6.6s; }
.confetti-piece:nth-child(11) { left: 62%; animation-delay: 0.9s;  animation-duration: 5.7s; }
.confetti-piece:nth-child(12) { left: 68%; animation-delay: 2.2s;  animation-duration: 6.3s; }
.confetti-piece:nth-child(13) { left: 74%; animation-delay: 3.8s;  animation-duration: 5.3s; }
.confetti-piece:nth-child(14) { left: 80%; animation-delay: 1.6s;  animation-duration: 6.8s; }
.confetti-piece:nth-child(15) { left: 86%; animation-delay: 0.2s;  animation-duration: 5.6s; }
.confetti-piece:nth-child(16) { left: 92%; animation-delay: 2.7s;  animation-duration: 6.5s; }
.confetti-piece:nth-child(17) { left: 5%;  animation-delay: 4.1s;  animation-duration: 5.1s; }
.confetti-piece:nth-child(18) { left: 11%; animation-delay: 3.3s;  animation-duration: 6.9s; }
.confetti-piece:nth-child(19) { left: 17%; animation-delay: 1.9s;  animation-duration: 5.0s; }
.confetti-piece:nth-child(20) { left: 23%; animation-delay: 4.4s;  animation-duration: 6.0s; }
.confetti-piece:nth-child(21) { left: 47%; animation-delay: 0.7s;  animation-duration: 6.1s; }
.confetti-piece:nth-child(22) { left: 71%; animation-delay: 3.0s;  animation-duration: 5.9s; }
.confetti-piece:nth-child(23) { left: 89%; animation-delay: 1.3s;  animation-duration: 6.4s; }
.confetti-piece:nth-child(24) { left: 35%; animation-delay: 4.7s;  animation-duration: 5.3s; }

.hero-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 4px;
  display: inline-block;
  animation: shake 2.5s ease-in-out infinite;
}

.hero-title .rainbow {
  animation: rainbowtext 3s linear infinite;
}

.hero-subtitle {
  font-size: 20px;
  font-style: italic;
  margin: 4px 0 16px;
}

.hero-subtitle strong { font-weight: 700; }

.hero-img-wrap {
  position: relative;
  margin: 20px auto 0;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.hero-caption {
  font-family: monospace;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.hero-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.hero-data-item {
  border: 3px solid #111;
  padding: 10px;
  font-size: 18px;
  font-weight: 700;
}

.hero-data-item a {
  color: inherit;
  text-decoration: underline;
}

.hero-data-hint {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #777;
  margin-top: 2px;
}

/* ===== COUNTDOWN ===== */
.countdown {
  margin-top: 20px;
  border: 3px solid #111;
  background: #fff;
  padding: 14px 10px;
}

.countdown-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown-number {
  font-size: 28px;
  font-weight: 700;
  font-family: monospace;
  color: #1d3557;
}

.countdown-unit {
  font-size: 12px;
  text-transform: uppercase;
  color: #555;
}

.hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 0 8px #000, 1px 1px 0 #000, -1px -1px 0 #000;
  animation: blink 1s step-end infinite;
}

/* ===== COLLAGE (plantas + washi tape) ===== */
.collage-deco {
  position: absolute;
  width: 56px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.15));
}

.collage-deco--vine-left {
  top: 10px;
  left: 8px;
  width: 40px;
  transform: rotate(-8deg);
}

.collage-deco--leaf-right {
  top: 18px;
  right: 12px;
  width: 44px;
  transform: rotate(20deg);
}

.collage-deco--twig-right {
  top: 8px;
  right: 6px;
  width: 48px;
  transform: rotate(12deg) scaleX(-1);
}

.collage-deco--pot-left {
  top: 6px;
  left: 4px;
  width: 46px;
  transform: rotate(-6deg);
}

.collage-deco--leaf-left {
  top: 10px;
  left: 10px;
  width: 42px;
  transform: rotate(-15deg);
}

.washi-tape {
  position: absolute;
  width: 90px;
  height: 22px;
  background: repeating-linear-gradient(45deg, #c9a13b, #c9a13b 6px, #b8912f 6px, #b8912f 12px);
  opacity: 0.85;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.washi-tape--top {
  top: -8px;
  left: 24px;
  transform: rotate(-4deg);
}

.washi-tape--right {
  left: auto;
  right: 20px;
  transform: rotate(5deg);
}

/* ===== SECCIONES ===== */
.section {
  position: relative;
  padding: 24px 20px;
  border-bottom: 6px solid #1a1a17;
  overflow: hidden;
}

.section--alt { background: #ddd6c2; }

.section h2 {
  font-size: 26px;
  margin: 0 0 4px;
}

.section-sub {
  font-size: 15px;
  margin-bottom: 14px;
}

.section-gif {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border: 3px solid #111;
  margin: 0 auto 14px;
}

/* ===== PLAYLIST ===== */
.song-form {
  display: flex;
  gap: 8px;
}

.song-input {
  flex: 1;
  border: 3px solid #111;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  border-radius: 0;
  outline: none;
}

.btn-primary {
  border: 3px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  min-height: 44px;
}

.songs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.song-item {
  border: 2px dashed #111;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-play-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.song-play { font-size: 18px; }

.song-url {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  flex: 1;
}

.btn-delete {
  border: 2px solid #111;
  background: #fff;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  min-height: 28px;
}

/* ===== TARJETAS PREGUNTAS ===== */
.card {
  border: 3px solid #111;
  background: #fff;
  padding: 14px;
  margin-bottom: 18px;
}
.card:last-child { margin-bottom: 0; }

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.word-form {
  display: flex;
  gap: 8px;
}

.word-input {
  flex: 1;
  border: 3px solid #111;
  padding: 10px;
  font-size: 15px;
  border-radius: 0;
  outline: none;
  font-family: inherit;
}

.words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.word-chip {
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 2px solid;
}

/* ===== ENCUESTA ===== */
.vote-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vote-btn {
  border: 2px solid #111;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #fff;
  color: #111;
  font-family: inherit;
  border-radius: 0;
  width: 100%;
  text-align: left;
}

.vote-btn--active {
  background: #111;
  color: #fff;
}

.vote-btn-text { flex: 1; text-align: left; }

.vote-count {
  font-family: monospace;
  font-size: 13px;
}

/* ===== MENSAJES ===== */
.msg-notice {
  border: 2px dashed #111;
  padding: 8px;
  font-family: monospace;
  font-size: 12px;
  color: #555;
  margin-bottom: 14px;
}

.msg-textarea {
  width: 100%;
  border: 3px solid #111;
  padding: 10px;
  font-size: 15px;
  resize: vertical;
  font-family: inherit;
  border-radius: 0;
  outline: none;
  display: block;
  margin-bottom: 10px;
}

.btn-full {
  width: 100%;
  border: 3px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px;
  min-height: 48px;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
}

.msg-confirm {
  margin-top: 10px;
  padding: 10px;
  border: 2px dashed #111;
  background: #f4f4f4;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.msg-item {
  border: 3px solid #111;
  background: #fff;
  padding: 12px;
  border-left-width: 8px;
}

.msg-body { font-size: 15px; }

.msg-firma {
  font-family: monospace;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* ===== RSVP ===== */
.rsvp {
  padding: 24px 20px 40px;
  text-align: center;
}

.rsvp h2 { font-size: 26px; margin-bottom: 4px; }

.rsvp-sub { font-size: 15px; margin-bottom: 16px; }
.rsvp-sub strong { font-weight: 700; }

.rsvp-btn {
  display: block;
  border: 3px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 16px;
  min-height: 48px;
  font-family: inherit;
}

.rsvp-note {
  font-family: monospace;
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}

/* ===== FOOTER ===== */
.footer-bar {
  background: #111;
  color: #0f0;
  font-family: monospace;
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
