/* Explorador OPEC: estilos locales, sin bibliotecas ni efectos en otras secciones. */
.opec-search { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); color: var(--ink); }
.opec-search h3, .opec-search h4 { color: var(--ink); font-family: Montserrat, sans-serif; }
.opec-search-heading h3 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.opec-search-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.opec-search-overview { margin: 12px 0; color: var(--accent-text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.opec-search-form { position: relative; margin: 0; }
.opec-search-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .85fr); gap: 8px; }
.opec-search .opec-field { position: relative; min-width: 0; height: 42px; }
.opec-search .opec-field::after { content: ''; position: absolute; right: 12px; top: 17px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.opec-search .opec-field label { position: absolute; z-index: 1; inset: 11px 26px auto 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; font-size: 12px; font-weight: 600; line-height: 20px; color: var(--muted); transform-origin: left top; transition: transform .14s ease, color .14s ease; }
.opec-search .opec-field select { appearance: none; width: 100%; height: 100%; min-width: 0; padding: 15px 25px 2px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: transparent; font: inherit; font-size: 13px; text-overflow: ellipsis; cursor: pointer; }
.opec-search .opec-field select option { color: var(--ink); background: var(--white); }
.opec-search .opec-field:is(:focus-within, .has-value) label { transform: translateY(-9px) scale(.83); color: var(--accent-text); }
.opec-search .opec-field:is(:focus-within, .has-value) select { color: var(--ink); }
.opec-search button { cursor: pointer; font: inherit; font-weight: 700; }
.opec-search .button-outline { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.opec-search button:disabled, .opec-search select:disabled { cursor: not-allowed; opacity: .6; }
.opec-search :is(select, button, summary):focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.opec-search [hidden] { display: none !important; }
.opec-search-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.opec-search-actions .button { min-height: 36px; padding: 5px 16px; font-size: 12px; }
.opec-search-actions .opec-clear { width: 36px; padding: 6px; }
.opec-search-actions svg, .opec-map-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.opec-filter-count { flex: 1; color: var(--muted); font-size: 11px; }
.opec-search-secondary summary { display: flex; gap: 7px; align-items: center; min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; list-style: none; font-size: 12px; cursor: pointer; }
.opec-search-secondary summary::-webkit-details-marker { display: none; }
.opec-search-secondary[open] summary { border-color: var(--accent-text); }
.opec-search-secondary[open] summary svg { transform: rotate(180deg); }
.opec-search-advanced { position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; width: min(540px, 100%); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.opec-search-advanced > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }
.opec-search-status { color: var(--muted); }
.opec-search .opec-filter-status { min-height: 16px; margin: 5px 0 10px; font-size: 11px; }
.opec-explorer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; height: 640px; }
.opec-vacancies { min-width: 0; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.opec-vacancies-track { display: flex; width: 200%; height: 100%; transform: translateX(0); transition: transform .22s ease; }
.opec-vacancies.is-detail .opec-vacancies-track { transform: translateX(-50%); }
.opec-vacancies-list, .opec-vacancies-detail { box-sizing: border-box; flex: 0 0 50%; min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 14px 10px; gap: 8px; }
.opec-vacancies .opec-search-total { margin: 0; padding-inline: 4px; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.opec-vacancies .opec-search-status { margin: 0; padding-inline: 4px; font-size: 11px; }
.opec-search-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 2px; }
.opec-search-row { min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--white); overflow-wrap: anywhere; }
.opec-search-row:nth-child(even) { background: var(--paper); }
.opec-search .opec-search-row-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; line-height: 1.35; }
.opec-search-row-toggle:is(:hover, :focus-visible) { background: rgba(104,166,207,.15); }
.opec-row-main { display: grid; gap: 3px; min-width: 0; }
.opec-search-row-toggle .opec-row-cargo { font-size: 12px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opec-row-meta { color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.opec-row-process { max-width: 88px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent-text); font-size: 10px; font-weight: 700; }
.opec-row-indicator { color: var(--accent-text); font-size: 22px; text-align: center; }
.opec-vacancies .opec-search-pagination { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; }
.opec-vacancies .opec-search-pagination .button { padding: 5px 10px; min-height: 36px; font-size: 11px; }
.opec-vacancies [data-opec-page] { font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.opec-vacancies-detail > button { align-self: flex-start; min-height: 36px; padding: 5px 12px; font-size: 12px; }
.opec-detail-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px; }
.opec-detail-content h5 { margin: 4px 0 6px; font-size: 16px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.opec-detail-reference { margin: 0 0 14px; color: var(--accent-text); font-size: 12px; font-weight: 700; }
.opec-detail-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.opec-search .opec-detail-block { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.opec-detail-block:nth-child(3) { grid-column: 1 / -1; }
.opec-detail-block h6 { margin: 0 0 9px; color: var(--accent-text); font-size: 11px; font-weight: 800; }
.opec-detail-block dl { margin: 0; }
.opec-detail-block dt { color: var(--muted); font-size: 10px; }
.opec-detail-block dd { margin: 0 0 7px; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.opec-detail-block dd:last-child { margin-bottom: 0; }
.opec-detail-quantity { grid-column: 1 / -1; }
.opec-detail-quantity dd { color: var(--accent-text); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.opec-search :is(.opec-search-results, .opec-detail-content) { scrollbar-width: thin; scrollbar-color: var(--muted) var(--paper); }
.opec-search :is(.opec-search-results, .opec-detail-content)::-webkit-scrollbar { width: 7px; }
.opec-search :is(.opec-search-results, .opec-detail-content)::-webkit-scrollbar-track { background: var(--paper); }
.opec-search :is(.opec-search-results, .opec-detail-content)::-webkit-scrollbar-thumb { background: var(--muted); border: 2px solid var(--paper); border-radius: 4px; }
.opec-search .opec-explorer-notes { margin-top: 10px; }
.opec-search .opec-explorer-notes p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.opec-explorer-notes a { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 980px) {
  .opec-search { padding: 18px; }
  .opec-explorer { gap: 10px; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .opec-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .opec-search { padding: 16px 10px; }
  .opec-explorer { grid-template-columns: 1fr; height: auto; }
  .opec-explorer > .opec-map { height: 500px; }
  .opec-vacancies { height: 540px; }
  .opec-search .opec-field { height: 44px; }
  .opec-search-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 4px 6px; }
  .opec-filter-count { grid-column: 1 / -1; grid-row: 2; line-height: 1.3; }
  .opec-search-actions .button, .opec-search-secondary summary { min-height: 44px; }
  .opec-search-actions .opec-clear { width: 44px; }
  .opec-search-advanced { grid-template-columns: minmax(0, 1fr); }
  .opec-search-row-toggle .opec-row-cargo { font-size: 13px; }
  .opec-row-meta { font-size: 12px; }
  .opec-search .opec-search-row-toggle { min-height: 62px; }
  .opec-vacancies .opec-search-pagination .button, .opec-vacancies-detail > button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .opec-search .opec-vacancies-track, .opec-search .opec-field label { transition: none; }
}
