:root {
  --bg: #ffffff;
  --text: #111;
  --muted: #666;
  --line: #e5e7eb;
  --card: #f7f7f7;
  --brand: #2563eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ======= HEADER ======= */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}
.logo-box {
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  background: var(--card);
  border: 1px dashed #cbd5e1;
}
.nav-toggle {
  justify-self: end;
  border: 0;
  background: var(--card);
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
}
.nav {
  display: none;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
}
.nav-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.nav-link:hover { color: var(--brand); }
.nav-item { position: relative; }
.drop-btn {
  border: 0;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}
.drop-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  min-width: 220px;
  padding: 0.4rem;
}
.drop-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  text-decoration: none;
  color: inherit;
}
.drop-menu a:hover { background: #f9fafb; }

@media (min-width: 980px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-item:hover .drop-menu { display: block; }
}

/* ======= LAYOUT ======= */
.layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.2rem 0;
}
@media (min-width: 980px) {
  .layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* ======= CONTENIDO PRINCIPAL ======= */
.content h1 {
  margin: 0.2rem 0 0.8rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ======= SIDEBAR ======= */
.sidebar .box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.box h2 {
  font-size: 1rem;
  margin: 0.2rem 0 0.8rem;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li { margin: 0.25rem 0; }
.ph {
  border: 1px dashed #cbd5e1;
  background: var(--card);
  border-radius: 0.6rem;
}
.ph-img { aspect-ratio: 4/3; }
.ph-flag { aspect-ratio: 3/1; }

/* ======= FOOTER ======= */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 1rem 0;
}
.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

/* ====== FORZAR ESTILO A LOS BREADCRUMB ====== */

.breadcrumb a,
.breadcrumb a:link,
.breadcrumb a:visited {
  color: var(--muted) !important;   /* gris discreto */
  text-decoration: none !important;
}

.breadcrumb a:hover,
.breadcrumb a:active {
  color: var(--muted) !important;
  text-decoration: underline !important;
}



