/* ============================================================
   Harriet Turner — Estilos globales
   ============================================================ */

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

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-dim:    #7a5f28;
  --gold-glow:   rgba(201,168,76,0.15);
  --black:       #080808;
  --black-soft:  #111111;
  --black-card:  #141414;
  --black-border:#1e1e1e;
  --white-dim:   #ccc9be;
  --white-faint: #6a6760;
  --font-serif:  'Cormorant Garamond', serif;
  --font-sans:   'Montserrat', sans-serif;
  --radius:      2px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid var(--black-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.3));
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 300;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  transition: color var(--transition);
}
.site-nav a:hover,
.site-nav a.active { color: var(--gold-light); }

/* Acceso admin — ícono discreto */
.nav-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  color: rgba(201,168,76,.35) !important;
  transition: color var(--transition);
  vertical-align: middle;
  margin-left: 14px;
}
.nav-admin svg {
  width: 18px;
  height: 18px;
}
.nav-admin:hover {
  color: var(--gold) !important;
  background: transparent !important;
}

/* Paginador compartido del panel admin */
.admin-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.admin-pager__btn {
  padding: 6px 16px;
  border: 1px solid var(--black-border);
  color: var(--white-faint);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition);
}
.admin-pager__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.admin-pager__info {
  font-size: .78rem;
  color: var(--white-faint);
  margin-left: auto;
}

.nav-donate {
  border: 1px solid var(--gold-dim);
  color: var(--gold) !important;
  padding: 6px 16px !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-donate:hover {
  background: var(--gold);
  color: var(--black) !important;
  border-color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all var(--transition);
}

/* ── MAIN ────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - 68px - 180px); }

/* ── HERO (homepage) ─────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--black-border);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, #170f02, transparent 70%);
  pointer-events: none;
}
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-ornament span {
  display: block;
  width: 60px;
  height: 1px;
}
.hero-ornament .l { background: linear-gradient(to right, transparent, var(--gold-dim)); }
.hero-ornament .r { background: linear-gradient(to left,  transparent, var(--gold-dim)); }
.hero-ornament .d {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  position: relative;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--white-faint);
  letter-spacing: 0.08em;
  position: relative;
}

/* ── NOTICIAS GRID ───────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.section-rule {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin-bottom: 40px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.post-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card__img img { transform: scale(1.04); }

.post-card__img--placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #111 0%, #1a1500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card__img--placeholder svg {
  width: 40px;
  opacity: 0.2;
}

.post-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__date {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}
.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white-dim);
  line-height: 1.35;
  margin-bottom: 12px;
}
.post-card__excerpt {
  font-size: 0.85rem;
  color: var(--white-faint);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.post-card__link {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.post-card__link:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 24px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  width: auto;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  border: 1px solid var(--black-border);
  background: #121212;
  color: var(--white-faint);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}
.pagination a:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  background: #1c1913;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.pagination span.current {
  border-color: var(--gold) !important;
  background: var(--gold) !important;
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
  transform: none;
}

/* ── SINGLE POST ─────────────────────────────────────── */
.post-single {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.post-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 40px;
  transition: color var(--transition);
}
.post-single__back:hover { color: var(--gold); }
.post-single__date {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.post-single__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 32px;
}
.post-single__rule {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin-bottom: 32px;
}
.post-single__entradilla {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--black-border);
}
.post-single__img {
  margin-bottom: 40px;
  border: 1px solid var(--black-border);
}
.post-single__content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--white-dim);
}
.post-single__content h2,
.post-single__content h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-light);
  margin: 40px 0 16px;
}
.post-single__content h2 { font-size: 1.7rem; }
.post-single__content h3 { font-size: 1.3rem; }
.post-single__content h4 {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 32px 0 12px;
}
.post-single__content strong,
.post-single__content b {
  font-weight: 700;
  color: #e8e3d8;
}
.post-single__content p  { margin-bottom: 20px; }
.post-single__content ul,
.post-single__content ol { margin: 0 0 20px 24px; }
.post-single__content li { margin-bottom: 6px; }
.post-single__content a  { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }
.post-single__content a:hover { color: var(--gold-light); }
.post-single__content blockquote {
  border-left: 2px solid var(--gold-dim);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--white-faint);
  font-style: italic;
}

/* Navegación anterior / siguiente */
.nota-nav {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.nota-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--black-border);
  padding-top: 32px;
}
.nota-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.nota-nav__item:hover {
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.04);
}
.nota-nav__item--next { text-align: right; }
.nota-nav__label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.nota-nav__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .nota-nav__inner { grid-template-columns: 1fr; }
  .nota-nav__item--next { text-align: left; }
}

/* ── STATIC PAGES ────────────────────────────────────── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.page-header {
  margin-bottom: 48px;
}
.page-header__label {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.page-header__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.page-header__rule {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}
.page-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--white-dim);
}
.page-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-light);
  font-size: 1.5rem;
  margin: 40px 0 14px;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 6px;
}
.page-content h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-light);
  font-size: 1.3rem;
  margin: 36px 0 12px;
}
.page-content p  { margin-bottom: 18px; }
.page-content ul { margin: 0 0 18px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--gold); font-weight: 400; }

/* Links page */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--black-border);
  background: var(--black-card);
  transition: border-color var(--transition);
  text-decoration: none;
}
.link-item:hover { border-color: var(--gold-dim); }
.link-item__icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-item__icon svg { width: 16px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.link-item__text { font-size: 0.85rem; color: var(--white-dim); }
.link-item__sub  { font-size: 0.7rem; color: var(--white-faint); margin-top: 2px; }

/* Contact form */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold-dim); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* Donate */
.donate-box {
  max-width: 480px;
  border: 1px solid var(--gold-dim);
  padding: 40px;
  text-align: center;
}
.donate-box p { color: var(--white-faint); margin-bottom: 28px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 13px 32px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  z-index: -1;
}
.btn-primary:hover { color: var(--black); border-color: var(--gold); box-shadow: 0 0 24px var(--gold-glow); }
.btn-primary:hover::after { transform: scaleX(1); }

/* Deshabilitado: sin relleno al pasar el cursor y sin brillo */
.btn:disabled,
.btn[aria-disabled="true"] {
  border-color: var(--black-border);
  color: var(--white-faint);
  cursor: not-allowed;
  box-shadow: none;
  opacity: .65;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  border-color: var(--black-border);
  color: var(--white-faint);
  box-shadow: none;
}
.btn:disabled::after,
.btn:disabled:hover::after { transform: scaleX(0); }

.btn-sm { padding: 9px 20px; font-size: 0.62rem; line-height: 1; height: 36px; box-sizing: border-box; }
.btn-secondary { border: 1px solid var(--black-border); color: var(--white-dim); }
.btn-secondary:hover { border-color: var(--gold-dim); color: var(--gold-light); }
.btn-active { border-color: var(--gold); color: var(--gold); }
.btn-danger { border: 1px solid #6b1a1a; color: #c97070; }
.btn-danger:hover { color: var(--black); border-color: #c97070; }
.btn-danger::after { content: ''; position: absolute; inset: 0; background: #a03030; transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); z-index: -1; }
.btn-danger:hover::after { transform: scaleX(1); }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--black-border);
  padding: 48px 24px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo { width: 44px; opacity: 0.7; margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-nav a { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-faint); }
.footer-nav a:hover { color: var(--gold); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--black-border);
  color: var(--white-faint);
  transition: border-color var(--transition), color var(--transition);
}
.footer-social a:hover { border-color: var(--gold-dim); color: var(--gold); }
.footer-social svg { width: 14px; height: 14px; }
.footer-copy {
  font-size: 0.68rem;
  color: var(--white-faint);
  letter-spacing: 0.06em;
}

/* ── ADMIN ───────────────────────────────────────────── */
.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--black-border);
}
.admin-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.admin-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  border-bottom: 1px solid var(--black-border);
  padding: 10px 14px;
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--black-border);
  color: var(--white-dim);
  vertical-align: middle;
}
.admin-table__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 20px;
}
.badge-on  { background: rgba(100,180,60,0.15); color: #88cc66; border: 1px solid rgba(100,180,60,0.3); }
.badge-off { background: rgba(150,100,50,0.15); color: #aa8855; border: 1px solid rgba(150,100,50,0.3); }

/* Admin form */
.admin-form { max-width: 760px; }
.admin-form .form-group label { color: var(--gold-dim); }
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { border-color: var(--gold-dim); }
.admin-form textarea { min-height: 120px; resize: vertical; }
.admin-form select { appearance: none; cursor: pointer; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.editor-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid var(--black-border);
  background: #101010;
  overflow-x: auto;
  scrollbar-width: none;
}
.editor-toolbar::-webkit-scrollbar { display: none; }

.editor-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  font-family: var(--font-sans);
  width: 34px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.editor-toolbar__btn:hover,
.editor-toolbar__btn:focus {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  outline: none;
}

.editor-toolbar__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Botón dedicado H2 — más ancho para el texto "H2" */
.editor-toolbar__btn--h2 {
  width: 40px;
  font-family: var(--font-serif);
  font-size: .9rem;
  letter-spacing: .02em;
}
.editor-toolbar__btn--h2 svg {
  width: 28px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

/* Selector de formato de bloque (Párrafo / Título 1-3) */
.editor-toolbar .editor-toolbar__select {
  height: 32px;
  width: auto;
  min-width: 106px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0 8px;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  transition: border-color var(--transition), color var(--transition);
}
.editor-toolbar .editor-toolbar__select:hover,
.editor-toolbar .editor-toolbar__select:focus { border-color: var(--gold); color: var(--gold); }
.editor-toolbar .editor-toolbar__select option { background: #101010; color: var(--gold-light); }

.editor-surface {
  min-height: 300px;
  width: 100%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition);
}

.editor-surface:focus {
  border-color: var(--gold-dim);
}

.editor-surface p,
.editor-surface ul,
.editor-surface ol,
.editor-surface blockquote,
.editor-surface h2,
.editor-surface h3,
.editor-surface h4 {
  margin-bottom: 16px;
}
/* Jerarquía visual de encabezados en el editor */
.editor-surface h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 6px;
}
.editor-surface h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
}
.editor-surface h4 {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.editor-surface ul,
.editor-surface ol {
  padding-left: 22px;
}

.editor-surface a {
  color: var(--gold);
  text-decoration: underline;
}

.editor-surface strong,
.editor-surface b {
  font-weight: 700;
  color: #fff;
}

.editor-surface em,
.editor-surface i {
  font-style: italic;
}

.editor-source {
  display: none;
}

/* Editor TinyMCE override */
.tox-tinymce { border-color: var(--black-border) !important; }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--black);
}
.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  padding: 48px 40px;
}
.login-logo { display: block; width: 48px; margin: 0 auto 20px; }
.login-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 32px;
}
.alert {
  padding: 12px 16px;
  font-size: 0.8rem;
  margin-bottom: 24px;
  border-left: 2px solid;
}
.alert-error { border-color: #a03030; background: rgba(160,48,48,0.1); color: #c97070; }
.alert-success { border-color: var(--gold-dim); background: rgba(201,168,76,0.08); color: var(--gold); }
/* Aviso neutro: informa de un estado temporal, no de un fallo del visitante */
.alert-aviso { border-color: #4a4a4a; background: rgba(255,255,255,0.04); color: var(--white-dim); }
.alert--mt   { margin-top: 24px; }
.alert--left { text-align: left; }

/* ── DASHBOARD LAYOUT ───────────────────────────────── */
:root {
  --dash-sidebar-w: 226px;
  --dash-topbar-h:  60px;
}

body.admin-body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar */
.dash-sidebar {
  width: var(--dash-sidebar-w);
  flex-shrink: 0;
  background: #0b0b0b;
  border-right: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  scrollbar-width: thin;
  transition: transform 0.25s ease;
}
.dash-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--black-border);
  flex-shrink: 0;
}
.dash-brand-logo {
  width: 28px;
  filter: drop-shadow(0 0 5px rgba(201,168,76,0.35));
}
.dash-brand-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
}
.dash-sidebar__nav {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-left: 2px solid transparent;
}
.dash-nav-item:hover {
  background: rgba(255,255,255,0.03);
  color: var(--white-dim);
  border-left-color: var(--gold-dim);
}
.dash-nav-item--active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.07);
  border-left-color: var(--gold);
}
.dash-nav-item--active:hover { color: var(--gold-light); }
.dash-nav-item--danger { color: #7a4040; }
.dash-nav-item--danger:hover { color: #c97070; background: rgba(160,48,48,0.08); border-left-color: #6b1a1a; }
.dash-nav-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dash-nav-icon svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dash-nav-label { flex: 1; }
.dash-sidebar__footer {
  border-top: 1px solid var(--black-border);
  padding: 8px 0;
  flex-shrink: 0;
}

/* Content */
.dash-content {
  flex: 1;
  margin-left: var(--dash-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.dash-topbar {
  height: var(--dash-topbar-h);
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid var(--black-border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0; z-index: 100;
  gap: 16px;
  flex-shrink: 0;
}
.dash-topbar__left  { display: flex; align-items: center; gap: 14px; }
.dash-topbar__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer; color: var(--white-faint);
  padding: 4px; flex-shrink: 0; align-items: center;
}
.dash-menu-btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round;
}
.dash-menu-btn:hover { color: var(--gold); }
.dash-topbar__title {
  font-family: var(--font-serif);
  font-weight: 300; font-size: 1.2rem;
  letter-spacing: 0.08em; color: var(--gold-light);
}
.dash-user {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white-faint);
  padding-right: 14px; border-right: 1px solid var(--black-border);
}
.dash-user svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Main content */
.dash-main {
  flex: 1;
  padding: 28px 28px 60px;
  max-width: 100%;
}

/* Stat cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.dash-stat {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  padding: 20px 22px;
  transition: border-color var(--transition);
  display: flex; flex-direction: column; gap: 10px;
}
.dash-stat:hover { border-color: var(--gold-dim); }
.dash-stat__label {
  font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--white-faint);
}
.dash-stat__value {
  font-family: var(--font-serif);
  font-size: 2.4rem; font-weight: 300;
  color: var(--gold-light); line-height: 1;
}
.dash-stat__icon svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--gold-dim);
  stroke-width: 1.5; stroke-linecap: round; opacity: 0.6;
}

/* Overlay */
.dash-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 190;
}
.dash-overlay--visible { display: block; }

/* Section header */
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.dash-section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 300;
  color: var(--gold-light); letter-spacing: 0.1em;
}

/* Override inside dashboard */
body.admin-body .admin-wrap   { max-width: none; padding: 0; }
body.admin-body .admin-form   { max-width: 740px; }
body.admin-body .admin-header { display: none; }

/* Table scroll wrapper */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Fuentes admin: fila label + url */
.fuente-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.fuente-row input {
  flex: 1;
  min-width: 0;
}
.fuente-row input[type="url"] {
  flex: 1.4;
}
.fuente-remove {
  background: none;
  border: 1px solid var(--black-border);
  color: var(--white-faint);
  border-radius: 4px;
  padding: 5px 11px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}
.fuente-remove:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* Fuentes públicas al final de la nota */
.nota-fuentes {
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--black-border);
}
.nota-fuentes__titulo {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: .6em;
}
.nota-fuentes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nota-fuentes li {
  margin-bottom: .35em;
  font-size: .85rem;
}
.nota-fuentes a {
  color: var(--gold-dim);
  text-decoration: underline;
  word-break: break-all;
}
.nota-fuentes a:hover {
  color: var(--gold);
}
figure.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.6em 0;
}
figure.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
/* En el editor, el iframe no captura clics para no bloquear el cursor */
.editor-surface figure.video-embed iframe {
  pointer-events: none;
}
/* Botón borrar video */
figure.video-embed .video-embed-delete {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}
figure.video-embed:hover .video-embed-delete {
  opacity: 1;
}

/* Cita destacada en notas */
blockquote.nota-cita {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: 14px 20px;
  background: rgba(201,168,76,0.06);
}
blockquote.nota-cita p { margin: 0; }
blockquote.nota-cita p.cita-texto {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

/* Donations split layout */
.donations-split {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 24px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    border-bottom: 1px solid var(--black-border);
    padding: 16px 0;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 24px; }

  .nav-donate { padding: 10px 24px !important; display: block; width: fit-content; }

  .posts-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .donate-box { padding: 28px 20px; }
  .login-box  { padding: 36px 24px; }
  .donations-split { grid-template-columns: 1fr; }
}

/* ── DASHBOARD RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .dash-sidebar       { transform: translateX(-100%); }
  .dash-sidebar--open { transform: translateX(0); }
  .dash-content       { margin-left: 0; }
  .dash-menu-btn      { display: flex; }
  .dash-main          { padding: 20px 16px 48px; }
  .dash-topbar        { padding: 0 16px; }
  .dash-stats         { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-topbar__title { font-size: 1rem; }
  .dash-user { display: none; }
  .dash-main { padding: 16px 12px 40px; }
  .dash-section-header { flex-direction: column; align-items: flex-start; }
}

/* ── FAB (botones flotantes móvil) ───────────────────── */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 500;
}
.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(0,0,0,0.55);
  transition: background 0.2s, border-color 0.2s;
}
.fab-btn:hover { background: rgba(201,168,76,0.13); border-color: var(--gold); }
.fab-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* scroll-to-top: oculto hasta hacer scroll */
.fab-btn--top {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s;
}
.fab-btn--top.fab-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Botón menú: solo visible en móvil */
.fab-btn--menu { display: none; }
@media (max-width: 768px) { .fab-group:not(.fab-group--admin) .fab-btn--menu { display: flex; } }
@media (max-width: 900px) { .fab-group--admin .fab-btn--menu { display: flex; } }

/* ── Ojo para campo de contraseña ────────────────────── */
.input-eye-wrap { position: relative; }
.input-eye-wrap input { padding-right: 44px !important; }
.input-eye-btn {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42px;
  background: none; border: none;
  color: var(--white-faint);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.input-eye-btn:hover { color: var(--gold); }
.input-eye-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── UTILIDADES (CSP: elimina unsafe-inline en style-src) ────── */

/* Botón ancho completo */
.btn--full { width: 100%; justify-content: center; }

/* Código inline */
code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 3px; font-size: .9em; }

/* Texto de ayuda bajo campos */
.form-help { color: var(--white-faint); font-size: .8rem; margin-top: 6px; line-height: 1.5; }

/* Formulario inline (display:inline para forms en áreas de acciones) */
.form-inline { display: inline; }

/* display:contents (logout en header admin) */
.d-contents { display: contents; }

/* Alturas de textarea */
.textarea-xs { min-height: 72px  !important; }
.textarea-sm { min-height: 80px  !important; }
.textarea-md { min-height: 100px !important; }
.textarea-lg { min-height: 140px !important; }

/* Form group sin margen inferior */
.form-group--mb0 { margin-bottom: 0; }

/* Form group inline (checkbox + label) */
.form-group--inline { display: flex; align-items: center; gap: 12px; }
.form-group--inline label { margin: 0; cursor: pointer; }
.form-group--inline input[type="checkbox"],
.form-group--inline input[type="radio"]   { width: auto; }

/* Admin form sin max-width */
.admin-form--full { max-width: none; }

/* Admin table: acciones sin wrapping */
.admin-table__actions--nowrap { flex-wrap: nowrap; gap: 6px; }

/* Tabla: helpers de celda */
.td-center { text-align: center; }
.td-muted  { color: var(--white-faint); }
.td-sm     { font-size: .8rem; color: var(--white-faint); }
.td-nowrap { white-space: nowrap; }

/* Vacío en tablas */
.td-empty { text-align: center; color: var(--white-faint); padding: 32px; }

/* Visitas */
.visitas-num         { font-variant-numeric: tabular-nums; font-size: .85rem; }
.visitas-num--active { color: var(--gold); }

/* Barra de orden/filtro en admin/index */
.admin-order-bar   { display: flex; gap: 8px; align-items: center; }
.admin-order-label { font-size: .8rem; color: var(--white-faint); }

/* Texto vacío */
.empty-state { color: var(--white-faint); }

/* Reglas de contraseña */
.pwd-rules    { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pwd-rules li { font-size: .72rem; color: var(--white-faint); }

/* Intro en change-password */
.pwd-intro { color: var(--white-faint); margin-bottom: 20px; text-align: center; }

/* Login — enlace volver al sitio */
.login-back { display: block; text-align: center; margin-top: 22px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white-faint); text-decoration: none; transition: color .2s; }
.login-back:hover { color: var(--gold); }

/* Texto dorado en label de captcha */
.captcha-gold { color: var(--gold); }

/* Label: texto opcional / requerido */
.label-opt { color: var(--white-faint); font-weight: 300; }
.label-req { color: var(--gold); font-size: .8rem; }

/* Texto resaltado en helpers */
.text-highlight { color: var(--white-main, #e8e3d8); }

/* Logout btn en header admin */
.logout-btn { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; }

/* Encabezados de sección en admin */
.admin-section-h      { font-size: 1.1rem; margin: 0 0 20px; color: var(--gold); font-weight: 300; }
.admin-section-h--mt  { margin-top: 32px; }
.admin-section-h--smb { margin-bottom: 6px; }

/* Tarjetas con borde sólido (donations, links panel) */
.admin-card    { border: 1px solid var(--black-border); padding: 22px; background: var(--black-card); }
.admin-card h2 { font-family: var(--font-serif); font-weight: 300; color: var(--gold-light); margin-bottom: 18px; font-size: 1.1rem; }

/* Tarjeta punteada (agregar nuevo enlace) */
.admin-card--dashed    { border: 1px dashed var(--gold-dim); padding: 18px; background: rgba(201,168,76,0.03); margin-top: 18px; }
.admin-card--dashed h3 { font-family: var(--font-serif); font-weight: 300; color: var(--gold-light); margin-bottom: 14px; }

/* Lista sortable (admin/links) */
.links-sortable { display: flex; flex-direction: column; gap: 14px; }

/* Tarjeta de enlace en admin */
.link-card           { border: 1px solid var(--black-border); background: var(--black-card); padding: 16px 18px; }
.link-card__header   { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.link-card__drag     { cursor: grab; color: var(--white-faint); flex-shrink: 0; user-select: none; }
.link-card__active   { display: flex; align-items: center; gap: 8px; color: var(--white-dim); font-size: .85rem; margin: 0; cursor: pointer; }
.link-card__active   input[type="checkbox"] { width: auto; }
.link-card__active--spaced { margin-top: 14px; }

/* Mensajes — barra de filtros */
.msg-filter-bar         { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.msg-filter-btn         { padding: 6px 14px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--black-border); text-decoration: none; color: var(--white-faint); background: transparent; }
.msg-filter-btn--active { color: var(--black); background: var(--gold); }
.msg-unread-badge       { background: var(--gold); color: var(--black); border-radius: 10px; padding: 0 6px; font-size: .7rem; margin-left: 4px; }

/* Mensajes — panel de detalle */
.msg-detail             { border: 1px solid var(--gold-dim); padding: 24px 28px; background: var(--black-card); margin-bottom: 28px; }
.msg-detail__header     { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.msg-detail__id         { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px; }
.msg-detail__name       { font-size: 1rem; color: var(--white, #fff); margin-bottom: 2px; font-weight: 400; }
.msg-detail__email      { color: var(--white-faint); font-size: .85rem; }
.msg-detail__meta       { text-align: right; font-size: .8rem; color: var(--white-faint); }
.msg-detail__ip         { margin-top: 2px; }
.msg-detail__body       { border-top: 1px solid var(--black-border); padding-top: 16px; line-height: 1.85; color: var(--white-dim); white-space: pre-wrap; font-size: .9rem; }
.msg-detail__actions    { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--black-border); flex-wrap: wrap; }
.msg-detail__back       { margin-left: auto; }

/* Mensajes — filas de tabla */
.tr-open           { background: #161208; }
.td-name           { white-space: nowrap; }
.td-name--unread   { font-weight: 500; color: var(--white, #fff); }
.td-name--read     { font-weight: 300; color: var(--white-dim); }
.td-email          { color: var(--white-faint); font-size: .85rem; }
.td-preview        { max-width: 320px; }
.td-preview a      { color: var(--white-dim); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-date           { white-space: nowrap; color: var(--white-faint); font-size: .82rem; }
.td-date__time     { font-size: .76rem; }
.unread-dot        { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: middle; flex-shrink: 0; }

/* Donaciones — lista y tarjetas (admin) */
.donations-list        { display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.donation-card         { border: 1px solid var(--black-border); padding: 14px; background: #101010; }
.donation-card__header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.donation-card__ref    { color: var(--gold-light); font-weight: bold; }
.donation-card__status { font-size: .8rem; color: var(--white-faint); }
.donation-card__body   { font-size: .9rem; line-height: 1.7; }
.donation-card__email  { color: var(--white-faint); }
.donation-card__amount { margin-top: 6px; }
.donation-card__date   { font-size: .8rem; color: var(--white-faint); margin-top: 6px; }

/* Donaciones — página pública */
.donate-wrap            { display: flex; justify-content: center; padding-top: 80px; }
.donate-wrap .donate-box { max-width: 640px; width: 100%; }
.donate-logo            { width: 52px; margin: 0 auto 20px; opacity: .8; }
.donate-title           { font-size: 1.6rem; margin-bottom: 16px; }
.donate-amounts         { display: flex; flex-wrap: wrap; gap: 10px; }
.donate-amount-label    { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold-dim); padding: 10px 14px; cursor: pointer; }
.donate-amount-label input[type="radio"] { width: auto; }
.donate-form            { max-width: none; margin-top: 28px; text-align: left; }

/* Intro en páginas públicas */
.page-intro { margin-bottom: 28px; color: var(--white-faint); max-width: 620px; }

/* Honeypot (formulario de contacto) */
.field-honeypot { position: absolute; left: -9999px; opacity: 0; }

/* SEO — contador de caracteres */
.seo-char-count { float: right; font-weight: 400; font-size: .8rem; color: var(--white-faint); }

/* Input con prefijo (@twitter) */
.input-prefix-group  { display: flex; align-items: center; }
.input-prefix        { padding: 0 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-right: none; border-radius: 6px 0 0 6px; color: var(--white-faint); line-height: 40px; font-size: .9rem; white-space: nowrap; }
.input-suffix-rounded { border-radius: 0 6px 6px 0 !important; flex: 1; }

/* Input monoespaciado (GA, GSC) */
.input-mono { font-family: monospace; }

/* OG Image preview en admin/seo */
.og-preview-box   { margin-bottom: 20px; }
.og-preview-label { font-size: .8rem; color: var(--white-faint); margin: 0 0 8px; }
.og-preview-img   { max-width: 320px; width: 100%; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); }
.og-warning       { margin-bottom: 20px; padding: 14px 20px; background: rgba(255,200,0,.06); border: 1px solid rgba(255,200,0,.15); border-radius: 6px; }
.og-warning p     { font-size: .85rem; color: var(--white-faint); margin: 0; }

/* Site — logo row */
.site-logo-row      { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.site-logo-caption  { font-size: .8rem; color: var(--white-faint); margin: 0 0 8px; }
.site-logo-preview  { max-height: 80px; max-width: 220px; object-fit: contain; background: rgba(255,255,255,.04); border-radius: 6px; padding: 12px; border: 1px solid rgba(255,255,255,.1); }
.site-favicon-col   { flex: 1; min-width: 220px; }
.site-favicon-preview { width: 32px; height: 32px; object-fit: contain; background: rgba(255,255,255,.04); border-radius: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.1); }

/* Footer admin — hint + vista previa copyright */
.admin-footer-hint    { font-size: .85rem; color: var(--white-faint); margin: -12px 0 24px; }
.admin-icon-inline    { vertical-align: middle; margin-right: 6px; }
.footer-preview-box   { margin: 0 0 32px; padding: 16px 20px; background: rgba(255,255,255,.04); border-radius: 8px; border: 1px solid rgba(255,255,255,.08); }
.footer-preview-label { font-size: .8rem; color: var(--white-faint); margin: 0 0 8px; }
.footer-preview-text  { font-size: .9rem; margin: 0; color: var(--white-dim); }

/* Editor — preview imagen destacada */
.editor-img-preview { max-height: 140px; border: 1px solid var(--black-border); }

/* Users — último login */
.user-last-login { font-size: .75rem; color: var(--white-faint); }

/* Post card — enlace de tarjeta completo */
.post-card__link-cover { color: inherit; text-decoration: none; }

/* Botón con margen izquierdo auto */
.btn--ml-auto { margin-left: auto; }

/* ── utility additions for CSP refactor ── */
.label-icon           { vertical-align: middle; margin-right: 6px; }
.textarea-xl          { min-height: 120px !important; }
.input-prefix-group input { border-radius: 0 6px 6px 0; flex: 1; }
.msg-badge            { background: var(--gold); color: var(--black); border-radius: 10px; padding: 0 6px; font-size: .7rem; margin-left: 4px; }
.admin-order-bar__label { font-size: .8rem; color: var(--white-faint); }
.seo-counter          { float: right; font-weight: 400; font-size: .8rem; color: var(--white-faint); }
.text-main            { color: var(--white-main, #e8e4da); }
.btn--mt              { margin-top: 4px; }
.btn--ml              { margin-left: 6px; }
.form-help--mt0       { margin-top: 0; }
.mb-24                { margin-bottom: 24px; }
.mb-20                { margin-bottom: 20px; }
.td-empty-pad         { padding: 32px; }

/* ── Security log ── */
.sec-tabs            { display: flex; gap: 4px; border-bottom: 1px solid var(--black-border); margin-bottom: 20px; }
.sec-tab             { padding: 10px 18px; color: var(--white-faint); text-decoration: none; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.sec-tab:hover, .sec-tab--active { color: var(--gold); border-bottom-color: var(--gold); }
.sec-search-form     { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.sec-search-input    { flex: 1; max-width: 420px; padding: 8px 12px; background: #1a1a1a; border: 1px solid var(--black-border); color: var(--white-dim); border-radius: 4px; font-size: .85rem; }
.sec-table           { width: 100%; border-collapse: collapse; font-size: .83rem; }
.sec-table th        { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--black-border); color: var(--white-faint); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; font-size: .75rem; white-space: nowrap; }
.sec-table td        { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: top; }
.sec-table tr:hover td { background: rgba(255,255,255,.025); }
.sec-badge           { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
.sec-badge--ok       { background: rgba(80,200,120,.15); color: #50c878; }
.sec-badge--fail     { background: rgba(220,80,80,.15); color: #e57373; }
.sec-td-id           { color: var(--white-faint); width: 50px; }
.sec-td-ip           { font-family: monospace; font-size: .8rem; white-space: nowrap; }
.sec-td-date         { font-size: .78rem; color: var(--white-faint); white-space: nowrap; }
.sec-td-details      { max-width: 280px; word-break: break-word; }
.sec-action          { background: rgba(201,168,76,.08); color: var(--gold); padding: 1px 6px; border-radius: 3px; font-size: .78rem; }

/* ════════════════════════════════════════════════════════════
   REFINAMIENTO VISUAL
   Capa que eleva el diseño base (negro + dorado) sin alterar
   las reglas originales: se carga al final, por lo que
   sobrescribe únicamente lo necesario.
   ════════════════════════════════════════════════════════════ */

:root {
  --gold-hair:      rgba(201,168,76,0.20);
  --gold-hair-soft: rgba(201,168,76,0.09);
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft:    0 16px 44px rgba(0,0,0,0.45);
  --shadow-lift:    0 24px 64px rgba(0,0,0,0.55);
}

body { font-size: 15.5px; -webkit-font-smoothing: antialiased; }

::selection { background: rgba(201,168,76,0.28); color: #fff; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.05);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(8,8,8,0.94);
  border-bottom-color: var(--gold-hair-soft);
  box-shadow: 0 10px 34px rgba(0,0,0,0.55);
}
.header-inner { transition: height .4s var(--ease-out); }
.site-header.is-scrolled .header-inner { height: 68px; }

.brand-logo { transition: filter .4s var(--ease-out), transform .4s var(--ease-out); }
.site-brand:hover .brand-logo {
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.55));
  transform: scale(1.04);
}
.brand-name { transition: color var(--transition); }

/* Subrayado animado de la navegación */
.site-nav a:not(.nav-admin):not(.nav-donate) { position: relative; }
.site-nav a:not(.nav-admin):not(.nav-donate)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 1px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .4s var(--ease-out);
}
.site-nav a:not(.nav-admin):not(.nav-donate):hover::after,
.site-nav a.active:not(.nav-admin):not(.nav-donate)::after { transform: scaleX(1); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 108px 24px 100px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero--h-compacto { padding: 84px 24px 78px; }
.hero--h-medio    { min-height: 60vh; }
.hero--h-alto     { min-height: calc(100vh - 68px); }

/* Sin imagen: se conserva el resplandor dorado original, más profundo */
.hero:not(.hero--with-image)::before {
  background:
    radial-gradient(ellipse 65% 85% at 50% 0%, #1b1204 0%, transparent 68%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(201,168,76,0.05), transparent 70%);
}

/* Con imagen mandan el velo y la viñeta: el resplandor base taparía la foto */
.hero--with-image::before { background: none; }

/* Imagen de fondo (CSP: se usa <img>, no background-image en línea) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03);
  transform: scale(1.04);
}
.hero__veil { position: absolute; inset: 0; z-index: -2; }
.hero--overlay-suave   .hero__veil { background: linear-gradient(to bottom, rgba(8,8,8,.38) 0%, rgba(8,8,8,.32) 45%, rgba(8,8,8,.92) 100%); }
.hero--overlay-medio   .hero__veil { background: linear-gradient(to bottom, rgba(8,8,8,.60) 0%, rgba(8,8,8,.50) 45%, rgba(8,8,8,.95) 100%); }
.hero--overlay-fuerte  .hero__veil { background: linear-gradient(to bottom, rgba(8,8,8,.76) 0%, rgba(8,8,8,.68) 45%, rgba(8,8,8,.97) 100%); }
.hero--overlay-intenso .hero__veil { background: linear-gradient(to bottom, rgba(8,8,8,.88) 0%, rgba(8,8,8,.82) 45%, rgba(8,8,8,.99) 100%); }

/* Viñeta que centra la mirada */
.hero--with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 35%, rgba(8,8,8,.55) 100%);
  pointer-events: none;
}

/* Marco interior de línea dorada, con esquinas marcadas */
.hero__frame {
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid var(--gold-hair-soft);
  pointer-events: none;
}
.hero__frame span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--gold);
  opacity: .5;
}
.hero__frame span:nth-child(1) { top: -1px;    left:  -1px; border-width: 1px 0 0 1px; }
.hero__frame span:nth-child(2) { top: -1px;    right: -1px; border-width: 1px 1px 0 0; }
.hero__frame span:nth-child(3) { bottom: -1px; left:  -1px; border-width: 0 0 1px 1px; }
.hero__frame span:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.hero__inner { position: relative; max-width: 860px; width: 100%; }

/* Halo que despega el título del fondo */
.hero__inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(760px, 116%);
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.16), rgba(201,168,76,0.05) 46%, transparent 72%);
  filter: blur(26px);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  text-indent: 0.42em;
}

.hero-ornament { margin-bottom: 30px; }
.hero-ornament span { width: 70px; }
.hero-ornament .d {
  box-shadow: 0 0 12px rgba(201,168,76,0.7);
}

.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  letter-spacing: 0.2em;
  line-height: 1.08;
  margin-bottom: 18px;
  text-indent: 0.2em;
  color: var(--gold-light);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title {
    background: linear-gradient(175deg, #f4e3ac 0%, #e8c96a 42%, #bb9a45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: #b3ab99;
  letter-spacing: 0.1em;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin-left: -16px;
  width: 32px;
  height: 58px;
  z-index: 2;
}
.hero__scroll::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim));
}
.hero__scroll::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1px;
  background: var(--gold);
  transform: rotate(45deg);
  animation: ht-scroll-cue 2.4s var(--ease-out) infinite;
}
@keyframes ht-scroll-cue {
  0%   { transform: translateY(0)    rotate(45deg); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(38px) rotate(45deg); opacity: 0; }
}

/* Entrada escalonada del hero */
@keyframes ht-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__eyebrow  { animation: ht-rise .95s var(--ease-out) both .05s; }
.hero-ornament  { animation: ht-rise .95s var(--ease-out) both .16s; }
.hero-title     { animation: ht-rise .95s var(--ease-out) both .28s; }
.hero-subtitle  { animation: ht-rise .95s var(--ease-out) both .40s; }
.hero__actions  { animation: ht-rise .95s var(--ease-out) both .52s; }
.hero__scroll   { animation: ht-rise 1s   var(--ease-out) both .9s;  }

/* ── ENCABEZADO DE SECCIÓN ───────────────────────────── */
.section { padding: 76px 24px; }

.section-head { margin-bottom: 44px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.section-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(201,168,76,0.05));
  margin-bottom: 0;
}
.section-head .section-rule { margin-bottom: 0; }

/* ── NOTA DESTACADA ──────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  border: 1px solid var(--black-border);
  background: linear-gradient(180deg, #151515 0%, #0f0f0f 100%);
  margin-bottom: 56px;
  overflow: hidden;
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.feature:hover {
  border-color: var(--gold-hair);
  box-shadow: var(--shadow-lift);
}
.feature__media {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
}
.feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.feature:hover .feature__media img { transform: scale(1.055); }
.feature__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8,8,8,0) 45%, rgba(15,15,15,0.92) 100%);
  pointer-events: none;
}
.feature__media--placeholder {
  background: linear-gradient(135deg, #121212 0%, #1c1600 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__media--placeholder svg { width: 54px; opacity: .18; }

.feature__body {
  padding: 52px 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.feature__label::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.feature__date {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.feature__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.feature__title a { color: var(--white-dim); transition: color var(--transition); }
.feature:hover .feature__title a { color: var(--gold-light); }
.feature__excerpt {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--white-faint);
  margin-bottom: 30px;
}
.feature__cta { align-self: flex-start; }

/* ── TARJETAS DE NOTICIAS ────────────────────────────── */
.posts-grid { gap: 28px; }

.post-card {
  position: relative;
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .6s var(--ease-out);
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-hair);
  box-shadow: var(--shadow-soft);
}
.post-card:hover::before { transform: scaleX(1); }

.post-card__img { position: relative; }
.post-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0) 55%, rgba(16,16,16,0.75) 100%);
  pointer-events: none;
}
.post-card__img img { transition: transform .9s var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.06); }

.post-card__body { padding: 26px 26px 28px; }
.post-card__date {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}
.post-card__date::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: background var(--transition);
}
.post-card:hover .post-card__date::before { background: var(--gold); }

.post-card__title { font-size: 1.28rem; letter-spacing: 0.015em; }
.post-card__title a { color: inherit; transition: color var(--transition); }
.post-card:hover .post-card__title a { color: var(--gold-light); }
.post-card__excerpt { font-size: 0.87rem; line-height: 1.75; }

/* ── ENCABEZADO DE PÁGINAS INTERNAS ──────────────────── */
.page-wrap { padding-top: 72px; }
.page-header { position: relative; margin-bottom: 56px; }
.page-header::before {
  content: '';
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 120%);
  height: 260px;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(201,168,76,0.075), transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.page-header__label {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-header__label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}
.page-header__title {
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  letter-spacing: 0.16em;
  line-height: 1.12;
  text-indent: 0.16em;
}
.page-header__rule {
  width: 64px;
  background: linear-gradient(to right, var(--gold), rgba(201,168,76,0.05));
}

/* ── ENLACES ─────────────────────────────────────────── */
.link-item {
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  padding: 20px 22px;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.link-item:hover {
  border-color: var(--gold-hair);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.link-item__icon { transition: border-color var(--transition), background var(--transition); }
.link-item:hover .link-item__icon { border-color: var(--gold); background: rgba(201,168,76,0.07); }

/* ── FORMULARIOS ─────────────────────────────────────── */
.form-group input,
.form-group textarea {
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
  background: #171717;
}

/* ── BOTONES ─────────────────────────────────────────── */
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white-dim);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201,168,76,0.06);
}

/* ── PAGINACIÓN ──────────────────────────────────────── */
.pagination a,
.pagination span {
  transition: border-color .35s var(--ease-out), color .35s var(--ease-out), background .35s var(--ease-out);
}
.pagination a:hover { background: rgba(201,168,76,0.06); }
.pagination span.current { background: rgba(201,168,76,0.09); }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  padding: 64px 24px 40px;
  border-top: none;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-hair), transparent);
}
.footer-inner { gap: 24px; }
.footer-logo { transition: opacity var(--transition), filter var(--transition); }
.footer-logo:hover { opacity: 1; filter: drop-shadow(0 0 8px rgba(201,168,76,0.4)); }
.footer-social a { transition: border-color var(--transition), color var(--transition), background var(--transition); }
.footer-social a:hover { background: rgba(201,168,76,0.07); }
.footer-copy { color: #5b584f; }

/* ── REVEAL AL HACER SCROLL ──────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .feature__media::after {
    background: linear-gradient(to bottom, rgba(8,8,8,0) 45%, rgba(15,15,15,0.92) 100%);
  }
  .feature__body { padding: 34px 28px 36px; }
  .hero--h-alto { min-height: 76vh; }
}

@media (max-width: 768px) {
  .site-nav a:not(.nav-admin):not(.nav-donate)::after { display: none; }
  .section { padding: 56px 20px; }
  .page-wrap { padding-top: 52px; }
}

@media (max-width: 560px) {
  .hero { padding: 76px 20px 72px; }
  .hero--h-medio, .hero--h-alto { min-height: 0; }
  .hero__frame { inset: 12px; }
  .hero__eyebrow { letter-spacing: 0.3em; }
  .hero-title { letter-spacing: 0.14em; text-indent: 0.14em; }
  .hero-ornament span { width: 46px; }
  .hero__actions { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .feature__body { padding: 28px 22px 30px; }
  .post-card__body { padding: 22px 22px 24px; }
}

/* ── MOVIMIENTO REDUCIDO ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__eyebrow, .hero-ornament, .hero-title,
  .hero-subtitle, .hero__actions, .hero__scroll { animation: none !important; }
  .hero__scroll::after { animation: none !important; opacity: .7; }
  .post-card:hover, .link-item:hover, .feature:hover { transform: none; }
}

/* ── Entrada escalonada de la cuadrícula de noticias ──────────── */
.js .posts-grid .reveal:nth-child(3n+2) { transition-delay: .09s; }
.js .posts-grid .reveal:nth-child(3n)   { transition-delay: .18s; }

/* ── Panel: página Portada ───────────────────────────────────── */
.form-help--lead  { margin-top: 0; margin-bottom: 18px; font-size: .84rem; }
.form-group--mt   { margin-top: 14px; }
.hero-preview {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--black-border);
}
.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
}
.cta-row .form-group { margin-bottom: 16px; }
@media (max-width: 640px) {
  .cta-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Refinamiento de páginas internas ────────────────────────── */
.page-intro {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #9a968b;
  max-width: 660px;
}

.donate-box {
  background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
  border-color: var(--gold-hair);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.donate-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.donate-logo { transition: filter var(--transition); }
.donate-box:hover .donate-logo { filter: drop-shadow(0 0 10px rgba(201,168,76,0.45)); }

.post-single__img {
  border-color: var(--gold-hair-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.post-single__title { letter-spacing: 0.04em; line-height: 1.18; }
.post-single__rule {
  width: 64px;
  background: linear-gradient(to right, var(--gold), rgba(201,168,76,0.05));
}
.post-single__back { transition: color var(--transition), gap var(--transition); }
.post-single__back:hover { gap: 12px; }

.nota-nav__item {
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out), background .4s var(--ease-out);
}
.nota-nav__item:hover {
  transform: translateY(-3px);
  background: rgba(201,168,76,0.03);
}

/* Cuadrícula de enlaces con entrada escalonada */
.js .links-grid .reveal:nth-child(3n+2) { transition-delay: .07s; }
.js .links-grid .reveal:nth-child(3n)   { transition-delay: .14s; }

/* ── COMPARTIR PUBLICACIÓN ───────────────────────────────────── */
.share {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--black-border);
}
.share__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.share__label::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--black-border);
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  color: var(--white-faint);
  cursor: pointer;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out),
              transform .35s var(--ease-out), background .35s var(--ease-out);
}
.share__btn svg { width: 17px; height: 17px; }
.share__btn:hover,
.share__btn:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.06);
  transform: translateY(-2px);
}
.share__feedback {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gold);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  max-width: 560px;
}
.share__feedback.is-visible { opacity: 1; transform: none; }
.share__clipboard {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
}

/* ── DONACIÓN: pago seguro ───────────────────────────────────── */
.donate-secure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--black-border);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--white-faint);
  text-align: left;
}
.donate-secure svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--gold-dim); }
/* Gana al margen de 28px que .donate-box p aplica a todo párrafo del bloque */
.donate-secure p { margin-bottom: 0; }
.donate-secure .donate-secure__title {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.donate-back-wrap { margin-top: 28px; }

/* ── PANEL: Stripe ───────────────────────────────────────────── */
.stripe-panel {
  border: 1px solid var(--black-border);
  background: rgba(255,255,255,0.015);
  padding: 22px 22px 24px;
  margin-bottom: 26px;
}
.stripe-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--black-border);
}
.stripe-panel__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.stripe-badge {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 2px;
}
.stripe-badge--off  { border-color: var(--black-border); color: var(--white-faint); }
.stripe-badge--test { border-color: var(--gold-dim);     color: var(--gold); background: rgba(201,168,76,0.07); }
.stripe-badge--live { border-color: #2f7d4f;             color: #58c084;     background: rgba(80,200,120,0.09); }
.stripe-locked {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--white-faint);
  background: rgba(201,168,76,0.05);
  border-left: 2px solid var(--gold-dim);
  padding: 10px 14px;
}
.stripe-webhook-url {
  margin: 0;
  word-break: break-all;
}
.stripe-webhook-url code { font-size: .82rem; }
.stripe-panel .btn { margin-top: 4px; }

/* ── PANEL: resumen y estados de donaciones ──────────────────── */
.donation-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.donation-summary__item {
  border: 1px solid var(--black-border);
  background: rgba(255,255,255,0.015);
  padding: 16px 18px;
}
.donation-summary__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.donation-summary__label {
  display: block;
  margin-top: 4px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.donation-status {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--black-border);
  border-radius: 2px;
  color: var(--white-faint);
  white-space: nowrap;
}
.donation-status--completed { border-color: #2f7d4f;     color: #58c084; background: rgba(80,200,120,0.1); }
.donation-status--pending   { border-color: var(--gold-dim); color: var(--gold); background: rgba(201,168,76,0.07); }
.donation-status--failed,
.donation-status--cancelled { border-color: #6b1a1a;     color: #c97070; background: rgba(160,48,48,0.09); }
.donation-status--expired   { border-color: var(--black-border); color: var(--white-faint); }

@media (max-width: 560px) {
  .share__btn { width: 38px; height: 38px; }
  .share__btn svg { width: 15px; height: 15px; }
}

/* ════════════════════════════════════════════════════════════
   ANIMACIÓN DEL HERO
   Tres intensidades configurables desde el panel: ninguna,
   sutil y completa. Todas se desactivan solas si el sistema
   del visitante pide movimiento reducido.
   ════════════════════════════════════════════════════════════ */

/* Aurora dorada de fondo */
.hero__aurora {
  position: absolute;
  inset: -22%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 46% at 24% 30%, rgba(201,168,76,0.17), transparent 62%),
    radial-gradient(ellipse 30% 40% at 76% 62%, rgba(232,201,106,0.12), transparent 64%),
    radial-gradient(ellipse 46% 34% at 50% 92%, rgba(122,95,40,0.16), transparent 66%);
  filter: blur(16px);
  opacity: .9;
}
.hero--with-image .hero__aurora { opacity: .4; }
.hero--anim-ninguna .hero__aurora { opacity: .55; }
.hero--anim-ninguna.hero--with-image .hero__aurora { opacity: .25; }

.hero--anim-sutil .hero__aurora {
  animation: ht-aurora 44s ease-in-out infinite alternate;
}
.hero--anim-completa .hero__aurora {
  animation: ht-aurora 26s ease-in-out infinite alternate;
}
@keyframes ht-aurora {
  0%   { transform: translate3d(-2%,  1%, 0) scale(1); }
  50%  { transform: translate3d( 3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-1%,  2%, 0) scale(1.03); }
}

/* Destello diagonal que recorre la portada de lado a lado.
   Va fuera de la aurora a propósito: la aurora lleva blur y animar
   dentro de ella obligaría a recalcularlo en cada fotograma. */
.hero__sweep {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 60%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.05) 30%,
    rgba(253,243,210,0.11) 50%,
    rgba(201,168,76,0.05) 70%,
    transparent 100%);
  transform: skewX(-14deg) translate3d(0, 0, 0);
}
.hero--anim-sutil .hero__sweep    { animation: ht-hero-sweep 16s ease-in-out 2.4s infinite; }
.hero--anim-completa .hero__sweep { animation: ht-hero-sweep 11s ease-in-out 1.8s infinite; }
@keyframes ht-hero-sweep {
  0%        { opacity: 0; transform: skewX(-14deg) translate3d(0, 0, 0); }
  10%       { opacity: 1; }
  48%       { opacity: 1; }
  62%, 100% { opacity: 0; transform: skewX(-14deg) translate3d(300%, 0, 0); }
}

/* Grano fino: quita el bandeado de los degradados y da textura de película */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Esquinas del marco: se dibujan al entrar */
.hero--anim-sutil .hero__frame span,
.hero--anim-completa .hero__frame span {
  animation: ht-corner-in 1.1s var(--ease-out) both .62s;
}
@keyframes ht-corner-in {
  from { opacity: 0; transform: scale(.55); }
  to   { opacity: .5; transform: none; }
}

/* El halo del título respira solo en la animación completa */
.hero--anim-completa .hero__inner::before {
  animation: ht-halo 9s ease-in-out 1.2s infinite alternate;
}
@keyframes ht-halo {
  from { opacity: .7; transform: translate(-50%, -50%) scale(.94); }
  to   { opacity: 1;  transform: translate(-50%, -50%) scale(1.07); }
}

/* Acercamiento lento de la imagen de fondo */
.hero--anim-sutil .hero__bg,
.hero--anim-completa .hero__bg {
  animation: ht-kenburns 30s ease-in-out infinite alternate;
}
@keyframes ht-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.8%, -1.8%, 0); }
}

/* Destello que recorre el título */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero--anim-sutil .hero-title,
  .hero--anim-completa .hero-title {
    background: linear-gradient(100deg,
      #bb9a45 0%, #e8c96a 26%, #fdf3d2 44%, #e8c96a 62%, #bb9a45 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ht-rise .95s var(--ease-out) both .28s,
               ht-title-shine 12s ease-in-out 1.6s infinite;
  }
}
@keyframes ht-title-shine {
  0%, 100% { background-position: 130% 50%; }
  55%      { background-position: -30% 50%; }
}

/* Ornamento que se dibuja al cargar */
.hero--anim-sutil .hero-ornament .l,
.hero--anim-completa .hero-ornament .l {
  transform-origin: right center;
  animation: ht-draw 1.1s var(--ease-out) both .38s;
}
.hero--anim-sutil .hero-ornament .r,
.hero--anim-completa .hero-ornament .r {
  transform-origin: left center;
  animation: ht-draw 1.1s var(--ease-out) both .38s;
}
@keyframes ht-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero--anim-completa .hero-ornament .d {
  animation: ht-pulse 4s ease-in-out 1.5s infinite;
}
@keyframes ht-pulse {
  0%, 100% { transform: rotate(45deg) scale(1);    box-shadow: 0 0 12px rgba(201,168,76,0.65); }
  50%      { transform: rotate(45deg) scale(1.22); box-shadow: 0 0 24px rgba(201,168,76,1); }
}

/* Partículas doradas flotantes */
.hero__motes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__motes span {
  position: absolute;
  bottom: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(201,168,76,0.85);
  opacity: 0;
  animation: ht-mote linear infinite;
}
@keyframes ht-mote {
  0%   { transform: translate3d(0, 0, 0) scale(.55); opacity: 0; }
  14%  { opacity: .6; }
  78%  { opacity: .3; }
  100% { transform: translate3d(14px, -78vh, 0) scale(1); opacity: 0; }
}
.hero__motes span:nth-child(1)  { left:  4%; animation-duration: 19s; animation-delay:  0s;   }
.hero__motes span:nth-child(2)  { left: 11%; animation-duration: 24s; animation-delay: -6s;   }
.hero__motes span:nth-child(3)  { left: 19%; animation-duration: 16s; animation-delay: -11s;  }
.hero__motes span:nth-child(4)  { left: 26%; animation-duration: 27s; animation-delay: -3s;   }
.hero__motes span:nth-child(5)  { left: 33%; animation-duration: 21s; animation-delay: -15s;  }
.hero__motes span:nth-child(6)  { left: 41%; animation-duration: 18s; animation-delay: -8s;   }
.hero__motes span:nth-child(7)  { left: 48%; animation-duration: 25s; animation-delay: -19s;  }
.hero__motes span:nth-child(8)  { left: 56%; animation-duration: 20s; animation-delay: -2s;   }
.hero__motes span:nth-child(9)  { left: 63%; animation-duration: 29s; animation-delay: -13s;  }
.hero__motes span:nth-child(10) { left: 70%; animation-duration: 17s; animation-delay: -22s;  }
.hero__motes span:nth-child(11) { left: 78%; animation-duration: 23s; animation-delay: -5s;   }
.hero__motes span:nth-child(12) { left: 85%; animation-duration: 26s; animation-delay: -17s;  }
.hero__motes span:nth-child(13) { left: 91%; animation-duration: 19s; animation-delay: -10s;  }
.hero__motes span:nth-child(14) { left: 96%; animation-duration: 22s; animation-delay: -24s;  }

@media (prefers-reduced-motion: reduce) {
  .hero__aurora,
  .hero__bg,
  .hero__motes span,
  .hero__sweep,
  .hero__frame span,
  .hero__inner::before,
  .hero-ornament .l,
  .hero-ornament .r,
  .hero-ornament .d,
  .hero-title { animation: none !important; }
  .hero__motes,
  .hero__sweep { display: none; }
  .hero__frame span { opacity: .5; }
  .hero-title { background-position: 50% 50% !important; }
}

/* ── BUSCADOR: barra del encabezado ──────────────────────────── */
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(201,168,76,.55);
  cursor: pointer;
  transition: color var(--transition);
}
.nav-search svg { width: 17px; height: 17px; }
.nav-search:hover,
.nav-search[aria-expanded="true"] { color: var(--gold); }

.site-search {
  border-top: 1px solid var(--black-border);
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .38s var(--ease-out), opacity .3s var(--ease-out);
}
.site-search.is-open { max-height: 140px; opacity: 1; }

.site-search__form {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-search__icon { width: 18px; height: 18px; color: var(--gold-dim); flex-shrink: 0; }
.site-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--black-border);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  padding: 8px 2px;
  outline: none;
  transition: border-color var(--transition);
}
.site-search__input::placeholder { color: #55524b; }
.site-search__input:focus { border-bottom-color: var(--gold-dim); }
.site-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white-faint);
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.site-search__close svg { width: 16px; height: 16px; }
.site-search__close:hover { color: var(--gold); }

/* ── BUSCADOR: página de resultados ──────────────────────────── */
.page-wrap--wide { max-width: 1000px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--black-border);
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  padding: 10px 12px 10px 18px;
  margin-bottom: 36px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
}
.search-box__icon { width: 18px; height: 18px; color: var(--gold-dim); flex-shrink: 0; }
.search-box__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  padding: 8px 0;
}
.search-box__input::placeholder { color: #55524b; }

.search-count {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 26px;
}
.search-hint { color: var(--white-faint); line-height: 1.75; max-width: 620px; }
.search-empty {
  border: 1px solid var(--black-border);
  background: rgba(255,255,255,0.015);
  padding: 36px 32px;
}
.search-empty__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.search-results { display: flex; flex-direction: column; gap: 18px; }

.search-result {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  border: 1px solid var(--black-border);
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
  overflow: hidden;
  transition: border-color .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.search-result:only-child,
.search-result:not(:has(.search-result__media)) { grid-template-columns: 1fr; }
.search-result:hover {
  border-color: var(--gold-hair);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.search-result__media { position: relative; min-height: 150px; overflow: hidden; display: block; }
.search-result__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.search-result:hover .search-result__media img { transform: scale(1.06); }

.search-result__body { padding: 26px 28px 24px; }
.search-result__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}
.search-result__views { color: var(--white-faint); }
.search-result__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.search-result__title a { color: var(--white-dim); transition: color var(--transition); }
.search-result:hover .search-result__title a { color: var(--gold-light); }
.search-result__snippet {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--white-faint);
  margin-bottom: 16px;
}

mark {
  background: rgba(201,168,76,0.22);
  color: var(--gold-light);
  padding: 0 2px;
  border-radius: 2px;
}

/* ── CONTADORES DE VISITAS ───────────────────────────────────── */
.post-single__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.post-single__views {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white-faint);
}
.post-single__views::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}

.footer-visits {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.footer-visits__value {
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ── PANEL: estadísticas de visitas ──────────────────────────── */
.visits-panel {
  border: 1px solid var(--black-border);
  background: rgba(255,255,255,0.015);
  padding: 22px 24px 24px;
  margin-bottom: 26px;
}
.visits-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.visits-panel__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.visits-panel__note { font-size: 0.72rem; color: var(--white-faint); }

.visits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.visits-grid__item {
  border: 1px solid var(--black-border);
  padding: 14px 16px;
}
.visits-grid__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-light);
}
.visits-grid__label {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
}

.visits-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 84px;
  padding-top: 6px;
  border-bottom: 1px solid var(--black-border);
}
.visits-chart__bar {
  flex: 1;
  min-width: 0;
  background: linear-gradient(to top, rgba(201,168,76,0.22), var(--gold-dim));
  transition: background var(--transition);
}
.visits-chart__bar:hover { background: linear-gradient(to top, rgba(201,168,76,0.4), var(--gold)); }
.visits-chart__bar--empty { background: rgba(255,255,255,0.05); }
.visits-chart__caption {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.visits-missing {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--white-faint);
  border-left: 2px solid var(--gold-dim);
  background: rgba(201,168,76,0.05);
  padding: 12px 16px;
}

/* Alturas de las barras de la gráfica (CSP: sin estilos en línea) */
.visits-chart__bar { height: 2%; }
.h-0   { height: 2%;   } .h-5   { height: 5%;   } .h-10  { height: 10%;  }
.h-15  { height: 15%;  } .h-20  { height: 20%;  } .h-25  { height: 25%;  }
.h-30  { height: 30%;  } .h-35  { height: 35%;  } .h-40  { height: 40%;  }
.h-45  { height: 45%;  } .h-50  { height: 50%;  } .h-55  { height: 55%;  }
.h-60  { height: 60%;  } .h-65  { height: 65%;  } .h-70  { height: 70%;  }
.h-75  { height: 75%;  } .h-80  { height: 80%;  } .h-85  { height: 85%;  }
.h-90  { height: 90%;  } .h-95  { height: 95%;  } .h-100 { height: 100%; }

@media (max-width: 700px) {
  .search-result { grid-template-columns: 1fr; }
  .search-result__media { min-height: 0; aspect-ratio: 16 / 9; }
  .site-search__form { padding: 12px 20px; gap: 8px; }
  .site-search__submit { display: none; }
}

/* ── Buscador siempre visible en el encabezado ───────────────── */
.site-brand  { margin-right: auto; }
.site-nav    { order: 2; }
.nav-search  { order: 3; margin-left: 10px; flex-shrink: 0; }
.nav-toggle  { order: 4; }

@media (max-width: 768px) {
  /* En móvil el menú se pliega, pero la lupa permanece a la vista */
  .nav-search { margin-left: 0; margin-right: 14px; }
}

/* Compact language switch for public pages and the login screen. */
.translation-control { display: inline-flex; position: relative; flex-shrink: 0; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  width: 76px;
  height: 32px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  background: var(--black-soft);
}
.language-switch__button {
  width: 32px;
  height: 24px;
  flex: 1 0 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--white-dim);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 6px;
}
.language-switch__button:hover,
.language-switch__button:focus-visible { color: #ffffff; }
.language-switch__button:focus-visible { outline: 1px solid var(--gold-light); }
.language-switch__button.is-active {
  background: var(--gold);
  color: var(--black);
}
.translation-provider,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-banner-frame.skiptranslate,
body.has-translation > .skiptranslate,
body.has-translation .VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.goog-te-banner-frame { display: none !important; }
html.translated-ltr,
html.translated-rtl,
body.has-translation { top: 0 !important; position: static !important; }
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}
.nav-language { padding: 0; order: 3; }
.translation-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.translation-control[data-state="loading"] .language-switch { border-color: var(--gold-light); }
.translation-control[data-state="error"] .translation-status {
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  height: auto;
  clip-path: none;
  white-space: normal;
  background: var(--black-card);
  border: 1px solid var(--gold-dim);
  color: var(--white-dim);
  padding: 10px;
  font-size: .75rem;
}

/* Keep header controls aligned in either language, including tablet widths. */
.site-header .header-inner { gap: 16px; }
.site-header .site-brand { min-width: 0; flex-shrink: 0; }
.site-header .brand-name { white-space: nowrap; letter-spacing: 0; }
.site-header .site-nav { flex-shrink: 0; }
.site-header .site-nav a { letter-spacing: 0; white-space: nowrap; padding: 8px 10px; color: var(--white-dim); }
.site-header .site-nav a:hover,
.site-header .site-nav a.active { color: var(--gold-light); }
.site-header .nav-admin { display: flex; order: 6; margin: 0; flex-shrink: 0; width: 32px; height: 32px; }
.site-header .nav-search { order: 4; margin: 0; width: 32px; height: 32px; }
.site-header .nav-toggle { order: 5; flex-shrink: 0; width: 32px; height: 32px; align-items: center; justify-content: center; }
@media (max-width: 1040px) {
  .site-header .nav-toggle { display: flex; }
  .site-header .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: var(--black-soft);
    border-bottom: 1px solid var(--gold-dim);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .site-header .site-nav.open { display: block; }
  .site-header .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header .site-nav a { padding: 12px 16px; }
  .site-header .site-nav a::after { display: none; }
  .site-header .nav-donate { display: block; width: fit-content; }
}
@media (max-width: 480px) {
  .site-header .header-inner { gap: 8px; padding: 0 16px; }
  .site-header .site-brand { flex: 1; gap: 8px; }
  .site-header .brand-logo { width: 28px; flex-shrink: 0; }
  .site-header .brand-name { white-space: normal; font-size: 1rem; line-height: 1.1; }
}

/* ============================================================
   GALERÍA ESTILO INSTAGRAM (PREMIUM)
   ============================================================ */

.btn-gold-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: #000;
}

/* ── Perfil Hero Instagram ──────────────────────────────────── */
.insta-profile {
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%), var(--black-soft);
  border-bottom: 1px solid var(--black-border);
}
.insta-profile__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.insta-profile__avatar-col {
  flex-shrink: 0;
}
.insta-avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold) 0%, #fff 40%, var(--gold-dim) 100%);
  box-shadow: 0 0 24px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.insta-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--black-card);
  border: 3px solid var(--black-soft);
}
.insta-profile__details {
  flex: 1;
  min-width: 0;
}
.insta-profile__topline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.insta-profile__username {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.insta-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.verified-icon {
  flex-shrink: 0;
}
.insta-profile__stats {
  display: flex;
  gap: 32px;
  margin-bottom: 18px;
}
.insta-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.insta-stat__count {
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  font-family: var(--font-sans);
}
.insta-stat__label {
  color: var(--white-faint);
  font-size: 0.85rem;
}
.insta-profile__bio {
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.65;
}
.insta-profile__tagline {
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 4px;
}
.insta-profile__text {
  color: var(--white-dim);
}
.insta-profile__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-faint);
  font-size: 0.8rem;
  margin-top: 6px;
}
.insta-profile__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Pestañas y Filtros ─────────────────────────────────────── */
.insta-tabs {
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
  position: sticky;
  top: calc(var(--header-actual-h, 69px) - 1px);
  z-index: 50;
  margin-bottom: 32px;
}
.insta-tabs__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.insta-tabs__inner::-webkit-scrollbar {
  display: none;
}
.insta-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--white-faint);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.insta-tab:hover {
  color: var(--gold-light);
}
.insta-tab.is-active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

/* ── Cuadrícula de Galería ──────────────────────────────────── */
.insta-gallery-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insta-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  cursor: pointer;
  outline: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.insta-card:hover,
.insta-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 12px 32px rgba(0,0,0,0.75);
}
.insta-card__frame {
  width: 100%;
  height: 100%;
  position: relative;
}
.insta-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.insta-card:hover .insta-card__img,
.insta-card:focus-visible .insta-card__img {
  transform: scale(1.06);
}
.insta-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.insta-card:hover .insta-card__overlay,
.insta-card:focus-visible .insta-card__overlay {
  opacity: 1;
}
.insta-card__stats {
  display: flex;
  gap: 16px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.insta-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.insta-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gold-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* ── Modal Lightbox Instagram ───────────────────────────────── */
.insta-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.insta-modal[hidden] {
  display: none !important;
}
.insta-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,0.92);
  backdrop-filter: blur(12px);
}
.insta-modal__dialog {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 1080px;
  height: 85vh;
  max-height: 85vh;
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.9);
  animation: modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.insta-modal__media {
  flex: 1.4;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.insta-modal__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.insta-modal__sidebar {
  flex: 1;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border-left: 1px solid var(--black-border);
}
.insta-modal__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--black-border);
  display: flex;
  align-items: center;
}
.insta-modal__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.insta-modal__avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  flex-shrink: 0;
}
.insta-modal__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.insta-modal__author-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
}
.insta-modal__meta-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--white-faint);
  margin-top: 2px;
}
.insta-modal__badge {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.insta-modal__loc {
  color: var(--white-faint);
}
.insta-modal__caption-scroll {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--black-border) transparent;
}
.insta-modal__caption-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.insta-modal__caption-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--white-dim);
  margin-bottom: 18px;
  white-space: pre-line;
}
.insta-modal__date {
  display: block;
  font-size: 0.75rem;
  color: var(--white-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.insta-modal__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--black-border);
  background: var(--black-soft);
}
.insta-modal__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.btn-like {
  background: transparent;
  border: none;
  color: var(--white-dim);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.btn-like svg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-like:hover {
  color: #fff;
  transform: scale(1.08);
}
.btn-like.is-liked svg {
  fill: #e0245e;
  stroke: #e0245e;
  transform: scale(1.18);
}
.btn-share {
  background: transparent;
  border: none;
  color: var(--white-dim);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  transition: color var(--transition);
}
.btn-share:hover {
  color: var(--gold-light);
}
.insta-modal__likes-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
}
.insta-modal__views-info {
  color: var(--white-dim);
  font-weight: 400;
}
.insta-modal__media {
  position: relative;
}
.insta-modal__heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  fill: #fff;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55));
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
.insta-modal__heart-burst.is-active {
  animation: heart-burst 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes heart-burst {
  0%   { opacity: 0;    transform: scale(0); }
  15%  { opacity: 0.95; transform: scale(1.2); }
  30%  { transform: scale(0.95); }
  45%  { transform: scale(1); }
  80%  { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0;    transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .insta-modal__heart-burst.is-active {
    animation-duration: 0.01ms;
  }
}
.share-feedback {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 6px;
  min-height: 18px;
}
.insta-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  background: rgba(14,14,14,0.75);
  border: 1px solid var(--black-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.insta-modal__close:hover {
  background: var(--gold);
  color: #000;
  transform: rotate(90deg);
}
.insta-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(14,14,14,0.75);
  border: 1px solid var(--black-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.insta-modal__nav:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-50%) scale(1.08);
}
.insta-modal__nav--prev {
  left: 24px;
}
.insta-modal__nav--next {
  right: 24px;
}

/* ── Página individual de foto (foto.php) ────────────────────── */
.foto-detail-wrap {
  padding-top: 36px;
  padding-bottom: 80px;
}
.foto-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.foto-back-btn,
.foto-pnext-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-faint);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.foto-back-btn:hover,
.foto-pnext-btn:hover {
  color: var(--gold-light);
}
.foto-prev-next {
  display: flex;
  gap: 16px;
}
.foto-card-full {
  display: flex;
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.foto-card-full__media {
  flex: 1.4;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foto-card-full__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.foto-card-full__content {
  flex: 1;
  min-width: 340px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border-left: 1px solid var(--black-border);
}
.foto-card-full__header {
  padding: 20px;
  border-bottom: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.foto-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foto-author__avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}
.foto-author__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.foto-author__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.foto-author__name {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
}
.foto-author__badge {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.foto-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--white-faint);
}
.foto-card-full__body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.foto-card-full__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.foto-card-full__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--white-dim);
  margin-bottom: 24px;
}
.foto-card-full__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--white-faint);
  padding-top: 14px;
  border-top: 1px solid var(--black-border);
}
.foto-date,
.foto-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foto-card-full__footer {
  padding: 18px 24px;
  border-top: 1px solid var(--black-border);
  background: var(--black-soft);
}
.foto-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .insta-profile__inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 36px 20px;
  }
  .insta-profile__topline,
  .insta-profile__stats,
  .insta-profile__actions {
    justify-content: center;
  }
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .insta-modal {
    padding: 0;
  }
  .insta-modal__dialog {
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    /* En móvil, 100vh puede incluir el espacio que ocupan las barras del navegador. */
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border: none;
  }
  .insta-modal__media {
    flex: none;
    height: 44vh;
    max-height: 44vh;
    height: 44dvh;
    max-height: 44dvh;
  }
  .insta-modal__sidebar {
    display: block;
    max-width: 100%;
    overflow: visible;
    border-left: none;
    border-top: 1px solid var(--black-border);
  }
  .insta-modal__caption-scroll {
    overflow: visible;
  }
  .insta-modal__nav {
    display: none;
  }
  .foto-card-full {
    flex-direction: column;
  }
  .foto-card-full__content {
    max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--black-border);
  }
  .foto-card-full__media {
    min-height: 280px;
  }
}

@media (max-width: 580px) {
  .insta-tabs {
    margin-bottom: 24px;
  }
  .insta-tabs__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow-x: hidden;
  }
  .insta-tab {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding: 13px 4px;
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }
  .insta-tab.is-active {
    background: rgba(201, 168, 76, 0.1);
  }
  .insta-grid {
    grid-template-columns: 1fr;
  }
  .insta-avatar-ring {
    width: 110px;
    height: 110px;
  }
  .insta-profile__username {
    font-size: 1.7rem;
  }
  .insta-profile__stats {
    gap: 18px;
  }
  .insta-stat__count {
    font-size: 0.95rem;
  }
  .insta-stat__label {
    font-size: 0.78rem;
  }
}

/* ============================================================
   ADMIN DASHBOARD — REDISEÑO ELEVADO & GALERÍA STUDIO
   ============================================================ */

/* Topbar refinado */
.dash-topbar {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--black-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dash-topbar__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-topbar__title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* Tarjetas de Métricas Ejecutivas */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card-luxury {
  background: linear-gradient(145deg, #131313 0%, #0c0c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-card-luxury::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 70px; height: 70px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card-luxury:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(201, 168, 76, 0.08);
}
.stat-card-luxury__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-card-luxury__label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  font-weight: 500;
}
.stat-card-luxury__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.stat-card-luxury__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card-luxury__val {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.stat-card-luxury__sub {
  font-size: 0.72rem;
  color: var(--white-faint);
}

/* Barra de Filtros y Control */
.admin-ctrl-bar {
  background: #111111;
  border: 1px solid var(--black-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-ctrl-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.admin-ctrl-bar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.admin-search-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--white-faint);
  pointer-events: none;
}
.admin-search-input {
  background: #171717;
  border: 1px solid var(--black-border);
  color: #fff;
  border-radius: 8px;
  padding: 9px 14px 9px 38px;
  font-size: 0.84rem;
  width: 220px;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
}
.admin-search-input:focus {
  outline: none;
  border-color: var(--gold);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: #1c1c1c;
}
.admin-select {
  background: #171717 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--black-border);
  color: #ddd;
  border-radius: 8px;
  padding: 9px 34px 9px 12px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.admin-select:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-select option {
  background: #1a1a1a;
  color: #fff;
}
.btn-filter {
  background: #1c1c1c;
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-filter:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn-clear-filter {
  color: var(--white-faint);
  font-size: 0.8rem;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s;
}
.btn-clear-filter:hover {
  color: #fff;
}

/* Conmutador de Vistas (Grid vs Tabla) */
.view-switch {
  display: inline-flex;
  background: #171717;
  border: 1px solid var(--black-border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.view-switch__btn {
  background: transparent;
  border: none;
  color: var(--white-faint);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.view-switch__btn svg {
  width: 16px;
  height: 16px;
}
.view-switch__btn:hover {
  color: #fff;
}
.view-switch__btn.is-active {
  background: #252525;
  color: var(--gold-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Tabla Pro de Fotografías */
.admin-table-card {
  background: #111111;
  border: 1px solid var(--black-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.table-pro {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.86rem;
}
.table-pro th {
  background: #161616;
  padding: 14px 16px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  border-bottom: 1px solid var(--black-border);
  text-align: left;
  font-weight: 500;
}
.table-pro td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: var(--white-dim);
}
.table-pro tr:last-child td {
  border-bottom: none;
}
.table-pro tbody tr {
  transition: background 0.15s ease;
}
.table-pro tbody tr:hover td {
  background: rgba(201, 168, 76, 0.035);
}

/* Miniatura en tabla - ANCHO Y ALTO FIJO REFORZADO */
.table-thumb {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  flex-shrink: 0;
  position: relative;
}
.table-thumb img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
  display: block;
}
.table-pro tr:hover .table-thumb img {
  transform: scale(1.08);
}

/* Información de foto en tabla */
.table-photo-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.table-photo-title {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.table-photo-title:hover {
  color: var(--gold-light);
}
.table-photo-meta {
  font-size: 0.76rem;
  color: var(--white-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-photo-meta svg {
  width: 12px;
  height: 12px;
  color: var(--gold-dim);
}

/* Badges de Categoría y Estado */
.cat-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.24);
  white-space: nowrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.status-pill--pub {
  background: rgba(76, 175, 80, 0.1);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.status-pill--pub .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66bb6a;
  box-shadow: 0 0 8px #66bb6a;
}
.status-pill--draft {
  background: rgba(255, 152, 0, 0.1);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}
.status-pill--draft .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffa726;
}

/* Botones de acción en tabla */
.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #171717;
  border: 1px solid var(--black-border);
  color: var(--white-dim);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-btn svg {
  width: 15px;
  height: 15px;
}
.action-btn:hover {
  background: #252525;
  color: var(--gold-light);
  border-color: var(--gold-dim);
}
.action-btn--delete:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #ef5350;
  border-color: rgba(220, 53, 69, 0.4);
}

/* Vista Cuadrícula (Studio Grid View) */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.admin-card {
  background: #111111;
  border: 1px solid var(--black-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.admin-photo-grid .admin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}
.admin-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}
.admin-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.admin-card:hover .admin-card__img {
  transform: scale(1.05);
}
.admin-card__badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.admin-card__badge-status {
  position: absolute;
  top: 10px;
  right: 10px;
}
.admin-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-card__title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-card__title:hover {
  color: var(--gold-light);
}
.admin-card__meta {
  font-size: 0.78rem;
  color: var(--white-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.admin-card__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--white-faint);
}
.admin-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-card__stats svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}
.admin-card__foot {
  display: flex;
  border-top: 1px solid var(--black-border);
  background: #0d0d0d;
}
.admin-card__action {
  flex: 1;
  padding: 10px;
  font-size: 0.78rem;
  color: var(--white-dim);
  text-decoration: none;
  text-align: center;
  border-right: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-card__action:last-child {
  border-right: none;
}
.admin-card__action:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
}
.admin-card__action--del:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #ef5350;
}

/* Sidebar Badge para mensajes no leídos */
.sidebar-badge {
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 1px 7px;
  margin-left: auto;
}

/* ════════════════════════════════════════════════════════════
   ADMIN LUXURY SUITE & GLOBAL FORM ELEVATION
   ════════════════════════════════════════════════════════════ */

/* Panel Card Container */
.admin-panel-card {
  background: #111111;
  border: 1px solid var(--black-border);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .admin-panel-card {
    padding: 20px 18px;
  }
}

/* Back Button Pill */
.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  background: #141414;
  border: 1px solid var(--black-border);
  color: var(--white-faint);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.admin-back-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.admin-back-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  background: #1e1b12;
}
.admin-back-btn:hover svg {
  transform: translateX(-3px);
}

/* Global Admin Form Inputs */
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="url"],
.admin-form input[type="date"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea,
.form-control {
  width: 100%;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="email"]:focus,
.admin-form input[type="password"]:focus,
.admin-form input[type="number"]:focus,
.admin-form input[type="url"]:focus,
.admin-form input[type="date"]:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: #171717;
  color: #fff;
}

/* Custom Dropdown Chevron for all admin selects */
.admin-form select,
select.form-control,
.admin-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.admin-form select option,
select.form-control option {
  background: #141414;
  color: #e8e4da;
  padding: 8px;
}

/* File input styling */
.admin-form input[type="file"],
input[type="file"].form-control {
  padding: 8px 12px;
  cursor: pointer;
  background: #111111;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
.admin-form input[type="file"]::file-selector-button,
input[type="file"].form-control::file-selector-button {
  background: #1c1c1c;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}
.admin-form input[type="file"]::file-selector-button:hover,
input[type="file"].form-control::file-selector-button:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}

/* Date picker indicator styling */
.admin-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(60%) hue-rotate(5deg) brightness(1.2);
  cursor: pointer;
}

/* Checkboxes and Radios */
.admin-form input[type="checkbox"],
.admin-form input[type="radio"],
.form-group--inline input[type="checkbox"],
.form-group--inline input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Admin Table Universal Elevation */
.table-wrap {
  background: #111111;
  border: 1px solid var(--black-border);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-table th {
  background: #161616;
  padding: 14px 16px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  border-bottom: 1px solid var(--black-border);
  text-align: left;
  font-weight: 500;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--white-dim);
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr {
  transition: background 0.15s ease;
}
.admin-table tbody tr:hover td {
  background: rgba(201, 168, 76, 0.035);
}

/* Pills / Tabs in Filter Bars (Messages, Security, etc.) */
.msg-filter-bar {
  display: inline-flex;
  background: #111111;
  border: 1px solid var(--black-border);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.msg-filter-btn {
  padding: 7px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 7px;
  text-decoration: none;
  color: var(--white-faint);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.msg-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.msg-filter-btn--active {
  color: #000 !important;
  background: var(--gold) !important;
  font-weight: 500;
}

/* Security Tabs */
.sec-tabs {
  display: inline-flex;
  background: #111111;
  border: 1px solid var(--black-border);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 24px;
}
.sec-tab {
  padding: 7px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 7px;
  text-decoration: none;
  color: var(--white-faint);
  background: transparent;
  transition: all 0.2s ease;
}
.sec-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sec-tab--active {
  color: #000 !important;
  background: var(--gold) !important;
  font-weight: 500;
  border-bottom: none !important;
}

/* Security Search */
.sec-search-input {
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white-dim);
  padding: 10px 16px;
}
.sec-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: #171717;
  outline: none;
}

/* Badges in tables */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  font-weight: 500;
}
.badge-on {
  background: rgba(76, 175, 80, 0.12);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.badge-off {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white-faint);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ════════════════════════════════════════════════════════════
   LUXURY PAGINATION SUITE (ADMIN & FRONTEND)
   ════════════════════════════════════════════════════════════ */

.pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 36px !important;
  margin-bottom: 24px !important;
}

.pagination a,
.pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 38px !important;
  height: 38px !important;
  width: auto !important;
  padding: 0 12px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  border: 1px solid var(--black-border) !important;
  background: #121212 !important;
  color: var(--white-faint) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
  user-select: none !important;
}

/* Números de página puros: cuadrados perfectos */
.pagination a:not(.pagination__btn):not([class*="prev"]):not([class*="next"]),
.pagination span:not(.pagination__btn):not([class*="prev"]):not([class*="next"]):not(.dots) {
  min-width: 38px !important;
  width: 38px !important;
  padding: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

/* Botones de navegación (Anterior / Siguiente) con texto */
.pagination .pagination__btn,
.pagination a[class*="prev"],
.pagination a[class*="next"] {
  width: auto !important;
  min-width: 38px !important;
  padding: 0 16px !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

.pagination .pagination__btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}
.pagination .pagination__btn--prev:hover svg {
  transform: translateX(-3px);
}
.pagination .pagination__btn--next:hover svg {
  transform: translateX(3px);
}

/* Hover interactivo */
.pagination a:hover {
  background: #1e1b12 !important;
  border-color: var(--gold-dim) !important;
  color: var(--gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Página activa destacada */
.pagination span.current,
.pagination .pagination__item--active {
  background: var(--gold) !important;
  color: #000 !important;
  border-color: var(--gold) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.4) !important;
  transform: none !important;
}

/* Puntos suspensivos */
.pagination span.dots,
.pagination .pagination__dots {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--white-faint) !important;
  min-width: 20px !important;
  width: auto !important;
  padding: 0 4px !important;
  box-shadow: none !important;
  cursor: default !important;
}

/* ── ADMIN PAGER (Mensajes, Registro de seguridad, Donaciones, etc.) ── */
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  height: 38px;
  border-radius: 8px;
  background: #141414;
  border: 1px solid var(--black-border);
  color: var(--white-dim);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-pager__btn:hover {
  background: #1e1b12;
  border-color: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.admin-pager__info {
  font-size: 0.8rem;
  color: var(--white-faint);
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
}





/* ── Marca "Mejorada con IA" ───────────────────────────── */
.ai-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--gold-light);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.4);
  pointer-events: none;
}
.ai-badge--sm { top: 3px; right: 3px; padding: 3px; }
.ai-badge--inline {
  position: static;
  align-self: flex-start;
  margin-top: 2px;
  pointer-events: auto;
}
.foto-card-full__media { position: relative; }
.admin-card__media .ai-badge { top: auto; bottom: 10px; right: 10px; }
.reorder-hint { font-size: 0.78rem; color: var(--gold-light); }
[draggable="true"] { cursor: grab; }
.is-dragging { opacity: 0.45; cursor: grabbing; }
.is-saving { opacity: 0.7; pointer-events: none; }
