:root {
  --cream: #f6e3c8;
  --amber: #e6a45c;
  --sunset: #d97b38;
  --glow: #c8641f;
  --ember: #7a3d1a;
  --bark: #241611;
  --ink: #4a2c17;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  height: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  background-color: #efdcc4;
  background-image: radial-gradient(
      120% 80% at 50% 0%,
      #f7ead3 0%,
      #f0d8bb 45%,
      #e7c6a3 100%
    );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
}

.deck {
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

.slide {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 24px;
  scroll-snap-align: start;
}

.slide-tall {
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 48px;
}

.scroll-hint {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ember);
  opacity: 0.85;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Content panels (text slides) ---------- */
.panel {
  width: min(520px, 92vw);
  text-align: center;
}

.star {
  display: block;
  color: var(--amber);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.slide-title {
  font-family: "Rye", "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  color: var(--glow);
  margin-bottom: 18px;
}

.panel p {
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.panel strong {
  color: var(--ember);
  font-weight: 600;
}

.phone {
  font-family: "Rye", serif;
  font-size: 1.5rem;
  color: var(--glow);
  letter-spacing: 0.02em;
  margin: 6px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copy-btn {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(122, 61, 26, 0.4);
  background: rgba(255, 252, 246, 0.75);
  color: var(--ember);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: rgba(230, 164, 92, 0.35);
  transform: translateY(-1px);
}

.account {
  font-size: 1.1rem;
  color: var(--ember);
  margin-top: -8px;
  margin-bottom: 14px;
}

.teams {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.team {
  font-family: "Rye", serif;
  font-size: 1.2rem;
  padding: 10px 22px;
  border-radius: 14px;
  color: #fff6ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 220px;
}

.team small {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.95;
}

.team-azul {
  background: linear-gradient(135deg, #4a76c4, #2f4d8f);
}

.team-rojo {
  background: linear-gradient(135deg, #d15a4e, #a5322a);
}

.vs {
  font-family: "Rye", serif;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 2px 0;
}

.note {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ember);
}

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  text-align: left;
}

.field-label {
  font-size: 1rem;
  font-style: italic;
  color: var(--ember);
  margin-bottom: -4px;
  padding-left: 4px;
}

.label-center {
  text-align: center;
  padding-left: 0;
}

.form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(122, 61, 26, 0.35);
  background: rgba(255, 252, 246, 0.85);
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
}

.form input:focus {
  outline: none;
  border-color: var(--sunset);
  box-shadow: 0 0 0 3px rgba(217, 123, 56, 0.18);
}

.stepper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.step-btn {
  width: 50px;
  border: 1px solid rgba(122, 61, 26, 0.35);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.85);
  color: var(--ember);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.step-btn:hover {
  background: rgba(230, 164, 92, 0.35);
}

.stepper input[type="number"] {
  width: 90px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.total {
  text-align: center;
  font-size: 1.25rem;
  color: var(--ember);
  margin: 4px 0 2px;
}

.hint-ninos {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--ember);
  opacity: 0.85;
  margin: 2px 0;
}

.deadline {
  text-align: center;
  font-size: 1.05rem;
  color: var(--glow);
  margin: 8px 0 2px;
}

.total strong {
  font-family: "Rye", serif;
  color: var(--glow);
}

.btn {
  margin-top: 6px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--glow));
  color: #fff6ea;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(200, 100, 31, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200, 100, 31, 0.55);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #37c56a, #1faa52);
  box-shadow: 0 10px 26px rgba(31, 170, 82, 0.4);
}

.btn-wa:hover {
  box-shadow: 0 14px 32px rgba(31, 170, 82, 0.55);
}

.wa-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.wa-hint {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ember);
  opacity: 0.9;
}

/* ---------- Hero photo card ---------- */
.frame {
  position: relative;
  width: min(430px, 92vw);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 26px 36px;
  text-align: center;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(60, 30, 12, 0.45);
  background-image: url("images/main-invite.jpeg");
  background-size: cover;
  background-position: center 30%;
}

/* Warm scrim: light at the sky, deeper toward the ground for legibility */
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(246, 227, 200, 0.28) 0%,
    rgba(246, 227, 200, 0.05) 22%,
    rgba(36, 22, 17, 0) 48%,
    rgba(36, 22, 17, 0.55) 78%,
    rgba(20, 12, 8, 0.82) 100%
  );
  pointer-events: none;
}

.frame > * {
  position: relative;
  z-index: 1;
}

/* ---------- Top: title over the sky ---------- */
.top {
  color: var(--ember);
}

.eyebrow {
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--ember);
  opacity: 0.9;
}

.title {
  font-family: "Rye", "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  line-height: 1;
  margin: 10px 0 6px;
  color: var(--glow);
  text-shadow: 0 2px 12px rgba(246, 227, 200, 0.4);
}

.names {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ember);
}

/* ---------- Bottom: details over the darker ground ---------- */
.bottom {
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(20, 12, 8, 0.6);
}

.divider {
  color: var(--amber);
  font-size: 1.1rem;
  letter-spacing: 0.6em;
  margin-bottom: 20px;
}

.details {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.detail h2 {
  font-family: "Rye", serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 4px;
}

.detail p {
  font-size: 1.2rem;
  line-height: 1.4;
}

.maps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.maps a {
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(246, 227, 200, 0.6);
  background: rgba(20, 12, 8, 0.28);
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.maps a:hover {
  background: rgba(200, 100, 31, 0.6);
  border-color: transparent;
}

.rsvp {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--glow));
  color: #fff6ea;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 10px 26px rgba(200, 100, 31, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200, 100, 31, 0.65);
}

.footnote {
  margin-top: 22px;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream);
  opacity: 0.92;
}

@media (min-width: 640px) {
  .frame {
    width: min(460px, 92vw);
    padding: 48px 34px 44px;
  }
  .details {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}
