:root {
  --cream: #f8f3ea;
  --paper: #fffdf9;
  --green: #405347;
  --green-dark: #26372f;
  --sage: #9fa98f;
  --rose: #b98378;
  --gold: #b39562;
  --ink: #2d302d;
  --muted: #6d716d;
  --line: rgba(64, 83, 71, 0.18);
  --shadow: 0 20px 60px rgba(38, 55, 47, 0.12);
  --header-height: 78px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 14px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
blockquote,
.signature,
.hero-couple,
.hero-couple2,
.hero-couple3,
.hero-couple4,
.closing-signature {
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1.1;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 40px));
  text-align: center;
}

.section {
  position: relative;
  min-height: 55vh;
  padding: 110px 0;
  scroll-margin-top: var(--header-height);
}

.section-kicker,
.eyebrow {
  margin-bottom: 14px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: #e8d9c0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

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

.section-ornament {
  width: 180px;
  margin: 22px auto 32px;
}

.lead {
  font-size: 1.12rem;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--green-dark);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navegación fija */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 10px 30px rgba(38, 55, 47, 0.08);
}

.navbar {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  position: relative;
  flex: 0 0 auto;
  padding: 28px 0 25px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--rose);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Portada */
.hero {
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 70px) 0 70px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(248, 243, 234, 0.96), rgba(255, 253, 249, 0.78)),
    url("assets/hero-background.svg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, rgba(64, 83, 71, 0.06) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: clamp(4.8rem, 11vw, 9rem);
  font-weight: 600;
  line-height: 0.8;
}

.hero-couple,
.hero-couple2,
.hero-couple3,
.hero-couple4 {
  margin-bottom: 14px;
  color: var(--rose);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-style: italic;
  line-height: 1;
}

.hero-divider {
  display: flex;
  max-width: 380px;
  margin: 22px auto;
  align-items: center;
  gap: 18px;
}

.hero-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.hero-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.hero-divider img {
  width: 50px;
}

.hero-date {
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-place {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  margin-top: 32px;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-decoration {
  position: absolute;
  z-index: 1;
  width: 320px;
  height: 520px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-decoration-left {
  bottom: -60px;
  left: -80px;
  background: url("assets/floral-left.svg") left bottom / contain no-repeat;
}

.hero-decoration-right {
  top: 70px;
  right: -90px;
  background: url("assets/floral-right.svg") right top / contain no-repeat;
}

.scroll-indicator {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  display: flex;
  align-items: center;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  flex-direction: column;
}

.scroll-indicator .arrow {
  font-size: 1.5rem;
  animation: bounce 1.7s infinite;
}

/* Botones */
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(64, 83, 71, 0.18);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-ghost {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255, 255, 255, 0.42);
}

.button-secondary {
  border-color: var(--gold);
  color: var(--green-dark);
  background: transparent;
}

.button-light {
  color: var(--green-dark);
  background: var(--cream);
}

.button-whatsapp {
  margin-top: 12px;
  color: white;
  background: #247a4b;
}

.full-width {
  width: 100%;
}

.text-link {
  display: inline-block;
  border: 0;
  color: var(--rose);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button-link {
  padding: 0;
}

.light-link {
  color: #f4e7d3;
}

/* Bienvenida */
.welcome-section {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(185, 131, 120, 0.08), transparent 30%),
    var(--paper);
}

.welcome-section blockquote {
  margin: 34px auto;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  line-height: 1.2;
}

.signature {
  margin-top: 28px;
  color: var(--rose);
  font-size: 2rem;
  font-style: italic;
}

/* Evento */
.event-section {
  background: var(--cream);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  min-height: 370px;
  padding: 44px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow);
  text-align: center;
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--rose);
  font-size: 1.5rem;
  place-items: center;
}

.card-highlight {
  margin-bottom: 6px;
  color: var(--rose);
  font-size: 1.03rem;
  font-weight: 600;
}

/* Cuenta regresiva */
.countdown-section {
  display: grid;
  min-height: 480px;
  place-items: center;
  color: white;
  background:
    linear-gradient(rgba(38, 55, 47, 0.86), rgba(38, 55, 47, 0.9)),
    url("assets/countdown-background.svg") center / cover no-repeat;
  text-align: center;
}

.countdown-section h2 {
  color: white;
}

.countdown {
  display: grid;
  max-width: 850px;
  margin: 42px auto 26px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.countdown div {
  min-width: 150px;
  padding: 28px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
}

.countdown strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 0.9;
}

.countdown span {
  display: block;
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.countdown-message {
  color: #f0e6d7;
}

/* Cronograma */
.schedule-section {
  background: var(--paper);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 132px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  display: grid;
  position: relative;
  min-height: 120px;
  grid-template-columns: 100px 28px 1fr;
  gap: 18px;
}

.timeline-item time {
  padding-top: 4px;
  color: var(--rose);
  font-weight: 600;
  text-align: right;
}

.timeline-dot {
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-item p {
  color: var(--muted);
}

/* Formularios */
.rsvp-section {
  background:
    linear-gradient(rgba(248, 243, 234, 0.92), rgba(248, 243, 234, 0.92)),
    url("assets/form-background.svg") center / cover no-repeat;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 72px;
}

.form-layout.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.form-layout.reverse .form-intro {
  order: 2;
}

.form-intro {
  position: sticky;
  top: calc(var(--header-height) + 35px);
}

.small-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.wedding-form {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field-group {
  margin-bottom: 22px;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input,
select {
  min-height: 49px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(179, 149, 98, 0.12);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card {
  margin: 0;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card span {
  display: flex;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.choice-card input:checked + span {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.form-feedback {
  min-height: 25px;
  margin-top: 12px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-grid label {
  display: flex;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.checkbox-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

/* Vestimenta */
.dress-section {
  background: var(--paper);
}

.dress-card {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  background: var(--cream);
}

.dress-label {
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.palette {
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette span {
  width: 56px;
  height: 96px;
  margin-left: -10px;
  border: 5px solid var(--cream);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 10px 20px rgba(38, 55, 47, 0.1);
}

.check-list {
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--rose);
  content: "✓";
  font-weight: 700;
}

/* Regalos */
.gifts-section {
  background: var(--cream);
    grid-template-columns: 1fr;
  place-items: center;
  
}

.gift-options {
  display: grid;
  margin-top: 38px;
  place-items: center;
  gap: 18px;
  text-align: center;
}

.gift-options article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.bank-details {
  margin-top: 22px;
  padding: 28px;
  border: 1px dashed var(--gold);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.72);
  text-align: left;
}

.bank-details p {
  margin-bottom: 6px;
}

/* Historia */
.story-section {
  background: var(--paper);
}

.story-grid {
  display: grid;
  margin-bottom: 56px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
}

.story-photo img {
  border-radius: 48% 48% 10px 10px;
  box-shadow: var(--shadow);
}

.story-copy p:first-child::first-letter {
  float: left;
  margin: 4px 8px 0 0;
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.75;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-modal {
  width: min(920px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.gallery-modal::backdrop {
  background: rgba(15, 22, 18, 0.86);
  backdrop-filter: blur(5px);
}

.gallery-modal img {
  width: 100%;
  max-height: 85vh;
  border-radius: 18px;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Información */
.practical-section {
  background: var(--cream);
}

.practical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.practical-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
}

.practical-card > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: 600;
  place-items: center;
}

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

/* Preferencias y acompañantes */
.preferences-section {
  background: var(--paper);
}

.companions-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(185, 131, 120, 0.08), transparent 35%),
    var(--cream);
}

.notice-box {
  margin-top: 32px;
  padding: 24px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--paper);
  text-align: left;
}

.notice-box p {
  margin-bottom: 0;
}

/* Contacto */
.contact-section {
  background: var(--paper);
}

.contact-card {
  display: grid;
  padding: 54px;
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(38, 55, 47, 0.97), rgba(64, 83, 71, 0.92)),
    url("assets/contact-background.svg") center / cover no-repeat;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.contact-card h2 {
  color: white;
}

.contact-actions {
  text-align: center;
}

.contact-name {
  margin-bottom: 18px;
  color: #f4e7d3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.contact-actions .light-link {
  display: block;
  margin-top: 14px;
}

/* Hashtag */
.hashtag-section {
  background: var(--cream);
}

.hashtag {
  margin: 26px auto 12px;
  padding: 12px 22px;
  border: 1px dashed var(--rose);
  border-radius: 999px;
  color: var(--rose);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  cursor: pointer;
}

/* Cierre */
.closing-section {
  display: grid;
  min-height: 720px;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(rgba(38, 55, 47, 0.82), rgba(38, 55, 47, 0.9)),
    url("assets/closing-background.svg") center / cover no-repeat;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent, rgba(18, 26, 22, 0.28));
}

.closing-section .container {
  position: relative;
  z-index: 1;
}

.closing-section h2 {
  color: white;
}

.closing-rings {
  width: 78px;
  margin: 0 auto 24px;
}

.closing-signature {
  margin: 30px 0;
  color: #efd9c3;
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1.15;
}

footer {
  padding: 24px 20px;
  color: #dfd6c9;
  background: #1e2d26;
  font-size: 0.8rem;
  text-align: center;
}

footer p {
  margin: 0;
}

/* Utilidades y animaciones */
.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Adaptación */
@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(380px, 92vw);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    padding: 18px 26px calc(32px + env(safe-area-inset-bottom));
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 253, 249, 0.99);
    box-shadow: -20px 30px 50px rgba(38, 55, 47, 0.14);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 2px;
    font-size: 0.8rem;
    line-height: 1.25;
    white-space: normal;
  }

  .nav-links a::after {
    bottom: 8px;
  }

  .event-grid,
  .practical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-grid .info-card:last-child {
    grid-column: 1 / -1;
  }

  .form-layout,
  .form-layout.reverse,
  .story-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .form-layout.reverse .form-intro {
    order: initial;
  }

  .form-intro {
    position: static;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .dress-card {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .section {
    min-height: auto;
    padding: 82px 0;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 50px);
  }

  .hero h1 {
    font-size: clamp(4rem, 21vw, 6.5rem);
  }

  .hero-couple,
  .hero-couple2,
  .hero-couple3,
  .hero-couple4 {
    font-size: 2.4rem;
  }

  .hero-decoration {
    width: 220px;
    height: 360px;
  }

  .event-grid,
  .practical-grid,
  .gift-options,
  .two-columns,
  .option-row,
  .checkbox-grid,
  .gallery,
  .countdown {
    grid-template-columns: 1fr;
  }

  .event-grid .info-card:last-child {
    grid-column: auto;
  }

  .countdown {
    width: min(100%, 320px);
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown div {
    min-width: 0;
  }

  .timeline::before {
    left: 80px;
  }

  .timeline-item {
    grid-template-columns: 60px 18px 1fr;
    gap: 11px;
  }

  .timeline-item time {
    font-size: 0.8rem;
  }

  .wedding-form,
  .dress-card,
  .contact-card {
    padding: 28px 20px;
  }

  .palette span {
    width: 45px;
    height: 76px;
  }

  .gallery-item img {
    height: auto;
  }

  .scroll-indicator span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Reproductor de música fijo */
body {
  padding-bottom: 116px;
}

body.player-collapsed {
  padding-bottom: 66px;
}

.music-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(185, 131, 120, 0.10), transparent 34%),
    var(--paper);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: grid;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: pointer;
  grid-template-columns: 112px minmax(0, 1fr);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.playlist-card:hover {
  border-color: var(--gold);
  box-shadow: 0 24px 54px rgba(38, 55, 47, 0.16);
  transform: translateY(-3px);
}

.playlist-card.active {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(185, 131, 120, 0.12), var(--shadow);
}

.playlist-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.playlist-card-copy {
  display: flex;
  min-width: 0;
  padding: 18px 44px 18px 18px;
  justify-content: center;
  flex-direction: column;
}

.playlist-card-copy strong,
.playlist-card-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-card-copy strong {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.playlist-card-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.playlist-card-number {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
}

.playlist-card-state {
  display: none;
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.playlist-card.active .playlist-card-state {
  display: block;
}

.music-player {
  display: grid;
  position: fixed;
  z-index: 1400;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 14px;
  min-height: 88px;
  padding: 12px 56px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: white;
  background: rgba(30, 45, 38, 0.96);
  box-shadow: 0 20px 55px rgba(18, 26, 22, 0.35);
  backdrop-filter: blur(18px);
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.5fr) minmax(150px, 0.55fr);
  align-items: center;
  gap: 22px;
  transition: min-height 0.25s ease, padding 0.25s ease, transform 0.25s ease;
}

.player-collapse {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #f6ead7;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease;
}

.player-collapse:hover {
  background: rgba(255, 255, 255, 0.16);
}

.music-player.collapsed {
  right: 14px;
  left: auto;
  width: min(430px, calc(100% - 28px));
  min-height: 54px;
  padding: 7px 52px 7px 9px;
  grid-template-columns: 1fr auto;
}

.music-player.collapsed .player-center,
.music-player.collapsed .player-volume {
  display: none;
}

.music-player.collapsed .player-collapse {
  transform: rotate(180deg);
}

.music-player.collapsed .player-track {
  min-width: 0;
}

.music-player.collapsed .player-cover {
  width: 40px;
  height: 40px;
}

.music-player.collapsed .player-caption {
  display: none;
}

.player-track {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.player-cover {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.player-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.player-caption {
  margin-bottom: 2px;
  color: #d9c9ae;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.player-copy strong,
.player-copy > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy strong {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.player-copy > span:last-child {
  color: #d5d9d5;
  font-size: 0.76rem;
}

.player-center {
  min-width: 0;
}

.player-transport {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.player-transport button,
.player-volume button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f7eee2;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player-transport button:hover,
.player-volume button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.player-transport .player-play {
  width: 42px;
  height: 42px;
  color: var(--green-dark);
  background: #f4e7d3;
  font-size: 1rem;
}

.player-transport .player-play:hover {
  background: white;
}

.player-progress-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
  color: #d5d9d5;
  font-size: 0.68rem;
}

.player-progress-row span:first-child {
  text-align: right;
}

.music-player input[type="range"] {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: #ead8bd;
  background: transparent;
  cursor: pointer;
}

.player-volume {
  display: grid;
  grid-template-columns: 34px minmax(70px, 1fr) 34px;
  align-items: center;
  gap: 7px;
}

.music-start-prompt {
  display: flex;
  position: fixed;
  z-index: 1500;
  right: 20px;
  bottom: 126px;
  max-width: min(480px, calc(100% - 40px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
}

.music-start-prompt span {
  font-size: 0.78rem;
  line-height: 1.4;
}

.music-error {
  color: #ffd9d1 !important;
}

@media (max-width: 1080px) {
  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-player {
    grid-template-columns: minmax(190px, 0.8fr) minmax(330px, 1.5fr);
  }

  .player-volume {
    grid-column: 1 / -1;
    width: min(330px, 100%);
    margin: -4px auto 0;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 174px;
  }

  body.player-collapsed {
    padding-bottom: 68px;
  }

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

  .playlist-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .playlist-card img {
    width: 94px;
    height: 94px;
  }

  .music-player {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    min-height: 152px;
    padding: 10px 44px 10px 10px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .player-track {
    grid-column: 1 / -1;
    padding-right: 8px;
  }

  .player-cover {
    width: 48px;
    height: 48px;
  }

  .player-center {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
  }

  .player-transport {
    order: 2;
    margin: 4px 0 0;
  }

  .player-progress-row {
    order: 1;
  }

  .player-volume {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .music-player.collapsed {
    right: 8px;
    width: calc(100% - 16px);
  }

  .music-start-prompt {
    right: 12px;
    bottom: 174px;
    left: 12px;
    max-width: none;
    flex-direction: column;
    text-align: center;
  }

  .music-start-prompt .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .player-transport {
    gap: 3px;
  }

  .player-transport button {
    width: 31px;
    height: 31px;
    font-size: 0.72rem;
  }

  .player-transport .player-play {
    width: 40px;
    height: 40px;
  }
}
