/* ================================================
   Los Güeros · Manual de Operaciones
   Paralax Multimedia © 2026
   ================================================ */

:root {
  --red:        #C41800;
  --red-dark:   #A31200;
  --red-light:  #FDE8E5;
  --gold:       #F5B800;
  --gold-light: #FEF8E1;
  --text:       #1C1C1E;
  --text-muted: #636366;
  --border:     #D1D1D6;
  --bg:         #F2F1EF;
  --white:      #FFFFFF;
  --sidebar-w:  270px;
  --radius:     6px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ---- Sidebar ---- */

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 3px solid var(--red);
  text-decoration: none;
  color: var(--text);
}

.sidebar-brand img {
  flex-shrink: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.sidebar-brand-text strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--red);
}

.sidebar-brand-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-group {
  padding: 14px 16px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar a {
  display: block;
  padding: 7px 16px 7px 20px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s;
}

.sidebar a:hover {
  background: var(--red-light);
  color: var(--red);
  border-left-color: var(--red);
}

.sidebar a.active {
  background: var(--red);
  color: var(--white) !important;
  border-left-color: var(--red-dark);
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  font-size: 0.68rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* ---- Main layout ---- */

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

/* ---- Page header ---- */

.page-header {
  border-bottom: 2px solid var(--red);
  padding-bottom: 16px;
  margin-bottom: 36px;
}

.section-num {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
  line-height: 1.2;
}

/* ---- Typography ---- */

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

p {
  margin: 0 0 16px;
  line-height: 1.75;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ---- Lists ---- */

ul, ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
  line-height: 1.65;
}

ul li::marker { color: var(--red); }
ol li::marker { color: var(--red); font-weight: 600; }

/* ---- Tables ---- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}

thead tr { background: var(--red); }

thead th {
  padding: 10px 14px;
  text-align: left;
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

tbody tr:nth-child(even) { background: var(--red-light); }
tbody tr:hover { background: #ffeee9; }

td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

/* ---- Code ---- */

code {
  background: #F0EFED;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: "SF Mono", "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.84em;
  color: #B01000;
}

pre {
  background: #F0EFED;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 24px;
  border-left: 4px solid var(--gold);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.88em;
  line-height: 1.65;
}

/* ---- Blockquote / note ---- */

blockquote {
  border-left: 4px solid var(--gold);
  background: var(--gold-light);
  padding: 12px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 20px;
}

blockquote p {
  margin-bottom: 0;
}

blockquote strong { color: var(--red); }

/* ---- Cover page ---- */

body.cover-body {
  background: var(--white);
  margin: 0;
}

.cover-hero {
  background: linear-gradient(150deg, #1C1C1E 55%, #3A0800);
  color: var(--white);
  padding: 64px 40px 52px;
  text-align: center;
}

.cover-hero img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  margin-bottom: 28px;
}

.cover-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.cover-hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 6px;
  font-weight: 500;
}

.cover-hero .meta {
  font-size: 0.82rem;
  opacity: 0.55;
  letter-spacing: 0.04em;
  margin: 0;
}

.cover-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.cover-body-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 60px;
}

.cover-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin: 36px 0 20px;
}

.cover-section-title:first-child { margin-top: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 4px 18px rgba(196,24,0,0.13);
  transform: translateY(-2px);
  color: var(--text);
}

.card-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cover-footer {
  background: #1C1C1E;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 22px 32px;
  font-size: 0.78rem;
  line-height: 1.7;
}

.cover-footer strong { color: var(--gold); }

/* ---- Print ---- */

@media print {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .content { padding: 0; max-width: 100%; }
  a { color: var(--text); }
  blockquote { border: 1px solid var(--gold); }
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid var(--red);
    flex-direction: row;
    flex-wrap: wrap;
    overflow-y: visible;
  }
  .sidebar-brand { flex: 0 0 100%; border-bottom: 1px solid var(--border); }
  .sidebar-footer { display: none; }
  .nav-group { padding: 8px 12px 2px; }
  .sidebar a { padding: 5px 12px; font-size: 0.8rem; }
  .main { margin-left: 0; }
  .content { padding: 24px 20px 60px; }
}

@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cover-hero h1 { font-size: 1.8rem; }
  .cover-hero img { width: 96px; height: 96px; }
}
