:root {
  --yellow: #FFD800;
  --yellow-soft: #FFF3B0;
  --slate: #566A6E;
  --slate-dark: #34454A;
  --green: #2F8F5B;
  --green-soft: #E4F2E9;
  --bg: #FBFAF5;
  --card: #FFFFFF;
  --line: #E6E6DC;
  --text: #2B3639;
  --muted: #6D7B7E;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(52, 69, 74, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4, .brand strong { font-family: "Plus Jakarta Sans", Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--green); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: rgba(251, 250, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate-dark); }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.25rem; letter-spacing: .08em; margin: 0; }
.brand small { color: var(--muted); font-size: .75rem; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: var(--slate); font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--green); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--slate-dark); border-radius: 2px; }

/* Botones */
.btn { display: inline-block; font: 700 .95rem "Plus Jakarta Sans", Inter, sans-serif; padding: 11px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(52, 69, 74, .18); }
.btn-yellow { background: var(--yellow); color: var(--slate-dark); }
.btn-dark { background: var(--slate-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--slate-dark); border-color: var(--slate); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #EAF5EE 0%, #FBFAF5 100%); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 84px 20px 190px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 14px; font: 700 .78rem "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border-radius: 999px; }
.eyebrow.dark { color: var(--slate-dark); background: rgba(255, 255, 255, .55); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; color: var(--slate-dark); max-width: 14ch; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.lead { max-width: 56ch; font-size: 1.12rem; color: var(--slate); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 300px; z-index: 1; }

/* Secciones */
.section { padding: 76px 0; }
.section.alt { background: #F3F1E6; }
.sec-head { margin-bottom: 32px; max-width: 62ch; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.sec-head h2, .two h2, .cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--slate-dark); font-weight: 800; }
.sec-head p, .two p { color: var(--slate); }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .9rem; }

/* Mapa */
.map-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; }
.map-list { max-height: 560px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.pk { text-align: left; width: 100%; font: inherit; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.pk:hover, .pk.on { box-shadow: var(--shadow); border-left-color: var(--green); }
.pk b { display: block; font-family: "Plus Jakarta Sans", sans-serif; color: var(--slate-dark); }
.pk small { display: block; color: var(--muted); }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 560px; }
#map { position: absolute; inset: 0; background: #E4EDE7; }
.map-hint { position: absolute; z-index: 500; top: 12px; left: 50%; transform: translateX(-50%); background: var(--slate-dark); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .9rem; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--yellow); border: 3px solid var(--slate-dark); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.pin::after { content: "P"; transform: rotate(45deg); font: 800 .9rem "Plus Jakarta Sans", sans-serif; color: var(--slate-dark); }
.info { font-family: Inter, sans-serif; min-width: 210px; color: var(--text); }
.info h4 { margin: 0 0 6px; font-size: 1rem; color: var(--slate-dark); }
.info p { margin: 3px 0; font-size: .9rem; }
.info .k { color: var(--green); font-weight: 700; }

/* Póliza */
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 9px 0; color: var(--slate-dark); font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 50%; font-size: .8rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; color: var(--slate-dark); }
.poliza-card { display: flex; gap: 20px; align-items: center; }
.doc-icon { flex: none; width: 74px; height: 92px; border-radius: 10px; background: var(--yellow); color: var(--slate-dark); font: 800 1rem "Plus Jakarta Sans", sans-serif; display: grid; place-items: end center; padding-bottom: 12px; box-shadow: inset 0 -34px 0 rgba(86, 106, 110, .15); }
#polizaInfo p { margin: 0 0 12px; color: var(--slate); }

/* CTA afíliate */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: linear-gradient(120deg, var(--yellow) 0%, #FFE75A 100%); border-radius: 28px; padding: 46px 48px; box-shadow: var(--shadow); }
.cta-band > div { max-width: 62ch; }
.cta-band p { color: var(--slate-dark); }

/* Portal */
.portal-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.portal-grid.three { grid-template-columns: repeat(3, 1fr); }
.portal-grid form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--slate-dark); }
input, select, textarea { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.two-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop { border: 2px dashed var(--slate); border-radius: 14px; padding: 26px 16px; text-align: center; cursor: pointer; font-weight: 500; color: var(--slate); background: #FAFAF4; }
.drop:hover, .drop.over { background: var(--yellow-soft); border-color: var(--slate-dark); }
.drop input { display: none; }
.msg { min-height: 1.2em; margin: 0; font-size: .9rem; color: var(--green); font-weight: 600; }
.msg.err { color: #B3392B; }
.docs { display: flex; flex-direction: column; gap: 8px; }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.doc b { display: block; font-size: .92rem; color: var(--slate-dark); }
.doc small { color: var(--muted); }
.tag { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .72rem; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.doc-actions { display: flex; gap: 6px; }
.mini { font: 600 .8rem Inter, sans-serif; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--slate); background: #fff; color: var(--slate-dark); cursor: pointer; text-decoration: none; }
.mini.del { border-color: #D9A39B; color: #B3392B; }
.mini:hover { background: var(--yellow-soft); }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.admin { margin-top: 44px; padding-top: 30px; border-top: 2px dashed #CFCBB5; }
.admin-title { color: var(--slate-dark); font-size: 1.3rem; margin-bottom: 18px; }

/* Footer */
.footer { background: var(--slate-dark); color: #DCE4E5; padding: 52px 0 18px; }
.footer a { color: var(--yellow); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer p { margin: 6px 0; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 30px; }
.foot-brand img { border-radius: 50%; margin-bottom: 10px; }
.copy { text-align: center; margin: 36px 0 0; font-size: .82rem; color: #9FB0B3; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }

/* Diálogos */
dialog { border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); width: min(420px, 92vw); }
dialog::backdrop { background: rgba(52, 69, 74, .55); backdrop-filter: blur(3px); }
.dlg { display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.dlg img { align-self: center; border-radius: 50%; }
.dlg h3 { text-align: center; color: var(--slate-dark); margin: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .map-layout, .two, .portal-grid, .portal-grid.three, .foot-grid { grid-template-columns: 1fr; }
  .map-list { max-height: 260px; }
  .map-box { min-height: 420px; }
  .cta-band { padding: 32px 24px; }
  .hero-inner { padding: 52px 20px 150px; }
  .skyline { height: 200px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: 12px 0; }
  .poliza-card { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.sun { position: absolute; z-index: 0; right: 12%; top: 70px; width: 130px; height: 130px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 22px rgba(255, 216, 0, .18); }
@media (max-width: 900px) { .sun { width: 80px; height: 80px; right: 8%; top: 36px; } }

textarea { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; width: 100%; resize: vertical; }
.portal-grid.news-admin { margin-bottom: 20px; }

/* Buscador de destino */
.finder { position: relative; margin-bottom: 22px; }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder-row input { flex: 1 1 280px; width: auto; border-radius: 999px; padding: 13px 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font: 600 .85rem Inter, sans-serif; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--green); background: #fff; color: var(--green); cursor: pointer; }
.chip:hover, .chip.on { background: var(--green); color: #fff; }
.suggest { position: absolute; z-index: 600; left: 0; right: 0; top: 54px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-width: 640px; }
.suggest li { padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.suggest li:hover { background: var(--yellow-soft); }
.dist { display: inline-block; margin-top: 6px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .78rem; padding: 2px 10px; border-radius: 999px; }
.pk.near { border-left-color: var(--green); }
.dest-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--green); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--green), 0 4px 10px rgba(0,0,0,.3); }

/* Boletín */
.section.news { background: linear-gradient(180deg, var(--bg) 0%, #F3F1E6 100%); padding-top: 40px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.nw { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.nw.feat { grid-column: 1 / -1; flex-direction: row; }
.nw img { width: 100%; height: 190px; object-fit: cover; }
.nw.feat img { width: 46%; height: auto; min-height: 260px; }
.nw-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.nw time { font: 700 .75rem "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.nw h3 { margin: 0; color: var(--slate-dark); font-size: 1.15rem; }
.nw.feat h3 { font-size: 1.6rem; }
.nw p { margin: 0; color: var(--slate); white-space: pre-line; }
.nw .more { align-self: flex-start; margin-top: 6px; background: none; border: 0; padding: 0; color: var(--green); font: 700 .9rem Inter, sans-serif; cursor: pointer; }
.nw-badge { align-self: flex-start; background: var(--yellow); color: var(--slate-dark); font: 800 .7rem "Plus Jakarta Sans", sans-serif; padding: 3px 12px; border-radius: 999px; letter-spacing: .06em; }
@media (max-width: 760px) { .nw.feat { flex-direction: column; } .nw.feat img { width: 100%; min-height: 0; height: 200px; } }

.go { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.go a { flex: 1 1 auto; text-align: center; text-decoration: none; font: 700 .82rem "Plus Jakarta Sans", sans-serif; padding: 9px 12px; border-radius: 999px; }
.go-g { background: var(--yellow); color: var(--slate-dark) !important; }
.go-w { background: #33CCFF; color: #0B2B36 !important; }
.go a:hover { filter: brightness(.95); }
