@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/atkinson-hyperlegible-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fuentes/atkinson-hyperlegible-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fuentes/familjen-grotesk-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fuentes/familjen-grotesk-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FDFBF7;
  --bg-card: #FFFFFF;
  --txt: #2B231D;
  --txt-muted: #6B5E55;
  --oxido: #8C3518;
  --oxido-hover: #702810;
  --ocre: #D97724;
  --cobre: #B3541E;
  --borde: #E6DED5;
  --borde-light: #F0EAE1;
  --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Familjen Grotesk", sans-serif;
  color: var(--txt);
  line-height: 1.25;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-weight: 700;
}
h1 { font-size: 2.3rem; margin-top: 0.5em; color: var(--oxido); }
h2 { font-size: 1.7rem; border-bottom: 2px solid var(--borde-light); padding-bottom: 0.3em; }
h3 { font-size: 1.3rem; color: var(--cobre); }

p { margin-top: 0; margin-bottom: 1.2em; }
a { color: var(--oxido); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--oxido-hover); }

.w { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.estrecho { max-width: 800px; }

/* Cabecera */
.cab {
  background: #FFFFFF;
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cab-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.marca {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--oxido);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.marca span { color: var(--ocre); }
.nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  color: var(--txt);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--oxido);
  background: var(--borde-light);
}

.menu-b {
  display: none;
  background: none;
  border: 1px solid var(--borde);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #F5EDE4 0%, #FFFFFF 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--borde);
}
.hero-lead {
  font-size: 1.25rem;
  color: var(--txt-muted);
  max-width: 780px;
  line-height: 1.5;
}

/* Tarjetas y Secciones */
.sec { padding: 3rem 0; border-bottom: 1px solid var(--borde-light); }
.sec-titulo { margin-bottom: 1.5rem; }
.sec-i { font-size: 1.1rem; color: var(--txt-muted); margin-bottom: 2rem; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 35, 29, 0.08);
}
.card h3 { margin-top: 0; font-size: 1.25rem; }
.card p { color: var(--txt-muted); font-size: 0.95rem; flex-grow: 1; }
.card a.btn-card {
  align-self: flex-start;
  font-weight: 700;
  text-decoration: none;
  color: var(--oxido);
}
.card a.btn-card:hover { text-decoration: underline; }

/* Contenido interior */
.pg-cab {
  background: #F8F3ED;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--borde);
}
.migas { font-size: 0.88rem; margin-bottom: 1rem; }
.migas ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 0.5rem; }
.migas li::after { content: "/"; margin-left: 0.5rem; color: var(--txt-muted); }
.migas li:last-child::after { content: ""; }
.migas a { text-decoration: none; color: var(--txt-muted); }
.migas li[aria-current="page"] { color: var(--txt); font-weight: 600; }

.prosa {
  padding: 2.5rem 0;
  font-size: 1.05rem;
  max-width: 800px;
}
.prosa ul, .prosa ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prosa li { margin-bottom: 0.5rem; }

/* Cajas destacadas */
.caja-destacada {
  background: #FAF5F0;
  border-left: 4px solid var(--oxido);
  padding: 1.25rem 1.5rem;
  margin: 1.8rem 0;
  border-radius: 0 6px 6px 0;
}
.caja-destacada h4 { margin-top: 0; margin-bottom: 0.5rem; color: var(--oxido); }

/* Tablas */
.tabla {
  overflow-x: auto;
  margin: 1.8rem 0;
  border: 1px solid var(--borde);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
th, td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--borde);
}
th { background: #F5EFE8; font-family: "Familjen Grotesk", sans-serif; font-weight: 700; color: var(--txt); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #FDFAF6; }

/* FAQ */
.faq { margin: 2rem 0; }
details {
  border: 1px solid var(--borde);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}
summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: #FCF9F5;
  outline: none;
  font-family: "Familjen Grotesk", sans-serif;
  color: var(--txt);
}
summary:hover { background: #F5EFE8; }
details p { padding: 1.25rem; margin: 0; }

/* Pie */
.pie {
  background: #231C16;
  color: #D9CFC7;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}
.pie a { color: #E89635; text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.pie-m p { color: #B3A59B; max-width: 320px; }
.pie nav strong { display: block; color: #FFFFFF; margin-bottom: 0.8rem; font-family: "Familjen Grotesk", sans-serif; }
.pie nav ul { list-style: none; padding: 0; margin: 0; }
.pie nav li { margin-bottom: 0.4rem; }
.pie-b {
  border-top: 1px solid #3D322A;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8C7E74;
}

@media (max-width: 860px) {
  .menu-b { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav.abierto { display: block; }
  .nav ul { flex-direction: column; padding: 1rem; gap: 0.5rem; }
  .pie-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 2.5rem 0 1.5rem; }
  h1 { font-size: 1.85rem; }
}
