/* In Memoriam — hoja de estilos pública */
:root {
  --paper: #faf7f1;
  --paper-2: #f3eee4;
  --card: #fffdf8;
  --ink: #2b2620;
  --ink-soft: #5d5546;
  --muted: #948a77;
  --gold: #8a6d2f;
  --gold-soft: #b39655;
  --gold-pale: #e8ddc2;
  --line: #e3dbc9;
  --danger: #a03d2e;
  --ok: #3e6b4a;
  --shadow: 0 10px 30px rgba(63, 52, 32, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.wrap-form { max-width: 680px; margin: 2.5rem auto 4rem; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- banda de preview ---------- */
.preview-band {
  background: #423a2a; color: #e8ddc2; text-align: center;
  font-size: .8rem; padding: .35rem .8rem; letter-spacing: .04em;
}
.owner-band {
  background: #6b5a2e; color: #f5eeda; text-align: center;
  font-size: .85rem; padding: .45rem .8rem;
}

/* ---------- cabecera ---------- */
.site-head {
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .04em; white-space: nowrap;
}
.logo .laurel { width: 30px; height: 30px; color: var(--gold); flex: none; }
.main-nav { display: flex; align-items: center; gap: 1.3rem; }
.main-nav > a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.main-nav > a:hover { color: var(--gold); }
.langs { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; color: var(--gold); font-weight: 600;
  letter-spacing: .06em; padding: .35rem .6rem; border: 1px solid var(--gold-pale);
  border-radius: 8px; background: var(--card); display: inline-flex; align-items: center; gap: .3rem;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: .7rem; color: var(--muted); }
.lang-menu[open] summary::after { content: "▴"; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 80;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(43, 38, 32, .18);
  display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0; padding: .4rem; max-height: 60vh; overflow: auto; min-width: 260px;
}
.lang-list a {
  display: flex; align-items: center; gap: .45rem; padding: .38rem .6rem; border-radius: 6px;
  color: var(--ink-soft); text-decoration: none; font-size: .85rem; white-space: nowrap;
}
.lang-list a:hover { background: var(--paper-2); color: var(--gold); }
.lflag { font-size: 1.05em; line-height: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .93rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; line-height: 1.3;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .12s ease;
}
.btn svg { flex: none; }
.btn { font-weight: 600; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(196, 148, 21, .45); outline-offset: 2px; }
.btn-gold {
  background: linear-gradient(180deg, #e3b02e 0%, #c99515 55%, #ab7c0a 100%);
  color: #fff; border-color: #96690a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 18px rgba(171, 124, 10, .38);
  text-shadow: 0 1px 1px rgba(90, 62, 0, .35);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #f0bd39 0%, #d6a01a 55%, #b8860b 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 9px 24px rgba(171, 124, 10, .5);
  transform: translateY(-1px);
}
.btn-line {
  background: #fff; color: #7c5c07; border: 1.5px solid #cda944;
  box-shadow: 0 2px 8px rgba(63, 52, 32, .08);
}
.btn-line:hover {
  border-color: #ab7c0a; color: #96690a; background: #fdf4dc;
  box-shadow: 0 5px 16px rgba(171, 124, 10, .22); transform: translateY(-1px);
}
.btn-line svg { color: #b8860b; }
.btn-big { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; border-radius: 6px; }
.btn-full { width: 100%; }
.btn-danger { color: var(--danger); border-color: #e5c8c0; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-nav { padding: .5rem 1rem; font-size: .88rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- ornamentos ---------- */
.orn-wrap { display: flex; justify-content: center; margin: 1rem 0 1.4rem; }
.orn { width: 220px; color: var(--gold-soft); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 50% -160px, #f0e7d2 0%, rgba(240, 231, 210, 0) 70%),
    var(--paper);
  padding: 4.2rem 0 3.4rem;
  text-align: center;
}
.kicker {
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem;
  color: var(--gold); margin-bottom: 1.1rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin: 0 auto; max-width: 750px; }
.hero-sub { max-width: 640px; margin: 0 auto 1.8rem; color: var(--ink-soft); font-size: 1.06rem; }
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-search { max-width: 560px; margin: 0 auto; }
.hero-search-hint { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.search-form { display: flex; gap: .55rem; }
.search-form input {
  flex: 1; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.search-form input:focus { outline: 2px solid var(--gold-pale); border-color: var(--gold-soft); }

/* ---------- bandas / secciones ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.trusts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 1.9rem 20px; }
.trust { text-align: center; }
.trust-ico { color: var(--gold); margin-bottom: .35rem; }
.trust h3 { margin: 0 0 .25rem; font-size: 1.18rem; }
.trust p { margin: 0; color: var(--muted); font-size: .88rem; }

.sec { padding: 3.6rem 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 1.6rem; }
.sec-sub { text-align: center; color: var(--ink-soft); margin: -0.9rem 0 2rem; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.how-step {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
}
.how-step h3 { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--gold); }
.how-step p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.how-page { grid-template-columns: 1fr; }

.feats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feat { border-left: 2px solid var(--gold-pale); padding: .2rem 0 .2rem 1.1rem; }
.feat h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.feat p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ---------- tarjetas de esquelas ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.mem-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease;
}
.mem-card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 1; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.card-noimg .laurel { width: 46px; height: 46px; color: var(--gold-pale); }
.card-body { padding: .8rem .95rem 1rem; }
.card-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.card-dates { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.card-candles { display: flex; align-items: center; gap: .35rem; color: var(--gold); font-size: .8rem; margin-top: .45rem; }

/* ---------- planes ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 1.5rem; justify-content: center; align-items: start; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.8rem 1.7rem; box-shadow: var(--shadow);
}
.plan-rec { border-color: var(--gold-soft); box-shadow: 0 14px 40px rgba(138, 109, 47, .16); }
.plan-badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fffdf6; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .8rem; border-radius: 20px; white-space: nowrap;
}
.plan-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-align: center; }
.plan-price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; text-align: center; color: var(--gold); margin: .2rem 0 0; }
.plan-once { text-align: center; color: var(--muted); font-size: .82rem; margin-bottom: 1.1rem; }
.plan-feats { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.plan-feats li { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; font-size: .9rem; color: var(--ink-soft); }
.plan-feats svg { color: var(--gold); margin-top: .15rem; flex: none; width: 15px; height: 15px; }
.plan .btn { width: 100%; }
.plan-pick {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem; cursor: pointer; font-weight: 500;
}
.plan-pick:has(input:checked) { border-color: var(--gold); background: #f6efdd; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); padding: .45rem 0; }
.faq summary { cursor: pointer; font-weight: 500; padding: .55rem 0; list-style: none; position: relative; padding-right: 1.6rem; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin: .2rem 0 .8rem; font-size: .93rem; }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(180deg, var(--paper) 0%, #efe7d4 100%); padding: 4rem 0; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .2rem 0 .5rem; }
.cta-final p { color: var(--ink-soft); margin: 0 0 1.5rem; }

/* ---------- página memorial ---------- */
.mem-top {
  background:
    radial-gradient(900px 420px at 50% -130px, #efe6d0 0%, rgba(239, 230, 208, 0) 70%),
    var(--paper);
  padding: 3rem 0 2rem; border-bottom: 1px solid var(--line);
}
.mem-kicker { text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; color: var(--gold); font-weight: 600; margin-bottom: 1.4rem; }
.mem-photo {
  width: 210px; height: 210px; margin: 0 auto 1.4rem; border-radius: 50%;
  overflow: hidden; border: 4px solid var(--card);
  outline: 1px solid var(--gold-pale); box-shadow: var(--shadow); background: var(--paper-2);
}
.mem-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.mem-photo-empty { display: flex; align-items: center; justify-content: center; }
.mem-photo-empty .laurel { width: 74px; height: 74px; color: var(--gold-pale); }
.mem-name { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.mem-dates { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft); margin-top: .3rem; }
.mem-places { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.mem-epitaph {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto 1.2rem;
}
.mem-counts { display: flex; justify-content: center; gap: 1.4rem; color: var(--gold); font-size: .9rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.mem-counts span { display: inline-flex; align-items: center; gap: .4rem; }
.mem-actions { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.moderation-note { color: var(--muted); font-size: .78rem; margin-top: .8rem; }

.mem-body { padding: 2.4rem 20px 3rem; }
.mem-obituary { font-size: 1.05rem; color: var(--ink); }
.mem-obituary p { margin: 0 0 1.1rem; }
.mem-obituary p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.1em; float: left; line-height: .85;
  padding: .06em .12em 0 0; color: var(--gold);
}
.mem-box {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold-soft);
  border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1.8rem 0;
}
.mem-box h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.mem-box p { margin: 0 0 .5rem; color: var(--ink-soft); }
.mem-body h2 { font-size: 1.5rem; margin: 2.2rem 0 1rem; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gal-item { margin: 0; }
.gal-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); display: block; filter: saturate(.92);
  cursor: zoom-in; transition: opacity .15s;
}
.gal-item img:hover { opacity: .88; }
.gal-item figcaption { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.gal-by { font-style: italic; }

.trib { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.trib-head { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-soft); flex-wrap: wrap; }
.trib-head svg { color: var(--gold); flex: none; }
.trib-when { color: var(--muted); font-size: .78rem; margin-left: auto; }
.trib p { margin: .45rem 0 0; color: var(--ink); font-size: .95rem; }
.trib-msg p { font-family: var(--serif); font-size: 1.05rem; }

.share-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.mem-cta-foot { padding: 0 20px 3.5rem; color: var(--muted); }
.mem-cta-foot p { margin-bottom: 1rem; }

/* ---------- modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; }
.modal-back { position: absolute; inset: 0; background: rgba(43, 38, 32, .55); }
.modal {
  position: relative; max-width: 460px; margin: 8vh auto 0; background: var(--card);
  border-radius: 14px; padding: 1.6rem 1.5rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  max-height: 82vh; overflow: auto;
}
.modal h3 { margin: 0 0 1rem; font-size: 1.35rem; display: flex; align-items: center; gap: .5rem; }
.modal h3 svg { color: var(--gold); }
.modal .fld { margin-bottom: .9rem; }
.modal-btns { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }
.modal-note { font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.modal-ok { text-align: center; padding: 1.2rem 0; }
.modal-ok svg { width: 40px; height: 40px; color: var(--ok); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(20, 17, 12, .92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }

/* ---------- formularios ---------- */
.fld { margin-bottom: 1.1rem; }
.fld label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .35rem; color: var(--ink-soft); }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: .68rem .9rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--gold-pale); border-color: var(--gold-soft); }
.fld .invalid { border-color: var(--danger); }
.req { color: var(--danger); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.page-h1 { text-align: center; font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 2.2rem 0 0; }
.page-sub { color: var(--ink-soft); margin-bottom: 2rem; }

.steps-nav { display: flex; justify-content: center; gap: 1.6rem; margin: 1.6rem 0 2rem; flex-wrap: wrap; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: var(--muted); }
.step-dot span {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: .85rem; background: var(--card);
}
.step-dot em { font-style: normal; font-size: .72rem; }
.step-dot.on { color: var(--gold); }
.step-dot.on span { background: var(--gold); border-color: var(--gold); color: #fffdf6; }
.step-dot.done span { border-color: var(--gold-soft); color: var(--gold); }
.step-btns { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.accept { display: flex; gap: .6rem; align-items: flex-start; margin: 1.3rem 0; font-size: .9rem; color: var(--ink-soft); }
.accept input { margin-top: .25rem; }
.review-note {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  background: #f4edda; border: 1px solid var(--gold-pale); color: #6b5a2e;
  border-radius: 8px; padding: .75rem 1rem; font-size: .88rem; margin: 1.2rem 0;
}
.form-error { background: #f7e8e4; border: 1px solid #e0b8ac; color: var(--danger); border-radius: 8px; padding: .7rem 1rem; font-size: .9rem; margin: 1rem 0; }
.ok-note { background: #e9f1e9; border: 1px solid #bdd4c2; color: var(--ok); border-radius: 8px; padding: .7rem 1rem; font-size: .92rem; margin: 1rem 0; }

.photo-drop { border: 1.5px dashed var(--gold-pale); border-radius: 10px; padding: 1.1rem; text-align: center; background: var(--card); }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; margin-top: 1rem; }
.pv { position: relative; }
.pv img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid transparent; display: block; }
.pv.main img { border-color: var(--gold); }
.pv .pv-main-tag { position: absolute; left: 4px; top: 4px; background: var(--gold); color: #fff; font-size: .6rem; padding: .1rem .35rem; border-radius: 4px; }
.pv button {
  position: absolute; right: 4px; top: 4px; background: rgba(43, 38, 32, .75); color: #fff;
  border: 0; border-radius: 50%; width: 20px; height: 20px; font-size: .7rem; cursor: pointer; line-height: 1;
}
.pv .pv-set { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(43,38,32,.6); color: #fff; border: 0; font-size: .62rem; padding: .18rem; cursor: pointer; border-radius: 0 0 6px 6px; }

/* ---------- pedido ---------- */
.order-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; box-shadow: var(--shadow); }
.order-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.order-total { border-bottom: 0; font-size: 1.2rem; }
.order-total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.order-box form { margin-top: 1rem; }

/* ---------- búsqueda ---------- */
.search-count { margin: 1.4rem 0 .4rem; }
.none-found { padding: 2rem 0; }
.none-found .btn { margin-top: .8rem; }

/* ---------- gestión ---------- */
.manage h2 { margin: 2.4rem 0 .8rem; font-size: 1.4rem; }
.man-status { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.man-status.st-published { border-left: 3px solid var(--ok); }
.man-status.st-pending_review { border-left: 3px solid var(--gold-soft); }
.man-status.st-rejected, .man-status.st-pending_payment { border-left: 3px solid var(--danger); }
.man-note { margin-top: .6rem; color: var(--ink-soft); font-size: .92rem; }
.man-links { margin-top: .8rem; font-size: .92rem; word-break: break-all; }
.man-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.man-photo { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .55rem; display: flex; flex-direction: column; gap: .4rem; }
.man-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.main-tag { text-align: center; background: var(--gold); color: #fff; font-size: .7rem; border-radius: 5px; padding: .15rem; }
.man-add { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.pend-list { display: flex; flex-direction: column; gap: .7rem; }
.pend-item { display: flex; gap: .9rem; align-items: center; background: var(--card); border: 1px solid var(--gold-pale); border-radius: 10px; padding: .7rem .9rem; }
.pend-item img { border-radius: 6px; object-fit: cover; }
.pend-info { flex: 1; font-size: .9rem; color: var(--ink-soft); }
.pend-btns { display: flex; gap: .4rem; }
.qr-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }

/* ---------- fechas ---------- */
.date-fld input[type=date], .date-fld input[type=number] { color-scheme: light; }
.date-fld input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .65; }
.year-toggle, .fld label.year-toggle {
  display: flex; align-items: center; gap: .4rem; margin: .4rem 0 0;
  font-size: .8rem; color: var(--muted); cursor: pointer; font-weight: 400;
}
.year-toggle input { width: auto; margin: 0; }
.date-fld.invalid-box input[type=date], .date-fld.invalid-box input[type=number] { border-color: var(--danger); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.blog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.3rem 1.3rem 1.1rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: .4rem;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(63, 52, 32, .12); }
.blog-card h2 { margin: 0; font-size: 1.22rem; line-height: 1.25; }
.blog-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; flex: 1; }
.blog-more { color: var(--gold); font-size: .82rem; font-weight: 500; }
.blog-post { padding-bottom: 3rem; }
.blog-crumb { margin: 1.8rem 0 0; font-size: .88rem; }
.blog-crumb a { text-decoration: none; color: var(--muted); }
.blog-crumb a:hover { color: var(--gold); }
.blog-body { font-size: 1.02rem; color: var(--ink); }
.blog-body h2 { font-size: 1.45rem; margin: 1.8rem 0 .6rem; }
.blog-body h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.blog-body p, .blog-body li { color: var(--ink-soft); }
.blog-body blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  border-left: 3px solid var(--gold-soft); margin: 1.4rem 0; padding: .4rem 1.2rem;
  color: var(--ink-soft); background: var(--card); border-radius: 0 8px 8px 0;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- legales ---------- */
.legal-doc { padding-bottom: 3.5rem; }
.legal-doc h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); font-size: .94rem; }

/* ---------- footer ---------- */
.site-foot { background: #2f2a22; color: #cfc5b0; margin-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.6rem 20px 1.6rem; }
.foot-logo { color: #efe7d4; font-size: 1.25rem; }
.foot-logo .laurel { color: var(--gold-soft); }
.foot-tag { font-size: .85rem; color: #9a917f; max-width: 320px; }
.foot-nav { display: flex; flex-direction: column; gap: .45rem; }
.foot-nav a { color: #cfc5b0; text-decoration: none; font-size: .88rem; }
.foot-nav a:hover { color: #efe7d4; }
.foot-bottom { border-top: 1px solid #453e32; padding: 1rem 20px; font-size: .78rem; color: #9a917f; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .feats-grid, .how-grid { grid-template-columns: repeat(2, 1fr); }
  .trusts { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem 20px 1.3rem; gap: .9rem; align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .langs, .lang-menu { width: 100%; }
  .lang-menu summary { width: 100%; justify-content: space-between; display: flex; }
  .lang-list {
    position: static; width: 100%; min-width: 0; max-height: 45vh;
    box-shadow: none; border: 1px solid var(--line); margin-top: .4rem;
  }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .feats-grid, .how-grid, .plans, .grid2 { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero { padding-top: 2.8rem; }
  .step-dot em { display: none; }
  .search-form { flex-direction: column; }
  .pend-item { flex-direction: column; align-items: flex-start; }
  .trib-when { margin-left: 0; width: 100%; }
}

/* ---------- impresión ---------- */
@media print {
  .site-head, .site-foot, .mem-actions, .mem-share, .mem-cta-foot, .moderation-note, .preview-band { display: none !important; }
  body { background: #fff; }
}
