/* Gente de Mar v3.0 */
.btn--sm { padding: 9px 16px; font-size: .92rem; }

/* Portada con buscador */
.gm-hero { padding: 96px 0 120px; text-align: center; }
.gm-hero .crumbs { text-align: left; }
.gm-hero::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 140%; height: 70px; transform: translateX(-50%); background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 0; }
.gm-hero .wrap { position: relative; z-index: 1; }
.gm-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: 18px 0 14px; }
.gm-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--white); margin-bottom: 10px; }
.gm-hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, .85); margin: 0 auto 30px; max-width: 640px; }
.gm-buscar { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 8px 8px 8px 20px; background: var(--white); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .08); transition: box-shadow .25s ease, transform .25s ease; }
.gm-buscar:focus-within { box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 4px var(--gold); transform: translateY(-2px); }
.gm-buscar__ico { color: var(--muted); display: grid; }
.gm-buscar input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1.08rem var(--font); color: var(--ink); padding: 12px 4px; background: transparent; }
.gm-buscar .btn { padding: 14px 30px; font-size: 1.05rem; }
.gm-hero__tip { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.gm-cifras { display: flex; justify-content: center; gap: clamp(24px, 6vw, 70px); margin-top: 44px; flex-wrap: wrap; }
.gm-cifras div { display: flex; flex-direction: column; }
.gm-cifras strong { font: 700 clamp(2rem, 4.5vw, 2.8rem)/1 var(--font-cond); color: var(--gold); font-variant-numeric: tabular-nums; }
.gm-cifras span { color: rgba(255, 255, 255, .75); font-size: .92rem; margin-top: 6px; }

/* Accesos rápidos, montados sobre la curva */
.gm-accesos { position: relative; z-index: 2; margin-top: -64px; }
.gm-accesos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gm-acc { display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease; }
.gm-acc:hover, .gm-acc:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(6, 20, 38, .16); border-color: var(--gold); }
.gm-acc__ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-700); color: var(--gold); margin-bottom: 10px; transition: background .25s ease, color .25s ease, transform .25s ease; }
.gm-acc:hover .gm-acc__ico { background: var(--gold); color: var(--navy-900); transform: rotate(-6deg); }
.gm-acc strong { font: 700 1.3rem var(--font-cond); color: var(--navy-800); }
.gm-acc > span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* Ruta en 4 pasos */
.gm-ruta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; position: relative; }
.gm-ruta::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--sea)); opacity: .5; }
.gm-ruta li { position: relative; text-align: center; padding: 0 6px; }
.gm-ruta__n { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font: 700 1.7rem var(--font-cond); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line); transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s ease; }
.gm-ruta li:hover .gm-ruta__n { transform: scale(1.1); background: var(--gold); color: var(--navy-900); }
.gm-ruta li:last-child .gm-ruta__n { background: var(--gold); color: var(--navy-900); }
.gm-ruta h3 { font-size: 1.35rem; color: var(--navy-800); margin-bottom: 6px; }
.gm-ruta p { color: var(--muted); margin: 0 0 10px; font-size: .98rem; }
.gm-ruta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--sea); }
.gm-ruta a:hover { color: var(--navy-800); }

/* Trámites en acordeón */
.gm-2col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.gm-2col .sec__head { position: sticky; top: 110px; margin: 0; }
.gm-acord { display: grid; gap: 10px; }
.gm-tram { background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.gm-tram[open] { border-color: var(--navy-600); box-shadow: var(--shadow); }
.gm-tram summary { display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
.gm-tram summary::-webkit-details-marker { display: none; }
.gm-tram__nom { flex: 1; font-weight: 600; color: var(--navy-800); line-height: 1.35; }
.gm-tram__mas { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); position: relative; transition: transform .25s ease, background .2s ease; }
.gm-tram__mas::before, .gm-tram__mas::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--navy-700); }
.gm-tram__mas::after { transform: rotate(90deg); transition: transform .25s ease; }
.gm-tram[open] .gm-tram__mas { background: var(--gold); transform: rotate(180deg); }
.gm-tram[open] .gm-tram__mas::after { transform: rotate(0); }
.gm-tram__cuerpo { padding: 0 20px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; animation: tab-in .3s ease; }
.gm-tram__cuerpo dl { display: flex; gap: 28px; margin: 0 auto 6px 0; width: 100%; }
.gm-tram__cuerpo dt { font: 600 .75rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gm-tram__cuerpo dd { margin: 2px 0 0; font-weight: 600; }
.gm-tag { flex: none; font: 700 .78rem var(--font); padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--navy-700); white-space: nowrap; }
.gm-tag--oro { background: #FFF4D6; color: #6B4F07; }

/* Cursos */
.gm-filtro { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto 24px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); }
.gm-filtro:focus-within { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(47, 127, 184, .18); }
.gm-filtro input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1rem var(--font); padding: 11px 0; background: transparent; color: var(--ink); }
.gm-filtro .search-state { margin: 0; font-size: .85rem; white-space: nowrap; }
.gm-cursos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.gm-cursos li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--paper); transition: background .2s ease, transform .2s ease; }
.gm-cursos li:hover { background: #EAF1F8; transform: translateY(-2px); }
.gm-cursos li span { font-weight: 600; color: var(--navy-800); line-height: 1.35; }
.gm-cursos li small { font: 700 .76rem var(--font); letter-spacing: .06em; color: var(--sea); }
.gm-cursos.is-corto li:nth-child(n+13) { display: none; }
.gm-cursos li[hidden] { display: none; }

/* Médicos */
.gm-meds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gm-meds li { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s ease, border-color .2s ease; }
.gm-meds li:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.gm-meds__ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-900); }
.gm-meds div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gm-meds strong { color: var(--white); font-size: 1.05rem; }
.gm-meds div span { color: rgba(255, 255, 255, .72); font-size: .92rem; line-height: 1.4; }
.gm-meds .gm-tag { background: rgba(80, 200, 120, .16); color: #8EE0A8; }

/* Cierre */
.gm-cierre__box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 18px; background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: var(--white); }
.gm-cierre__box h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gm-cierre__box p { margin: 0; color: rgba(255, 255, 255, .8); }

@media (max-width: 960px) {
    .gm-accesos__grid { grid-template-columns: repeat(2, 1fr); }
    .gm-ruta { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .gm-ruta::before { display: none; }
    .gm-2col { grid-template-columns: 1fr; gap: 20px; }
    .gm-2col .sec__head { position: static; }
}
@media (max-width: 600px) {
    .gm-hero { padding: 70px 0 100px; }
    .gm-buscar { flex-wrap: wrap; padding: 10px; }
    .gm-buscar__ico { display: none; }
    .gm-buscar input { flex-basis: 100%; padding: 10px 8px; }
    .gm-buscar .btn { width: 100%; justify-content: center; }
    .gm-accesos__grid { grid-template-columns: 1fr; }
    .gm-ruta { grid-template-columns: 1fr; }
    .gm-meds { grid-template-columns: 1fr; }
    .gm-cierre__box { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .gm-acc, .gm-ruta__n, .gm-buscar, .gm-tram__mas, .gm-tram__mas::after { transition: none; }
    .gm-tram__cuerpo { animation: none; }
}
