/* ==========================================================
   Variables
   ========================================================== */
:root {
  --cream: #fcfaf6;
  --gold: #d5a530;
  --gold-dark: #b98612;
  --plum: #a26e74;
  --plum-dark: #7f5559;
  --rose: #caa089;
  --text: #6d635d;
  --text-strong: #8c5d61;
  --shadow-soft: 0 28px 70px rgba(115, 92, 81, 0.12);
  --radius-xl: 2rem;
  --gutter: 1.5rem;
}

/* ==========================================================
   Base
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PT Sans", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(212, 165, 48, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(162, 110, 116, 0.08), transparent 20%),
    linear-gradient(180deg, #fffdf9 0%, var(--cream) 100%);
}

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

h1,
h2,
p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ==========================================================
   Maquetación (sustituye a Bootstrap)
   ========================================================== */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Bloques de dos columnas que se apilan en móvil */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split-tight {
  gap: var(--gutter);
}

/* Bloques centrados de ancho reducido */
.narrow {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .split-8-4 { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 992px) {
  .split-hero,
  .split-5-7 { grid-template-columns: 5fr 7fr; }
  .split-7-5 { grid-template-columns: 7fr 5fr; }
}

/* En móvil, la foto va antes que el texto */
@media (max-width: 991.98px) {
  .split-reverse-mobile > :first-child { order: 2; }
}

@media (min-width: 1200px) {
  .narrow-7 { max-width: 58.333%; }
  .narrow-9 { max-width: 75%; }
  .narrow-10 { max-width: 83.333%; }
  .hero-card { max-width: 83.333%; margin-inline: auto; }
}

.photo-card img,
.hero-seal,
.narrow img {
  margin-inline: auto;
}

/* ==========================================================
   Secciones y flores decorativas
   ========================================================== */
.section-block {
  position: relative;
  padding: 4.5rem 0;
}

.flower {
  position: absolute;
  z-index: 1;
  opacity: 0.92;
  pointer-events: none;
}

.flower-left { left: 0; }
.flower-right { right: 0; }

.flower-hero-left { top: 0.5rem; width: min(15vw, 220px); }
.flower-hero-right { top: 0.25rem; width: min(15vw, 210px); }
.flower-story-left { top: -1rem; width: min(12vw, 170px); }
.flower-story-right { top: 0; width: min(12vw, 160px); }
.flower-venue-left { top: 2rem; width: min(13vw, 180px); }
.flower-venue-right { top: 2rem; width: min(12vw, 160px); }
.flower-gift-left { top: -1rem; width: min(14vw, 190px); }
.flower-gift-right { bottom: -2rem; width: min(13vw, 170px); }

/* ==========================================================
   Portada
   ========================================================== */
.hero-container {
  padding-top: 1rem;
}

.hero-card {
  padding: 1rem 1.5rem 0;
}

.hero-seal {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 22px 42px rgba(112, 93, 79, 0.08));
}

.hero-title {
  color: var(--rose);
  font-family: "Corinthia", cursive;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.88;
}

.countdown-wrapper {
  margin-bottom: 1.5rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 540px;
  margin-inline: auto;
}

.countdown-item {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
}

.countdown-value {
  color: #44403e;
  font-family: "Amatic SC", cursive;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  font-family: "Amatic SC", cursive;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-date-stack {
  display: grid;
  justify-items: center;
  margin: 0 0 2rem;
}

.hero-date-day {
  color: var(--text-strong);
  font-family: "Amatic SC", cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

/* ==========================================================
   Tipografía
   ========================================================== */
.section-kicker {
  color: #ac7d20;
  font-family: "Handlee", cursive;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.45;
}

.section-title {
  margin-bottom: 1.25rem;
  color: var(--rose);
  font-family: "Gwendolyn", cursive;
  font-size: clamp(2.75rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
}

.body-copy {
  font-size: 1.18rem;
  line-height: 1.75;
}

.accent-copy {
  margin: 1rem 0 1.25rem;
  color: var(--gold);
  font-family: "Indie Flower", cursive;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
}

.info-label,
.gift-title,
.closing-kicker {
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.text-link {
  color: var(--plum);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--plum-dark);
  text-decoration: underline;
}

/* ==========================================================
   Botones
   ========================================================== */
.btn-brand {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(126, 98, 76, 0.16);
  color: #fff;
  font-family: "Amatic SC", cursive;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  box-shadow: 0 18px 34px rgba(126, 98, 76, 0.22);
  transform: translateY(-2px);
}

.btn-brand-gold { background: linear-gradient(180deg, #efc446 0%, var(--gold) 100%); }
.btn-brand-gold:hover,
.btn-brand-gold:focus-visible { background: linear-gradient(180deg, #f2c84e 0%, var(--gold-dark) 100%); }

.btn-brand-plum { background: linear-gradient(180deg, #ad787c 0%, var(--plum) 100%); }
.btn-brand-plum:hover,
.btn-brand-plum:focus-visible { background: linear-gradient(180deg, #9a686b 0%, var(--plum-dark) 100%); }

/* ==========================================================
   Tarjetas
   ========================================================== */
.photo-card img {
  filter: drop-shadow(0 24px 36px rgba(117, 94, 83, 0.12));
}

.info-card,
.soft-panel,
.closing-card {
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 196, 183, 0.45);
}

.soft-panel {
  padding: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 240, 233, 0.88) 100%);
  border: 1px solid rgba(215, 194, 178, 0.4);
}

.bus-point,
.hotel-badge,
.account-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 204, 194, 0.55);
  border-radius: 1.5rem;
  box-shadow: 0 18px 30px rgba(127, 95, 92, 0.08);
}

.bus-points {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bus-points { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

.bus-point {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  text-align: center;
}

.bus-point-title,
.hotel-badge-title,
.account-label {
  color: var(--rose);
  font-family: "Handlee", cursive;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.bus-point-text,
.hotel-badge-name {
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 700;
}

.hotel-badge {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 1.5rem;
  text-align: center;
}

.hotel-badge-address {
  font-size: 0.98rem;
}

.timeline-illustration {
  width: 100%;
  max-width: 760px;
}

.account-box {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0;
  padding: 1.5rem;
}

.account-number {
  color: #c96b74;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.account-owners {
  font-size: 1.04rem;
  line-height: 1.6;
}

/* ==========================================================
   Confirmación
   ========================================================== */
.closing-card {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(237, 225, 213, 0.88) 0%, rgba(232, 218, 206, 0.88) 100%);
}

.confirm-copy {
  max-width: 42rem;
  margin-inline: auto;
}

.form-embed-wrap {
  height: 80vh;
  min-height: 700px;
  margin-top: 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 204, 194, 0.65);
  border-radius: 1.5rem;
}

.form-embed-frame {
  display: block;
  width: 100%;
  height: 1500px;
  border: 0;
}

.form-embed-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 2rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.form-embed-placeholder[hidden] {
  display: none;
}

/* ==========================================================
   Pie
   ========================================================== */
.site-footer {
  padding: 2rem 0 0;
}

.footer-script {
  color: var(--rose);
  font-family: "Corinthia", cursive;
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 0.9;
}

.footer-date {
  color: var(--text-strong);
  font-family: "Amatic SC", cursive;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-border {
  width: 100%;
  margin-top: 1.5rem;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1199.98px) {
  .flower { opacity: 0.55; }
}

@media (max-width: 991.98px) {
  .section-block { padding: 3.75rem 0; }
  .hero-card { padding-inline: 0; }

  .section-kicker,
  .section-title,
  .gift-title,
  .body-copy,
  .info-card,
  .soft-panel {
    text-align: center;
  }

  .info-card,
  .soft-panel {
    padding: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .section-block { padding: 3rem 0; }
  .flower { display: none; }

  .countdown-grid { gap: 0.5rem; }
  .countdown-item { padding: 0.5rem 0.25rem; }
  .countdown-value { font-size: 2.35rem; }
  .countdown-label { font-size: 1rem; }

  .body-copy { font-size: 1.05rem; }
  .accent-copy { font-size: 1.6rem; }
  .btn-brand { display: block; width: 100%; }

  .form-embed-wrap { min-height: 620px; }
  .closing-card { padding: 2rem 1.25rem; }
}
