*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: #FFFDF4;
  color: #2F3527;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #4A5230; text-decoration: none; }
a:hover { color: #2F3527; }
::selection { background: #DCE5D0; }

.page { position: relative; overflow: hidden; }

/* Decorative images */
.decor-top {
  position: absolute;
  top: -10px;
  left: -38px;
  width: min(46vw, 300px);
  pointer-events: none;
  user-select: none;
  z-index: 2;
  -webkit-mask-image: radial-gradient(ellipse 120% 95% at 8% 12%, #000 45%, transparent 88%);
  mask-image: radial-gradient(ellipse 120% 95% at 8% 12%, #000 45%, transparent 88%);
}

.decor-bottom {
  position: absolute;
  bottom: -60px;
  left: -64px;
  width: min(42vw, 250px);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%);
  mask-image: linear-gradient(to right, #000 35%, transparent 100%);
}

/* Animations */
@keyframes floatUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  padding: 118px 26px 70px;
  text-align: center;
}

.tagline {
  font-style: italic;
  font-size: 19px;
  color: #6B7A58;
  margin: 0 auto 46px;
  max-width: 300px;
  line-height: 1.5;
}

.couple-names {
  font-family: 'Pinyon Script', cursive;
  color: #3E4A2A;
  line-height: 0.92;
  font-size: clamp(64px, 17vw, 124px);
  animation: floatUp 0.9s ease both;
}

.ampersand { font-size: 0.78em; margin: 0.02em 0; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 38px 0 22px;
}

.divider-line {
  display: block;
  width: min(90px, 18vw);
  height: 1px;
  background: #C1CEB0;
}

.divider-diamond {
  display: block;
  width: 6px;
  height: 6px;
  background: #8A9B7A;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.date-label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(12px, 3.2vw, 15px);
  color: #4A5230;
}

.location-label {
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: #8A9B7A;
  margin-top: 12px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 24px);
  margin-top: 52px;
  flex-wrap: wrap;
}

.countdown-unit { min-width: 64px; }

.countdown-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 8vw, 44px);
  color: #3E4A2A;
  line-height: 1;
}

.countdown-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A9B7A;
  margin-top: 6px;
}

/* ── Intro ── */
.intro {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 26px 84px;
  text-align: center;
}

.section-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8A9B7A;
  margin-bottom: 22px;
}

.intro-main {
  font-size: clamp(19px, 4.6vw, 23px);
  line-height: 1.62;
  color: #3E4A2A;
  margin-bottom: 18px;
  text-wrap: pretty;
}

.intro-sub {
  font-size: 18px;
  line-height: 1.7;
  color: #5A6150;
  text-wrap: pretty;
}

/* ── Photos ── */
.photos-grid {
  position: relative;
  z-index: 3;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 32px 90px;
}

.photo-slot {
  position: relative;
  overflow: hidden;
  border: 6px solid #FFFDF4;
  outline: 1px solid #D8DEAD;
  box-shadow: 0 8px 32px rgba(62, 74, 42, 0.13);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(18%) contrast(1.04) brightness(0.98) saturate(0.88);
  transition: filter 0.4s ease;
}

.photo-slot:hover img {
  filter: sepia(0%) contrast(1) brightness(1) saturate(1);
}

.photo-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 36px;
  gap: 4px;
  background: linear-gradient(to top, rgba(30, 36, 20, 0.62) 30%, transparent 75%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.photo-slot:hover .photo-caption { opacity: 1; }

.photo-caption-text {
  font-family: 'Pinyon Script', cursive;
  font-size: 38px;
  color: #FFFDF4;
  line-height: 1;
  letter-spacing: 0.02em;
}

.photo-caption-date {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #D8DEAD;
}

.photo-caption-place {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: #FFFDF4;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.photo-slot--tall { aspect-ratio: 3 / 4; }

/* ── When / Where ── */
.when-where {
  position: relative;
  z-index: 3;
  background: #F6F5EA;
  padding: 80px 22px;
}

.when-where-inner { max-width: 900px; margin: 0 auto; }
.when-where .section-tag { text-align: center; margin-bottom: 10px; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 7vw, 42px);
  color: #3E4A2A;
  margin-bottom: 46px;
  text-align: center;
  letter-spacing: 0.01em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.info-card {
  background: #FFFDF4;
  border: 1px solid #E2E5D4;
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8A9B7A;
  margin-bottom: 14px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 27px;
  color: #3E4A2A;
  margin-bottom: 4px;
  line-height: 1.25;
}

.card-address {
  color: #5A6150;
  font-size: 17px;
  margin-bottom: 16px;
}

.card-time {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #4A5230;
  margin-bottom: 26px;
}

.btn-outline {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  border: 1px solid #4A5230;
  color: #4A5230;
  padding: 13px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover { background: #4A5230; color: #FFFDF4; }

/* ── Timeline ── */
.timeline-section {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  padding: 86px 26px 40px;
}

.timeline-section .section-tag { text-align: center; margin-bottom: 10px; }
.timeline-section .section-title { margin-bottom: 30px; }

.timeline-intro {
  max-width: 620px;
  margin: 0 auto 56px;
  color: #5A6150;
  font-size: 18px;
  line-height: 1.7;
  display: grid;
  gap: 14px;
  text-wrap: pretty;
}

.timeline-intro strong { color: #3E4A2A; font-weight: 500; }

.timeline { max-width: 560px; margin: 0 auto; }

.timeline-item {
  display: grid;
  grid-template-columns: clamp(58px, 17vw, 86px) 1fr;
  gap: clamp(12px, 4vw, 22px);
}

.timeline-time {
  text-align: right;
  font-family: 'Jost', sans-serif;
  font-size: clamp(11px, 3vw, 13px);
  letter-spacing: 0.08em;
  color: #6B7A58;
  padding-top: 5px;
  white-space: nowrap;
}

.timeline-content {
  border-left: 1px solid #D2DCC4;
  padding: 0 0 34px clamp(18px, 5vw, 28px);
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -4.5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4A5230;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 5vw, 24px);
  color: #3E4A2A;
  line-height: 1.2;
}

.timeline-desc {
  font-size: 16px;
  line-height: 1.55;
  color: #5A6150;
  margin-top: 5px;
  text-wrap: pretty;
}

.timeline-end {
  display: grid;
  grid-template-columns: clamp(58px, 17vw, 86px) 1fr;
  gap: clamp(12px, 4vw, 22px);
}

.timeline-diamond-end {
  padding-left: clamp(18px, 5vw, 28px);
}

.timeline-diamond-end::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #8A9B7A;
  transform: rotate(45deg);
  margin-left: -3px;
}

/* ── Details ── */
.details-section {
  position: relative;
  z-index: 3;
  max-width: 940px;
  margin: 0 auto;
  padding: 50px 26px 90px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 34px 40px;
}

.detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 25px;
  color: #3E4A2A;
  margin-bottom: 10px;
}

.detail-desc {
  color: #5A6150;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Drive ── */
.drive-section {
  position: relative;
  z-index: 3;
  background: #F6F5EA;
  padding: 78px 26px;
}

.drive-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.drive-inner .section-tag { margin-bottom: 10px; }
.drive-inner .section-title { font-size: clamp(28px, 6.5vw, 38px); margin-bottom: 16px; }

.drive-desc {
  color: #5A6150;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
  text-wrap: pretty;
}

.btn-solid {
  display: inline-block;
  background: #4A5230;
  color: #FFFDF4;
  padding: 15px 30px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-solid:hover { background: #3E4A2A; color: #FFFDF4; }

/* ── Gifts ── */
.gifts-section {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin: 0 auto;
  padding: 86px 26px;
}

.gifts-section .section-tag { text-align: center; margin-bottom: 10px; }
.gifts-section .section-title { text-align: center; font-size: clamp(28px, 6.5vw, 38px); margin-bottom: 20px; }

.gifts-section > p {
  color: #5A6150;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.gifts-section > p:last-of-type { margin-bottom: 30px; }

.account-box {
  border: 1px solid #E2E5D4;
  background: #FFFDF4;
  padding: 26px 24px;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A5230;
}

.btn-eye {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid #C1CEB0;
  color: #4A5230;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-eye:hover { background: #EDF0E4; }

.account-datos {
  margin-top: 24px;
  display: grid;
  gap: 22px;
  font-family: 'Jost', sans-serif;
}

.cuenta-sublabel {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A9B7A;
  margin-bottom: 8px;
}

.cuenta-number {
  font-size: 17px;
  color: #2F3527;
  letter-spacing: 0.04em;
}

.cuenta-detail {
  font-size: 14px;
  color: #5A6150;
  margin-top: 4px;
}

.cuenta-divider { height: 1px; background: #E2E5D4; }

/* ── RSVP ── */
.rsvp-section {
  position: relative;
  z-index: 3;
  background: #4A5230;
  color: #FFFDF4;
  padding: 86px 26px 96px;
  overflow: hidden;
}

.rsvp-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-script {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(42px, 11vw, 64px);
  line-height: 1;
  margin-bottom: 24px;
}

.rsvp-intro {
  font-size: 19px;
  line-height: 1.7;
  color: #EDF0E4;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.rsvp-sub {
  font-size: 17px;
  line-height: 1.7;
  color: #C8D2B8;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.rsvp-cta { color: #C8D2B8; }

.rsvp-success {
  border: 1px solid #6B7A58;
  padding: 34px 26px;
  margin-bottom: 20px;
}

.rsvp-thanks {
  font-family: 'Pinyon Script', cursive;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}

.rsvp-success p { color: #EDF0E4; font-size: 17px; }

.rsvp-form { display: grid; gap: 18px; text-align: left; }

.form-label { display: grid; gap: 8px; }

.form-label-text {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8D2B8;
}

.required-mark { color: #8A9B7A; margin-left: 2px; }

.form-input {
  background: rgba(255, 253, 244, 0.06);
  border: 1px solid #6B7A58;
  color: #FFFDF4;
  padding: 14px 15px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: #C8D2B8; }
.form-input::placeholder { color: rgba(255, 253, 244, 0.3); }
.form-textarea { resize: vertical; }

.form-group { display: grid; gap: 8px; }

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

.btn-asistencia {
  flex: 1 1 130px;
  background: rgba(255, 253, 244, 0.06);
  color: #EDF0E4;
  border: 1px solid #6B7A58;
  padding: 13px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-asistencia--active {
  background: #FFFDF4;
  color: #3E4A2A;
  border-color: #FFFDF4;
}

.btn-submit {
  background: #FFFDF4;
  color: #3E4A2A;
  border: none;
  padding: 16px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
  transition: background 0.2s;
}

.btn-submit:hover:not(:disabled) { background: #EDF0E4; }
.btn-submit:disabled { opacity: 0.7; cursor: wait; }

.rsvp-error {
  font-size: 16px;
  color: #F1D9B5;
  line-height: 1.6;
  text-align: left;
}

.rsvp-error a { color: #FFFDF4; text-decoration: underline; }

.rsvp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
}

.rsvp-line { background: #6B7A58; width: 70px; }
.rsvp-diamond { background: #C8D2B8; }

.rsvp-footer {
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  color: #C8D2B8;
  margin-top: 22px;
}
