/* ===========================================================
   Valentina & Tomás — Invitación de casamiento
   =========================================================== */

:root {
  --ivory: #f7f4ec;
  --ivory-soft: #fbf9f4;
  --ink: #262420;
  --ink-soft: #4a463f;
  --gray-band: #d9d5c9;
  --gray-band-text: #2a2822;
  --gold-line: #c9c2ad;
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script: 'Parisienne', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.screen {
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#horarios {
  min-height: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}

.eyebrow-light {
  color: var(--white);
}

.divider {
  width: 64px;
  height: 1px;
  background: var(--ink);
  border: none;
  margin: 22px auto;
}

.title-lg {
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.15;
}

.title-md {
  font-size: 2.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    letter-spacing 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Capa que se desliza desde la izquierda al pasar el mouse */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn:hover {
  letter-spacing: 0.3em;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:active {
  transform: scale(0.94);
  transition-duration: 0.12s;
}

.btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 14px 34px;
}

.btn-outline::before {
  background: var(--ink);
}

.btn-outline:hover {
  color: var(--ivory);
}

.btn-outline-light {
  border: 1px solid var(--white);
  color: var(--white);
  padding: 9px 24px;
  font-size: 0.75rem;
}

.btn-outline-light::before {
  background: var(--white);
}

.btn-outline-light:hover {
  color: var(--ink);
}

.btn-solid {
  border: none;
  background: var(--gray-band);
  color: var(--gray-band-text);
  padding: 16px 0;
  width: 100%;
  font-size: 0.8rem;
  box-shadow: 0 2px 0 rgba(38, 36, 32, 0.08);
}

.btn-solid::before {
  background: var(--ink);
  opacity: 0.07;
}

.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(38, 36, 32, 0.18);
}

.btn-solid:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 6px rgba(38, 36, 32, 0.15);
}

.btn-dark {
  border: none;
  background: var(--ink);
  color: var(--ivory);
  padding: 16px 0;
  width: 100%;
  font-size: 0.8rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-dark::before {
  background: var(--ivory);
  opacity: 0.1;
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.btn-dark:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===========================================================
   SECCIÓN 1 — PORTADA
   =========================================================== */
.hero {
  justify-content: flex-end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #cfc9bb;
}

.hero-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 20px;
}

.hero-photo-fallback code {
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.5);
  padding: 3px 8px;
  border-radius: 3px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0) 65%);
}

.hero-names {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-weight: 400;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px 56px;
  line-height: 1.25;
}

.hero-names .amp {
  font-size: 2.2rem;
  font-style: italic;
  opacity: 0.9;
}

/* ===========================================================
   SECCIÓN 2 — FECHA / CUENTA REGRESIVA
   =========================================================== */
.content-top {
  padding: 56px 24px 34px;
  text-align: center;
}

.date-big {
  font-size: 2.1rem;
  letter-spacing: 0.28em;
  margin: 4px 0 26px;
}

.agenda-wrap {
  position: relative;
  display: inline-block;
}

.agenda-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ivory-soft);
  border: 1px solid var(--gold-line);
  padding: 10px;
  min-width: 190px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.agenda-options.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.agenda-option {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  padding: 10px 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, padding-left 0.2s ease;
}

.agenda-option:hover {
  background: rgba(0, 0, 0, 0.05);
  padding-left: 14px;
}

.agenda-option:active {
  transform: scale(0.97);
}

.agenda-option + .agenda-option {
  border-top: 1px solid var(--gold-line);
}

.photo-block {
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
}

.photo-block-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #cabf9e;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(38,36,32,0.55);
  font-size: 0.8rem;
  text-align: center;
  padding: 0 20px;
}

.photo-fallback code {
  font-family: monospace;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.55);
  padding: 3px 8px;
  border-radius: 3px;
}

.photo-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%);
}

.overlay-dark {
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 100%);
}

.countdown-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
  margin-top: 30%;
}

.countdown {
  display: flex;
  gap: 26px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-size: 2.6rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1;
}

.countdown-label {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.quote-block {
  padding: 40px 28px 0px;
  text-align: center;
}

.quote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

.quote-source {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ===========================================================
   SECCIÓN 3 — HORARIOS
   =========================================================== */
.schedule {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-time {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
}

.schedule-label {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.venue-block {
  flex: none;
  width: 100%;
  min-height: 320px;
  position: relative;
}

.venue-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  margin-top: 12%;
}

.venue-name {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  margin-top: 2px;
}

.venue-address {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  max-width: 280px;
  margin-bottom: 8px;
}

.band {
  background: var(--ivory);
  padding: 26px 20px;
  text-align: center;
}

.band-text {
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-band-text);
  font-weight: 500;
}

/* ===========================================================
   SECCIÓN 4 — CONFIRMAR ASISTENCIA / REGALOS
   =========================================================== */
.rsvp-deadline {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.rsvp-form {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 6px 2px 10px;
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 0.8;
}

.field input:focus {
  outline: none;
  border-bottom: 1px solid var(--ink);
}

.rsvp-form .btn-solid {
  margin-top: 10px;
}

.field-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.asistencia-toggle {
  display: flex;
  gap: 10px;
}

.asistencia-option {
  flex: 1;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 12px 6px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.asistencia-option:hover {
  background: rgba(38, 36, 32, 0.06);
}

.asistencia-option:active {
  transform: scale(0.95);
}

.asistencia-option.selected {
  background: var(--ink);
  color: var(--ivory);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(38, 36, 32, 0.25);
}

.simple-photo {
  min-height: 380px;
}

.final-logo {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: auto;
  z-index: 2;
  /* Fuerza el logo a blanco sin importar su color original en el PNG */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.gifts-block {
  padding: 48px 24px 0px;
  text-align: center;
}

.gifts-text {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================================
   SECCIÓN 5 — DATOS BANCARIOS / CIERRE
   =========================================================== */
.band-tall {
  padding: 56px 26px 40px;
  text-align: left;
}

.band-title {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}

.bank-field {
  border-bottom: 1px solid rgba(42,40,34,0.4);
  padding-bottom: 10px;
  margin-bottom: 26px;
}

.bank-text {
  font-size: 1rem;
  color: var(--gray-band-text);
}

.closing-block {
  padding: 56px 24px 70px;
  text-align: center;
}

.closing-line {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.closing-script {
  font-family: var(--font-script);
  font-size: 2.4rem;
  margin-top: 6px;
  color: var(--ink);
}

.monogram {
  font-family: var(--font-script);
  font-size: 2rem;
  margin-top: 26px;
  color: var(--ink-soft);
}

/* ===========================================================
   Toast (feedback for "Copiar CBU")
   =========================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===========================================================
   Responsive tweaks
   =========================================================== */
@media (max-width: 360px) {
  .hero-names { font-size: 2.5rem; }
  .title-lg { font-size: 2.2rem; }
  .countdown { gap: 18px; }
  .countdown-num { font-size: 2.2rem; }
  .venue-name { font-size: 2rem; }
}

@media (min-width: 600px) {
  .screen { max-width: 480px; margin: 0 auto; }
  body { background: #ece7da; }
}

.music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.music-toggle:hover {
  background: rgba(0,0,0,0.4);
}

.music-toggle:active {
  transform: scale(0.92);
}

.music-widget {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(38, 36, 32, 0.25);
  border-radius: 12px;
}