/* =============================================================================
   Memorias que Iluminan 2026
   Identidad visual: respeto, paz, sobriedad, cercanía
   ============================================================================= */

:root {
  --navy: #071A2B;
  --navy-2: #102A43;
  --gold: #C9A45C;
  --bronze: #A77B35;
  --cream: #F8F4EC;
  --white: #FFFFFF;
  --gray: #E8E5DE;
  --ink: #1E2933;
  --ink-soft: #4A5560;
  --recibida: #C9A45C;
  --rechazada: #B23A3A;
  --completada: #3D7A5A;
  --shadow: 0 18px 50px rgba(7, 26, 43, 0.18);
  --radius: 18px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

.public-body { padding-bottom: 5.5rem; }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  min-height: 56px;
  padding: 0.45rem 0.9rem;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 164, 92, 0.35);
}
.top-bar-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  min-height: 44px;
}
.top-bar-home img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  border: 1px solid rgba(201, 164, 92, 0.4);
}
.top-bar-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4b56e, var(--gold) 45%, var(--bronze));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar-form.is-static {
  background: transparent;
  color: #d7d0c3;
  font-weight: 500;
  border: 1px solid rgba(201, 164, 92, 0.35);
}
.top-bar-home:hover,
.top-bar-form:hover {
  filter: brightness(1.06);
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: #128C7E;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(7, 26, 43, 0.28);
}
.wa-float:hover { filter: brightness(1.08); color: #fff; }
.wa-float-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25D366;
}
.wa-float-text {
  display: grid;
  line-height: 1.2;
  padding-right: 0.35rem;
}
.wa-float-text strong { font-size: 0.9rem; }
.wa-float-text small { font-size: 0.72rem; opacity: 0.92; }

#formulario,
#programacion,
#evento,
#tienda {
  scroll-margin-top: 80px;
}

.container { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 2rem)); }
.narrow-form { width: min(680px, calc(100% - 2rem)); }

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--bronze);
  margin: 0 0 0.6rem;
}

.gold-line::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0.8rem auto 0;
}

.section { padding: 5rem 0; }
.section-intro {
  color: var(--ink-soft);
  max-width: 42rem;
}

.ornament {
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.4em;
  margin-bottom: 1.5rem;
}

/* ---------- Botones ---------- */
.btn-gold,
.btn-ghost,
.btn-danger,
.btn-text {
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #d4b56e, var(--gold) 45%, var(--bronze));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(167, 123, 53, 0.28);
  text-decoration: none;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-gold:disabled { opacity: 0.65; cursor: wait; transform: none; }

.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--navy);
}
a.btn-ghost,
a.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-danger {
  background: #f8ecec;
  color: var(--rechazada);
  border-color: #e4c4c4;
}

.btn-text {
  background: none;
  border: 0;
  color: var(--bronze);
  min-height: 40px;
  padding: 0.4rem 0.2rem;
}

/* ---------- Hero (video vertical 9:16) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 70% 40%, rgba(201, 164, 92, 0.12), transparent 46%),
    linear-gradient(180deg, #071A2B 0%, #0c2438 55%, #071A2B 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  padding: 1.6rem 0 2.4rem;
}

.hero-copy {
  text-align: center;
  width: min(640px, 100%);
}

.hero-phone {
  width: min(320px, 78vw);
}

.hero-phone-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow:
    0 0 0 6px rgba(7, 26, 43, 0.45),
    0 24px 60px rgba(0, 0, 0, 0.38);
  background: #071A2B;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0.4rem 0 1rem;
}

.hero-lead {
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  color: #e8e2d4;
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}

.hero-event {
  color: var(--gold);
  font-weight: 600;
  margin: -0.6rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.65);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
}

.hero-closed {
  color: var(--gold);
  font-weight: 500;
}

.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.brand-mark {
  margin: 0;
  background: #000;
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  width: min(148px, 28vw);
  aspect-ratio: 1;
}

.brand-mark-osf {
  width: min(176px, 34vw);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* ---------- Emocional ---------- */
.section-emotional {
  background: linear-gradient(180deg, #fbf8f2, var(--cream));
  text-align: center;
}

.emotional-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--navy);
  margin: 0 0 1rem;
}

/* ---------- Condiciones ---------- */
.section-conditions { background: var(--white); }

.section-conditions h2,
.section-form h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 0.8rem;
}

.condition-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.condition-card {
  background: var(--cream);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 8px 24px rgba(7, 26, 43, 0.05);
}

.condition-card h3 {
  margin: 0.6rem 0 0.8rem;
  font-size: 1.25rem;
}

.condition-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.condition-card li { margin-bottom: 0.35rem; }

.condition-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
}

.deadline-date {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

.deadline-note {
  margin: 0;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding-left: 0.8rem;
}

.condition-card-warn { background: #fbf6ea; }

/* ---------- Formulario ---------- */
.section-form { background: var(--cream); }

.section-tienda {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(201, 164, 92, 0.16), transparent 48%),
    linear-gradient(180deg, #071A2B 0%, #102A43 100%);
  color: var(--cream);
}
.section-tienda h2 {
  color: var(--cream);
}
.section-tienda .eyebrow {
  color: var(--gold);
}
.section-tienda .body-copy {
  color: #d7d0c3;
}
.section-tienda .hero-actions {
  justify-content: flex-start;
  margin-top: 1.2rem;
}
.tienda-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.tienda-poster {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  background: #071A2B;
}
.tienda-poster a {
  display: block;
}
.tienda-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.tienda-poster figcaption {
  display: flex;
  justify-content: center;
  padding: 0.95rem 1rem 1.1rem;
  background: rgba(7, 26, 43, 0.65);
}

.modal-exito-card {
  width: min(520px, 100%);
  padding: 1.25rem 1.15rem 1.1rem;
}
.modal-exito-card .ornament {
  margin-bottom: 0.55rem;
}
.modal-exito-card p {
  margin: 0.4rem 0;
}
.exito-tienda {
  display: block;
  margin: 0.75rem auto 0.1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.38);
  box-shadow: 0 12px 28px rgba(7, 26, 43, 0.18);
  background: var(--white);
}
.exito-tienda img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(46vh, 360px);
  margin: 0 auto;
  display: block;
}
.modal-exito-card .modal-actions {
  justify-content: center;
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding-top: 0.85rem;
  margin-top: 0.35rem;
}

.tribute-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}

.form-block {
  border: 1px solid var(--gray);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.2rem;
  margin: 0;
}

.form-block legend {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  padding: 0 0.5rem;
  color: var(--navy);
}

.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select,
.state-select {
  width: 100%;
  border: 1px solid #d8d3c8;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fffcf7;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.state-select:focus {
  outline: 2px solid rgba(201, 164, 92, 0.55);
  border-color: var(--gold);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--rechazada);
  background: #fff8f8;
}

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

.field-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.field-error { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--rechazada); }

.counter-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.char-counter { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--ink-soft); text-align: right; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.closed-panel {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 1.4rem;
  border: 1px solid var(--gray);
}

/* Dropzone */
.dropzone {
  position: relative;
  border: 1.5px dashed rgba(201, 164, 92, 0.7);
  border-radius: 16px;
  padding: 1.4rem;
  background: #fcfaf4;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone.is-drag { border-color: var(--gold); background: #f7efdc; }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.dropzone.is-invalid { border-color: var(--rechazada); }

.dropzone-title { font-weight: 600; margin: 0.4rem 0 0.2rem; }
.gold-text { color: var(--bronze); font-weight: 600; }

.dropzone-preview {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.dropzone-preview[hidden],
.dropzone-empty[hidden] {
  display: none !important;
}

.dropzone-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.upload-progress { margin-top: 1rem; color: var(--ink-soft); }
.progress-bar {
  display: block;
  height: 6px;
  background: var(--gray);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 12%;
  background: var(--gold);
  animation: progressPulse 1.2s ease-in-out infinite;
}

@keyframes progressPulse {
  0% { width: 12%; }
  50% { width: 78%; }
  100% { width: 12%; }
}

.body-copy {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.event-facts {
  background: var(--navy);
  padding: 0 0 2.2rem;
}

.facts-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: -1.2rem;
}

.fact-card {
  background: #102A43;
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  color: var(--cream);
}

.fact-card p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.fact-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.fact-card span {
  display: block;
  margin-top: 0.35rem;
  color: #d7d0c3;
  font-size: 0.88rem;
}

.section-program {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 164, 92, 0.14), transparent 46%),
    linear-gradient(180deg, #071A2B 0%, #102A43 100%);
  color: var(--cream);
}
.section-program h2,
.section-program h3 {
  color: var(--cream);
}
.section-program .eyebrow {
  color: var(--gold);
}
.program-intro {
  color: #d7d0c3;
  max-width: 40rem;
  margin: 0 0 2rem;
}
.program-layout {
  display: grid;
  gap: 2rem;
}
.program-poster {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  background: #071A2B;
}
.program-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.program-item {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201, 164, 92, 0.16);
}
.program-item:last-child {
  border-bottom: 0;
}
.program-hora {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-top: 0.15rem;
}
.program-titulo {
  margin: 0;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.4;
}
.program-lugar {
  margin: 0.2rem 0 0;
  color: #c5d0d8;
  font-size: 0.86rem;
}
.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.section-steps { background: var(--white); }

.steps-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.step-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--gray);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.step-card h3 { margin: 0 0 0.5rem; }
.step-card p { margin: 0; color: var(--ink-soft); }

.section-venue { background: var(--white); }

.venue-grid {
  display: grid;
  gap: 1.4rem;
}

.venue-address {
  font-style: normal;
  margin: 1rem 0 1.2rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  color: var(--navy);
}

.venue-card {
  background: var(--navy);
  color: #e8e2d4;
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
}

.venue-logo {
  margin: 0 0 1rem;
  width: min(168px, 70%);
  aspect-ratio: 1;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.35);
}

.venue-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.venue-card h3 {
  color: var(--cream);
  margin: 0 0 0.6rem;
}

.venue-card a { color: var(--gold); }

.section-faq { background: var(--cream); }

.section-faq details {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}

.section-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.section-faq details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--navy);
  color: #d7d0c3;
  padding: 2.6rem 1rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer p { margin: 0.25rem 0; }

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 1rem;
}

.footer-brands img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(201, 164, 92, 0.28);
}

/* ---------- Modales ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 43, 0.62);
}

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  width: min(520px, 100%);
  box-shadow: var(--shadow);
  text-align: center;
  max-height: 92vh;
  overflow: auto;
}

#error-mensaje {
  white-space: pre-line;
}

.error-lista {
  text-align: left;
  margin: 0.85rem auto 1.3rem;
  padding-left: 1.2rem;
  max-width: 36ch;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.error-lista li + li {
  margin-top: 0.4rem;
}

.modal-wide { width: min(640px, 100%); text-align: left; }
.modal-wide img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.lightbox img {
  position: relative;
  z-index: 2;
  max-height: 86vh;
  max-width: min(920px, 94vw);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox-close { position: relative; z-index: 2; margin-top: 1rem; }

.reveal { animation: fadeUp 0.8s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Login / admin shell ---------- */
.admin-login-body,
.admin-body { background: #f4efe6; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top, rgba(201, 164, 92, 0.18), transparent 36%),
    var(--navy);
}

.login-card {
  width: min(420px, 100%);
  background: var(--cream);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.login-brand {
  margin: 0 auto 1rem;
  width: 132px;
  aspect-ratio: 1;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.35);
}

.login-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-sub { color: var(--ink-soft); margin-top: 0; }
.form-alert {
  background: #fdecec;
  color: #7a2424;
  padding: 0.8rem 1rem;
  border-radius: 10px;
}
.form-success {
  background: #e8f4ec;
  color: #24523a;
  padding: 0.8rem 1rem;
  border-radius: 10px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  padding: 1.6rem 1.2rem 0.4rem;
  width: min(1280px, 100%);
  margin-inline: auto;
}

.admin-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.admin-sub { margin: 0.2rem 0 0; color: var(--ink-soft); }
.admin-user {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
}
.admin-user a { color: var(--bronze); }

.stats-grid {
  width: min(1280px, calc(100% - 1.6rem));
  margin: 1.2rem auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.metrics-head {
  width: min(1280px, calc(100% - 1.6rem));
  margin: 0.4rem auto 0;
}
.metrics-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.metrics-head p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.metrics-grid .stat-card strong { font-size: 1.65rem; }

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray);
}

.stat-card p { margin: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.stat-card strong { font-family: var(--font-serif); font-size: 2rem; }
.stat-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.stat-recibida strong { color: var(--bronze); }
.stat-rechazada strong { color: var(--rechazada); }
.stat-completada strong { color: var(--completada); }

.admin-toolbar {
  width: min(1280px, calc(100% - 1.6rem));
  margin: 0 auto 1rem;
  display: grid;
  gap: 0.8rem;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill {
  border: 1px solid var(--gray);
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 42px;
  cursor: pointer;
  font: inherit;
}
.pill.is-active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.toolbar-fields {
  display: grid;
  gap: 0.6rem;
}
.toolbar-fields input {
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--white);
}

.kanban {
  width: min(1320px, calc(100% - 1.6rem));
  margin: 0 auto 3rem;
  display: grid;
  gap: 1rem;
}

.kanban[data-view="lista"] {
  display: grid;
  grid-template-columns: 1fr;
}

.kanban-col {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 0.9rem;
  border: 1px solid var(--gray);
  min-height: 120px;
}

.kanban-col header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.kanban-col h2 { margin: 0; font-size: 1.15rem; }
.col-count {
  background: var(--navy);
  color: var(--cream);
  border-radius: 99px;
  min-width: 28px;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}

.kanban-list { display: grid; gap: 0.75rem; }
.col-empty {
  display: none;
  margin: 0;
  padding: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.kanban-list:not(:has([data-card]:not([hidden]))) .col-empty { display: block; }

.tribute-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(7, 26, 43, 0.06);
  border: 1px solid #ece7dc;
  min-height: 132px;
}

.card-photo {
  position: relative;
  display: block;
  width: 118px;
  height: 100%;
  min-height: 132px;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #0c2438;
  overflow: hidden;
}
.card-photo img {
  width: 118px;
  height: 132px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.thumb-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(7, 26, 43, 0.78);
  color: #f8f4ec;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
}
.thumb-fallback {
  display: grid;
  place-items: center;
  width: 118px;
  height: 132px;
  color: #d7d0c3;
  font-size: 0.78rem;
}

.card-body { padding: 0.75rem 0.9rem 0.85rem; }
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}
.card-top h3 { margin: 0; font-size: 1.05rem; }
.card-years { margin: 0.15rem 0 0.4rem; color: var(--bronze); font-weight: 600; font-size: 0.9rem; }
.card-quote {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy-2);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin: 0.1rem 0; font-size: 0.8rem; color: var(--ink-soft); }
.card-motivo { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--rechazada); }
.card-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.card-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  align-items: center;
}
.card-action-links .btn-text {
  text-decoration: none;
}
.btn-delete {
  color: var(--rechazada);
}
#btn-exportar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
}

.view-toggle { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.admin-pager {
  width: min(1320px, calc(100% - 1.6rem));
  margin: -1.4rem auto 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}
.admin-pager p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.kanban.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.detalle-foto {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #071A2B;
  border-radius: 14px;
  cursor: zoom-in;
}
.thumb-caption {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-recibida { background: #f7ecd3; color: #8a6420; }
.status-rechazada { background: #f8e3e3; color: var(--rechazada); }
.status-completada { background: #def0e6; color: var(--completada); }

.detail-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.detail-list div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.detail-list dt { color: var(--ink-soft); }

.toast {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  z-index: 70;
}

.empty-filter {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem;
}

body.modal-open { overflow: hidden; }
body.modal-open .wa-float { visibility: hidden; pointer-events: none; }

@media (max-width: 560px) {
  .top-bar-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .wa-float-text small { display: none; }
}

@media (min-width: 720px) {
  .condition-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .dropzone-preview { grid-template-columns: 180px 1fr; align-items: center; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .toolbar-fields { grid-template-columns: 1fr 180px auto auto; }
  .card-actions { grid-template-columns: auto 1fr; align-items: center; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .program-layout { grid-template-columns: minmax(240px, 0.85fr) 1.15fr; align-items: start; }
  .tienda-layout { grid-template-columns: 1fr minmax(260px, 0.95fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .venue-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr min(380px, 36vw);
    align-items: center;
    gap: 3.2rem;
    justify-items: stretch;
    padding: 3.2rem 0;
  }
  .hero-copy {
    text-align: left;
    width: 100%;
  }
  .hero-copy .brand-row { justify-content: flex-start; }
  .hero-copy .gold-line::after { margin: 0.8rem 0 0; }
  .hero-lead { margin-left: 0; }
  .hero-copy .hero-actions { justify-content: flex-start; }
  .hero-phone { width: min(380px, 36vw); }
}

@media (min-width: 1024px) {
  .kanban[data-view="columnas"] { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .admin-header { padding-top: 2rem; }
}

@media (max-width: 1023px) {
  .kanban[data-view="columnas"] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
  }
  .kanban[data-view="columnas"] .kanban-col {
    flex: 0 0 min(86vw, 380px);
    scroll-snap-align: start;
  }
}
