/* ============================================================
   Wedding Invitations Digital — Public CSS
   ============================================================ */

/* ── CSS Variables (overridden inline per invitation) ──── */
:root {
  --wi-primary:        #c9a96e;
  --wi-secondary:      #f5f0e8;
  --wi-text:           #3d2b1f;
  --wi-font-heading:   "Cormorant Garamond", serif;
  --wi-font-body:      "Lato", sans-serif;
  --wi-white:          #ffffff;
  --wi-overlay:        rgba(0,0,0,0.38);
  --wi-radius:         4px;
  --wi-shadow:         0 8px 32px rgba(0,0,0,0.12);
  --wi-transition:     0.4s cubic-bezier(.25,.8,.25,1);
  --wi-hero-top-crop:  34px;
}

/* ── Reset ───────────────────────────────────────────── */
.wi-body {
  margin: 0;
  padding: 0;
  position: relative;
  background-color: var(--wi-secondary);
  color: var(--wi-text);
  font-family: var(--wi-font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Decorative PNG overlay: designed to be transparent in the center and visible on sides */
.wi-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    var(--wi-deco-url, none),
    radial-gradient(circle at 3% 12%, var(--wi-primary) 0 8px, transparent 9px),
    radial-gradient(circle at 97% 18%, var(--wi-primary) 0 8px, transparent 9px),
    radial-gradient(circle at 4% 48%, var(--wi-primary) 0 6px, transparent 7px),
    radial-gradient(circle at 96% 55%, var(--wi-primary) 0 6px, transparent 7px),
    radial-gradient(circle at 5% 82%, var(--wi-primary) 0 10px, transparent 11px),
    radial-gradient(circle at 95% 88%, var(--wi-primary) 0 10px, transparent 11px);
  background-size:
    100% auto,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-repeat:
    repeat-y,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;
  background-position: center top;
  opacity: 0.08;
}

.wi-invitation {
  position: relative;
  z-index: 1;
}

.wi-invitation * {
  box-sizing: border-box;
}

.wi-invitation img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Container ───────────────────────────────────────── */
.wi-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ────────────────────────────────────────── */
.wi-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

/* Keep section content above decorative overlays */
.wi-section > .wi-container {
  position: relative;
  z-index: 1;
}

/* Decorative side artwork inside blocks (uses theme Deco PNG) */
.wi-story::before, .wi-story::after,
.wi-events::before, .wi-events::after,
.wi-schedule::before, .wi-schedule::after,
.wi-gallery::before, .wi-gallery::after,
.wi-contact::before, .wi-contact::after,
.wi-gifts::before, .wi-gifts::after,
.wi-optional-block::before, .wi-optional-block::after,
.wi-faq::before, .wi-faq::after,
.wi-rsvp-section::before, .wi-rsvp-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(120px, 13vw, 240px);
  z-index: 0;
  pointer-events: none;
  background-image:
    var(--wi-deco-url, none),
    radial-gradient(circle at 22% 12%, var(--wi-primary) 0 10px, transparent 11px),
    radial-gradient(circle at 42% 18%, var(--wi-primary) 0 6px, transparent 7px),
    radial-gradient(circle at 18% 38%, var(--wi-primary) 0 8px, transparent 9px),
    radial-gradient(circle at 38% 46%, var(--wi-primary) 0 5px, transparent 6px),
    radial-gradient(circle at 20% 66%, var(--wi-primary) 0 9px, transparent 10px),
    radial-gradient(circle at 40% 74%, var(--wi-primary) 0 6px, transparent 7px),
    radial-gradient(circle at 18% 90%, var(--wi-primary) 0 8px, transparent 9px),
    linear-gradient(var(--wi-primary), var(--wi-primary));
  background-repeat:
    repeat-y,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;
  background-size:
    contain,
    52px 52px,
    32px 32px,
    42px 42px,
    26px 26px,
    48px 48px,
    30px 30px,
    42px 42px,
    1px 72%;
  opacity: 0.22;
}

.wi-story::before,
.wi-events::before,
.wi-schedule::before,
.wi-gallery::before,
.wi-contact::before,
.wi-gifts::before,
.wi-optional-block::before,
.wi-faq::before,
.wi-rsvp-section::before {
  left: 0;
  background-position:
    left top,
    left 14px top 10%,
    left 30px top 16%,
    left 12px top 34%,
    left 26px top 42%,
    left 14px top 62%,
    left 28px top 71%,
    left 12px top 87%,
    left 22px center;
}

.wi-story::after,
.wi-events::after,
.wi-schedule::after,
.wi-gallery::after,
.wi-contact::after,
.wi-gifts::after,
.wi-optional-block::after,
.wi-faq::after,
.wi-rsvp-section::after {
  right: 0;
  background-position:
    right top,
    right 14px top 10%,
    right 30px top 16%,
    right 12px top 34%,
    right 26px top 42%,
    right 14px top 62%,
    right 28px top 71%,
    right 12px top 87%,
    right 22px center;
  transform: scaleX(-1);
  transform-origin: center;
}

/* Stronger decoration on large neutral sections */
.wi-schedule::before, .wi-schedule::after,
.wi-contact::before, .wi-contact::after,
.wi-rsvp-section::before, .wi-rsvp-section::after {
  opacity: 0.28;
}

.wi-section-title,
.wi-countdown-title {
  font-family: var(--wi-font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wi-text);
  margin: 0 0 12px;
  line-height: 1.2;
}

.wi-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  isolation: isolate;
}

.wi-section-divider span:not(.wi-divider-heart) {
  flex: 1;
  height: 1px;
  background: var(--wi-primary);
  opacity: 0.5;
}

.wi-divider-heart {
  color: var(--wi-primary);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: transparent !important;
}

.wi-text-center {
  text-align: center;
}

.wi-text-center + .wi-section-divider {
  justify-content: center;
}

.wi-text-center + .wi-section-divider span:not(.wi-divider-heart) {
  max-width: 80px;
}

/* ── Buttons ─────────────────────────────────────────── */
.wi-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--wi-radius);
  font-family: var(--wi-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--wi-transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.wi-btn-primary {
  background: var(--wi-primary);
  color: var(--wi-white);
  border-color: var(--wi-primary);
}

.wi-btn-primary:hover {
  background: transparent;
  color: var(--wi-primary);
}

.wi-btn-outline {
  background: transparent;
  color: var(--wi-primary);
  border-color: var(--wi-primary);
  margin-top: 16px;
}

.wi-btn-outline:hover {
  background: var(--wi-primary);
  color: var(--wi-white);
}

/* ── Animations ──────────────────────────────────────── */
@keyframes wi-fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wi-fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes wi-fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes wi-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

@keyframes wi-bars {
  0%, 100% { transform: scaleY(.4); }
  50%       { transform: scaleY(1); }
}

.wi-animate-up {
  opacity: 0;
  animation: wi-fadeUp 0.9s ease forwards;
}

.wi-animate-left {
  opacity: 0;
  animation: wi-fadeLeft 0.9s ease forwards;
}

.wi-animate-right {
  opacity: 0;
  animation: wi-fadeRight 0.9s ease forwards;
}

/* Intersection Observer will add .wi-visible to trigger animation */
.wi-animate-up,
.wi-animate-left,
.wi-animate-right {
  animation-play-state: paused;
}

.wi-visible.wi-animate-up,
.wi-visible.wi-animate-left,
.wi-visible.wi-animate-right {
  animation-play-state: running;
}

/* ── HERO ────────────────────────────────────────────── */

/* El hero siempre está en pantalla — animar sin esperar JS */
.wi-hero .wi-animate-up {
  animation-play-state: running;
}

.wi-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background: #f7f4ee;
}

.wi-hero.wi-hero-has-image {
  background: #2a1a10;
}

.wi-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Crop a small top strip to hide accidental browser/url bars in uploaded hero captures */
.wi-hero.wi-hero-has-image .wi-hero-bg {
  top: calc(-1 * var(--wi-hero-top-crop));
  bottom: 0;
  height: calc(100% + var(--wi-hero-top-crop));
  background-position: center top;
}

.wi-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
}

/* Hero with image: improve contrast for secondary texts ("Guarda la fecha", "Nos casamos") */
.wi-hero-has-image .wi-save-date,
.wi-hero-has-image .wi-tagline,
.wi-hero-has-image .wi-wedding-date-display {
  color: var(--wi-text) !important;
  text-shadow: 0 1px 2px rgba(255,255,255,0.28);
}

/* Hero without image: neutral theme background + readable dark text */
.wi-hero-plain .wi-couple-names {
  color: var(--wi-text);
}

.wi-hero-plain {
  background: var(--wi-secondary) !important;
}

.wi-hero-plain .wi-wedding-date-display {
  color: rgba(0, 0, 0, 0.65);
}

.wi-hero-plain .wi-scroll-down {
  border-color: rgba(0, 0, 0, 0.25);
}

.wi-hero-plain .wi-scroll-arrow {
  border-right-color: var(--wi-text);
  border-bottom-color: var(--wi-text);
}

.wi-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  animation-delay: 0.2s;
}

.wi-save-date {
  font-family: var(--wi-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wi-primary);
  margin: 0 0 16px;
}

.wi-couple-names {
  font-family: var(--wi-font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  color: var(--wi-white);
  margin: 0 0 16px;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.wi-ampersand {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--wi-primary);
  line-height: 1;
  display: block;
  margin: 4px 0;
}

.wi-wedding-date-display {
  font-family: var(--wi-font-body);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 12px;
}

.wi-tagline {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--wi-primary);
  margin: 0 0 48px;
}

/* Scroll arrow */
.wi-scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: wi-pulse 2s ease-in-out infinite;
}

.wi-scroll-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--wi-white);
  border-bottom: 2px solid var(--wi-white);
  transform: rotate(45deg) translateY(-3px);
}

/* ── COUNTDOWN ───────────────────────────────────────── */
.wi-countdown-section {
  background: var(--wi-primary);
  padding: 56px 0;
}

.wi-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.wi-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding: 0 16px;
}

.wi-countdown-number {
  font-family: var(--wi-font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--wi-white);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.wi-countdown-label {
  font-family: var(--wi-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

.wi-countdown-sep {
  font-family: var(--wi-font-heading);
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
  align-self: flex-start;
  margin-top: 4px;
}

/* ── STORY ───────────────────────────────────────────── */
.wi-story {
  background: var(--wi-white);
}

.wi-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.wi-story-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--wi-shadow);
}

.wi-story-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--wi-text);
  opacity: 0.85;
}

/* Editable body copy — granular sizes for readability */
.wi-gifts-text,
.wi-optional-content,
.wi-faq-answer {
  font-size: 1.05rem;
}

.wi-rsvp-deadline {
  font-size: 1.02rem;
}

/* ── EVENTS ──────────────────────────────────────────── */
.wi-events {
  background: var(--wi-secondary);
}

.wi-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.wi-event-card {
  background: var(--wi-white);
  border-radius: var(--wi-radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--wi-shadow);
}

.wi-event-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--wi-primary);
  display: flex;
  justify-content: center;
}
.wi-event-icon svg {
  width: 52px;
  height: 52px;
  display: block;
}

.wi-event-title {
  font-family: var(--wi-font-heading);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 0 0 8px;
}

.wi-event-venue {
  font-family: var(--wi-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.wi-event-address {
  font-size: 1.08rem;
  opacity: 0.75;
  margin: 0 0 8px;
}

.wi-event-time {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wi-primary);
  text-transform: uppercase;
  margin: 0;
}

/* ── GALLERY ─────────────────────────────────────────── */
.wi-gallery {
  background: var(--wi-white);
}

.wi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.wi-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: var(--wi-radius);
}

.wi-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wi-transition);
}

.wi-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--wi-transition);
}

.wi-gallery-item:hover img {
  transform: scale(1.06);
}

.wi-gallery-item:hover .wi-gallery-overlay {
  background: rgba(0,0,0,0.2);
}

/* ── RSVP ────────────────────────────────────────────── */
.wi-rsvp-section {
  background: var(--wi-secondary);
}

.wi-rsvp-inner {
  max-width: 680px;
}

.wi-rsvp-deadline {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

.wi-rsvp-form {
  background: var(--wi-white);
  border-radius: var(--wi-radius);
  padding: 40px;
  box-shadow: var(--wi-shadow);
}

.wi-form-row {
  margin-bottom: 20px;
}

.wi-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wi-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wi-form-group > label {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--wi-text);
  opacity: 0.7;
}

.wi-form-group input[type="text"],
.wi-form-group input[type="email"],
.wi-form-group input[type="number"],
.wi-form-group select,
.wi-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--wi-radius);
  font-family: var(--wi-font-body);
  font-size: 1.05rem;
  color: var(--wi-text);
  background: var(--wi-white);
  transition: border-color var(--wi-transition);
  outline: none;
}

.wi-form-group input:focus,
.wi-form-group select:focus,
.wi-form-group textarea:focus {
  border-color: var(--wi-primary);
}

.wi-radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wi-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400 !important;
}

.wi-radio input[type="radio"] {
  accent-color: var(--wi-primary);
  width: 16px;
  height: 16px;
}

.wi-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 24px;
  margin-top: 6px;
}

.wi-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400 !important;
}

.wi-checkbox input[type="checkbox"] {
  accent-color: var(--wi-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wi-dietary-other {
  margin-top: 12px;
}

.wi-form-submit {
  text-align: center;
  margin-top: 24px;
}

.wi-form-submit .wi-btn {
  padding: 14px 48px;
  font-size: 0.9rem;
}

.wi-rsvp-message {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: var(--wi-radius);
  font-size: 0.95rem;
  text-align: center;
}

.wi-rsvp-message.wi-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wi-rsvp-message.wi-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ── MUSIC PLAYER ────────────────────────────────────── */
.wi-music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 18px 10px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.wi-music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wi-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wi-white);
  font-size: 1rem;
  transition: transform 0.2s;
  padding: 0;
}

.wi-music-btn:hover {
  transform: scale(1.1);
}

.wi-music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.wi-music-bars span {
  display: block;
  width: 3px;
  background: var(--wi-primary);
  border-radius: 2px;
  height: 6px;
  opacity: 0.4;
  transition: height 0.2s;
}

.wi-music-bars.wi-playing span {
  opacity: 1;
}

.wi-music-bars.wi-playing span:nth-child(1) { animation: wi-bars 0.8s 0.0s ease-in-out infinite; }
.wi-music-bars.wi-playing span:nth-child(2) { animation: wi-bars 0.8s 0.1s ease-in-out infinite; }
.wi-music-bars.wi-playing span:nth-child(3) { animation: wi-bars 0.8s 0.2s ease-in-out infinite; }
.wi-music-bars.wi-playing span:nth-child(4) { animation: wi-bars 0.8s 0.3s ease-in-out infinite; }
.wi-music-bars.wi-playing span:nth-child(5) { animation: wi-bars 0.8s 0.4s ease-in-out infinite; }

/* ── COUNTDOWN TITLE (same size as section titles) ───── */
.wi-countdown-title {
  color: var(--wi-white);
  margin: 0 0 32px;
  text-align: center;
}

/* ── EVENTS SECTION HEADER ───────────────────────────── */
.wi-events .wi-section-title {
  margin-bottom: 8px;
}

/* ── EVENT CARD IMAGE ────────────────────────────────── */
.wi-event-card-image {
  margin: -48px -36px 24px;
  overflow: hidden;
  border-radius: var(--wi-radius) var(--wi-radius) 0 0;
}

.wi-event-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ── EVENTS TIMELINE IMAGE ───────────────────────────── */
.wi-events-timeline {
  margin-top: 40px;
  text-align: center;
}

.wi-events-timeline img {
  max-width: 100%;
  border-radius: var(--wi-radius);
  box-shadow: var(--wi-shadow);
}

/* ── GIFTS ───────────────────────────────────────────── */
.wi-gifts {
  background: var(--wi-secondary);
}

.wi-gifts-text {
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.8;
  color: var(--wi-text);
  opacity: 0.85;
}

.wi-bank-account {
  margin-top: 28px;
  display: inline-block;
  background: var(--wi-white);
  border-radius: var(--wi-radius);
  box-shadow: var(--wi-shadow);
  overflow: hidden;
  min-width: 320px;
  text-align: left;
}

.wi-bank-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--wi-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wi-text);
  transition: color var(--wi-transition);
}

.wi-bank-toggle:hover {
  color: var(--wi-primary);
}

.wi-bank-arrow {
  font-size: 1.1rem;
  transition: transform var(--wi-transition);
  display: inline-block;
  flex-shrink: 0;
}

.wi-bank-account.wi-bank-open .wi-bank-arrow {
  transform: rotate(180deg);
}

.wi-bank-details {
  display: none;
  padding: 4px 24px 18px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.wi-bank-account.wi-bank-open .wi-bank-details {
  display: block;
}

.wi-bank-details code {
  font-size: 1.05rem;
  font-family: monospace;
  letter-spacing: 0.05em;
  color: var(--wi-text);
}

/* ── HOTEL CARDS ─────────────────────────────────────── */
.wi-hotel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
  text-align: left;
}

.wi-hotel-card {
  background: var(--wi-white);
  border-radius: var(--wi-radius);
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wi-hotel-name {
  font-family: var(--wi-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--wi-text);
}

.wi-hotel-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0;
}

.wi-hotel-card .wi-btn {
  align-self: center;
  margin-top: auto;
}

/* ── OPTIONAL BLOCKS ─────────────────────────────────── */
.wi-optional-block {
  background: var(--wi-white);
}

.wi-optional-block:nth-child(even) {
  background: var(--wi-secondary);
}

.wi-optional-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  text-align: center;
  color: var(--wi-primary);
  display: flex;
  justify-content: center;
}
.wi-optional-icon svg {
  width: 52px;
  height: 52px;
  display: block;
}

.wi-optional-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
  color: var(--wi-text);
  opacity: 0.85;
}

/* ── FAQ ─────────────────────────────────────────────── */
.wi-faq {
  background: var(--wi-secondary);
}

.wi-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.wi-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.wi-faq-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.wi-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--wi-font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--wi-text);
  text-align: left;
  transition: color var(--wi-transition);
}

.wi-faq-question:hover {
  color: var(--wi-primary);
}

.wi-faq-arrow {
  font-size: 1.4rem;
  color: var(--wi-primary);
  transition: transform var(--wi-transition);
  flex-shrink: 0;
}

.wi-faq-item.wi-open .wi-faq-arrow {
  transform: rotate(90deg);
}

.wi-faq-answer {
  display: none;
  padding: 0 0 20px;
  line-height: 1.85;
  color: var(--wi-text);
  opacity: 0.8;
}

.wi-faq-item.wi-open .wi-faq-answer {
  display: block;
}

/* ── FOOTER ──────────────────────────────────────────── */
.wi-footer {
  background: var(--wi-text);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 56px 24px;
}

.wi-footer-names {
  font-family: var(--wi-font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--wi-white);
  margin: 0 0 8px;
}

.wi-footer-date {
  font-family: var(--wi-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.wi-footer-heart {
  color: var(--wi-primary);
  font-size: 1.4rem;
}

/* ── LIGHTBOX ────────────────────────────────────────── */
.wi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  animation: wi-fadeUp 0.2s ease;
}

.wi-lightbox.wi-open {
  display: flex;
}

.wi-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
}

.wi-lightbox-close,
.wi-lightbox-prev,
.wi-lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--wi-white);
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 8px 16px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.wi-lightbox-close:hover,
.wi-lightbox-prev:hover,
.wi-lightbox-next:hover { opacity: 1; }

.wi-lightbox-close { top: 16px;  right: 16px; font-size: 2rem; }
.wi-lightbox-prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.wi-lightbox-next  { right: 12px; top: 50%; transform: translateY(-50%); }

/* ── SCHEDULE / Programa del día ────────────────────── */

.wi-schedule-subtitle {
  color: var(--wi-text);
  opacity: 0.7;
  font-size: 0.95rem;
  margin: -8px 0 8px;
}

.wi-schedule-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

/* Hide default scrollbar on webkit for cleaner look */
.wi-schedule-wrap::-webkit-scrollbar { height: 4px; }
.wi-schedule-wrap::-webkit-scrollbar-thumb { background: var(--wi-primary); opacity: 0.4; border-radius: 2px; }

.wi-schedule-timeline {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  position: relative;
  padding: 0 24px;
}

/* Horizontal line through all circles */
/* top = time-badge(30px) + gap(16px) + connector(20px) + half-circle(30px) = 96px */
.wi-schedule-timeline::before {
  content: '';
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--wi-primary);
  opacity: 0.3;
  z-index: 0;
}

.wi-schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
  padding: 0 8px;
  text-align: center;
}

.wi-sched-time-badge {
  background: var(--wi-primary);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  height: 30px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-bottom: 16px;
}

.wi-sched-connector {
  width: 1px;
  height: 20px;
  background: var(--wi-primary);
  opacity: 0.35;
  flex-shrink: 0;
}

.wi-sched-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--wi-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wi-white, #fff);
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.wi-sched-circle svg {
  width: 28px;
  height: 28px;
  color: var(--wi-primary);
}

.wi-sched-circle img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.wi-sched-info {
  padding: 0 4px;
}

.wi-sched-name {
  font-family: var(--wi-font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wi-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.wi-sched-desc {
  font-family: var(--wi-font-body);
  font-size: 1rem;
  color: var(--wi-text);
  opacity: 0.65;
  line-height: 1.45;
  margin: 0;
  max-width: 110px;
}

/* Primavera: timeline badges and lines in peach tone */
.wi-theme-primavera .wi-sched-time-badge {
  background: #f8ac57;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 16px;
  height: 34px;
  letter-spacing: 0.02em;
}

.wi-theme-primavera .wi-schedule-timeline::before,
.wi-theme-primavera .wi-sched-connector,
.wi-theme-primavera .wi-sched-circle {
  border-color: #f8ac57;
}

.wi-theme-primavera .wi-schedule-timeline::before,
.wi-theme-primavera .wi-sched-connector {
  background: #f8ac57;
}

/* Mobile: vertical list */
@media (max-width: 600px) {
  .wi-schedule-wrap { overflow-x: visible; }

  .wi-schedule-timeline {
    flex-direction: column;
    min-width: unset;
    align-items: center;
    padding: 0;
  }

  /* Hide vertical line when centered */
  .wi-schedule-timeline::before { display: none; }

  .wi-schedule-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: unset;
    width: 100%;
    max-width: 380px;
    padding: 0 0 20px;
    text-align: left;
  }

  .wi-sched-time-badge { display: none; }
  .wi-sched-connector  { display: none; }

  .wi-sched-circle {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .wi-sched-info { padding-top: 6px; }

  /* Show time inline above name on mobile */
  .wi-sched-name::before {
    content: attr(data-time);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--wi-primary);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
    opacity: 0.9;
  }

  .wi-sched-desc { max-width: none; }
}

/* ── THEMES ──────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════
   BOTÁNICO — Verde & Natural (slug: botanico)
   ════════════════════════════════════════════════════════ */
.wi-theme-botanico {
  --wi-primary:      #4E6146;
  --wi-secondary:    #F1F1EA;
  --wi-text:         #1a1a18;
  --wi-font-heading: "Young Serif", Georgia, serif;
  --wi-font-body:    "Antic Didone", Georgia, serif;
  --wi-radius: 8px;
  --wi-shadow: 0 4px 24px rgba(78,97,70,0.12);
}

.wi-theme-botanico .wi-couple-names {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════
   ARMONÍA — Dorado & Arena (slug: armonia)
   ════════════════════════════════════════════════════════ */
.wi-theme-armonia {
  --wi-primary:      #9A6724;
  --wi-secondary:    #F6EDDF;
  --wi-text:         #2a1f0e;
  --wi-font-heading: "League Spartan", sans-serif;
  --wi-font-body:    Futura, "Century Gothic", sans-serif;
  --wi-radius: 4px;
  --wi-shadow: 0 4px 24px rgba(154,103,36,0.12);
}

.wi-theme-armonia .wi-couple-names {
  font-family: "Sweet Candy", cursive;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════
   ESENCIA — Azul & Suave (slug: esencia)
   ════════════════════════════════════════════════════════ */
.wi-theme-esencia {
  --wi-primary:      #54769C;
  --wi-secondary:    #D9E6EE;
  --wi-text:         #1a2535;
  --wi-font-heading: "Italiana", serif;
  --wi-font-body:    "Poiret One", sans-serif;
  --wi-radius: 10px;
  --wi-shadow: 0 4px 24px rgba(84,118,156,0.12);
}

.wi-theme-esencia .wi-couple-names {
  font-family: "Italiana", serif;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════
   IMPERIAL — Azul Marino & Elegante (slug: imperial)
   ════════════════════════════════════════════════════════ */
.wi-theme-imperial {
  --wi-primary:      #3B5E7D;
  --wi-secondary:    #D8E1E6;
  --wi-text:         #0E224C;
  --wi-font-heading: "Times New Roman", Times, serif;
  --wi-font-body:    "Times New Roman", Times, serif;
  --wi-radius: 0px;
  --wi-shadow: 0 4px 24px rgba(59,94,125,0.14);
}

.wi-theme-imperial .wi-couple-names {
  font-family: "MonteCarlo", cursive;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════
   PRIMAVERA — Melocotón & Tierra (slug: primavera)
   ════════════════════════════════════════════════════════ */
.wi-theme-primavera {
  --wi-primary:      #9A7740;
  --wi-secondary:    #FEF2DD;
  --wi-text:         #2a1a0a;
  --wi-font-heading: "Playfair Display", Georgia, serif;
  --wi-font-body:    "Cormorant", Georgia, serif;
  --wi-radius: 8px;
  --wi-shadow: 0 4px 24px rgba(154,119,64,0.12);
}

.wi-theme-primavera .wi-couple-names {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
}

/* ── SEPARATOR (per-theme SVG rendered as <img> in template) ────── */
/* mix-blend-mode: multiply makes the SVG's white background transparent */
.wi-sep-img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: multiply;
}

/* Once JS removes white pixels, stop blending so colors stay exact */
.wi-sep-img.wi-sep-img-clean {
  mix-blend-mode: normal;
}

/* Botánico separator sometimes ships with white baked in; keep blend fallback always on */
.wi-theme-botanico .wi-sep-img,
.wi-theme-botanico .wi-sep-img.wi-sep-img-clean {
  mix-blend-mode: multiply;
}

/* ── RSVP LABELS: sentence case ──────────────────────── */
.wi-radio span,
.wi-checkbox span {
  text-transform: none;
  font-weight: 400 !important;
}

/* Primavera: botones más melocotón */
.wi-theme-primavera .wi-btn-primary {
  background: #f8ac57;
  border-color: #f8ac57;
  color: #fff;
}

.wi-theme-primavera .wi-btn-primary:hover {
  background: transparent;
  color: #f8ac57;
}

.wi-theme-primavera .wi-btn-outline {
  color: #f8ac57;
  border-color: #f8ac57;
}

.wi-theme-primavera .wi-btn-outline:hover {
  background: #f8ac57;
  border-color: #f8ac57;
  color: #fff;
}

.wi-theme-primavera .wi-contact-phone {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --wi-hero-top-crop: 14px; }

  .wi-section { padding: 48px 0; }

  .wi-container { padding: 0 18px; }

  .wi-story::before, .wi-story::after,
  .wi-events::before, .wi-events::after,
  .wi-schedule::before, .wi-schedule::after,
  .wi-gallery::before, .wi-gallery::after,
  .wi-contact::before, .wi-contact::after,
  .wi-gifts::before, .wi-gifts::after,
  .wi-optional-block::before, .wi-optional-block::after,
  .wi-faq::before, .wi-faq::after,
  .wi-rsvp-section::before, .wi-rsvp-section::after {
    width: clamp(72px, 15vw, 130px);
    background-size: contain;
    opacity: 0.2;
  }

  /* Section/block icons — tamaño fijo en tablet/móvil */
  .wi-optional-icon img,
  .wi-event-icon img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex-shrink: 0;
  }

  /* Hero */
  .wi-hero { min-height: 85vh; }

  .wi-couple-names {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    letter-spacing: 0.02em;
  }

  .wi-hero-tagline { font-size: 0.95rem; }

  .wi-hero-date { font-size: 1rem; }

  .wi-hero-btn { padding: 10px 24px; font-size: 0.9rem; }

  /* Countdown — una sola línea en móvil */
  .wi-countdown { gap: 0; flex-wrap: nowrap; justify-content: center; }

  .wi-countdown-item {
    min-width: 0;
    flex: 1;
    padding: 10px 4px;
  }

  .wi-countdown-sep { font-size: 1.8rem; padding: 0 1px; }

  .wi-countdown-number { font-size: clamp(1.5rem, 6vw, 2.4rem); }

  .wi-countdown-label { font-size: 0.55rem; letter-spacing: 0; }

  /* Story */
  .wi-story-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .wi-story-image { order: -1; }

  /* Events */
  .wi-events-grid { grid-template-columns: 1fr; gap: 20px; }

  .wi-event-card { padding: 24px 20px; }

  .wi-event-card img { max-height: 180px; object-fit: cover; }

  /* Schedule timeline → vertical centrado en mobile */
  .wi-schedule-timeline {
    flex-direction: column;
    min-width: 0;
    gap: 0;
    align-items: center;
  }

  .wi-schedule-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    min-width: 0;
    width: 100%;
    max-width: 400px;
  }

  .wi-schedule-wrap::before { display: none; }

  .wi-sched-circle { width: 44px !important; height: 44px !important; flex-shrink: 0; overflow: hidden !important; }

  .wi-sched-circle img { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; object-fit: contain; }

  .wi-sched-time-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    margin-bottom: 8px;
  }

  .wi-sched-info { text-align: left; }

  .wi-sched-connector { display: none; }

  /* Gallery */
  .wi-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* RSVP */
  .wi-rsvp-form { padding: 24px 18px; }

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

  .wi-radio-group { flex-direction: column; gap: 10px; }

  /* Alergias — una por línea */
  .wi-checkbox-group { flex-direction: column; gap: 6px; }

  .wi-checkbox { padding: 4px 0; }

  /* RSVP labels — asegurar sentence case sin mayúsculas */
  .wi-radio span, .wi-checkbox span { text-transform: none !important; }

  /* FAQ */
  .wi-faq-item { padding: 14px 16px; }

  /* Hotel cards */
  .wi-hotel-grid { grid-template-columns: 1fr; }
  .wi-hotel-cards { grid-template-columns: 1fr; gap: 16px; }
  .wi-hotel-card { padding: 20px 18px; gap: 12px; }

  /* Music player */
  .wi-music-player {
    bottom: 14px;
    right: 14px;
    padding: 8px 12px 8px 8px;
  }

}

@media (max-width: 480px) {
  :root { --wi-hero-top-crop: 8px; }

  .wi-section { padding: 36px 0; }

  .wi-container { padding: 0 14px; }

  .wi-story::before, .wi-story::after,
  .wi-events::before, .wi-events::after,
  .wi-schedule::before, .wi-schedule::after,
  .wi-gallery::before, .wi-gallery::after,
  .wi-contact::before, .wi-contact::after,
  .wi-gifts::before, .wi-gifts::after,
  .wi-optional-block::before, .wi-optional-block::after,
  .wi-faq::before, .wi-faq::after,
  .wi-rsvp-section::before, .wi-rsvp-section::after {
    width: 56px;
    opacity: 0.14;
  }

  /* Hero */
  .wi-couple-names { font-size: clamp(2rem, 13vw, 3rem); }

  .wi-hero-content { padding: 0 16px; }

  /* Countdown */
  .wi-countdown-item { min-width: 58px; padding: 10px 6px; }

  .wi-countdown-number { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  /* Gallery */
  .wi-gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Events */
  .wi-events-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Section titles */
  .wi-section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Schedule */
  .wi-sched-circle { width: 40px !important; height: 40px !important; overflow: hidden !important; }

  .wi-sched-circle img { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; object-fit: contain; }

  /* RSVP form */
  .wi-rsvp-form { padding: 20px 14px; border-radius: var(--wi-radius); }

  .wi-form-group > label { font-size: 0.92rem; }
  .wi-radio,
  .wi-checkbox { font-size: 0.92rem; }

  .wi-btn { padding: 10px 22px; font-size: 0.88rem; }

  /* Icons — still fixed size on small mobile */
  .wi-optional-icon img,
  .wi-event-icon img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }

  /* Countdown — compresión máxima */
  .wi-countdown-item { padding: 10px 2px; }
  .wi-countdown-number { font-size: clamp(1.3rem, 7vw, 1.8rem); }
  .wi-countdown-sep { font-size: 1.5rem; }

  /* Ocultar segundos en pantallas muy pequeñas para que quepan en una línea */
  .wi-countdown .wi-countdown-item:last-child { display: none; }
  .wi-countdown > *:nth-last-child(2) { display: none; }
}


/* ════════════════════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════════════════ */
.wi-contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.wi-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
}

.wi-contact-name {
  font-family: var(--wi-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wi-text);
  margin: 0;
}

.wi-contact-phone {
  font-family: var(--wi-font-body);
  font-size: 1.05rem;
  color: var(--wi-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wi-contact-phone:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .wi-contact-cards { gap: 8px; }
  .wi-contact-card  { padding: 8px 16px; }
}

/* ── Disable decorative side artwork (user preference) ─────────── */
.wi-body::before {
  display: none !important;
}

.wi-story::before, .wi-story::after,
.wi-events::before, .wi-events::after,
.wi-schedule::before, .wi-schedule::after,
.wi-gallery::before, .wi-gallery::after,
.wi-contact::before, .wi-contact::after,
.wi-gifts::before, .wi-gifts::after,
.wi-optional-block::before, .wi-optional-block::after,
.wi-faq::before, .wi-faq::after,
.wi-rsvp-section::before, .wi-rsvp-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
