/* ═══════════════════════════════════════════
   PerErnidad — Guías stylesheet
   Matches the brand from index.html exactly
═══════════════════════════════════════════ */

:root {
  --brown-dark: #4a2c2a;
  --brown-mid:  #7a4b4a;
  --cream:      #f5f1ec;
  --cream-dark: #ede8e1;
  --white:      #ffffff;
  --text-dark:  #3b3b3b;
  --text-mid:   #5a5a5a;
  --text-light: #777;
  --shadow:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
  --radius:     10px;
  --max-w:      800px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--brown-dark);
  margin: 0 0 12px;
  line-height: 1.3;
}

a { color: var(--brown-mid); }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ═══════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.site-logo {
  height: 36px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.87rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--brown-dark); }

.nav-cta {
  background: var(--brown-mid) !important;
  color: white !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: background 0.18s !important;
}
.nav-cta:hover { background: var(--brown-dark) !important; text-decoration: none !important; }

/* ═══════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════ */
.breadcrumb {
  max-width: var(--max-w);
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--brown-mid); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ═══════════════════════════════════════════
   ARTICLE WRAPPER
═══════════════════════════════════════════ */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── Article header ── */
.article-header {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px 26px;
  margin-bottom: 28px;
  border-top: 4px solid var(--brown-mid);
}

.article-cat {
  display: inline-block;
  background: var(--brown-mid);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.article-header h1 {
  font-size: 1.9rem;
  text-align: left;
  margin-bottom: 16px;
  color: var(--brown-dark);
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}
.article-meta strong { color: var(--text-mid); }

/* ── Article body ── */
.article-body {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.article-body p {
  font-size: 0.96rem;
  color: var(--text-dark);
  margin: 0 0 18px;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--cream-dark);
}

.article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.article-body h3 {
  font-size: 1.1rem;
  color: var(--brown-mid);
  margin: 26px 0 10px;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
  margin: 0 0 18px;
}

.article-body li {
  margin-bottom: 8px;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ── Step list ── */
.step-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 4px 0 20px;
}

.step-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.96rem;
  padding: 0;
}

.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--brown-mid);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Highlight box ── */
.highlight-box {
  background: #fdf6f0;
  border-left: 3px solid var(--brown-mid);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}
.highlight-box strong { color: var(--brown-dark); }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.comparison-table th {
  background: var(--cream-dark);
  color: var(--brown-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #d8d0c6;
  white-space: nowrap;
}

.comparison-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) { white-space: nowrap; }

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #faf8f5; }

.table-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: -10px;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* ── CTA block ── */
.cta-block {
  background: var(--brown-dark);
  color: white;
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 36px 0 8px;
  text-align: center;
}

.cta-block h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cta-block p {
  color: rgba(255,255,255,0.78);
  font-size: 0.91rem;
  margin: 0 0 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  background: #b85c3a;
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: background 0.18s;
}
.cta-btn:hover { background: #a34e2f; color: white; text-decoration: none; }

/* ── Related articles ── */
.related-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--cream-dark);
}

.related-section h3 {
  font-size: 1.15rem;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  border-left: 3px solid var(--brown-mid);
  transition: box-shadow 0.18s, transform 0.18s;
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-card .rc-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--brown-mid); margin-bottom: 6px; display: block;
}
.related-card h4 { font-size: 0.97rem; margin: 0; color: var(--brown-dark); line-height: 1.35; }

/* ═══════════════════════════════════════════
   HUB PAGE (guia/index.html)
═══════════════════════════════════════════ */
.hub-hero {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  text-align: center;
  padding: 48px 20px 40px;
}

.hub-hero h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.hub-hero p {
  font-size: 0.97rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hub-grid {
  max-width: 900px;
  margin: 36px auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.hub-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  border-top: 3px solid var(--brown-mid);
  transition: box-shadow 0.18s, transform 0.18s;
}
.hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.hub-card .hc-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brown-mid);
  margin-bottom: 10px; display: block;
}

.hub-card h2 {
  font-size: 1.1rem; margin: 0 0 10px;
  color: var(--brown-dark); line-height: 1.3;
}

.hub-card p {
  font-size: 0.86rem; color: var(--text-mid); margin: 0 0 14px; line-height: 1.55;
}

.hub-card .hc-arrow {
  font-size: 0.83rem; font-weight: 600; color: var(--brown-mid);
}

.hub-coming {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  border-top-color: var(--text-light);
}
.hub-coming .hc-label { color: var(--text-light); }

/* ═══════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  text-align: center;
  padding: 20px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.site-footer a { color: var(--text-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.legal-note {
  margin-top: 8px;
  font-size: 0.7rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-header { padding: 0 14px; height: 52px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-logo { height: 30px; }

  .breadcrumb { margin-top: 12px; padding: 0 14px; }

  .article-wrap { padding: 16px 12px 48px; }

  .article-header { padding: 20px 16px; }
  .article-header h1 { font-size: 1.5rem; }

  .article-body { padding: 20px 16px; }
  .article-body h2 { font-size: 1.2rem; }
  .article-body h3 { font-size: 1rem; }
  .article-body p, .article-body li { font-size: 0.93rem; }

  .step-list li { gap: 12px; }
  .step-list li::before { width: 26px; height: 26px; font-size: 0.72rem; }

  .cta-block { padding: 22px 16px; }
  .cta-block h3 { font-size: 1.15rem; }

  .hub-hero { padding: 32px 16px 28px; }
  .hub-hero h1 { font-size: 1.6rem; }
  .hub-grid { padding: 0 12px 40px; gap: 14px; margin-top: 24px; }
}
