/* ============================================================
   AUROVAS · Guías «Comprar vivienda en Madrid desde <país>» (guides-country-build.mjs)
   Sobrio, en blanco y negro, coherente con data.css y zone.css: la cifra
   manda, la fuente se ve y se puede pulsar. Clases propias gp-.
   Se carga en las 15 guías, en los índices por idioma y en /guias/.
   ============================================================ */
.gp { background: var(--bg); color: var(--ink); }
.gp a { color: inherit; }
.gp small { display: block; font-size: .76rem; line-height: 1.45; color: var(--grey); font-weight: 400; margin-top: 3px; }
.gp small a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--grey-2); }

/* héroe */
.gp-hero { padding: calc(var(--nav-h) + clamp(36px, 5vw, 72px)) 0 clamp(26px, 4vw, 48px); background: var(--bone); border-bottom: 1px solid var(--line); }
.gp-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; color: var(--grey); margin-bottom: 18px; }
.gp-crumb a { color: var(--graphite); font-weight: 600; }
.gp-crumb a:hover { text-decoration: underline; }
.gp-crumb i { font-style: normal; color: var(--grey-2); }
.gp-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.gp h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; margin: 14px 0 22px; max-width: 24ch; text-wrap: balance; }
.gp h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.12; margin-bottom: 14px; text-wrap: balance; }
.gp h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }

/* respuesta directa (mismo lenguaje que .dt-answer) */
.gp-answer { max-width: 76ch; padding: 18px 22px 16px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 4px 16px 16px 4px; display: grid; gap: 10px; }
.gp-answer p { font-size: 1rem; line-height: 1.62; color: var(--graphite); }
.gp-answer strong { color: var(--ink); }
.gp-answer__k { font-family: var(--font-mono); font-size: .7rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ink) !important; font-weight: 600; }
.gp-answer .gp-answer__meta { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: .8rem; line-height: 1.5; color: var(--grey); }

/* selector de idioma (us / us-es) e índice */
.gp-langs { margin-top: 16px; font-size: .9rem; color: var(--grey); }
.gp-langs a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.gp-toc { margin-top: 22px; max-width: 76ch; }
.gp-toc__k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.gp-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-toc a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 600; background: #fff; line-height: 1.3; transition: border-color .2s, background .2s; }
.gp-toc a:hover { border-color: var(--ink); background: var(--bone); }

/* secciones */
.gp-wrap { padding-bottom: clamp(56px, 8vw, 100px); }
.gp-sec { padding-top: clamp(38px, 5.6vw, 68px); scroll-margin-top: calc(var(--nav-h) + 16px); }
.gp-lead { color: var(--graphite); line-height: 1.65; max-width: 70ch; margin: 0 0 18px; }
.gp-lead a, .gp-note a { text-decoration: underline; text-underline-offset: 3px; }
.gp-prose { max-width: 74ch; color: var(--graphite); font-size: 1.02rem; line-height: 1.72; }
.gp-prose p { margin: 0 0 14px; }
.gp-prose strong { color: var(--ink); }
.gp-prose ul, .gp-prose ol { margin: 0 0 16px 1.2em; display: grid; gap: 8px; list-style: disc; }
.gp-prose ol { list-style: decimal; }
.gp-note { max-width: 74ch; margin: 14px 0 0; font-size: .86rem; line-height: 1.55; color: var(--grey); }
.gp-zone { font-size: 1.2rem; margin: 30px 0 12px; }
.gp-zone a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.gp-zone a:hover { text-decoration-color: var(--ink); }
.gp-zonelink, .gp-zonelinks { margin: 10px 0 0; font-size: .92rem; color: var(--graphite); }
.gp-zonelink a, .gp-zonelinks a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gp-zonelinks span { color: var(--grey); }

/* tablas */
.gp-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 8px; }
.gp-table { width: 100%; border-collapse: collapse; font-size: .92rem; table-layout: fixed; min-width: 720px; }
.gp-table thead th:nth-child(1) { width: 27%; } .gp-table thead th:nth-child(2) { width: 43%; } .gp-table thead th:nth-child(3) { width: 30%; }
.gp-table caption { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); }
.gp-table thead th { text-align: left; padding: 11px 16px; font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); background: var(--bone); border-bottom: 1px solid var(--line); line-height: 1.4; }
.gp-table td, .gp-table tbody th { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); font-weight: 400; overflow-wrap: anywhere; }
.gp-table tbody th[scope="row"] { font-weight: 700; }
.gp-table td b { display: block; font-size: 1rem; letter-spacing: -.01em; line-height: 1.4; }
.gp-table td a { text-decoration: underline; text-decoration-color: var(--grey-2); text-underline-offset: 3px; }
.gp-table td a:hover { text-decoration-color: var(--ink); }
.gp-table tbody tr:hover td, .gp-table tbody tr:hover th[scope="row"] { background: var(--bone); }
.gp-table tr.gp-grp th { background: var(--bone-2, #efeeea); border-top: 1px solid var(--line); font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); padding: 9px 16px; }
.gp-table tbody:first-of-type tr.gp-grp th { border-top: 0; }
.gp-table tr:target td, .gp-table tr:target th[scope="row"] { background: #fff8e6; }
.gp-fx { color: var(--graphite) !important; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .gp-tablewrap { border: 0; background: none; overflow: visible; }
  .gp-table { min-width: 0; }
  .gp-table, .gp-table tbody, .gp-table tr, .gp-table td, .gp-table tbody th, .gp-table caption { display: block; min-width: 0; width: 100% !important; }
  .gp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gp-table tr { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 12px; padding: 4px 0; overflow: hidden; }
  .gp-table tbody tr:hover td, .gp-table tbody tr:hover th[scope="row"] { background: transparent; }
  .gp-table tbody th[scope="row"] { padding: 12px 16px 6px; border-top: 0; font-size: 1.02rem; }
  .gp-table td { padding: 9px 16px; border-top: 1px solid var(--line-2) !important; }
  .gp-table td::before { content: attr(data-l); display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 3px; }
  .gp-table caption { background: none; border: 0; padding: 0 0 10px; }
  .gp-table tr.gp-grp { background: var(--bone-2, #efeeea); border-color: var(--line); margin-top: 20px; padding: 0; }
  .gp-table tr.gp-grp th { padding: 10px 16px; }
}

/* preguntas frecuentes y fuentes */
.gp-faq { display: grid; gap: 0; max-width: 78ch; }
.gp-qa { padding: 18px 0; border-top: 1px solid var(--line); }
.gp-qa:last-child { border-bottom: 1px solid var(--line); }
.gp-qa h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 8px; }
.gp-qa p { color: var(--graphite); line-height: 1.68; }
.gp-sources { margin: 0 0 0 1.4em; display: grid; gap: 6px; max-width: 86ch; color: var(--graphite); font-size: .9rem; line-height: 1.5; }
.gp-sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grey-2); overflow-wrap: anywhere; }
.gp-sources a:hover { text-decoration-color: var(--ink); }

/* contacto */
.gp-nap { border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; background: #fff; max-width: 560px; margin-bottom: 4px; }
.gp-nap .nap { font-size: .98rem; line-height: 1.6; color: var(--graphite); }
.gp-nap .nap__name { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.gp-nap a { text-decoration: underline; text-underline-offset: 3px; }
.gp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: .95rem; border: 1.5px solid var(--ink); font-family: inherit; transition: transform .3s var(--ease-out, ease), box-shadow .3s; }
.gp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(10,10,10,.55); }
.gp-btn--line { background: transparent; color: var(--ink) !important; }
@media (max-width: 640px) { .gp-cta .gp-btn { flex: 1 1 100%; } }

/* enlaces entre guías */
.gp-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-links a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .92rem; font-weight: 600; background: #fff; transition: border-color .2s, background .2s; }
.gp-links a:hover { border-color: var(--ink); background: var(--bone); }

/* tarjetas (índices por idioma y /guias/) */
.gp-hub { padding-top: clamp(40px, 6vw, 76px); }
.gp-hub h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.45rem, 2.8vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.gp-hub .gp-lead { color: var(--grey); }
.gp-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gp-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 16px; background: #fff; display: grid; gap: 8px; align-content: start; transition: border-color .2s; }
.gp-card:hover, .gp-card:focus-within { border-color: var(--ink); }
.gp-card__k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.gp-card h3 { font-size: 1.1rem; line-height: 1.25; margin: 0; }
.gp-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.gp-card p { font-size: .9rem; line-height: 1.5; color: var(--graphite); margin: 0; }
.gp-card__go { font-size: .86rem; font-weight: 700; margin-top: 2px; }

/* pie en otros idiomas: el NAP sobre fondo negro */
.footer .gp-nap { border: 0; background: none; padding: 0; margin: 8px 0 0; max-width: none; }
.footer .gp-nap .nap { font-size: .85rem; color: #8a8a8a; line-height: 1.55; }
.footer .gp-nap .nap__name { color: #fff; font-size: .95rem; }
.footer .gp-nap a { color: #cfcfcf; text-decoration: underline; text-underline-offset: 3px; }

@media print { .gp-toc, .gp-cta, .gp-langs { display: none !important; } }
