/* 1. RESET Y BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-sans: "Inclusive Sans", ui-sans-serif, system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #f5f5f4; /* bg-taupe-100 / stone-100 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.5;
  color: #374151;
}

b {
  font-weight: 900;
  text-shadow: 0 4px 3px rgba(0, 0, 0, 0.07);
}

p {
  margin-bottom: 1rem;
  line-height: 1.625;
  color: #374151;
}

a {
  color: #2563eb;
  text-decoration: underline;
}

menu {
  list-style-type: '☆';
  list-style-position: outside;
  margin-inline-start: 1.5rem;
  margin-bottom: 0.75rem;
}

menu ::marker {
  color: #0891b2; /* marker:text-cyan-600 */
}

ul li {
  padding-inline-start: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

/* 2. ENCABEZADOS Y ARTÍCULOS */
h1, h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 700;
  color: #ffffff;
}

h3 {
  color: #0891b2;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

summary {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

h4 {
  margin-left: -6px;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

h4 > a {
  text-underline-offset: 3px;
}

h4::before {
  content: url('./icons/link.svg');
  margin-right: 4px;
}

article {
  padding: 1rem;
  border: 1px solid #0891b2;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #ffffff;
  transition: all 150ms ease;
}

article:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 3. CABECERA (FIXED / STICKY) */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(8, 145, 178, 0.95); /* bg-cyan-600 */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 0.5rem 1rem;
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

header h1 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  margin: 0; /* Anula cualquier margen previo */
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

header h1 img {
  display: inline-block;
  width: 32px;
  margin-right: 0.5rem;
}

header nav {
  margin-right: 2rem;
  font-size: 0.875rem;
}

header nav a {
  color: #fde047; /* text-yellow-300 */
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 150ms;
}

header nav a:hover {
  background-color: #000000;
}

@media (min-width: 768px) {
  header nav { font-size: 1rem; }
  header nav a { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}

@media (min-width: 1280px) {
  header nav { font-size: 0.875rem; }
}

/* 4. CONTENIDO PRINCIPAL Y GRID */
main.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  padding: 0.25rem 1.5rem 1.5rem 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 5. UTILIDADES INTERNAS DE LAS TARJETAS */
hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
}

.mt-4 { margin-top: 1rem; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }

/* Insignias C, R, U, D */
menu span.bg-cyan-600 {
  background-color: #0891b2;
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  font-weight: bold;
  border-radius: 0.2rem;
  font-size: 0.75rem;
}

/* Sub-párrafos con sangría negativa (estilo estrella) */
p.-indent-7 {
  text-indent: -1.75rem;
  padding-left: 2.25rem;
}

span.text-cyan-600 {
  color: #0891b2;
}