/* Temas marítimos explicados (prefijo tx-) */

/* ---------- Encabezado ---------- */
.tx-hero { padding: 80px 0 70px; }
.tx-hero__kicker { display: inline-block; font: 600 .82rem var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 6px 14px; border: 1px solid rgba(224, 178, 60, .45); border-radius: 999px; margin: 14px 0 14px; }
.tx-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); color: var(--white); }
.tx-hero__lead { font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 640px; }

/* ---------- Barra fija: buscador y filtros ---------- */
.tx-bar { position: sticky; top: 76px; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(6, 20, 38, .06); }
.tx-bar__row { display: flex; align-items: center; gap: 12px 18px; padding-top: 10px; padding-bottom: 10px; }
.tx-buscar { position: relative; flex: 0 1 340px; min-width: 0; }
.tx-buscar svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tx-buscar input { width: 100%; font: 500 1rem var(--font); color: var(--ink); padding: 10px 14px 10px 40px; border: 1px solid #C5CFDA; border-radius: 999px; background: var(--white); }
.tx-buscar input:focus { outline: 3px solid rgba(47, 127, 184, .35); outline-offset: 1px; border-color: var(--sea); }
.tx-filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.tx-filtros::-webkit-scrollbar { display: none; }
.tx-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem var(--font); color: var(--navy-700); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tx-chip span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tx-chip:hover { border-color: #AFC0D2; background: var(--paper); }
.tx-chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tx-chip[aria-pressed="true"] span { color: var(--gold-soft); }
.tx-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 760px) {
    .tx-bar { position: static; }
    .tx-bar__row { flex-direction: column; align-items: stretch; gap: 8px; }
    .tx-buscar { flex-basis: auto; }
}

/* ---------- Índice ---------- */
.tx-sec { padding-top: 44px; }
.tx-indice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; }
.tx-indice__h { margin: 0 0 10px; font: 700 .8rem var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tx-indice ul { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.tx-indice li { break-inside: avoid; padding: 3px 0; }
.tx-indice a { color: var(--navy-700); font-weight: 600; text-decoration: none; }
.tx-indice a:hover, .tx-indice a:focus-visible { color: var(--sea); text-decoration: underline; }

.tx-estado { margin: 0 0 14px; color: var(--muted); font-size: .95rem; min-height: 1.4em; }
.tx-vacio { background: var(--white); border: 1px dashed #B8C4D1; border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.tx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 860px) { .tx-grid { grid-template-columns: minmax(0, 1fr); } }
.tx-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; scroll-margin-top: 170px; transition: box-shadow .2s ease, border-color .2s ease; }
.tx-card:hover { border-color: #C6D2DE; box-shadow: var(--shadow); }
.tx-card:target, .tx-card.is-destacado { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(47, 127, 184, .22); }
.tx-card[hidden] { display: none; }
.tx-card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.tx-card__ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--navy-800); color: var(--gold); }
.tx-card__cat { display: block; font: 600 .74rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin: 2px 0 4px; }
.tx-card h3 { margin: 0; font-size: 1.28rem; line-height: 1.25; color: var(--navy-800); overflow-wrap: anywhere; }
.tx-card__que { margin: 0 0 14px; color: var(--ink); line-height: 1.6; }

.tx-mas { border-top: 1px solid var(--line); }
.tx-mas summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 2px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-700); }
.tx-mas summary::-webkit-details-marker { display: none; }
.tx-mas summary svg { flex: none; transition: transform .2s ease; color: var(--sea); }
.tx-mas[open] summary svg { transform: rotate(180deg); }
.tx-mas summary:hover span { text-decoration: underline; }
.tx-mas summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.tx-dl { margin: 12px 0 0; display: grid; gap: 14px; }
.tx-dl dt { font: 700 .78rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tx-dl dd { margin: 0; line-height: 1.6; color: var(--ink); }

.tx-links { margin-top: 16px; background: var(--paper); border-radius: 10px; padding: 14px 16px; }
.tx-links__h { margin: 0 0 6px; font: 700 .78rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tx-links__h + ul { margin-bottom: 10px; }
.tx-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tx-links ul:last-child { margin-bottom: 0; }
.tx-links a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(19, 50, 92, .3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.tx-links a:hover { color: var(--sea); text-decoration-color: currentColor; }

/* ---------- ¿Sabías que…? ---------- */
.tx-sabias__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .tx-sabias__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tx-sabias__grid { grid-template-columns: minmax(0, 1fr); } }
.tx-sabias__grid li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 22px; min-width: 0; }
.tx-sabias__n { display: block; font: 700 1.9rem/1 var(--font-cond); color: var(--gold); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.tx-sabias__grid strong { display: block; font-size: 1.12rem; color: var(--white); margin-bottom: 6px; }
.tx-sabias__grid p { margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.55; }

/* ---------- Cierre ---------- */
.tx-cta__box { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; }
.tx-cta__box h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--navy-800); }
.tx-cta__box p { margin: 0; color: var(--muted); max-width: 60ch; }
.tx-btn-linea { border-color: var(--navy-700); color: var(--navy-700); }
.tx-btn-linea:hover { background: var(--white); }
@media (max-width: 520px) {
    .tx-card { padding: 20px 18px; }
    .tx-card__ico { width: 44px; height: 44px; }
    .tx-cta__box { padding: 22px 18px; }
    .tx-cta__box .btns .btn { flex: 1 1 100%; justify-content: center; }
}
