:root {
  --bg-start: #5b0f1d;
  --bg-mid: #b45144;
  --bg-end: #f2c296;
  --text: #fff9f2;
  --muted: rgba(255, 244, 235, 0.8);
  --accent: #f6d9b0;
  --button: #f0b37c;
  --panel: rgba(255, 255, 255, 0.18);
  --panel-light: rgba(255, 255, 255, 0.28);
  --border: rgba(255, 255, 255, 0.25);
  --radius: 22px;
  --shadow: 0 30px 80px rgba(37, 10, 14, 0.45);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html, body {
  overscroll-behavior: none;
  overflow-x: hidden;
  background-attachment: fixed;
  -webkit-overflow-scrolling: auto;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background-color: var(--bg-start);
  color: var(--text);
  line-height: 1.7;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.is-loaded {
  opacity: 1;
}

/*.bg-photo,*/
/*body.bg-home,*/
/*body.bg-story,*/
/*body.bg-church,*/
/*body.bg-hotel,*/
/*body.bg-travel,*/
/*body.bg-guide,*/
/*body.bg-schedule,*/
/*body.bg-rsvp {*/
/*  background-image: url("img/portada.jpg");*/
/*  background-position: center;*/
/*}*/

.bg-overlay {
  position: absolute;
  width: 100lvw;
  height: 100lvh;
  z-index: -5;
  background: linear-gradient(
    180deg,
    rgba(91, 15, 29, 0.65),
    rgba(180, 81, 68, 0.55)
  );
  /* NUEVO: transición suave cuando cambie el fondo con el scroll */
  transition: background 0.25s ease-out;
}

.bg-photo {
  background-image: url(img/portada.jpg);
  background-position: center;
  width: 100lvw;
  height: 100lvh;
  background-size: cover;
  position: absolute;
  z-index: -6;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

body.is-loaded .bg-photo {
  opacity: 1;
  transform: scale(1);
}

body.is-loaded .bg-overlay {
  transition: opacity 0.8s ease;
  opacity: 1;
}

.bg-overlay {
  opacity: 0;
}
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -10;
  pointer-events: none;
}

.bg-photo,
.bg-overlay {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}


/*body::before {*/

/*  content: "";*/
/*  position: fixed;*/
/*  inset: 0;*/
/*  background: linear-gradient(*/
/*      135deg,*/
/*      rgba(91, 15, 29, 0.75),*/
/*      rgba(180, 81, 68, 0.65) 45%,*/
/*      rgba(242, 194, 150, 0.6)*/
/*    );*/
/*  z-index: -1;*/
/*}*/

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  body.bg-home,
  body.bg-story,
  body.bg-church,
  body.bg-hotel,
  body.bg-travel,
  body.bg-guide,
  body.bg-schedule,
  body.bg-rsvp {
    background-position: center;
    background-size: cover;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 30;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.lang-toggle button.active {
  background: rgba(255, 255, 255, 0.15);
}

.hero {
  position: relative;
  min-height: 80vh;
/*  background: linear-gradient(180deg, rgba(91, 15, 29, 0.65), rgba(180, 81, 68, 0.55));*/
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-inner {
  width: 100%;
  padding: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-bar {
  display: flex;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-nav {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-nav a {
  color: rgba(255, 249, 242, 0.85);
  margin: 1em .5em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: xx-large;
  text-align: center;
  border: none;
  background: none;
  margin: 0 0.5em;
  position: fixed;
  padding: 15px;
}
a.brand:hover {
  background: none;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-copy {
  text-align: center;
  padding: clamp(2rem, 10vw, 6rem) 0 clamp(1rem, 5vw, 3rem);
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow,
.hero-date {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.script {
  font-family: "Great Vibes", "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--accent);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.descriptor,
.hero-note {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  background: var(--button);
  color: #4b140f;
  padding: 0.9rem 1.8rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.55);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text);
  box-shadow: none;
}

main {
  width: min(980px, calc(100% - 2.5rem));
  margin: -90px auto 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.content-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.no-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(2rem, 5vw, 3rem);
}

.story-single {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-single h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.story-single p,
.story-single ul {
  color: var(--muted);
}

.story-single ul {
  margin: 0;
  padding-left: 1.2rem;
}

.story-single ul li {
  margin-bottom: 0.4rem;
}

.press-article {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3rem);
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.press-article .form-embed iframe {
  border-radius: 0;
  box-shadow: none;
}

.press-article article {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text);
}

.press-article h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.press-article p {
  margin: 0;
}

.press-article figure {
  margin: 1.2rem 0;
}

.press-article img {
  display: block;
  width: 100%;
  height: auto;
}

.press-article figcaption {
  display: none;
}
@media (max-width: 900px) {
  .press-article {
    padding: 0;
  }
}

@media (min-width: 900px) {

  .press-article figure {
    text-align: center;
  }

  .press-article img {
    max-height: 520px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
}

.hidden-lang {
  display: none !important;
}

.page-cover .hero {
  min-height: 100vh;
}

.page-cover main {
  margin: 0 auto;
}

.scroll-arrow {
  display: none;
}

@media (min-width: 768px) {
  .scroll-arrow {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    animation: float 2.4s ease-in-out infinite;
  }

  .scroll-arrow:hover {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.8);
  }

  .scroll-arrow::after {
    content: "↓";
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -6px);
  }
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.section-heading p {
  color: var(--muted);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.section-card {
  background: var(--panel-light);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-card h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.section-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-card .text-link {
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--accent);
}

.section-grid,
.detail-list,
.travel-grid,
.guide-grid,
.timeline,
.rsvp-form,
.travel-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-list span {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--muted);
}

.detail-list strong,
.detail-list a {
  color: var(--text);
}

.travel-grid,
.guide-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.travel-grid article,
.guide-grid article,
.timeline article {
  background: var(--panel-light);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.travel-links ul {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

.rsvp-form input,
.rsvp-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font: inherit;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.rsvp-form textarea {
  resize: vertical;
}

.privacy {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-embed iframe {
  min-height: 77rem;
  width: 100%;
  border: none;
  border-radius: 18px;
}


@media (max-width: 900px) {
  .form-embed iframe {
    min-height: 90rem;
  }
}

.site-footer {
  position: fixed;
  width: 100%;
  height: fit-content;
  bottom: 0;
  z-index: 30;
  padding: 0.5rem clamp(1.5rem, 5vw, 3rem) 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
/*  text-align: center;*/
  gap: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  background: black;
}

.site-footer > p, .site-footer > div {
  margin: .2em 0 .2em 0;
}

.footer-links a {
  color: var(--accent);
}

/*@media (max-width: 900px) {*/
/*  .site-footer {*/
/*    position: relative;*/
/*  }*/
/*}*/

@media (max-width: 900px) {
  .site-footer {
    position: absolute;
  }
  .hero-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.8rem;
  }

  .hero-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

}

@media (max-width: 600px) {
  .lang-toggle {
    top: 16px;
    right: 16px;
  }

  .hero-copy {
    padding: 2rem 0;
    gap: 0.5rem;
  }

  main {
    margin-top: -60px;
  }
}

@media (max-width: 640px) {
  .hero-nav a {
    margin: 0.35em 0.3em;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }

  .brand {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }
}
