:root {
  --burgundy: #7b0a04;
  --ink: #4b2d26;
  --ink-soft: #7a6157;
  --paper: #f6f2ea;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-image: url("https://assets.codepen.io/15719758/Copia+de+Beige+Minimalist+Save+the+Date+Calendar+Wedding+Invitation+%285%29.png");
  background-size: 600px;
  background-attachment: fixed;
  font-family: "Crimson Pro", serif;
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(8px);
  text-align: center;
  border-bottom: 1px solid rgba(123, 10, 4, 0.08);
  padding: 6px 0 0;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.logo img {
  height: 100px;
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 6px 0 10px;
  margin: 0;
}

.main-nav a {
  font-family: "Cormorant SC", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.main-nav a:hover { color: var(--burgundy); }

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 1px;
  width: 0;
  background: var(--burgundy);
  transition: 0.25s;
}
.main-nav a:hover::after { width: 100%; left: 0; }

/* =========================
   SECCIONES + ZOCALO
========================= */
.sec { padding: 20px 0 30px; }
.sec h2 {
  text-align: center;
  font-family: "Cormorant SC", serif;
  font-size: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.sec-intro {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.zocalo {
  height: 18px;
  margin: 28px 0;
  background: linear-gradient(to bottom, rgba(123, 10, 4, 0.06), rgba(123, 10, 4, 0));
  border-bottom: 1px solid rgba(123, 10, 4, 0.18);
  opacity: 0.6;
}

/* =========================
   HERO
========================= */
.hero-save {
  padding: 80px 20px 40px;
  position: relative;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  top: -50px;
}

.hero-bg-illu {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.bsd {
  text-align: right;
  margin: 0 10px 10px 0;
  color: var(--burgundy);
  font-size: 14px;
}

.hero-names {
  font-family: "Cormorant SC", serif;
  font-size: 54px;
  letter-spacing: 0.30em;
  color: var(--burgundy);
  margin: 0;
}

.hero-names .name { display: block; }
.hero-names .amp {
  font-family: "Allura", cursive;
  font-size: 42px;
  letter-spacing: 0;
  margin: -6px 0;
}

.hero-save-label {
  display: inline-flex;
  gap: 17px;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant SC", serif;
  font-size: 18px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 5px;
}

.hero-save-label .our {
  font-family: "Allura", cursive;
  font-size: 26px;
  letter-spacing: 0;
  margin-top: 2px;
  transform: translateX(-6px);
}

.hero-date {
  font-family: "Cormorant SC", serif;
  font-size: 23px;
  letter-spacing: 0.35em;
  margin-top: -15px;
  margin-bottom: 0;
}

.hero-city {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 11px;
}

.hero-zocalo {
  width: 100%;
  max-width: 600px;
  height: 150px;
  margin: -80px auto 0;
  background-image: url("https://assets.codepen.io/15719758/Disen%CC%83o+sin+ti%CC%81tulo+%283%29.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* =========================
   CERIMÔNIA
========================= */
.sec-cerimonia { padding-top: 20px; }

.cer-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 18px;
  align-items: flex-start;
  max-width: 580px;
  margin: 0 auto 20px;
  padding: 10px 0;
}

.cer-col h3 {
  font-family: "Cormorant SC", serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 6px;
}

.cer-hora {
  margin: 6px 0;
  font-weight: 700;
  font-size: 16px;
}

.cer-local { font-weight: 600; font-size: 15px; margin: 4px 0; }

.cer-end {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.cer-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}

.cer-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--burgundy);
  background: rgba(123, 10, 4, 0.04);
  margin: 3px 0;
}

.cer-line {
  width: 1px;
  height: 80px;
  background: rgba(123, 10, 4, 0.35);
}

.cer-walk {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cer-mapa-google iframe {
  width: 100%;
  max-width: 600px;
  height: 300px;
  border-radius: 14px;
  display: block;
  margin: 20px auto 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* =========================
   HOTÉIS
========================= */
.hoteis-sub {
  text-align: center;
  max-width: 700px;
  margin: -4px auto 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hoteis-lista {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.hotel-item { text-align: center; padding: 4px 0; }

.hotel-item h3 {
  font-family: "Cormorant SC", serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hotel-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 6px;
  color: var(--burgundy);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(123,10,4,0.25);
}
.hotel-links a:hover { color: #540402; border-bottom-color: #540402; }

.hotel-codigo {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.hotel-codigo strong { color: var(--burgundy); font-weight: 600; }

/* =========================
   DICAS
========================= */
.dicas-help {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 12px;
}

.dicas-lista {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid rgba(123, 10, 4, 0.18);
}

.dica-item {
  width: 100%;
  display: block;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(123, 10, 4, 0.18);
  padding: 12px 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}

.dica-title {
  font-family: "Cormorant SC", serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.dica-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.6;
}

.dica-item:hover .dica-title { color: #5b0703; }

.dica-detalhe {
  margin-top: 30px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
}

.dica-detalhe h2 {
  font-family: "Cormorant SC", serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 20px;
  color: var(--burgundy);
  margin: 0 0 16px;
}

.dica-detalhe h3 {
  font-family: "Cormorant SC", serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  margin-top: 20px;
}

.dica-detalhe p,
.dica-detalhe li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.dica-detalhe ul { padding-left: 18px; }

.dica-detalhe a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid rgba(123,10,4,0.25);
  padding-bottom: 1px;
}
.dica-detalhe a:hover { color: #5b0703; border-bottom-color: #5b0703; }

/* Flecha */
.voltar-dicas {
  display: none;
  margin: 18px auto 0;
  background: transparent;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.voltar-dicas:hover { background: rgba(123,10,4,0.06); }
.voltar-dicas:focus,
.voltar-dicas:active { outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }

/* =========================
   PRESENTES
========================= */
.presentes-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pres {
  background: rgba(246, 242, 234, 0.98);
  border: 1px solid rgba(123, 10, 4, 0.12);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

.pres h3 {
  font-family: "Cormorant SC", serif;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
}

.pres p { font-size: 14px; color: var(--ink-soft); }

.pres-dado {
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.05em;
  font-size: 15px;
}

.btn {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   FLORES CAINDO
========================= */
.flor {
  position: fixed;
  top: -40px;
  width: 22px;
  opacity: 0.45;
  animation: cair linear infinite;
  pointer-events: none;
}

@keyframes cair {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0.4; }
  50% { opacity: 0.25; }
  100% { transform: translateY(120vh) rotate(120deg); opacity: 0.45; }
}

/* Ajuste scroll anchors */
#cerimonia, #hoteis, #dicas, #presentes { scroll-margin-top: 110px; }

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  body { font-size: 14px; line-height: 1.6; }
  .container { padding: 0 16px; }

  .site-header { padding: 2px 0 0; }
  .logo img { height: 60px; margin: 4px auto 2px; }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 2px 0 6px;
  }

  .main-nav a { font-size: 11px; letter-spacing: 0.14em; }

  .hero-bg-illu { display: none !important; }

  .hero-save { padding: 48px 12px 24px; }
  .hero-inner { top: 0; }

  .hero-names { font-size: 30px; letter-spacing: 0.20em; }
  .hero-save-label { font-size: 14px; letter-spacing: 0.28em; margin-top: 6px; }
  .hero-date { font-size: 18px; letter-spacing: 0.22em; margin-top: -10px; }
  .hero-city { font-size: 12px; margin-top: 8px; }

  .hero-zocalo { margin-top: -20px; height: 130px; }

  /* Cerimonia en vertical */
  .cer-layout {
    grid-template-columns: 1fr;
    row-gap: 16px;
    max-width: 100%;
  }

  .cer-col { text-align: center; }
  .cer-middle { margin: 10px 0 16px; }
  .cer-mapa-google iframe { height: 240px; }

  /* hoteles en 2 columnas */
  .hoteis-lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .presentes-box { display: block; }
  .pres { margin-bottom: 18px; }
}
