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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #2c2c2c;
  line-height: 1.7;
  background: #faf8f5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #c4956a;
  color: #fff;
}

.btn-primary:hover {
  background: #b07d55;
}

.btn-secondary {
  background: transparent;
  color: #c4956a;
  border: 1.5px solid #c4956a;
}

.btn-secondary:hover {
  background: #c4956a;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
}

.hero-date {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.ampersand {
  font-style: italic;
  color: #c4956a;
}

.hero-location {
  font-size: 1.1rem;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e0d8;
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  color: #c4956a;
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
}

.navbar nav a {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #c4956a;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #fff;
}

.section h2 {
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #3a3a3a;
  letter-spacing: 1px;
}

/* Story */
.story-text {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.story-text p + p {
  margin-top: 1.5rem;
}

/* Event card */
.event-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.event-item {
  text-align: center;
}

.event-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.event-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #c4956a;
  margin-bottom: 0.4rem;
}

.event-item p {
  font-size: 0.95rem;
  color: #555;
}

.map-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-placeholder iframe {
  display: block;
}

/* Gifts */
.gift-text {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.gift-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gift-item {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #e8e0d8;
}

.gift-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #c4956a;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gift-item p {
  font-size: 1rem;
  color: #3a3a3a;
  margin-bottom: 0.4rem;
  font-family: inherit;
}

@media (max-width: 640px) {
  .gift-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* RSVP */
.section-rsvp {
  background: #f5f0eb;
}

.rsvp-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.google-form {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.google-form iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
}

@media (max-width: 640px) {
  .google-form iframe {
    height: 1000px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 0;
  background: #2c2c2c;
  color: #bbb;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Music player */
.music-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(44, 44, 44, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 14px 8px 10px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.music-btn {
  background: #c4956a;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.music-btn-sm {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
}

.music-btn-sm:hover {
  background: rgba(255, 255, 255, 0.25);
}

.music-btn:hover {
  background: #b07d55;
}

.music-label {
  color: #ddd;
  font-size: 0.8rem;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.music-counter {
  position: fixed;
  bottom: 64px;
  right: 32px;
  z-index: 199;
  color: #aaa;
  font-size: 0.7rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .music-control {
    bottom: 16px;
    right: 12px;
    padding: 6px 10px 6px 8px;
    gap: 4px;
  }
  .music-label {
    max-width: 80px;
    font-size: 0.7rem;
  }
  .music-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .music-btn-sm {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
  .music-counter {
    right: 20px;
    font-size: 0.6rem;
  }
}

/* Music hint */
.music-hint {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 199;
  background: rgba(44, 44, 44, 0.85);
  backdrop-filter: blur(8px);
  color: #fffb;
  font-size: 0.85rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: hintPulse 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .navbar .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar nav {
    gap: 1rem;
  }

  .navbar nav a {
    font-size: 0.85rem;
  }

  .section {
    padding: 3rem 0;
  }

  .music-hint {
    right: 16px;
    font-size: 0.75rem;
    padding: 8px 14px;
  }
}

/* =========================================================
   Sube tus fotos · QR · subidor · galeria · moderacion
   ========================================================= */

.section-fotos {
  background: #fff;
}

.fotos-wrap {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.fotos-info {
  color: #555;
  font-size: 1.05rem;
}

.fotos-info .btn {
  margin: 0.4rem 0.5rem 0 0;
}

.fotos-steps {
  margin: 0.5rem 0 1.5rem 1.2rem;
}

.fotos-steps li {
  margin-bottom: 0.4rem;
}

/* QR compartido */
.qr-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-box {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1.5px solid #e8e0d8;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.qr-box canvas,
.qr-box img {
  width: 150px !important;
  height: 150px !important;
  border-radius: 4px;
}

.qr-actions {
  margin: 0.85rem auto 0;
  width: 170px;
  display: flex;
  gap: 0.5rem;
}

.qr-actions .btn {
  flex: 1 1 0;
  padding: 0.55rem 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.qr-caption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.9rem;
  word-break: break-all;
}

.link-strong {
  color: #c4956a;
  font-weight: 600;
}

.qr-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: rgba(44, 44, 44, 0.95);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.qr-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .fotos-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Paginas dedicadas (subir / galeria / admin) --- */
.subir-body,
.galeria-body {
  background: #faf8f5;
  min-height: 100vh;
}

.subir-header {
  text-align: center;
  padding: 2rem 1.25rem 1rem;
}

.subir-header h1 {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #3a3a3a;
  margin: 0.75rem 0 0.25rem;
}

.subir-header p {
  color: #888;
  font-size: 0.95rem;
}

.subir-back {
  display: inline-block;
  color: #c4956a;
  text-decoration: none;
  font-size: 0.9rem;
}

.subir-back:hover {
  text-decoration: underline;
}

.subir-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.card {
  background: #fff;
  border: 1.5px solid #e8e0d8;
  border-radius: 14px;
  padding: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #3a3a3a;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.muted {
  color: #888;
  font-size: 0.95rem;
  text-align: center;
}

.small {
  font-size: 0.82rem;
}

.hint {
  color: #999;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  text-align: center;
}

.error {
  color: #b23b3b;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* Pin */
.pin-input {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #e8e0d8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0.85rem;
  text-align: center;
  letter-spacing: 2px;
}

.pin-input:focus {
  outline: none;
  border-color: #c4956a;
}

/* Botones extra */
.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-danger {
  background: #b23b3b;
  color: #fff;
}

.btn-danger:hover {
  background: #9a3232;
}

/* Dropzone */
.dropzone {
  text-align: center;
  border: 2px dashed #e0d5c8;
  border-radius: 12px;
  padding: 1.75rem 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.dropzone.dragover {
  background: #fdf6ef;
  border-color: #c4956a;
}

.dropzone-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

/* Previews */
.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f1ece6;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-del:hover {
  background: #b23b3b;
}

/* Progreso */
.progress {
  height: 10px;
  background: #eee3d8;
  border-radius: 50px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress > div {
  height: 100%;
  width: 0%;
  background: #c4956a;
  border-radius: 50px;
  transition: width 0.2s;
}

#progressText {
  margin-top: 0.35rem;
}

/* Resultado */
.result {
  margin-top: 1rem;
}

.res-line {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  text-align: center;
}

.res-ok {
  background: #eef7ee;
  color: #2f6b2f;
}

.res-err {
  background: #fbeeee;
  color: #b23b3b;
}

/* Banner admin */
.banner {
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.banner-ok { background: #eef7ee; color: #2f6b2f; }
.banner-err { background: #fbeeee; color: #b23b3b; }

/* Galeria */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.galeria-item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f1ece6;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.foto-single {
  text-align: center;
}

.foto-single img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.25rem;
}

/* Admin */
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.25rem;
}

.admin-h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c4956a;
  margin: 1.75rem 0 1rem;
  letter-spacing: 0.5px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 1rem;
}

.admin-head .admin-h2 {
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.admin-item {
  background: #fff;
  border: 1.5px solid #e8e0d8;
  border-radius: 12px;
  overflow: hidden;
}

.admin-item > a {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f1ece6;
}

.admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-meta {
  padding: 0.5rem 0.6rem 0;
  font-size: 0.72rem;
  color: #999;
  display: flex;
  flex-direction: column;
}

.admin-orig {
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
}

.admin-actions form {
  flex: 1;
}

.admin-actions .btn {
  width: 100%;
}
