/* Piloto de licencias: datos verificables antes que decoración. */
.license-pilot { --license-accent: #9b6b22; }
.license-pilot .breadcrumbs { margin-bottom: var(--space-6); }
.license-pilot .article { max-width: 58rem; }
.license-pilot .license-kicker { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: var(--space-4); color: var(--mountain); font: 700 .78rem/1.3 var(--font-ui); letter-spacing: .13em; text-transform: uppercase; }
.license-pilot .reviewed { color: var(--ink-light); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.license-pilot .license-lead { max-width: 40rem; margin-bottom: var(--space-6); }
.license-pilot .quick-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--space-7); border-top: 2px solid var(--forest); border-bottom: var(--border); }
.license-pilot .quick-facts > div { min-height: 8.6rem; padding: 1.35rem 1rem 1.25rem 0; border-right: var(--border); }
.license-pilot .quick-facts > div + div { padding-left: 1rem; }
.license-pilot .quick-facts > div:last-child { border-right: 0; }
.license-pilot .quick-facts dt { margin-bottom: .55rem; color: var(--mountain); font: 700 .72rem/1.25 var(--font-ui); letter-spacing: .13em; text-transform: uppercase; }
.license-pilot .quick-facts dd { margin: 0; color: var(--forest); font: 600 clamp(1.02rem, 1.8vw, 1.22rem)/1.25 var(--font-editorial); }
.license-pilot .quick-facts small { display: block; margin-top: .4rem; color: var(--ink-light); font: .78rem/1.35 var(--font-ui); }
.license-pilot .official-action { margin: 0 0 var(--space-8); padding: clamp(1.4rem, 3vw, 2.25rem); color: var(--cream); background: var(--forest); }
.license-pilot .official-action .eyebrow { color: #d8cfbd; }
.license-pilot .official-action h2 { max-width: 25ch; margin: .45rem 0 .75rem; padding: 0; border: 0; color: #fff; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.license-pilot .official-action p { max-width: 45rem; margin-bottom: 1.25rem; color: #eee8dc; font-family: var(--font-ui); font-size: .96rem; }
.license-pilot .official-action .official-link { display: inline-flex; align-items: center; min-height: 3.25rem; padding: .8rem 1rem; color: var(--forest); background: #fff; font: 800 .84rem/1.2 var(--font-ui); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.license-pilot .official-action .official-link:hover, .license-pilot .official-action .official-link:focus-visible { color: #fff; background: var(--mountain); }
.license-pilot .exit-note { display: block; margin-top: .7rem; color: #d8cfbd; font: .78rem/1.4 var(--font-ui); }
.license-pilot .license-section { margin-top: var(--space-8); }
.license-pilot .license-section h2 { margin-top: 0; }
.license-pilot .license-section h3 { margin: var(--space-5) 0 var(--space-2); font-size: 1.25rem; }
.license-pilot .notice { margin: var(--space-5) 0; padding: 1rem 1.15rem; border-left: 3px solid var(--license-accent); background: var(--cream-alt); }
.license-pilot .notice strong { display: block; margin-bottom: .25rem; font-family: var(--font-ui); }
.license-pilot .data-table { width: 100%; margin: var(--space-5) 0; border-collapse: collapse; border-top: 2px solid var(--forest); font-family: var(--font-ui); font-size: .94rem; }
.license-pilot .data-table th, .license-pilot .data-table td { padding: .9rem .8rem; border-bottom: var(--border); text-align: left; vertical-align: top; }
.license-pilot .data-table th { color: var(--mountain); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.license-pilot .data-table td:first-child { color: var(--forest); font-weight: 700; }
.license-pilot .steps { counter-reset: steps; display: grid; gap: .75rem; padding: 0; list-style: none; }
.license-pilot .steps li { position: relative; min-height: 3.1rem; padding: .75rem 1rem .75rem 3.35rem; border-top: var(--border); font-family: var(--font-ui); }
.license-pilot .steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; top: .82rem; left: 0; color: var(--license-accent); font: 800 .82rem/1 var(--font-ui); letter-spacing: .06em; }
.license-pilot .source-list { padding: 0; list-style: none; border-top: 2px solid var(--forest); }
.license-pilot .source-list li { padding: 1rem 0; border-bottom: var(--border); }
.license-pilot .source-list a { font-family: var(--font-ui); font-weight: 700; }
.license-pilot .source-list small { display: block; margin-top: .3rem; color: var(--ink-light); font: .82rem/1.45 var(--font-ui); }
.license-pilot .faq-list { margin-top: var(--space-4); border-bottom: var(--border); }
.license-pilot .faq-item { padding: 0; }
.license-pilot .faq-q { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; gap: 1rem; padding: .75rem 0; font-size: 1rem; }
.license-pilot .faq-q::after { content: "+"; flex: 0 0 auto; color: var(--license-accent); font-size: 1.4rem; font-weight: 400; }
.license-pilot .faq-q[aria-expanded="true"]::after { content: "−"; }
.license-pilot .faq-a { padding: 0 0 1.1rem; }
.license-pilot .faq-a p { margin: 0; }
.license-pilot .last-review { margin-top: var(--space-7); padding-top: var(--space-4); border-top: var(--border); color: var(--ink-light); font: .88rem/1.5 var(--font-ui); }
@media (max-width: 48rem) {
  .license-pilot .quick-facts { grid-template-columns: 1fr 1fr; }
  .license-pilot .quick-facts > div:nth-child(2) { border-right: 0; }
  .license-pilot .quick-facts > div:nth-child(n+3) { border-top: var(--border); }
  .license-pilot .quick-facts > div:nth-child(3) { padding-left: 0; }
  .license-pilot .data-table { display: block; width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; font-size: .86rem; }
  .license-pilot .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .license-pilot .data-table tbody { display: block; }
  .license-pilot .data-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 0; padding: .7rem 0; border-bottom: var(--border); }
  .license-pilot .data-table td { min-width: 0; padding: .35rem .6rem .35rem 0; border: 0; }
  .license-pilot .data-table td:nth-child(3) { grid-column: 1 / -1; padding-top: .55rem; color: var(--ink-light); }
  .license-pilot .data-table td::before { display: block; margin-bottom: .2rem; color: var(--mountain); font: 700 .67rem/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
  .license-pilot .data-table td:nth-child(1)::before { content: "Modalidad"; }
  .license-pilot .data-table td:nth-child(2)::before { content: "Importe"; }
  .license-pilot .data-table td:nth-child(3)::before { content: "Situación"; }
}

/* Hub /licencias/: la tabla de comunidades usa sus propias etiquetas en móvil (no afecta a las fichas). */
@media (max-width: 48rem) {
  .license-pilot .data-table.license-index td:nth-child(1)::before { content: "Comunidad"; }
  .license-pilot .data-table.license-index td:nth-child(2)::before { content: "Pesca"; }
  .license-pilot .data-table.license-index td:nth-child(3)::before { content: "Caza"; }
  .license-pilot .data-table.license-index td:nth-child(3) { grid-column: auto; padding-top: .35rem; }
  .license-pilot .data-table.license-index tr { grid-template-columns: 1fr 1fr; }
  .license-pilot .data-table.license-index td:nth-child(1) { grid-column: 1 / -1; }
  .license-pilot .data-table.license-index td:nth-child(1)::before { display: none; }
}
