/* ============================================
   Carbaprofe — Hoja de estilos principal
   Inspiracion: Practical Typography + Zara
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500&display=swap');

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

html {
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fafafa;
  padding: 0 1.5rem;
}

/* Columna central */
header, main, footer {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* Cabecera */
header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 3rem;
}

.site-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
}

.site-title:hover {
  color: #555;
}

/* Titulos */
h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e8e8e8;
}

/* Cuerpo de texto */
p {
  margin-bottom: 1.25rem;
}

/* Listas */
ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Enlaces */
a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: #1a1a1a;
}

/* Separador */
hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 3rem 0 2rem;
}

/* Navegacion entre conceptos */
.nav-conceptos {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Metadatos del concepto */
.meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}

/* Pie de pagina */
footer {
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid #e0e0e0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #bbb;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 480px) {
  html { font-size: 17px; }
  h1 { font-size: 1.6rem; }
}