/* ── Memorialis · CSS v1.0 ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --blue:      #6B9FD4;
  --purple:    #9B7EC8;
  --lilac:     #C4B5E8;
  --grad:      linear-gradient(135deg, #6B9FD4 0%, #9B7EC8 100%);
  --grad-soft: linear-gradient(135deg, rgba(107,159,212,.12) 0%, rgba(155,126,200,.12) 100%);
  --text:      #3D3D4E;
  --muted:     #7A7A8A;
  --bg:        #F8F7FC;
  --card:      #FFFFFF;
  --border:    #E8E4F0;
  --success:   #5aab7a;
  --warning:   #e8a444;
  --danger:    #d0516a;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 2px 16px rgba(107,74,190,.09);
  --shadow-lg: 0 4px 28px rgba(107,74,190,.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); margin-bottom: .75rem; }
h3 { font-size: 1.05rem; }
p  { margin-bottom: .6rem; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 960px; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}
.topbar .logo { height: 36px; width: auto; }
.topbar .spacer { flex: 1; }
.topbar .site-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.25rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(155,126,200,.35);
}
.btn-primary:hover { opacity: .92; box-shadow: 0 4px 16px rgba(155,126,200,.45); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--purple); background: rgba(155,126,200,.06); }

.btn-danger {
  background: rgba(208,81,106,.1);
  color: var(--danger);
  border: 1px solid rgba(208,81,106,.3);
}
.btn-danger:hover { background: rgba(208,81,106,.18); }

.btn-success {
  background: rgba(90,171,122,.1);
  color: var(--success);
  border: 1px solid rgba(90,171,122,.3);
}
.btn-success:hover { background: rgba(90,171,122,.18); }

.btn-sm { padding: .35rem .8rem; font-size: .78rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155,126,200,.15);
  background: var(--card);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-pendiente { background: rgba(232,164,68,.15); color: var(--warning); }
.badge-aprobado  { background: rgba(90,171,122,.15); color: var(--success); }
.badge-oculto    { background: rgba(208,81,106,.12); color: var(--danger);  }
.badge-aprobada  { background: rgba(90,171,122,.15); color: var(--success); }
.badge-oculta    { background: rgba(208,81,106,.12); color: var(--danger);  }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 1rem;
}
.alert-ok      { background: rgba(90,171,122,.12); border: 1px solid rgba(90,171,122,.3); color: #3d7a58; }
.alert-err     { background: rgba(208,81,106,.1);  border: 1px solid rgba(208,81,106,.3); color: var(--danger); }
.alert-warning { background: rgba(232,164,68,.12); border: 1px solid rgba(232,164,68,.3); color: #9a6800; }

/* ─────────────────────────────────────────────────────────────
   LANDING — index.php
──────────────────────────────────────────────────────────────── */
.landing-hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}
.landing-hero .logo-hero { height: 72px; margin: 0 auto 1.5rem; }
.landing-hero h1 { margin-bottom: .4rem; }
.landing-hero .tagline {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.landing-hero .lead {
  font-size: .95rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.landing-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 520px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-lg);
}
.landing-form-wrap h2 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-section-title {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--purple);
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
  margin: 1.5rem 0 1rem;
}

/* ─────────────────────────────────────────────────────────────
   MEMORIAL PÚBLICO — m.php
──────────────────────────────────────────────────────────────── */
/* Hero */
.memorial-hero {
  background: var(--grad);
  background-size: cover;
  background-position: center;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
  position: relative;
  z-index: 0;
}
.memorial-hero > * { position: relative; z-index: 1; }
.hero-fondo-claro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
  pointer-events: none;
  z-index: 0;
}
.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.7);
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.2);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.7);
}
.hero-nombre {
  color: #fff;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: .3rem;
}
.hero-fechas {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}
.hero-epitafio {
  color: rgba(255,255,255,.9);
  font-style: italic;
  font-size: .95rem;
  max-width: 380px;
  margin: 0 auto;
}
.memorial-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.memorial-nav a {
  padding: .75rem 1.1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.memorial-nav a:hover, .memorial-nav a.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* Secciones del memorial */
.memorial-section {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.memorial-section:last-child { border-bottom: none; }
.section-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Eventos (velorio/misa/entierro) */
.eventos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.evento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.evento-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}
.evento-tipo {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--purple);
  margin-bottom: .2rem;
}
.evento-lugar { font-weight: 500; font-size: .9rem; margin-bottom: .15rem; }
.evento-dir   { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.evento-hora  { font-size: .82rem; color: var(--text); }
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--purple);
  margin-top: .4rem;
}

/* Mensajes — timeline */
.mensajes-list {
  display: flex;
  flex-direction: column;
}
.mensaje-hidden { display: none; }

.mensaje-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: .6rem;
}
.mensaje-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}
.mensaje-autor { font-weight: 600; font-size: .9rem; }
.mensaje-relacion {
  font-size: .68rem;
  background: var(--grad-soft);
  color: var(--purple);
  padding: .1rem .5rem;
  border-radius: 20px;
  font-weight: 500;
}
.mensaje-fecha { font-size: .72rem; color: var(--muted); margin-left: auto; }
.mensaje-texto {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: .1rem;
}
.mensaje-acciones {
  display: flex;
  align-items: center;
  margin-top: .65rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
/* Barra de acciones estilo red social: 3 botones iguales */
.mensaje-acciones .corazon-btn,
.mensaje-acciones .compartir-btn,
.mensaje-acciones .copiar-link-btn {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  background: none;
  border: none;
  border-radius: 6px;
  margin: 0;
  padding: .38rem .2rem;
  font-size: .76rem;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  opacity: 1;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.mensaje-acciones .corazon-btn:hover,
.mensaje-acciones .corazon-btn.activo        { color: #e05677; background: none; }
.mensaje-acciones .compartir-btn:hover,
.mensaje-acciones .compartir-btn:focus       { color: var(--blue);   background: none; border: none; outline: none; }
.mensaje-acciones .copiar-link-btn:hover,
.mensaje-acciones .copiar-link-btn:focus,
.mensaje-acciones .copiar-link-btn:active    { color: var(--purple); background: none; border: none; outline: none; }

.corazon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--muted);
  padding: 0;
  transition: color .15s;
}
.corazon-btn:hover, .corazon-btn.activo { color: #e05677; }

/* Botón Ver más mensajes */
.ver-mas-wrap {
  text-align: center;
  padding: .4rem 0 .8rem;
}
.ver-mas-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: .45rem 1.35rem;
  border-radius: 50px;
  font-size: .82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.ver-mas-btn:hover { color: var(--purple); border-color: var(--purple); }
.ver-mas-count { font-weight: 400; opacity: .7; }

.no-mensajes {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .9rem;
}

/* Galería de fotos */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.foto-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--border);
  cursor: pointer;
  position: relative;
}
.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.foto-thumb:hover img { transform: scale(1.04); }
.foto-desc {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .3rem;
  text-align: center;
}

/* Formulario inline */
.inline-form {
  background: var(--grad-soft);
  border: 1px solid rgba(155,126,200,.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
.inline-form h3 {
  font-size: .9rem;
  margin-bottom: .75rem;
  color: var(--purple);
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   ADMIN PANEL
──────────────────────────────────────────────────────────────── */
.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow);
}
.admin-header .logo-sm { height: 30px; }
.admin-header .admin-title {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
}
.admin-header .memorial-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
}

.admin-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  gap: 0;
}
.admin-nav a {
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.admin-main { padding: 1.5rem 0 3rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Tabla de moderación */
.mod-list { display: flex; flex-direction: column; gap: .6rem; }
.mod-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}
.mod-item-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}
.mod-item-body { font-size: .88rem; color: var(--text); margin-bottom: .6rem; line-height: 1.5; }
.mod-item-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.mod-foto-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.mod-foto-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mod-foto-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mod-foto-card .mod-foto-info { padding: .6rem .75rem; }
.mod-foto-card .mod-foto-meta { font-size: .76rem; color: var(--muted); margin-bottom: .4rem; }
.mod-foto-card .mod-item-actions { padding: 0 .75rem .75rem; }

/* Login admin */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}
.admin-login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-login-box .logo-login { height: 56px; margin: 0 auto 1.25rem; }
.admin-login-box h1 { font-size: 1.25rem; margin-bottom: .25rem; }
.admin-login-box .sub { font-size: .82rem; color: var(--muted); margin-bottom: 2rem; }

/* ─────────────────────────────────────────────────────────────
   Responsive
──────────────────────────────────────────────────────────────── */
@media (min-width: 520px) {
  .eventos-grid  { grid-template-columns: 1fr 1fr; }
  .foto-grid     { grid-template-columns: repeat(3, 1fr); }
  .mod-foto-wrap { grid-template-columns: repeat(3, 1fr); }
  .stat-grid     { grid-template-columns: repeat(4, 1fr); }
  .form-row      { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 680px) {
  .admin-main .container { max-width: 720px; }
}

/* ── Print / PDF ────────────────────────────────────────────── */
@media print {
  .topbar, .memorial-nav, .admin-nav,
  .inline-form, .corazon-btn, .btn,
  .lightbox-overlay { display: none !important; }
  body { background: white; color: #111; }
  .mensaje-card { break-inside: avoid; }
}

/* ── Utilities ──────────────────────────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-sm     { font-size: .82rem; }
.d-flex      { display: flex; }
.gap-1       { gap: .5rem; }
.flex-wrap   { flex-wrap: wrap; }
.align-center{ align-items: center; }
.justify-between { justify-content: space-between; }

/* ── Botones de acción en el hero del memorial ──────────────── */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-bottom: .25rem;
}
.hero-actions .compartir-btn,
.hero-actions .copiar-link-btn {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
  margin-left: 0;
}
.hero-actions .compartir-btn:hover,
.hero-actions .copiar-link-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ── Foto adjunta en mensaje ────────────────────────────────── */
.mensaje-foto {
  margin: .65rem 0 .1rem;
  text-align: center;
}
.mensaje-foto img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* ── Botón comentar en barra de acciones ────────────────────── */
.mensaje-acciones .comentar-btn {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  background: none;
  border: none;
  border-radius: 6px;
  margin: 0;
  padding: .38rem .2rem;
  font-size: .76rem;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}
.mensaje-acciones .comentar-btn:hover,
.mensaje-acciones .comentar-btn.activo { color: var(--blue); }

/* ── Sección de comentarios ─────────────────────────────────── */
.comentarios-wrap {
  display: none;
  padding: .65rem 0 .2rem;
  border-top: 1px solid var(--border);
  margin-top: .1rem;
}
.comentarios-wrap.coms-open { display: block; }

.comentarios-lista {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .65rem;
}
.comentario {
  padding: .35rem .55rem .35rem .85rem;
  border-left: 2.5px solid var(--border);
  background: var(--bg);
  border-radius: 0 5px 5px 0;
}
.com-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .12rem;
}
.com-nombre { font-size: .74rem; font-weight: 600; color: var(--text); }
.com-fecha  { font-size: .67rem; color: var(--muted); }
.com-texto  { font-size: .78rem; color: var(--text); margin: 0; line-height: 1.45; }

.comentario-form { padding: .1rem 0 0; }
.com-textarea {
  min-height: 58px;
  font-size: .8rem;
  resize: vertical;
}
.com-form-actions {
  display: flex;
  gap: .4rem;
  margin-top: .4rem;
  justify-content: flex-end;
}
.com-ok  { font-size: .76rem; color: var(--green,#3a9e6b); margin: .3rem 0 0; }
.com-err { font-size: .76rem; color: var(--red,#c0392b);   margin: .3rem 0 0; }

/* Miniatura en panel de moderación */
.mod-msg-foto {
  margin-bottom: .6rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 200px;
}
.mod-msg-foto img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

/* ── Botón Compartir ────────────────────────────────────────── */
.compartir-btn {
  background: none;
  border: 1px solid rgba(107, 159, 212, 0.35);
  color: var(--blue);
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  transition: background .15s, border-color .15s;
  margin-left: .4rem;
}
.compartir-btn:hover,
.compartir-btn:focus {
  background: rgba(107, 159, 212, 0.12);
  border-color: var(--blue);
  outline: none;
}
.compartir-btn:disabled {
  opacity: .5;
  cursor: wait;
}

.foto-share {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: .35rem 0 .1rem;
  flex-wrap: wrap;
}

/* ── Botón Copiar link ──────────────────────────────────────── */
.copiar-link-btn {
  background: none;
  border: 1px solid rgba(155, 126, 200, 0.35);
  color: var(--purple);
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  transition: background .15s, border-color .15s;
  margin-left: .4rem;
}
.copiar-link-btn:hover,
.copiar-link-btn:focus {
  background: rgba(155, 126, 200, 0.1);
  border-color: var(--purple);
  outline: none;
}
.copiar-link-btn:active {
  background: rgba(155, 126, 200, 0.18);
}

/* ── Reposts ────────────────────────────────────────────────── */
.repost-quote {
  border-left: 3px solid var(--purple);
  margin: .65rem 0 .3rem;
  padding: .45rem .8rem;
  background: rgba(155,126,200,.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.repost-quote-autor {
  font-size: .7rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: .2rem;
}
.repost-quote-texto {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
}
.repost-form-wrap {
  display: none;
  padding: .65rem 0 .2rem;
  border-top: 1px solid var(--border);
  margin-top: .1rem;
}
.repost-form-wrap.repost-open { display: block; }
.repost-quote-preview {
  background: rgba(155,126,200,.07);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .4rem .75rem;
  margin-bottom: .65rem;
}
.mensaje-acciones .repostear-btn {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  background: none;
  border: none;
  border-radius: 6px;
  margin: 0;
  padding: .38rem .2rem;
  font-size: .76rem;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}
.mensaje-acciones .repostear-btn:hover,
.mensaje-acciones .repostear-btn.activo { color: var(--purple); }

/* ── Hero: eventos en el encabezado ─────────────────────── */
.hero-eventos {
  margin: .9rem auto .45rem;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .38rem;
  text-align: left;
}
.hero-evento-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: rgba(0,0,0,.32);
  border-radius: 10px;
  padding: .48rem .75rem;
}
.hero-evento-icon {
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: .12rem;
  line-height: 1;
}
.hero-evento-tipo {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-bottom: .08rem;
}
.hero-evento-lugar {
  display: block;
  font-size: .83rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}
.hero-evento-hora {
  display: block;
  font-size: .74rem;
  color: rgba(255,255,255,.72);
  margin-top: .08rem;
}

/* ── Modal verificación de correo ──────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  animation: modal-in .18s ease;
}
@keyframes modal-in {
  from { transform: scale(.95); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-close-btn {
  position: absolute;
  top: .8rem;
  right: .9rem;
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: .15rem .4rem;
  border-radius: 4px;
}
.modal-close-btn:hover { background: var(--bg); }
