/* Ganet Adexa — hoja de estilos única.
   Dirección estética nº 5: orgánico / colores tierra.
   Paleta propia: terracota, arena y marrón oscuro (+ ocre como acento puntual).
   Tipografías: Fraunces (títulos) + Work Sans (texto), alojadas en el propio sitio. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --arena: #f3e7d3;
  --arena-2: #ead8bc;
  --arena-3: #dcc4a1;
  --crema: #fbf5ea;
  --terra: #a8492a;
  --terra-deep: #7e3419;
  --terra-tint: #ecd0bb;
  --marron: #3b2418;
  --marron-2: #5f4231;
  --marron-3: #2b1a11;
  --ocre: #d9a05b;

  --r-s: 18px;
  --r-m: 28px;
  --r-l: 44px;
  --r-xl: 64px;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--arena);
  color: var(--marron);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terra-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--marron); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--marron); color: var(--crema); padding: 10px 18px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ───── Aviso superior (inicio) ───── */
.notice {
  background: var(--marron);
  color: var(--crema);
  border-radius: 0 0 var(--r-l) var(--r-l);
  padding: 22px 0 26px;
}
.notice .wrap { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.notice-label {
  grid-row: span 2;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 650;
  background: var(--ocre); color: var(--marron);
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.notice p { margin: 0; font-size: .98rem; line-height: 1.55; }
.notice p + p { color: #e9d9c1; }
.notice strong { font-weight: 650; }

/* ───── Cabecera ───── */
.site-head { padding: 22px 0 10px; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--marron); }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1; display: block; letter-spacing: -.02em; }
.brand-tag {
  display: inline-block; margin-top: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: var(--crema); border: 1.5px solid var(--marron-2); color: var(--marron);
  padding: 3px 12px; border-radius: 999px;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--marron); font-weight: 600; font-size: .95rem;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid transparent;
}
.nav a:hover { border-color: var(--marron-2); }
.nav a[aria-current="page"] { background: var(--marron); color: var(--crema); }

/* ───── Inicio: hero ───── */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--terra); font-weight: 600; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 58ch; color: var(--marron-2); }
.hero-art { border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px; overflow: hidden; aspect-ratio: 600 / 470; background: var(--arena-2); }
.hero-art svg { width: 100%; height: 100%; }

.es-no { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.panel { border-radius: var(--r-l); padding: 22px 24px 8px; }
.panel h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: .7em; }
.panel ul { list-style: none; padding: 0; }
.panel li { padding-left: 1.5em; position: relative; font-size: .97rem; line-height: 1.5; margin-bottom: .75em; }
.panel li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.panel.es { background: var(--crema); border: 2px solid var(--marron); }
.panel.es li::before { content: "✓"; color: var(--terra-deep); }
.panel.no { background: var(--terra-tint); border: 2px dashed var(--terra-deep); }
.panel.no li::before { content: "✕"; color: var(--terra-deep); }
.badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--sans); font-size: .95rem; font-weight: 800; flex: none; }
.es .badge { background: var(--marron); color: var(--crema); }
.no .badge { background: var(--terra-deep); color: var(--crema); }

/* ───── Inicio: portada tipo revista ───── */
.section-label {
  display: flex; align-items: center; gap: 16px; margin: clamp(28px, 5vw, 56px) 0 22px;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
}
.section-label::after { content: ""; flex: 1; height: 2px; background: var(--marron); border-radius: 2px; }

.mag { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(18px, 2.5vw, 32px); align-items: stretch; }
.lead-story {
  background: var(--crema); border-radius: var(--r-xl); overflow: hidden;
  border: 2px solid var(--marron); display: flex; flex-direction: column;
}
.lead-story .art { aspect-ratio: 16 / 8.2; background: var(--arena-2); border-bottom: 2px solid var(--marron); }
.lead-story .art svg { width: 100%; height: 100%; }
.lead-story .txt { padding: clamp(22px, 3vw, 38px); }
.chip {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  background: var(--terra); color: var(--crema); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lead-story h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 700; margin-bottom: .4em; }
.lead-story h2 a, .side-list a.t, .tile h3 a { color: inherit; text-decoration: none; }
.lead-story h2 a:hover, .side-list a.t:hover, .tile h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.deck { font-size: 1.1rem; color: var(--marron-2); }
.meta { font-size: .86rem; color: var(--marron-2); margin: 0; }
.more { display: inline-block; margin-top: 8px; font-weight: 700; }

.side-list { background: var(--arena-2); border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; }
.side-list h2 { font-size: 1.3rem; margin-bottom: 1em; }
.side-list ol { list-style: none; margin: 0; padding: 0; counter-reset: it; }
.side-list li { display: grid; grid-template-columns: 52px 1fr; gap: 6px 10px; padding: 18px 0; margin: 0; border-top: 2px dotted var(--marron-2); counter-increment: it; }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list li::before { content: counter(it, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--terra); line-height: 1; grid-row: span 2; }
.side-list a.t { font-family: var(--serif); font-weight: 650; font-size: 1.22rem; line-height: 1.2; }
.side-list .meta { grid-column: 2; }

/* grid de destacados (asimétrico) */
.tiles { display: grid; grid-template-columns: 1.25fr .8fr 1.25fr; gap: clamp(16px, 2.2vw, 28px); align-items: stretch; }
.tile { background: var(--crema); border: 2px solid var(--marron); border-radius: var(--r-l); padding: 26px 26px 22px; display: flex; flex-direction: column; }
.tile:nth-child(1) { border-radius: var(--r-l) var(--r-l) var(--r-l) 90px; }
.tile:nth-child(3) { border-radius: var(--r-l) 90px var(--r-l) var(--r-l); }
.tile .thumb { height: 120px; border-radius: var(--r-m); overflow: hidden; margin-bottom: 18px; background: var(--arena-2); }
.tile .thumb svg { width: 100%; height: 100%; }
.tile h3 { font-size: 1.45rem; }
.tile .deck { font-size: .98rem; flex: 1; }
.tile.fact { background: var(--terra); color: var(--crema); border-color: var(--terra-deep); justify-content: center; }
.tile.fact h3 { font-style: italic; font-weight: 500; font-size: 1.1rem; letter-spacing: .02em; margin-bottom: .6em; }
.tile.fact p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.35; }
.tile.fact a { color: var(--crema); font-weight: 700; }

.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); background: var(--marron); color: var(--crema); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 60px); margin: clamp(32px, 5vw, 64px) 0; }
.method h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.method p { color: #eadcc5; }
.method a { color: var(--ocre); font-weight: 700; }
.method ol { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.method li { counter-increment: m; position: relative; padding: 4px 0 18px 58px; margin: 0; }
.method li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ocre); color: var(--marron); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.method li strong { font-family: var(--serif); font-size: 1.15rem; display: block; color: var(--crema); }

/* ───── Artículo ───── */
.art-head { padding: clamp(24px, 4vw, 48px) 0 8px; }
.art-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 52px); align-items: center; }
.art-head h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; }
.art-fig { border-radius: var(--r-xl) var(--r-xl) 110px var(--r-xl); overflow: hidden; aspect-ratio: 6 / 5; background: var(--arena-2); }
.art-fig svg { width: 100%; height: 100%; }
.crumbs { font-size: .88rem; margin-bottom: 18px; }
.byline { font-size: .9rem; color: var(--marron-2); border-top: 2px dotted var(--marron-2); padding-top: 12px; margin-top: 18px; }

.art-body { max-width: 720px; margin: clamp(28px, 4vw, 52px) auto 0; padding-inline: var(--gut); }
.art-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.art-body h2:first-child { margin-top: 0; }
.sabias {
  background: var(--terra); color: var(--crema); border-radius: var(--r-l) var(--r-l) var(--r-l) 80px;
  padding: clamp(24px, 4vw, 40px); margin: 2em 0;
}
.sabias h2 { font-style: italic; font-weight: 500; font-size: 1.15rem; letter-spacing: .03em; margin: 0 0 .7em; color: var(--crema); }
.sabias p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.sabias p:last-child { margin-bottom: 0; }
.care { background: var(--crema); border: 2px dashed var(--marron-2); border-radius: var(--r-m); padding: 18px 24px; margin: 1.8em 0; font-size: .98rem; }
.care p:last-child { margin: 0; }
.sources { background: var(--arena-2); border-radius: var(--r-l); padding: 26px 30px 12px; margin-top: 2.4em; }
.sources h2 { font-size: 1.35rem; margin-top: 0; }
.sources ul { font-size: .95rem; padding-left: 1.1em; }
.edu-note { font-size: .92rem; border-top: 2px solid var(--marron); padding-top: 16px; margin-top: 2em; color: var(--marron-2); }
.next-read { max-width: 720px; margin: 34px auto 0; padding-inline: var(--gut); }
.next-read a { display: block; background: var(--crema); border: 2px solid var(--marron); border-radius: var(--r-l); padding: 20px 26px; text-decoration: none; color: var(--marron); }
.next-read a:hover { background: var(--terra-tint); }
.next-read span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--terra-deep); }
.next-read strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }

/* ───── Acerca de ───── */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 72px); padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 3vw, 40px); align-items: start; }
.about aside { position: sticky; top: 20px; }
.about h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; }
.about-art { border-radius: 200px 200px var(--r-l) var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--arena-2); margin-bottom: 20px; }
.about-art svg { width: 100%; height: 100%; }
.card-id { background: var(--crema); border: 2px solid var(--marron); border-radius: var(--r-l); padding: 20px 24px; font-size: .95rem; }
.card-id dl { margin: 0; }
.card-id dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-deep); margin-top: 10px; }
.card-id dd { margin: 0; }
.about-text h2 { font-size: 1.7rem; margin-top: 1.7em; }
.about-text h2:first-of-type { margin-top: 0; }
.about-text .lead { margin-bottom: 1.4em; }
.pull { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; border-left: 6px solid var(--terra); padding: 4px 0 4px 22px; margin: 1.6em 0; }

/* ───── Política editorial ───── */
.edit-head { padding: clamp(28px, 5vw, 56px) 0 12px; max-width: 820px; }
.edit-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; }
.principles { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: p; display: grid; gap: 18px; }
.principles li {
  counter-increment: p; margin: 0;
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 26px; align-items: start;
  background: var(--crema); border: 2px solid var(--marron); border-radius: var(--r-l); padding: 26px 30px 22px;
}
.principles li:nth-child(even) { background: var(--arena-2); margin-left: clamp(0px, 6vw, 80px); }
.principles li:nth-child(odd) { margin-right: clamp(0px, 6vw, 80px); }
.principles .ico { width: 84px; height: 84px; }
.principles h2 { font-size: 1.45rem; margin-bottom: .3em; }
.principles h2::before { content: counter(p, decimal-leading-zero) " · "; color: var(--terra); }
.principles p { margin-bottom: .6em; }
.limits { margin: 34px 0 10px; max-width: 820px; background: var(--marron); color: var(--crema); border-radius: var(--r-l); padding: 26px 32px; }
.limits h2 { font-size: 1.35rem; }
.limits p:last-child { margin: 0; }

/* ───── Páginas legales: documento limpio ───── */
.legal main { padding-bottom: 40px; }
.doc { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gut) 20px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; }
.doc .updated { color: var(--marron-2); font-size: .92rem; margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid var(--marron-2); }
.doc h2 { font-size: 1.35rem; margin-top: 1.9em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.4em; }
.doc p, .doc li { font-size: 1.02rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1.4em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--arena-3); }
.doc th { font-weight: 650; border-bottom: 1px solid var(--marron); }
.doc .exempt { border-left: 4px solid var(--marron); padding: 4px 0 4px 18px; margin: 1.4em 0; }

/* ───── Pie ───── */
.site-foot { background: var(--marron-3); color: #eadcc5; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: clamp(36px, 6vw, 72px); padding: clamp(32px, 5vw, 56px) 0 30px; }
.site-foot a { color: var(--crema); }
.site-foot a:hover { color: var(--ocre); }
.site-foot :focus-visible { outline-color: var(--ocre); }
.foot-notice { background: var(--arena); color: var(--marron); border-radius: var(--r-l); padding: 22px 28px; margin-bottom: 34px; }
.foot-notice p { margin: 0 0 .6em; font-size: .98rem; line-height: 1.55; }
.foot-notice p:last-child { margin: 0; }
.foot-notice strong { font-family: var(--serif); font-size: 1.1rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 28px 40px; }
.foot-grid h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .55em; font-size: .96rem; }
.foot-grid address { font-style: normal; font-size: .95rem; line-height: 1.6; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.foot-brand .brand-mark { width: 44px; height: 44px; }
.foot-brand span { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--crema); }
.foot-about { font-size: .93rem; margin: 0; }
.foot-base { border-top: 1px solid #5f4231; margin-top: 34px; padding-top: 18px; font-size: .86rem; color: #cdb99b; }
.foot-base p { margin: 0; }

/* ───── Responsive ───── */
@media (max-width: 980px) {
  .hero-grid, .mag, .art-head-grid, .about, .method { grid-template-columns: 1fr; }
  .about aside { position: static; }
  .about-art { aspect-ratio: 16 / 10; border-radius: 120px 120px var(--r-l) var(--r-l); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.fact { grid-column: 1 / -1; order: 3; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .notice .wrap { grid-template-columns: 1fr; }
  .notice-label { grid-row: auto; justify-self: start; }
  .es-no, .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(1), .tile:nth-child(3) { border-radius: var(--r-l); }
  .principles li { grid-template-columns: 1fr; }
  .principles li:nth-child(even), .principles li:nth-child(odd) { margin-left: 0; margin-right: 0; }
  .principles .ico { width: 64px; height: 64px; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.45rem; }
  .nav a { padding: 8px 14px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { position: absolute; left: -9999px; }
  .doc td { border: 0; padding: 2px 0; }
  .doc tr { border-bottom: 1px solid var(--arena-3); padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.side-foot { margin-top: auto; padding-top: 20px; border-top: 2px dotted var(--marron-2); font-size: .95rem; }
.side-foot p { margin: 0; }
