/*
Theme Name:   Coro Parroquial — Missal
Theme URI:    https://coro.uachatec.com/
Description:  Tema independiente para el repertorio litúrgico. Diseño moderno, limpio y funcional. No requiere tema padre.
Author:       Coro Parroquial UACHATEC
Version:      2.0.0
Text Domain:  coro-missal
Tags:         liturgical, music, choir, parish
*/

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #F0F0F2;
  color: #111118;
  line-height: 1.55;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  /* Paleta nueva: blanca/gris fría + dorado funcional */
  --gold:        #B8892A;
  --gold-light:  #D4A84B;
  --gold-pale:   #FDF8EE;
  --gold-border: rgba(184,137,42,0.22);

  /* Neutros */
  --white:       #FFFFFF;
  --surface:     #FAFAFA;
  --surface-2:   #F3F3F5;
  --border:      #E2E2E6;
  --border-dark: #C8C8CE;

  /* Texto */
  --ink:         #111118;
  --ink-soft:    #3C3C48;
  --ink-muted:   #767682;
  --ink-faint:   #A8A8B4;

  /* Header/Footer oscuro */
  --dark-bg:     #16161E;
  --dark-border: rgba(255,255,255,0.08);
  --dark-text:   rgba(255,255,255,0.88);
  --dark-muted:  rgba(255,255,255,0.44);

  /* Sistema */
  --r-sm:   5px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);

  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:  'SF Mono', ui-monospace, 'Cascadia Code', monospace;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 4px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.site-main {
  padding: 2rem 2.5rem 5rem;
  flex: 1;
}

@media (max-width: 700px) {
  .site-main { padding: 1.5rem 1.25rem 4rem; }
}
@media (max-width: 480px) {
  .site-main { padding: 1.1rem 1rem 3rem; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--dark-border);
}

.site-title-wrap {}

.site-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Cruz pequeña antes del título */
.site-title::before {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  opacity: 0.85;
}

.site-title a { color: inherit; }

.site-tagline {
  font-size: 11px;
  color: var(--dark-muted);
  margin-top: 1px;
  padding-left: 29px; /* alinea con el texto después de la cruz */
}

/* Botón búsqueda en header */
.header-search-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--dark-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s, color 0.15s;
}

.header-search-btn:hover {
  background: rgba(255,255,255,0.10);
  color: var(--dark-text);
}

@media (max-width: 700px) {
  .site-header { padding: 0 1.25rem; height: 54px; }
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav-inner {
  display: flex;
  align-items: stretch;
  padding: 0 2.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav-inner::-webkit-scrollbar { display: none; }

.site-nav ul { display: flex; }

.site-nav-inner a {
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  height: 42px;
  font-size: 13px;
  font-weight: 450;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}

.site-nav-inner a:hover,
.site-nav-inner a.active,
.current-menu-item > a {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1rem;
  height: 42px;
  color: var(--ink-muted);
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 4px auto;
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; align-items: center; }
  .site-nav-inner { padding: 0 0.5rem; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
  }
  .site-nav ul.open { display: flex; }
  .site-nav-inner a {
    height: auto;
    padding: 0.55rem 1rem;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .site-nav-inner a:hover,
  .site-nav-inner a.active {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 0.6rem 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--ink-faint); }
.breadcrumbs .current { color: var(--ink-soft); }

@media (max-width: 700px) {
  .breadcrumbs { padding: 0.55rem 1.25rem; }
}

/* ============================================================
   BUSCADOR
   ============================================================ */
.search-wrap {
  padding: 1.25rem 2.5rem 0;
  position: relative;
  z-index: 300;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 12px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-box:focus-within {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,137,42,0.10);
}

.search-box svg { color: var(--ink-faint); flex-shrink: 0; }

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.search-box input::placeholder { color: var(--ink-faint); }

.search-box button {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.82);
  border: none;
  border-radius: var(--r-md);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.search-box button:hover,
.search-box button:active { background: var(--ink-soft); }

/* Resultados dropdown */
#coro-search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 12px 40px rgba(0,0,0,0.08);
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 400;
}

@media (max-width: 700px) {
  .search-wrap { padding: 1rem 1.1rem 0; }
}

/* ============================================================
   ENCABEZADO DE PÁGINA
   ============================================================ */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

@media (max-width: 480px) {
  .page-header h1 { font-size: 22px; }
}

/* ============================================================
   DIVISOR DE SECCIÓN
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.75rem 0 1rem;
}

.section-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-divider::before { display: none; }

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   GRID DE CATEGORÍAS
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.cat-card:hover {
  background: var(--white);
  border-color: var(--gold-light);
  box-shadow: 0 2px 12px rgba(184,137,42,0.12);
}

.cat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--gold);
}

.cat-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
}

.cat-card-count {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 1px;
}

/* ============================================================
   LISTA DE CANTOS
   ============================================================ */
.song-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.82rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  transition: background 0.1s;
}

.song-item:last-child { border-bottom: none; }

.song-item:hover {
  background: var(--surface);
}

.song-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
  flex-shrink: 0;
}

.song-item-name { flex: 1; }
.song-item-arrow { font-size: 16px; color: var(--border-dark); }

/* ============================================================
   CANTO INDIVIDUAL (chord sheet)
   ============================================================ */
.song-header { margin-bottom: 1.1rem; }

.song-title {
  font-size: 24px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.song-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.song-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 2px 10px;
}

.chord-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.5rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  word-break: break-word;
}

.chord-sheet p {
  margin: 0 0 0.9em;
  line-height: 1.65;
  min-height: 0.5em;
}

.chord-sheet p + p { margin-top: -0.5em; }

.chord-sheet p:empty {
  display: block !important;
  margin: 0.6em 0 !important;
  min-height: 0 !important;
}

.chord-sheet br {
  display: block;
  line-height: 1.65;
}

.chord-sheet p:empty,
.chord-sheet .wp-block-paragraph:empty,
.chord-sheet figure:empty { display: none !important; }

.chord-sheet strong, .chord-sheet b {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

.chord-sheet h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.25rem 0 0.4rem;
}

/* ============================================================
   MISA LIST (entradas con categoría Misas)
   ============================================================ */
.misa-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  text-align: left !important;
}

.misa-list > strong,
.misa-list p > strong:only-child {
  display: block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--ink-muted) !important;
  padding: 0.75rem 1.25rem 0.6rem !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  line-height: 1.4 !important;
}

.misa-list p:has(> strong:only-child) {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: 1 !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
}

.misa-list p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  text-align: left !important;
}

.misa-list p a,
.misa-list p a:visited {
  display: block !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  padding: 0.78rem 1.25rem !important;
  line-height: 1.4 !important;
  border-bottom: 1px solid var(--border) !important;
  text-align: left !important;
}

.misa-list p:last-child a { border-bottom: none !important; }

.misa-list p a:hover {
  background: var(--surface) !important;
  color: var(--ink) !important;
}

.misa-list h3 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.75rem 1.25rem 0.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: 0 !important;
  text-align: left !important;
}

/* ============================================================
   BARRA DE ACCIONES
   ============================================================ */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  transition: all 0.12s;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--gold-light);
  color: var(--gold);
  background: var(--gold-pale);
}

.btn-primary {
  background: var(--dark-bg) !important;
  color: rgba(255,255,255,0.88) !important;
  border-color: var(--dark-bg) !important;
}

.btn-primary:hover {
  background: var(--ink-soft) !important;
  border-color: var(--ink-soft) !important;
  color: #fff !important;
}

/* ============================================================
   MISA BUILDER
   ============================================================ */
.misa-title-wrap { margin-bottom: 1.35rem; }

.misa-title-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.misa-title-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.misa-title-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,42,0.10);
  background: var(--white);
}

.misa-title-input::placeholder {
  color: var(--ink-faint);
  font-size: 14px;
}

.misa-builder { margin-bottom: 1rem; }

.misa-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  background: var(--surface);
  transition: border-color 0.12s, background 0.12s;
}

.misa-row:focus-within {
  border-color: var(--gold);
  background: var(--white);
}

.misa-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  min-width: 130px;
  flex-shrink: 0;
}

.misa-row select {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.12s;
  min-width: 0;
}

.misa-row select:focus { border-color: var(--gold); }

.misa-status {
  display: none;
  margin-top: 1rem;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  border: 1px solid;
}

.misa-status.success { background: #f0faf4; border-color: #a3d4b4; color: #1e6040; }
.misa-status.error   { background: #fdf2f2; border-color: #f0b8b8; color: #7a2222; }
.misa-status a { font-weight: 600; text-decoration: underline; color: inherit; }

/* ============================================================
   MISA GUARDADA
   ============================================================ */
.misa-guardada-content .misa-page-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.misa-guardada-content .misa-page-table thead tr {
  border-bottom: 2px solid var(--gold);
}

.misa-guardada-content .misa-page-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 0 0.6rem;
  text-align: left;
}

.misa-guardada-content .misa-page-table th:last-child { padding-left: 1.5rem; }

.misa-guardada-content .misa-page-table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.4;
}

.misa-guardada-content .misa-page-table td > p,
.misa-guardada-content .misa-page-table td > br { display: none !important; }

.misa-guardada-content .misa-page-sec {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: 36%;
}

.misa-guardada-content .misa-page-canto {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 1.5rem;
}

.misa-guardada-content .misa-page-canto a {
  color: var(--ink-soft);
  text-decoration: none;
}

.misa-guardada-content .misa-page-canto a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ============================================================
   POSTS
   ============================================================ */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  margin-bottom: 10px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.post-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 2px 12px rgba(184,137,42,0.09);
}

.post-card-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.post-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
}

.post-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* ============================================================
   PDF LIST
   ============================================================ */
.pdf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 7px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: border-color 0.12s, background 0.12s;
}

.pdf-item:hover {
  border-color: var(--gold-light);
  background: var(--surface);
}

.pdf-badge {
  width: 34px;
  height: 34px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--dark-border);
  padding: 1.25rem 2.5rem;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer p {
  font-size: 12px;
  color: var(--dark-muted);
}

.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: #fff; }

@media (max-width: 700px) {
  .site-footer { padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESULTADOS DE BÚSQUEDA (dropdown)
   ============================================================ */
.search-result-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 5px;
}

.search-result-group-header span:first-child {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.search-result-group-header span:last-child {
  flex: 1;
  height: 1px;
  background: var(--border);
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 20px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  transition: background 0.1s;
}

.search-result-item:hover {
  background: var(--surface);
  color: var(--ink);
}

.search-result-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.55;
}

.search-no-results {
  padding: 14px 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.search-results-footer {
  padding: 7px 14px 10px;
  font-size: 11px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ============================================================
   BARRA COMPARTIR
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-right: 2px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
  line-height: 1;
}

.share-btn:hover {
  background: var(--white);
  border-color: var(--border-dark);
  color: var(--ink);
}

.share-btn svg { flex-shrink: 0; opacity: 0.65; }
.share-btn:hover svg { opacity: 1; }

.share-wa:hover { background: #f0faf3; border-color: #5cb85c; color: #1a6e1a; }
.share-wa:hover svg { color: #25D366; opacity: 1; }

.share-fb:hover { background: #f0f4fa; border-color: #8b9dc3; color: #1877F2; }
.share-fb:hover svg { opacity: 1; }

.share-copy.share-copied {
  background: var(--gold-pale);
  border-color: var(--gold-border);
  color: var(--gold);
}

@media (max-width: 480px) {
  .share-bar { gap: 5px; }
  .share-btn { font-size: 11px; padding: 5px 10px; }
}

@media print {
  .share-bar { display: none !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .breadcrumbs, .search-wrap,
  .action-bar, .site-footer, .header-search-btn { display: none !important; }

  body { background: #fff; }
  .site-wrap { box-shadow: none; max-width: 100%; }
  .site-main { padding: 0; }

  .chord-sheet {
    border: 1px solid #ccc;
    background: #fff;
    border-left: 2px solid #9A7428;
    font-size: 11pt;
  }

  .chord-sheet strong, .chord-sheet b { color: #9A7428; }

  .misa-guardada-content .misa-page-table td,
  .misa-guardada-content .misa-page-table th { font-size: 11pt; }
}
