/* ==========================================================================
   FUEGO VERDE • FOGÓN EN LA CAVERNA (27 AÑOS BRUNO)
   Impeccable Editorial Design System (Inspired by Zimmerl & Impeccable Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Impeccable Color Palette - Fine Dark Luxury */
  --bg-dark: #07090b;
  --bg-cavern: #0c1013;
  --bg-card: rgba(14, 20, 23, 0.85);
  --bg-card-hover: rgba(18, 26, 30, 0.95);
  
  --gold-primary: #c5a059;
  --gold-light: #e5c889;
  --gold-glow: rgba(197, 160, 89, 0.2);
  --gold-dark: #967434;

  --emerald-primary: #15654e;
  --emerald-accent: #2dd4bf;
  --emerald-glow: rgba(45, 212, 191, 0.15);

  --text-main: #f4f2ec;
  --text-muted: #9eada8;
  --text-subtle: #63726e;

  --border-gold: rgba(197, 160, 89, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(3, 9, 9, 0.58), rgba(3, 9, 9, 0.68)),
    url('../assets/background-agate-desktop.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateZ(0);
}

/* Ambient canvas */
#embers-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem 1.25rem;
}

img,
canvas {
  max-width: 100%;
}

/* High-End Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.title-serif-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.text-gold {
  color: var(--gold-primary);
}

.text-emerald {
  color: var(--emerald-accent);
}

.uppercase-tracking {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: center;
}

.calendar-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--border-gold);
}

.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: #07090b;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold-solid {
  background: var(--gold-primary);
  color: #07090b;
  font-weight: 600;
}

.btn-gold-solid:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 25px var(--gold-glow);
}

/* HERO SECTION */
.hero-section {
  padding: 3.5rem 0 2.5rem 0;
  text-align: center;
}

.hero-logo-main {
  max-width: 320px;
  width: 85vw;
  height: auto;
  margin: 0 auto 2rem auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.25));
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 0 0.5rem;
}

.hero-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ELEGANT COUNTDOWN */
.countdown-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  min-width: 0;
}

.timer-box {
  background: rgba(7, 9, 11, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.35rem;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.timer-val {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5.5vw, 3.2rem);
  font-weight: 400;
  color: var(--text-main);
  line-height: 1;
}

.timer-unit {
  font-size: 0.65rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-top: 0.35rem;
  letter-spacing: 0.12em;
}

/* SECTION CARDS & LAYOUT */
.section-wrapper {
  margin-top: 4.5rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.8vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
  padding: 0 0.5rem;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: var(--gold-primary);
  margin: 1.2rem auto 0 auto;
}

/* ELEGANT CARD */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-gold);
}

/* MESSAGE CARD */
.invitation-quote-card {
  position: relative;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(14, 20, 23, 0.9), rgba(9, 13, 15, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  text-align: center;
}

.invitation-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 400;
  max-width: 820px;
  margin: 0 auto 2rem auto;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.highlight-item i {
  color: var(--gold-primary);
  font-size: 1rem;
}

/* LOGISTICS GRID */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.location-map-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.location-map-card iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  border: 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
}

.info-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

.info-desc {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* MENU SECTION */
.menu-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.menu-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.menu-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-img-wrap:hover .menu-img {
  transform: scale(1.04);
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-course {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.menu-course:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.course-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* VENUE FEATURED CAROUSEL */
.venue-carousel-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #06090b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(197, 160, 89, 0.15);
}

.carousel-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-stage:hover .carousel-main-img {
  transform: scale(1.03);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
}

.carousel-badge {
  background: rgba(7, 9, 11, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-caption-wrap {
  pointer-events: auto;
}

.carousel-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

.carousel-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.carousel-zoom-btn {
  pointer-events: auto;
  background: rgba(14, 20, 23, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.carousel-zoom-btn:hover {
  background: var(--gold-primary);
  color: #07090b;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 20, 23, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.carousel-nav-btn:hover {
  background: var(--gold-primary);
  color: #07090b;
  scale: 1.1;
}

.carousel-nav-btn.prev {
  left: 1.25rem;
}

.carousel-nav-btn.next {
  right: 1.25rem;
}

/* THUMBNAILS GRID */
.carousel-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumb-item {
  position: relative;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0.6;
}

.thumb-item:hover {
  opacity: 0.95;
  border-color: rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: rgba(7, 9, 11, 0.85);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  text-align: center;
  font-weight: 600;
}

/* LIGHTBOX MODAL */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 9, 0.94);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

/* EXPERIENCES SECTION */
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.exp-card {
  background: rgba(14, 20, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.exp-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.exp-icon-wrap {
  width: 40px;
  height: 40px;
  color: var(--gold-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.exp-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
}

.exp-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* INTERACTIVE TABS */
.interactive-tabs-container {
  margin-top: 3rem;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--gold-primary);
  color: #07090b;
  border-color: var(--gold-primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* WISH BOARD */
.wishes-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.wishes-board::-webkit-scrollbar {
  width: 4px;
}
.wishes-board::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
}

.wish-card {
  background: rgba(7, 9, 11, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wish-author {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wish-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.wish-time {
  font-size: 0.7rem;
  color: var(--text-subtle);
  align-self: flex-end;
}

.wish-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.wish-input-name {
  flex: 0 0 160px;
}

.wish-input-msg {
  flex: 1;
}

.wish-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px; /* 16px prevents iOS zoom */
  outline: none;
}

.wish-input:focus {
  border-color: var(--gold-primary);
}

/* MANDALA CANVAS */
.mandala-tool-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mandala-canvas-wrap {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  background: #06090a;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
}

#mandalaCanvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.mandala-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.color-swatch.active {
  transform: scale(1.25);
  border-color: #fff;
}

/* RSVP SECTION */
.rsvp-section {
  background: linear-gradient(180deg, rgba(14, 20, 23, 0.95), rgba(9, 13, 15, 0.98));
  border: 1px solid var(--border-gold);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-control {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px; /* 16px prevents iOS zoom */
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--gold-primary);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* MODAL DIALOG */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.25rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-cavern);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 35px var(--gold-glow);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.rsvp-section .btn,
.modal-card .btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  padding: 0.9rem 1rem !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.payment-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.payment-actions .btn {
  display: flex;
  width: 100% !important;
  max-width: 100%;
  min-height: 48px;
  border-radius: var(--radius-sm);
}

.wishes-empty {
  padding: 1.5rem 1rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

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

.payment-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}

.payment-price {
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold-light);
  font-family: var(--font-heading);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 3.5rem 0 1rem 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.footer-logo-png {
  max-width: 140px;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE)
   ========================================================================== */

/* Tablets & Small Laptops (< 900px) */
@media (max-width: 900px) {
  .menu-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .menu-img-wrap {
    min-height: 260px;
    height: 260px;
  }

  .wish-form {
    flex-direction: column;
    width: 100%;
  }

  .wish-input-name,
  .wish-input-msg,
  .wish-form .btn {
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
}

/* Mobile Devices & Small Tablets (< 768px) */
@media (max-width: 768px) {
  body::before {
    background-image:
      linear-gradient(rgba(3, 9, 9, 0.62), rgba(3, 9, 9, 0.7)),
      url('../assets/background-agate-mobile.png');
    background-position: center top;
  }

  .app-container {
    padding: 0 1rem 4rem 1rem;
  }

  .section-wrapper {
    margin-top: 3.5rem;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .hero-btn-wrap {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn-wrap .btn {
    width: 100%;
  }

  .calendar-actions {
    flex-direction: column;
  }

  .calendar-actions .btn {
    width: 100%;
  }

  .carousel-stage {
    height: 340px;
  }

  .carousel-title {
    font-size: 1.5rem;
  }

  .carousel-sub {
    font-size: 0.85rem;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .carousel-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .thumb-item {
    height: 90px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .tabs-header {
    flex-direction: column;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
  .btn {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .modal-card {
    padding: 2.5rem 1rem 1.25rem;
    max-height: calc(100dvh - 1.5rem);
  }

  .payment-price {
    font-size: 2rem;
  }

  .location-map-card {
    width: calc(100% + 2rem);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
    margin-left: -1rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .payment-actions .btn {
    padding: 0.8rem 0.7rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.04em;
  }

  .mandala-controls .btn {
    flex-basis: 100%;
    margin-left: 0 !important;
  }

  .timer-grid {
    gap: 0.4rem;
  }

  .timer-box {
    padding: 0.6rem 0.2rem;
  }

  .timer-val {
    font-size: 1.4rem;
  }

  .timer-unit {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .invitation-quote-card {
    padding: 1.75rem 1rem;
  }

  .glass-card {
    padding: 1.5rem 1rem;
  }

  .carousel-stage {
    height: 290px;
  }

  .carousel-title {
    font-size: 1.3rem;
  }

  .carousel-zoom-btn {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  .thumb-item {
    height: 80px;
  }
}
