/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bg: #fbf7f1;
  --bg-alt: #f6efe6;
  --card: #ffffff;
  --ink: #1b1b1b;
  --muted: rgba(27, 27, 27, 0.62);
  --line: rgba(27, 27, 27, 0.12);

  --accent: #6b7a57;
  /* verde suave */
  --accent-2: #d9cbb8;
  /* arena */
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.07);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --container: 1080px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 28%, var(--bg) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.5;
  position: relative;
}



/* ==========================================================================
   Subtle tulip background (very soft, non-intrusive)
   ========================================================================== */

body {
  position: relative;
  background-color: #fdfaf7;
  /* importante que no sea transparente */
}

body::before {
  content: "";
  position: relative;
  inset: 0;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27260%27%20height%3D%27220%27%20viewBox%3D%270%200%20260%20220%27%3E%0A%20%20%3Cg%20fill%3D%27none%27%20stroke%3D%27rgba%28107%2C122%2C87%2C0.35%29%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20168c10-14%2010-34%200-48%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20120c10-10%2022-10%2032%200%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M84%20120c-2%2018-14%2034-32%2040%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20120c-2%2018%2010%2034%2032%2040%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20168c-10%2018-20%2026-34%2030%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20168c8%2018%2018%2026%2034%2030%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20168v42%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20190c-10%202-18%2010-22%2020%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M52%20190c10%202%2018%2010%2022%2020%27/%3E%0A%0A%20%20%20%20%3Cpath%20d%3D%27M156%20168c10-14%2010-34%200-48%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M156%20120c10-10%2022-10%2032%200%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M188%20120c-2%2018-14%2034-32%2040%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M156%20120c-2%2018%2010%2034%2032%2040%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M156%20168c-10%2018-20%2026-34%2030%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M156%20168c8%2018%2018%2026%2034%2030%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M156%20168v42%27/%3E%0A%0A%20%20%20%20%3Cpath%20d%3D%27M104%20206c10-8%2018-20%2022-36%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M208%20206c-10-8-18-20-22-36%27/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");

  background-repeat: repeat;
  background-size: 520px 440px;

  opacity: 0.07;
  mix-blend-mode: multiply;

  z-index: 1;
  /* 🔥 clave */
}

.site-header,
main,
.footer,
.sticky-cta {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.section--base {
  background: var(--bg);
}

.section--fineart {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, var(--bg-alt) 100%);
}

.section--alt {
  background: var(--bg-alt);
}

.fineart {
  /* un toque fine-art sin ser exagerado */
  background-image:
    radial-gradient(900px 240px at 20% 0%, rgba(217, 203, 184, 0.35), transparent 60%),
    radial-gradient(900px 240px at 80% 40%, rgba(107, 122, 87, 0.10), transparent 60%);
}

.kicker {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
}

strong {
  color: var(--ink);
}

.small {
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__text {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav__drawer {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link {
  text-decoration: none;
  color: rgba(27, 27, 27, 0.75);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav__link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(27, 27, 27, 0.95);
}

.nav__link.is-active {
  background: rgba(107, 122, 87, 0.10);
  color: rgba(27, 27, 27, 0.95);
  border: 1px solid rgba(107, 122, 87, 0.25);
}

.nav__link--pill {
  border: 1px solid rgba(107, 122, 87, 0.45);
  background: rgba(107, 122, 87, 0.08);
}

.nav__toggle {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.7);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.nav__toggleIcon {
  width: 18px;
  height: 2px;
  background: rgba(27, 27, 27, 0.8);
  display: inline-block;
  position: relative;
}

.nav__toggleIcon::before,
.nav__toggleIcon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(27, 27, 27, 0.8);
}

.nav__toggleIcon::before {
  top: -6px;
}

.nav__toggleIcon::after {
  top: 6px;
}

/* Mobile nav drawer */
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__drawer {
    position: fixed;
    inset: 72px 14px auto 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 12px;
    display: grid;
    gap: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
  }

  .nav__drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
  }

  .header__inner {
    padding-left: 4px;
    /* evita que el brand se vea pegado */
    padding-right: 4px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px rgba(107, 122, 87, 0.20);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.80);
  color: rgba(27, 27, 27, 0.88);
  border-color: rgba(107, 122, 87, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 20px 50px rgba(107, 122, 87, 0.26);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: 38px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-size: clamp(48px, 6vw, 74px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.hero__subtitle {
  margin: 0 0 18px;
  font-size: 26px;
  color: rgba(27, 27, 27, 0.60);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.photoCard {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 16px;
}

.photoCard__img {
  border-radius: calc(var(--radius-xl) - 10px);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 12px;
  margin-top: 10px;
}

.countdown__item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.countdown__value {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
}

.countdown__label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.55);
  font-weight: 800;
}

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

  .countdown {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.sectionHead {
  margin-bottom: 18px;
}

.sectionHead__lead {
  margin-top: 8px;
  font-size: 16px;
}

.sectionHead--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.cardsGrid {
  display: grid;
  gap: 16px;
}

.cardsGrid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cardsGrid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {

  .cardsGrid--2,
  .cardsGrid--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
}

.card__title {
  font-size: 22px;
  margin-bottom: 8px;
}

.card__text {
  color: var(--muted);
}

/* ==========================================================================
   Links
   ========================================================================== */

.link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.timeline__line {
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(107, 122, 87, 0.18);
  /* track */
  border-radius: 999px;
  overflow: hidden;
}

.timeline__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0px;
  /* JS sets */
  background: linear-gradient(180deg, rgba(107, 122, 87, 0.70), rgba(107, 122, 87, 0.20));
  border-radius: 999px;
  transition: height 420ms cubic-bezier(.2, .9, .2, 1);
}

.timelineItem {
  display: grid;
  grid-template-columns: 36px 140px 1fr;
  gap: 14px;
  align-items: start;
  position: relative;
}

.timelineItem__icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(107, 122, 87, 0.14);
  margin-left: 9px;
  margin-top: 12px;
  z-index: 1;
}

.timelineItem__time {
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(27, 27, 27, 0.55);
  text-transform: uppercase;
  font-size: 13px;
  padding-top: 8px;
}

.timelineItem__card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 16px 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

.timelineItem__title {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.timelineItem__text {
  color: var(--muted);
}

.timelineItem__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 0 6px rgba(107, 122, 87, 0.10), 0 14px 30px rgba(0, 0, 0, 0.06);
  margin-left: 1px;
  margin-top: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.timelineItem__icon svg {
  width: 18px;
  height: 18px;
  color: rgba(27, 27, 27, 0.70);
}

.timelineItem.is-active .timelineItem__icon {
  background: rgba(107, 122, 87, 0.12);
  border-color: rgba(107, 122, 87, 0.35);
  box-shadow: 0 0 0 7px rgba(107, 122, 87, 0.18), 0 18px 55px rgba(107, 122, 87, 0.18);
  transform: translateY(-1px) scale(1.06);
  animation: tl-bounce 520ms cubic-bezier(.2, .9, .2, 1);
}

.timelineItem.is-active .timelineItem__icon svg {
  color: var(--accent);
}

.timelineItem.is-active .timelineItem__card {
  border-color: rgba(107, 122, 87, 0.22);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
}

.timelineItem.is-active .timelineItem__time {
  color: rgba(27, 27, 27, 0.72);
}

@keyframes tl-bounce {
  0% {
    transform: translateY(0) scale(1);
  }


  /* Reveal (stagger) */
  .timelineItem {
    --stagger: 0ms;
  }

  .timelineItem__card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 520ms ease, transform 520ms ease, box-shadow 180ms ease, border-color 180ms ease;
    transition-delay: var(--stagger);
    will-change: transform, opacity;
  }

  .timelineItem.is-revealed .timelineItem__card {
    opacity: 1;
    transform: translateY(0);
  }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .timeline__progress {
      transition: none;
    }

    .timelineItem__card {
      transition: none;
      transform: none;
      opacity: 1;
    }
  }

  55% {
    transform: translateY(-3px) scale(1.08);
  }

  100% {
    transform: translateY(-1px) scale(1.06);
  }
}


@media (max-width: 860px) {
  .timelineItem {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }

  .timelineItem__time {
    grid-column: 2 / 3;
    padding-top: 0;
    margin-top: -6px;
  }

  .timelineItem__card {
    grid-column: 2 / 3;
  }
}

/* ==========================================================================
   Gallery (Swiper)
   ========================================================================== */

.galleryCard {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 14px;
}

.galleryFrame {
  margin: 0;
  border-radius: calc(var(--radius-xl) - 10px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;

  /* clave: mismo "marco" para fotos verticales/horizontales */
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}

.galleryFrame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* NO recorta: evita caras cortadas */
  padding: 10px;
  /* aire fine-art */
}

.swiper {
  border-radius: var(--radius-xl);
}

.swiper-pagination {
  position: relative !important;
  margin-top: 10px;
}

.swiper-button-prev,
.swiper-button-next {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.10);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px !important;
  color: rgba(27, 27, 27, 0.78);
  font-weight: 900;
}

@media (max-width: 860px) {

  /* en mobile, fuera flechas */
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

/* ==========================================================================
   RSVP embed
   ========================================================================== */

.embed {
  margin-top: 12px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.embed iframe {
  width: 100%;
  height: 860px;
  border: 0;
  display: block;
}

@media (max-width: 860px) {
  .embed iframe {
    height: 980px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 26px 0 44px;
  color: rgba(27, 27, 27, 0.55);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   Sticky CTA (mobile)
   ========================================================================== */

.stickyCta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: none;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  background: rgba(27, 27, 27, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transform: translateY(16px);
  opacity: 0;
  transition: 220ms ease;
}

.stickyCta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .stickyCta {
    display: block;
  }
}

/* ==========================================================================
   RSVP (custom form)
   ========================================================================== */

.rsvpForm {
  display: grid;
  gap: 16px;
}

.rsvpHp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvpPeople {
  display: grid;
  gap: 14px;
}

.rsvpPerson {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);

  /* soft glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rsvpPerson__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rsvpPerson__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.btn--sm {
  padding: 10px 14px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14px;
}

.rsvpGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

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

.rsvpField {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.rsvpLabel {
  font-weight: 800;
}

.rsvpInput,
.rsvpTextarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.rsvpTextarea {
  resize: vertical;
  min-height: 56px;
}

.rsvpInput:focus,
.rsvpTextarea:focus {
  border-color: rgba(107, 122, 87, 0.55);
  box-shadow: 0 0 0 4px rgba(107, 122, 87, 0.14);
  background: rgba(255, 255, 255, 0.95);
}

.rsvpChoices {
  display: grid;
  gap: 10px;
}

.rsvpChoices--stack {
  gap: 12px;
}

.rsvpChoice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.72);
}

.rsvpChoice input {
  transform: translateY(-0.5px);
}

.rsvpConditional {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rsvpActions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#rsvpStatus[data-tone="ok"] {
  color: rgba(27, 27, 27, 0.88);
}

#rsvpStatus[data-tone="error"] {
  color: rgba(180, 40, 40, 0.92);
}

/* ==========================================================================
   Bank (Cuenta)
   ========================================================================== */

.bankCard{
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  border-color: rgba(0, 0, 0, 0.06);
}

.bankIban{
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.ibanCode{
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
  overflow-wrap: anywhere;
}

.ibanActions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btnCopy{
  appearance: none;
  border: 1px solid rgba(107, 122, 87, 0.35);
  background: rgba(107, 122, 87, 0.08);
  color: rgba(27, 27, 27, 0.88);
  font-weight: 800;
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
}

.btnCopy:hover{
  background: rgba(107, 122, 87, 0.12);
}

.btnCopy:active{
  transform: translateY(1px);
}

.copyStatus{
  min-height: 18px;
}

.bankNote{
  margin-top: 10px;
}

@media (max-width: 860px){
  .ibanCode{
    font-size: 16px;
    letter-spacing: 0.06em;
  }
}

/* ==========================================================================
   Historia (nuevo layout)
   ========================================================================== */

.storyGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 22px;
}

.storyMedia .photoCard {
  padding: 14px;
}

.storyContent {
  display: flex;
}

.storyCard {
  width: 100%;
}

.storyText {
  margin-top: 10px;
  line-height: 1.65;
}

/* Mobile */
@media (max-width: 860px) {
  .storyGrid {
    grid-template-columns: 1fr;
  }

  .storyMedia {
    order: -1; /* Foto arriba en móvil */
  }
}

/* ===== CUPIDO (NO 3D) — crossfade estable ===== */
#cupidoCard{
  cursor: pointer;
  touch-action: manipulation;
}

/* mantenemos tu layout estable */
#cupidoCard .flipCard__inner{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-xl) - 10px);
  overflow: hidden;

  /* aislamiento para evitar repaints raros */
  contain: layout paint size;
  isolation: isolate;
}

/* las dos caras apiladas, sin transforms 3D */
#cupidoCard .flipCard__face{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .22s ease;
  will-change: opacity;
}

/* por defecto se ve el front */
#cupidoCard .flipCard__front{
  opacity: 1;
}

/* cuando está flipped, se ve el back */
#cupidoCard.is-flipped .flipCard__front{
  opacity: 0;
}
#cupidoCard.is-flipped .flipCard__back{
  opacity: 1;
}

/* imagen full */
#cupidoCard img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:80% center;
  display: block;
}