/* ============================================================
   MI CUMPLE - DESIGN SYSTEM & STYLESHEET
   Aesthetic: Memphis Revival / Pastel Retro-Modern Chic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Syne:wght@700;800&display=swap');

/* --- THEME DEFINITIONS --- */
:root {
  /* Default: Lilac Dream (Original Poster Theme) */
  --bg-main: #d8c7fa;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-surface: #f3ecff;
  --bg-surface-rgb: 243, 236, 255;
  --border-color: rgba(59, 73, 223, 0.2);
  
  --text-main: #1e1145;
  --text-muted: #5e5287;
  --text-light: #8e83b8;
  
  --primary: #2d1bc2; /* Vibrant royal blue */
  --primary-hover: #1f1199;
  --primary-rgb: 45, 27, 194;
  
  --accent-pink: #ff2a9d; /* Vibrant magenta */
  --accent-blue: #3b49df;
  --accent-gradient: linear-gradient(135deg, #ff2a9d 0%, #3b49df 100%);
  --accent-circle: linear-gradient(135deg, #4459f0 0%, #ea3b9e 100%);
  --badge-pill: #3b49df;
  --badge-pill-bg: rgba(59, 73, 223, 0.08);

  --shadow-sm: 0 4px 12px rgba(45, 27, 194, 0.08);
  --shadow-md: 0 10px 30px rgba(45, 27, 194, 0.12);
  --shadow-lg: 0 20px 45px rgba(45, 27, 194, 0.18);
  --shadow-glow: 0 0 25px rgba(255, 42, 157, 0.4);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 9999px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Syne', sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 🖤 THEME 2: MIDNIGHT NEON */
body.theme-midnight {
  --bg-main: #0c0a1a;
  --bg-card: rgba(22, 18, 43, 0.75);
  --bg-card-solid: #16122b;
  --bg-surface: #201a40;
  --bg-surface-rgb: 32, 26, 64;
  --border-color: rgba(168, 85, 247, 0.25);
  
  --text-main: #f3f0ff;
  --text-muted: #b4a9d6;
  --text-light: #7c70a8;
  
  --primary: #c084fc;
  --primary-hover: #d8b4fe;
  --primary-rgb: 192, 132, 252;
  
  --accent-pink: #f43f5e;
  --accent-blue: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%);
  --accent-circle: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
  --badge-pill: #a855f7;
  --badge-pill-bg: rgba(168, 85, 247, 0.15);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.5);
}

/* 🌅 THEME 3: SUNSET GOLD */
body.theme-sunset {
  --bg-main: #fde8d0;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-solid: #ffffff;
  --bg-surface: #fff3e6;
  --bg-surface-rgb: 255, 243, 230;
  --border-color: rgba(234, 88, 12, 0.25);
  
  --text-main: #431407;
  --text-muted: #7c2d12;
  --text-light: #9a3412;
  
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-rgb: 194, 65, 12;
  
  --accent-pink: #e11d48;
  --accent-blue: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #db2777 100%);
  --accent-circle: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
  --badge-pill: #c2410c;
  --badge-pill-bg: rgba(234, 88, 12, 0.1);

  --shadow-sm: 0 4px 12px rgba(194, 65, 12, 0.08);
  --shadow-md: 0 10px 30px rgba(194, 65, 12, 0.12);
  --shadow-lg: 0 20px 45px rgba(194, 65, 12, 0.18);
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.35);
}

/* 🍬 THEME 4: BUBBLEGUM POP */
body.theme-bubblegum {
  --bg-main: #fcd5e5;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-solid: #ffffff;
  --bg-surface: #fff0f6;
  --bg-surface-rgb: 255, 240, 246;
  --border-color: rgba(219, 39, 119, 0.25);
  
  --text-main: #500724;
  --text-muted: #831843;
  --text-light: #9d174d;
  
  --primary: #be185d;
  --primary-hover: #9d174d;
  --primary-rgb: 190, 24, 93;
  
  --accent-pink: #ec4899;
  --accent-blue: #0284c7;
  --accent-gradient: linear-gradient(135deg, #ec4899 0%, #06b6d4 100%);
  --accent-circle: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --badge-pill: #db2777;
  --badge-pill-bg: rgba(219, 39, 119, 0.1);

  --shadow-sm: 0 4px 12px rgba(190, 24, 93, 0.08);
  --shadow-md: 0 10px 30px rgba(190, 24, 93, 0.12);
  --shadow-lg: 0 20px 45px rgba(190, 24, 93, 0.18);
  --shadow-glow: 0 0 25px rgba(236, 72, 153, 0.4);
}

/* 🌿 THEME 5: EMERALD & GOLD */
body.theme-emerald {
  --bg-main: #dbece6;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-solid: #ffffff;
  --bg-surface: #f0f7f4;
  --bg-surface-rgb: 240, 247, 244;
  --border-color: rgba(5, 150, 105, 0.25);
  
  --text-main: #064e3b;
  --text-muted: #047857;
  --text-light: #059669;
  
  --primary: #047857;
  --primary-hover: #065f46;
  --primary-rgb: 4, 120, 87;
  
  --accent-pink: #d97706;
  --accent-blue: #0d9488;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #d97706 100%);
  --accent-circle: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
  --badge-pill: #047857;
  --badge-pill-bg: rgba(5, 150, 105, 0.1);

  --shadow-sm: 0 4px 12px rgba(4, 120, 87, 0.08);
  --shadow-md: 0 10px 30px rgba(4, 120, 87, 0.12);
  --shadow-lg: 0 20px 45px rgba(4, 120, 87, 0.18);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --- MEMPHIS BACKGROUND PARTICLES & DECORATIONS --- */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Floating 4-pointed stars */
.sparkle-star {
  position: absolute;
  color: var(--accent-blue);
  animation: floatSparkle 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

.sparkle-star.pink {
  color: var(--accent-pink);
}

.sparkle-star-1 {
  top: 15%;
  left: 8%;
  width: 32px;
  height: 32px;
  animation-delay: 0s;
}

.sparkle-star-2 {
  top: 55%;
  right: 10%;
  width: 40px;
  height: 40px;
  animation-delay: 1.5s;
}

.sparkle-star-3 {
  bottom: 12%;
  left: 12%;
  width: 28px;
  height: 28px;
  animation-delay: 3s;
}

/* Floating zigzags / squiggles */
.squiggle {
  position: absolute;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: floatSquiggle 8s ease-in-out infinite alternate;
}

.squiggle-1 {
  top: 36%;
  left: 5%;
  width: 70px;
  animation-delay: 0.5s;
}

.squiggle-2 {
  top: 48%;
  right: 6%;
  width: 80px;
  animation-delay: 2s;
}

/* Striped Circle (Retro Memphis) */
.striped-circle {
  position: absolute;
  bottom: 18%;
  left: -20px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent-pink),
    var(--accent-pink) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.85;
  animation: rotateSlow 24s linear infinite;
}

/* Big Vibrant Side Orbs */
.orb-left {
  position: absolute;
  top: 10%;
  left: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent-pink);
  opacity: 0.8;
  filter: blur(1px);
}

.orb-right {
  position: absolute;
  top: 30%;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-circle);
  opacity: 0.85;
  filter: blur(1px);
}

@keyframes floatSparkle {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-12px) scale(1.15) rotate(15deg); }
  100% { transform: translateY(6px) scale(0.95) rotate(-10deg); }
}

@keyframes floatSquiggle {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -14px) rotate(6deg); }
  100% { transform: translate(-6px, 10px) rotate(-4deg); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- TOP BAR / CONTROLS --- */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(var(--bg-surface-rgb), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
  color: var(--primary);
  text-decoration: none;
}

.brand-badge .cake-icon {
  font-size: 1.25rem;
  animation: bounceMini 2s infinite ease-in-out;
}

@keyframes bounceMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Dropdown / Pill Switcher */
.theme-selector-wrap {
  position: relative;
}

.theme-btn-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-solid);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.theme-btn-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  z-index: 101;
}

.theme-dropdown.open {
  display: flex;
  animation: fadeInDown 0.2s ease-out forwards;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.theme-option:hover {
  background: var(--bg-surface);
  color: var(--primary);
}

.theme-option.active {
  background: var(--badge-pill-bg);
  color: var(--primary);
  font-weight: 700;
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Music & Sound buttons */
.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-solid);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.icon-action-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.icon-action-btn.playing {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* Admin / Host link button */
.admin-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.admin-mode-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* --- MAIN CONTAINER & POSTER HERO --- */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 28px auto 80px auto;
  padding: 0 16px;
}

/* THE INVITATION CARD (Elevated Poster Look) */
.invitation-poster {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Glowing top highlight */
.invitation-poster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 999px;
}

/* Pill badge "Estás invitado a" */
.invite-pill {
  display: inline-block;
  padding: 8px 32px;
  border: 2px solid var(--badge-pill);
  border-radius: var(--radius-pill);
  color: var(--badge-pill);
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--badge-pill-bg);
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

/* Title "Mi cumple" */
.poster-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 4.8rem);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

/* Date subtitle "SÁBADO 17 10 26" */
.poster-date {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
}

.poster-date-sub {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--text-main);
  margin-bottom: 24px;
}

/* Date Orb Badge Floating (from the original graphic) */
.date-badge-orb {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent-circle);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 42, 157, 0.35);
  margin: 12px auto 28px auto;
  line-height: 1.1;
  font-family: var(--font-display);
  animation: floatOrb 4s ease-in-out infinite alternate;
}

.date-badge-orb .day {
  font-size: 1.6rem;
  font-weight: 800;
}

.date-badge-orb .month {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.95;
}

.date-badge-orb .year {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.85;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.04); }
}

/* COUNTDOWN TIMER COMPONENT */
.countdown-box {
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 0 auto 32px auto;
  max-width: 480px;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-item {
  background: var(--bg-card-solid);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  box-shadow: var(--shadow-sm);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.countdown-unit {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Notice & Activity Intro */
.activities-intro {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ACTIVITIES SECTION (Bowling & Cena Cards) */
.section-tag-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-tag-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-pink);
  margin: 6px auto 0 auto;
  border-radius: 99px;
}

.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
  text-align: left;
}

@media (max-width: 600px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.activity-card {
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.activity-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.activity-icon {
  font-size: 2rem;
}

.activity-time-badge {
  background: var(--badge-pill-bg);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.activity-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.activity-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.activity-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.activity-actions {
  display: flex;
  gap: 8px;
}

.map-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  width: 100%;
  justify-content: center;
}

.map-link-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Notice Deadline Box */
.deadline-box {
  background: rgba(255, 42, 157, 0.08);
  border: 1.5px dashed var(--accent-pink);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 auto 36px auto;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
}

.deadline-box strong {
  color: var(--accent-pink);
}

/* DIVIDER LINE */
.pink-neon-divider {
  width: 100%;
  height: 2.5px;
  background: var(--accent-pink);
  border: none;
  margin: 28px 0;
  opacity: 0.8;
  border-radius: 99px;
}

/* POSTER FOOTER HUMOR */
.poster-footer-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 10px;
}

/* --- RSVP SECTION (INTERACTIVE FORM) --- */
.rsvp-section-card {
  margin-top: 36px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 28px;
}

.rsvp-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.rsvp-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FORM CONTROLS */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--accent-pink);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-solid);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* --- RSVP INLINE FLOW SYSTEM (SIDE-BY-SIDE RESPONSIVE) --- */
.rsvp-flow-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.rsvp-flow-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .rsvp-flow-row {
    grid-template-columns: 1fr;
  }
}

.flow-card-col {
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.flow-card-col:hover {
  border-color: var(--primary);
}

.flow-card-col .flow-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* PRIVACY AUTOCOMPLETE INPUT */
.name-input-wrapper {
  position: relative;
  width: 100%;
}

.name-suggestions-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card-solid);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.name-suggestion-item {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.name-suggestion-item:last-child {
  border-bottom: none;
}

.name-suggestion-item:hover {
  background: var(--bg-surface);
  color: var(--primary);
}

.name-privacy-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.personalized-greeting-card {
  display: none;
  background: var(--badge-pill-bg);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* ATTENDANCE BUTTONS (VOY / ESTOY EN DUDA / NO VOY) */
.inline-chips-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-chip-btn {
  flex: 1;
  min-width: 90px;
  position: relative;
  cursor: pointer;
}

.inline-chip-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s;
}

.inline-chip-btn input:checked + .chip-inner {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.inline-chip-btn.chip-yes input:checked + .chip-inner {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #047857;
}

.inline-chip-btn.chip-maybe input:checked + .chip-inner {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #b45309;
}

.inline-chip-btn.chip-no input:checked + .chip-inner {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #b91c1c;
}

/* COMPANION INLINE SELECTOR (1 A 3 NADA MAS) */
.companion-flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .companion-flow-row {
    grid-template-columns: 1fr;
  }
}

.selector-1to3-row {
  display: flex;
  gap: 8px;
}

.btn-num-1to3 {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-num-1to3:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-num-1to3.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

/* ACTIVITIES CHECKBOXES */
.activity-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-pill-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-pill-option:hover {
  border-color: var(--primary);
}

.checkbox-pill-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-info {
  display: flex;
  flex-direction: column;
}

.checkbox-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checkbox-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SUBMIT BUTTON */
.btn-submit-rsvp {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 42, 157, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.btn-submit-rsvp:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(255, 42, 157, 0.55);
}

.btn-submit-rsvp:active {
  transform: translateY(0);
}

/* RSVP SUCCESS STATE */
.rsvp-success-card {
  display: none;
  text-align: center;
  padding: 24px 10px;
}

.rsvp-success-card.active {
  display: block;
  animation: fadeInUp 0.4s ease-out forwards;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--badge-pill-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow-md);
}

.success-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.success-summary {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: left;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-confirm:hover {
  background: #1ebc59;
  transform: translateY(-2px);
}

.btn-edit-rsvp {
  padding: 10px 16px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-edit-rsvp:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* CALENDAR & SHARE ROW */
.quick-tools-card {
  margin-top: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-tools-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.quick-tools-btns {
  display: flex;
  gap: 10px;
}

.tool-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.tool-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* PIN AUTH MODAL (ADMIN ACCESS) */
.pin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.pin-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.pin-modal-card {
  background: var(--bg-card-solid);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.pin-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.pin-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pin-input-field {
  width: 100%;
  font-size: 1.8rem;
  letter-spacing: 12px;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
  outline: none;
}

.pin-input-field:focus {
  border-color: var(--primary);
}

.btn-pin-submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.pin-error-msg {
  color: var(--accent-pink);
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

/* KEYFRAMES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE PADDINGS */
@media (max-width: 480px) {
  .invitation-poster {
    padding: 32px 18px 24px 18px;
  }
  .rsvp-section-card {
    padding: 26px 18px;
  }
  .poster-date {
    letter-spacing: 3px;
    font-size: 1.1rem;
  }
  .poster-date-sub {
    letter-spacing: 5px;
    font-size: 1.3rem;
  }
}
