:root {
  --bg-dark: #070707;
  --bg-light: #e9e7e5;
  --text-dark: #101010;
  --text-light: #f2f2f2;
  --muted-dark: #4a4a4a;
  --line-soft: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
  line-height: 1.4;
}

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

.hero {
  min-height: 78vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background: url("assets/tarjeta-digital.png") center center / cover no-repeat;
  padding: 48px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  color: #fff;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.95;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-name {
  margin: -0.45rem 0 0.9rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 400;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  width: min(520px, 100%);
  margin: 0.5rem auto 0;
}

.count-item {
  padding: 0.5rem 0.3rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.count-value {
  display: block;
  font-size: clamp(1.1rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.count-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.invite-section {
  padding: 70px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.invite-section.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.invite-section.light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-inner {
  width: min(980px, 100%);
}

.icon-badge {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
  color: inherit;
  opacity: 0.9;
}

.section-kicker {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-text {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
}

.section-btn {
  margin-top: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  color: inherit;
  padding: 0.5rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo-break {
  background: var(--bg-dark);
  padding: 16px 20px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-break img {
  width: min(220px, 60vw);
  opacity: 0.92;
}

.gallery {
  background: var(--bg-light);
  padding: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.gallery-grid img {
  height: 430px;
  width: 100%;
  object-fit: cover;
}

.invite-strip {
  background: var(--bg-dark);
  color: #e8e8e8;
  text-align: center;
  padding: 26px 20px;
}

.invite-strip p {
  margin: 0 auto;
  max-width: 600px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 0.7rem 0;
}

.rsvp {
  background: var(--bg-dark);
  padding: 72px 20px;
  display: grid;
  place-items: center;
}

.rsvp-box {
  width: min(420px, 100%);
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  text-align: left;
  color: #f1f1f1;
}

.rsvp-head {
  text-align: center;
  margin-bottom: 0.9rem;
}

.rsvp-head .icon-badge {
  margin-bottom: 0.45rem;
}

.rsvp-head h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.rsvp-head p {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #c9c9c9;
}

.rsvp-grid {
  display: grid;
  gap: 0.55rem;
}

.rsvp-grid label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d4d4d4;
}

.rsvp-grid input,
.rsvp-grid select,
.rsvp-grid textarea {
  width: 100%;
  border: 1px solid #4b4b4b;
  background: #2a2a2a;
  color: #f4f4f4;
  padding: 0.55rem 0.6rem;
  font-family: inherit;
  font-size: 0.82rem;
}

.rsvp-grid textarea {
  min-height: 78px;
  resize: vertical;
}

.radio-row {
  display: flex;
  gap: 0.9rem;
  font-size: 0.78rem;
  margin: 0.2rem 0;
}

.rsvp-grid button {
  justify-self: start;
  margin-top: 0.35rem;
  border: 1px solid #d9d9d9;
  background: #f0f0f0;
  color: #101010;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-weight: 600;
}

.full-photo {
  background: var(--bg-light);
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

.full-photo img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.end-note {
  background: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
  padding: 58px 20px 64px;
}

.end-note .icon-badge {
  margin-bottom: 0.5rem;
}

.end-note p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.page-footer {
  background: #000;
  color: #f4f4f4;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.page-footer img {
  width: 72px;
  opacity: 0.9;
}

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

@media (max-width: 800px) {
  .invite-section {
    padding: 58px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .countdown {
    gap: 0.2rem;
  }

  .count-item {
    border-radius: 8px;
  }
}
