/* ============================================================
   Reiki & Diego — 23 de mayo de 2027, Málaga
   Diseño: limonar mediterráneo sobre papel. Crema texturado,
   verde botella, hoja de limonero y acento limón/dorado.
   Mobile-first.
   ============================================================ */

@font-face {
  font-family: 'Heading';
  src: url('/fonts/heading.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Heading';
  src: url('/fonts/heading-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Paleta limonar */
  --paper: #f6f5ea;
  --paper-soft: #efedd9;
  --paper-line: #ddd8bc;
  --green-900: #1c3a2a;
  --green-700: #2e5138;
  --leaf: #64834a;
  --leaf-soft: #e3e8ce;
  --lemon: #e9cf4b;
  --lemon-soft: #f7efc4;
  --gold: #9c7e1a; /* decorativo y texto grande (≥3:1) */
  --gold-text: #7c6413; /* texto pequeño sobre papel/limón (≥4.5:1) */
  --ink: #24352a;
  --ink-soft: #5d6b57;
  --white: #fdfcf3;

  /* Tipografía */
  --font-heading: 'Heading', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Ritmo */
  --space-section: clamp(4rem, 10vw, 7rem);
  --content-width: 46rem;
  --radius: 14px;
  --topbar-height: 3.25rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 1rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* Grano de papel sutil (feTurbulence) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.30 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.18;
  color: var(--green-900);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 5.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h3 {
  font-size: 1.35rem;
  color: var(--green-900);
}

p {
  margin: 0 0 1rem;
}

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

/* --- Accesibilidad --- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Barra superior --- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}

.topbar-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

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

.topbar-nav a {
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.topbar-nav a:hover {
  color: var(--green-900);
  background: var(--paper-soft);
}

.topbar-nav a.nav-rsvp {
  color: var(--gold-text);
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--paper-line);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-switch button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--green-900);
  color: var(--white);
}

/* --- Portada --- */

/* Todo el hero (hasta los botones de calendario) debe entrar en una
   pantalla de teléfono y de laptop: tamaños atados a svh, no solo a vw. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--topbar-height) + 1rem) 1.25rem 1.5rem;
}

.hero-lemons {
  position: absolute;
  width: clamp(150px, 38vw, 340px);
  pointer-events: none;
  user-select: none;
}

/* La rama entra desde el borde superior, como cuelga un limonero de verdad */
.hero-lemons-tr {
  top: 4%;
  right: -5%;
  transform: rotate(30deg);
}

.hero-lemons-bl {
  bottom: -5%;
  left: -8%;
  transform: scaleX(-1) rotate(24deg);
}

.hero > :not(.hero-lemons) {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6svh, 1.45rem);
  color: var(--green-700);
  margin-bottom: clamp(0.4rem, 1.2svh, 1rem);
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2rem, min(10vw, 7.5svh), 4.2rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-indent: 0.18em; /* compensa el letter-spacing del último carácter */
  margin-bottom: clamp(0.6rem, 1.6svh, 1.25rem);
}

.hero-names .amp {
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  text-indent: 0;
  font-size: 0.5em;
  color: var(--gold);
}

.hero-bigdate {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.4svh, 2.2rem);
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.hero-bigdate .sep {
  color: var(--gold);
  font-weight: 500;
  margin: 0 0.35em;
}

.hero-date {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.hero-place {
  color: var(--ink-soft);
  margin-bottom: clamp(0.9rem, 2.6svh, 2rem);
}

.countdown {
  display: flex;
  gap: 0.6rem;
  margin-bottom: clamp(0.9rem, 2.6svh, 2rem);
}

.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3.7rem, 10vw, 4.25rem);
  padding: clamp(0.4rem, 1svh, 0.65rem) 0.4rem;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgb(66 84 51 / 0.08);
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3svh, 1.8rem);
  font-weight: 600;
  color: var(--green-900);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.countdown-today {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.4svh, 0.9rem);
  align-items: center;
}

/* Pantallas bajas (teléfonos chicos, laptops con poco alto): compactar más */
@media (max-height: 680px) {
  .hero {
    padding-top: calc(var(--topbar-height) + 0.5rem);
    padding-bottom: 0.6rem;
  }

  .hero-kicker {
    margin-bottom: 0.25rem;
  }

  .hero-names {
    font-size: clamp(1.8rem, min(9vw, 6.2svh), 3rem);
    margin-bottom: 0.5rem;
  }

  .hero-bigdate {
    font-size: clamp(1.2rem, 3svh, 1.7rem);
  }

  .hero-date {
    font-size: 0.95rem;
  }

  .hero-place {
    margin-bottom: 0.5rem;
  }

  .countdown {
    margin-bottom: 0.6rem;
  }

  .countdown-cell {
    padding: 0.35rem 0.35rem;
  }

  .btn-big {
    font-size: 1.05rem;
    padding: 0.7rem 1.8rem;
  }
}

/* --- Botones --- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 4px 14px rgb(28 58 42 / 0.28);
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-big {
  font-size: 1.15rem;
  padding: 0.9rem 2.2rem;
}

.btn-secondary {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--green-700);
}

.btn-secondary:hover {
  background: var(--leaf-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: scale(0.97);
  }
}

/* --- Secciones --- */

.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-section) 1.25rem 0;
}

.section:last-of-type {
  padding-bottom: var(--space-section);
}

/* Título centrado con ramita de limonero debajo, como la invitación */
.section > h2 {
  text-align: center;
}

.section > h2::after {
  content: '';
  display: block;
  width: 42px;
  height: 42px;
  margin: 0.5rem auto 0;
  background: url('/img/favicon.svg') center / contain no-repeat;
}

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

.small {
  font-size: 0.875rem;
}

.placeholder {
  background: var(--paper-soft);
  border: 1px dashed var(--paper-line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--ink-soft);
  font-style: italic;
}

.text-link {
  color: var(--green-700);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.note {
  background: var(--leaf-soft);
  border-left: 4px solid var(--leaf);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  color: var(--green-900);
  font-weight: 600;
}

/* --- Frase de los novios --- */

.quote-band {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem 0;
  text-align: center;
}

.quote {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 4.2vw, 1.7rem);
  line-height: 1.5;
  color: var(--green-700);
}

.quote::before {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 0.9rem;
  background: url('/img/favicon.svg') center / contain no-repeat;
}

/* --- Nuestra historia --- */

.story-body {
  font-size: 1.15rem;
}

/* Carrusel de fotos: scroll nativo con snap, deslizable con el dedo */
.carousel {
  position: relative;
  margin-top: 2rem;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-track {
    scroll-behavior: smooth;
  }
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.carousel-track img {
  height: clamp(300px, 60vw, 440px);
  width: auto;
  border-radius: var(--radius);
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  box-shadow: 0 2px 10px rgb(66 84 51 / 0.25);
  color: var(--green-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 0.2rem;
}

.carousel-prev {
  left: 0.4rem;
}

.carousel-next {
  right: 0.4rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.photo-slot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-line);
  aspect-ratio: 4 / 5;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 40rem) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Línea de tiempo del finde --- */

.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--paper-line);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.25rem 2.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--leaf);
}

.timeline-item.timeline-main {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  margin-left: -0.5rem;
  box-shadow: 0 4px 18px rgb(66 84 51 / 0.09);
}

.timeline-item.timeline-main::before {
  left: 0.55rem;
  top: 1.6rem;
  background: var(--lemon);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--lemon-soft);
}

.timeline-day {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
}

.timeline-place {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.timeline-place:empty {
  display: none;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin: 0 0 0.6rem;
  background: var(--leaf-soft);
  color: var(--green-900);
}

.tag-muted {
  background: var(--paper-soft);
  color: var(--ink-soft);
}

.tag-main {
  background: var(--lemon);
  color: var(--green-900);
}

/* --- Horario del día --- */

.schedule {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.schedule li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--paper-line);
}

.schedule li:first-child {
  border-top: 1px solid var(--paper-line);
}

.schedule-time {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 4.5rem;
  font-variant-numeric: tabular-nums;
}

/* --- Mapa --- */

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  margin: 1.25rem 0 0.75rem;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 20rem;
  border: 0;
}

/* --- Vestimenta --- */

.dress-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.75rem 0 2.5rem;
}

.dress-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.dress-card p:last-child {
  margin-bottom: 0;
}

.dress-card-main {
  border-color: var(--leaf);
  border-width: 2px;
}


@media (min-width: 40rem) {
  .dress-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dress-card-main {
    grid-column: 1 / -1;
  }
}

/* --- Vestimenta --- */

.dress-theme {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold-text);
  margin: -0.25rem 0 0.75rem;
}

.dress-who {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--green-700);
  margin: 1rem 0 0.35rem;
}


/* --- Recomendaciones de Málaga --- */

.reco-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.reco-list li {
  padding-left: 1.7rem;
  background: url('/img/favicon.svg') 0 0.28rem / 1.05rem no-repeat;
}

/* (sección "Viajar a España" y FAQ eliminadas) */


/* --- RSVP --- */

.section-rsvp {
  max-width: 40rem;
}

.deadlines {
  background: var(--leaf-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.deadlines p {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--green-900);
}

.panel {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.panel p {
  margin: 0;
}

.rsvp-form,
.song-form {
  display: grid;
  gap: 1.25rem;
}

.rsvp-greeting {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green-700);
  margin: 0.5rem 0 0;
}

.rsvp-form .muted {
  margin: 0;
}

.guest-card {
  border: 1px solid var(--paper-line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
}

.form-card {
  padding-top: 1.25rem;
}

.inner-section + .inner-section {
  border-top: 1px solid var(--paper-line);
  margin-top: 1.4rem;
  padding-top: 1.4rem;
}

.inner-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 0.5rem;
}

.guest-card legend {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-900);
  padding: 0 0.5rem;
}

.field-question {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.75rem 0 0.4rem;
}

.radio-group,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-option,
.check-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper-soft);
  border: 1.5px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.radio-option:has(input:checked),
.check-option:has(input:checked) {
  background: var(--lemon-soft);
  border-color: var(--gold);
}

.radio-option label,
.check-option label {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.radio-option input,
.check-option input {
  accent-color: var(--green-900);
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label,
.allergies-block label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--paper-line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--leaf);
  outline: 2px solid var(--leaf-soft);
}

.field-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 30rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}


.diet-note {
  margin-top: 0.5rem;
}

.song-search {
  position: relative;
}

.song-search input {
  padding-left: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b57' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  background-size: 1.1rem;
}

.song-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(66 84 51 / 0.15);
  max-height: 18rem;
  overflow-y: auto;
}

.song-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.song-result:hover {
  background: var(--lemon-soft);
}

.song-result img {
  border-radius: 4px;
  flex-shrink: 0;
}

.btn-inline {
  justify-self: start;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.chosen-songs {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.chosen-song {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lemon-soft);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.92rem;
}

.chosen-song img {
  border-radius: 4px;
}

.chosen-song.sent {
  opacity: 0.65;
}

.chosen-remove {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--green-900);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.upload-zone {
  font-weight: 400;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1.4rem 1rem;
  border: 2px dashed var(--paper-line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover,
.upload-zone:focus-within {
  border-color: var(--leaf);
  background: var(--leaf-soft);
}

.upload-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 2.2rem;
  margin-bottom: 0.3rem;
}

.upload-text {
  font-weight: 700;
  color: var(--green-900);
}

.file-chips {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.file-chip {
  background: var(--lemon-soft);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.85rem;
}

.form-feedback {
  min-height: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.form-feedback.success {
  color: var(--green-700);
}

.form-feedback.error {
  color: #a02c1e;
}

/* Honeypot: fuera de la vista de personas reales */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Contacto y pie --- */

.contact-email {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer {
  margin-top: var(--space-section);
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: var(--green-900);
  color: var(--paper);
}

.footer p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- Botón flotante de música --- */

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(28 58 42 / 0.35);
  opacity: 0.55;
}

.music-toggle.playing {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .music-toggle.playing svg {
    animation: music-bob 2.2s ease-in-out infinite;
  }

  @keyframes music-bob {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
  }
}

/* --- Animaciones de scroll (solo con JS y sin reduced-motion) --- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js .reveal.visible {
    opacity: 1;
    transform: none;
  }
}
