/* r3-masterplan . ronda 3 (27-nov-2026) . ronda 4 (27-nov-2026): intro en dos
   bloques con acento de color, boton Vista general, pestañas con ícono y
   subtítulo, lista desplegable bajo las pestañas, plano y ficha lado a lado con
   la misma altura (la ficha ya no se encima al plano).
   Seccion #mapa «Explora el proyecto»: masterplan vectorizado con zonas, zoom y
   arrastre propios, pestañas por categoría (tierra, oro suave, salvia) y panel
   con la foto primero. Marcado en includes/sec-mapa.php, logica en js/r3-masterplan.js. */

#mapa.mp-seccion{
  /* colores de las secciones vecinas: los ajusta r3-masterplan.js con el color real */
  --mp-arriba: rgb(228,224,211);
  --mp-abajo: rgb(239,236,227);
  --mp-c-accesos: #8f7152;     /* tierra */
  --mp-c-highlights: #a8853f;  /* oro suave */
  --mp-c-amenidades: #66784f;  /* salvia */
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #e4e5d6;
  /* fundido: entra del color de arriba a un lavado salvia, pasa a arena tenue
     y sale al color de la seccion de abajo. El cambio lo marca el color, nunca un corte. */
  background-image: linear-gradient(180deg,
    var(--mp-arriba) 0%, #dfe3d1 16%, #e1e4d4 46%, #e9e4d5 78%, var(--mp-abajo) 100%);
  background-size: auto; background-repeat: no-repeat;
}
/* hojas muy tenues que se desvanecen antes de cada orilla */
#mapa.mp-seccion::before{
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/patron-hojas.svg") center top / 1100px auto repeat;
  opacity: .06;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 220px, #000 calc(100% - 220px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 220px, #000 calc(100% - 220px), transparent 100%);
}

/* ---------- Título con aire e intro en dos bloques con acento ---------- */
html #mapa.mp-seccion .titular{ margin-bottom: clamp(2rem, 3.4vw, 3.2rem) !important; padding-bottom: 0; }
html #mapa .mp-intro{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px);
  max-width: 1080px; margin: 0 auto;
}
html #mapa .mp-intro__bloque{
  --a: var(--mp-c-amenidades);
  position: relative; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px) clamp(18px, 2vw, 24px);
  background: rgba(251,249,243,.66); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(88,106,60,.12);
  border-top: 3px solid var(--a);
}
html #mapa .mp-intro__bloque--explora{ --a: var(--mp-c-highlights); }
html #mapa .mp-intro__etiqueta{
  display: flex; align-items: center; justify-content: center; gap: .6em;
  margin: 0 0 .75rem !important; color: var(--a);
  font: 600 .74rem/1 var(--texto, 'Montserrat', sans-serif) !important; letter-spacing: .22em; text-transform: uppercase;
  text-align: center !important; text-align-last: center !important;
}
html #mapa .mp-intro__etiqueta .ico{ width: 34px; height: 34px; stroke: none; color: var(--a); }
html #mapa .mp-intro__bloque p:not(.mp-intro__etiqueta){
  margin: 0; font-family: var(--texto, 'Montserrat', sans-serif); font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.7;
  color: var(--tinta, #16250d); max-width: none !important;
  text-align: justify !important; text-align-last: center !important;
}

/* ---------- Contenedor ---------- */
.mp{
  margin-top: clamp(2rem, 4vw, 3.2rem);
  --c: var(--verde-medio, #586a3c);
  --alto: clamp(480px, 42vw, 640px);   /* plano y ficha: la misma altura */
}
.mp[data-foco="accesos"]{ --c: var(--mp-c-accesos); }
.mp[data-foco="highlights"]{ --c: var(--mp-c-highlights); }
.mp[data-foco="amenidades"]{ --c: var(--mp-c-amenidades); }

/* ---------- Barra: Vista general + pestañas + lista desplegable ---------- */
.mp__barra{
  background: rgba(251,249,243,.82); border-radius: 3px;
  box-shadow: 0 24px 50px -44px rgba(22,37,13,.5), inset 0 0 0 1px rgba(88,106,60,.14);
  margin-bottom: clamp(14px, 1.6vw, 20px);
}
html #mapa .mp__pestanas{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0;
}
html #mapa .mp__pestana{
  --t: var(--verde-medio, #586a3c);
  position: relative; display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 16px clamp(14px, 1.6vw, 22px); margin: 0;
  background: transparent; border: 0; border-radius: 0; cursor: pointer;
  color: var(--tinta, #16250d); text-align: left !important; text-align-last: auto !important;
  font-family: var(--texto, 'Montserrat', sans-serif);
  transition: background-color .35s ease, color .35s ease;
}
html #mapa .mp__pestana + .mp__pestana{ box-shadow: inset 1px 0 0 rgba(88,106,60,.14); }
html #mapa .mp__pestana[data-cat="accesos"]{ --t: var(--mp-c-accesos); }
html #mapa .mp__pestana[data-cat="highlights"]{ --t: var(--mp-c-highlights); }
html #mapa .mp__pestana[data-cat="amenidades"]{ --t: var(--mp-c-amenidades); }
/* línea de color de cada pestaña; crece al estar activa */
html #mapa .mp__pestana::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--t); opacity: .28; transform-origin: center; transition: opacity .35s ease, height .35s ease;
}
html #mapa .mp__pestana:first-child{ border-top-left-radius: 3px; }
html #mapa .mp__pestana:last-child{ border-top-right-radius: 3px; }
html #mapa .mp__pestana .ico{ width: 44px; height: 44px; stroke: none; color: var(--t); flex: none; transition: color .35s ease; }
.mp__pestana-t{ display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 auto; }
.mp__pestana-nombre{ font-weight: 600; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.mp__pestana-sub{ font-size: .78rem; letter-spacing: .01em; line-height: 1.25; opacity: .72; }
.mp__pestana-n{
  flex: none; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 3px; display: grid; place-items: center;
  font-size: .74rem; font-weight: 600; background: rgba(88,106,60,.09); color: var(--t);
}
.mp__pestana-flecha{
  flex: none; width: 9px; height: 9px; margin-left: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); opacity: .55; transition: transform .35s ease;
}
html #mapa .mp__pestana:hover{ background: rgba(255,255,255,.6); }
html #mapa .mp__pestana:hover::after{ opacity: .7; }
html #mapa .mp__pestana.es-activa,
html #mapa .mp__inicio[aria-pressed="true"]{ background: var(--t); color: #fbf9f3; }
html #mapa .mp__pestana.es-activa .ico,
html #mapa .mp__inicio[aria-pressed="true"] .ico{ color: #fbf9f3; }
html #mapa .mp__pestana.es-activa::after,
html #mapa .mp__inicio[aria-pressed="true"]::after{ opacity: 1; background: rgba(0,0,0,.12); }
.mp__pestana.es-activa .mp__pestana-n{ background: rgba(251,249,243,.22); color: #fbf9f3; }
.mp__pestana[aria-expanded="true"] .mp__pestana-flecha{ transform: translateY(2px) rotate(-135deg); }
html #mapa .mp__pestana:focus-visible{ outline: 2px solid var(--t); outline-offset: -4px; }

/* lista desplegable de la categoría abierta (empuja, no se encima) */
.mp__lista{
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1);
}
.mp__lista--abierta{ grid-template-rows: 1fr; }
.mp__lista-int{ overflow: hidden; min-height: 0; }
.mp__lista ul{
  list-style: none; margin: 0; padding: 14px clamp(14px, 1.6vw, 22px) 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  border-top: 1px solid rgba(88,106,60,.12);
}
.mp__lista li{ margin: 0; text-align: left !important; }
.mp__item{
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .84rem/1.2 var(--texto, 'Montserrat', sans-serif); color: var(--tinta, #16250d);
  background: #fbf9f3; border: 1px solid rgba(88,106,60,.18); border-left: 3px solid var(--c);
  border-radius: 3px; padding: .45em .95em .45em .5em; cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.mp__item-n{
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fbf9f3; font-size: .7rem; font-weight: 600; flex: none;
}
.mp__item .mp__item-ico{ width: 30px; height: 30px; stroke: none; color: var(--c); }
.mp__item--sin .mp__item-n{ background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.mp__item:hover{ border-color: var(--c); }
.mp__item[aria-current="true"]{ background: var(--c); border-color: var(--c); color: #fbf9f3; }
.mp__item[aria-current="true"] .mp__item-n{ background: #fbf9f3; color: var(--c); box-shadow: none; }
.mp__item[aria-current="true"] .mp__item-ico{ color: #fbf9f3; }
.mp__item:focus-visible{ outline: 2px solid var(--c); outline-offset: 2px; }

/* ---------- Cuerpo: plano + ficha, lado a lado y con la misma altura ---------- */
.mp__cuerpo{
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 22px); align-items: stretch;
}
.mp__plano{ min-width: 0; height: var(--alto); }

.mp__lienzo{
  position: relative; overflow: hidden; width: 100%; height: 100%;
  /* selva tenue alrededor del conjunto: también llena los márgenes de la vista general */
  background-color: #e3e6d4;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(251,249,243,.55), rgba(251,249,243,0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='%23a9b68f'%3E%3Ccircle cx='14' cy='18' r='9' opacity='.28'/%3E%3Ccircle cx='58' cy='12' r='7' opacity='.22'/%3E%3Ccircle cx='40' cy='52' r='11' opacity='.25'/%3E%3Ccircle cx='78' cy='66' r='8' opacity='.22'/%3E%3Ccircle cx='12' cy='76' r='6' opacity='.2'/%3E%3C/g%3E%3C/svg%3E");
  border-radius: 3px;
  box-shadow: 0 30px 60px -40px rgba(22,37,13,.45), 0 0 0 1px rgba(88,106,60,.16);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline: none;
}
.mp__lienzo.mp--acercado{ touch-action: none; }
.mp__lienzo.mp--arrastrando{ cursor: grabbing; }
.mp__lienzo:focus-visible{ box-shadow: 0 0 0 2px var(--c), 0 30px 60px -40px rgba(22,37,13,.45); }

.mp__mundo{
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 2604 / 1509;
  transform-origin: 0 0; will-change: transform;
  --inv: 1;
}
.mp__mundo.mp--suave{ transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mp__base, .mp__vector, .mp__vector svg{
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.mp__base{ object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.mp__vector{ opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.mp--vector .mp__vector{ opacity: 1; }
.mp--vector .mp__base{ opacity: 0; transition: opacity .6s ease; }
.mp--vector.mp--original .mp__vector{ opacity: 0; }
.mp--vector.mp--original .mp__base{ opacity: 1; }

/* zonas del vector: aparecen al abrir su pestaña */
.mp__vector .mp-zona path, .mp__vector .mp-zona ellipse,
.mp__vector .mp-zona polygon, .mp__vector .mp-zona rect{
  fill: var(--c); fill-opacity: 0; stroke: var(--c); stroke-opacity: 0; stroke-width: 2;
  transition: fill-opacity .5s ease, stroke-opacity .5s ease;
  vector-effect: non-scaling-stroke;
}
.mp__vector .mp-zona.es-foco *{ fill-opacity: .12; stroke-opacity: .5; }
.mp__vector .mp-zona.es-actual *{ fill-opacity: .22; stroke-opacity: .9; }
.mp__vector .mp-rotulos{ opacity: .9; }

/* ---------- Marcadores ---------- */
.mp__marcador{
  --m: var(--mp-c-accesos);
  position: absolute; width: 30px; height: 30px; margin: 0; padding: 0;
  border-radius: 50%; border: 2px solid #fbf9f3; background: var(--m); color: #fbf9f3;
  font: 600 12px/1 var(--texto, 'Montserrat', sans-serif);
  display: grid; place-items: center; cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--inv));
  box-shadow: 0 6px 14px -6px rgba(22,37,13,.6);
  transition: opacity .45s ease, filter .45s ease, background-color .45s ease;
  z-index: 2;
}
.mp__marcador span{ display: block; transition: transform .3s ease; }
.mp__marcador[data-cat="highlights"]{ --m: var(--mp-c-highlights); }
.mp__marcador[data-cat="amenidades"]{ --m: var(--mp-c-amenidades); }
/* en la vista general todos van a color; con una pestaña, los demás pasan a gris */
.mp[data-foco="accesos"] .mp__marcador:not([data-cat="accesos"]),
.mp[data-foco="highlights"] .mp__marcador:not([data-cat="highlights"]),
.mp[data-foco="amenidades"] .mp__marcador:not([data-cat="amenidades"]){
  background: #9a9a92; filter: grayscale(1); opacity: .38; z-index: 1;
}
.mp__marcador:hover span{ transform: scale(1.12); }
.mp__marcador[aria-current="true"]{
  z-index: 3; opacity: 1; filter: none;
  box-shadow: 0 0 0 4px rgba(251,249,243,.85), 0 0 0 6px var(--m), 0 10px 20px -8px rgba(22,37,13,.7);
}
.mp__marcador:focus-visible{ outline: 2px solid var(--tinta, #16250d); outline-offset: 3px; }

/* ---------- Controles sobre el plano (pequeños, en la orilla) ---------- */
.mp__zoom{
  position: absolute; right: 12px; top: 12px; z-index: 4;
  display: flex; flex-direction: column; gap: 6px;
}
.mp__zoom button, .mp__original{
  background: rgba(251,249,243,.94); color: var(--verde-profundo, #1d3a09);
  border: 1px solid rgba(88,106,60,.25); border-radius: 3px;
  cursor: pointer; transition: background-color .3s ease, color .3s ease;
}
.mp__zoom button{
  width: 38px; height: 38px; display: grid; place-items: center;
  font: 400 1.25rem/1 var(--texto, 'Montserrat', sans-serif);
}
.mp__zoom .ico{ width: 24px; height: 24px; stroke: none; }
.mp__zoom button:hover, .mp__original:hover{ background: var(--verde-medio, #586a3c); color: #fbf9f3; }
.mp__original{
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  font: 500 .66rem/1 var(--texto, 'Montserrat', sans-serif); letter-spacing: .14em; text-transform: uppercase;
  padding: .9em 1.1em;
}
.mp__original[aria-pressed="true"]{ background: var(--verde-medio, #586a3c); color: #fbf9f3; }

/* ---------- Ficha (al lado del plano, misma altura) ---------- */
.mp__panel{
  height: var(--alto); min-height: 0; overflow: hidden;
  background: rgba(251,249,243,.94); border-radius: 3px;
  box-shadow: 0 30px 60px -44px rgba(22,37,13,.45), 0 0 0 1px rgba(88,106,60,.14);
  border-top: 3px solid var(--c);
  display: flex; flex-direction: column;
  transition: border-color .4s ease;
}
.mp__general, .mp__detalle{ display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.mp__general[hidden], .mp__detalle[hidden]{ display: none !important; }
.mp__general{ padding: clamp(20px, 2.2vw, 30px); justify-content: center; }
.mp__general .mp__nombre{ margin-bottom: .6rem; }
.mp__general .mp__desc{ margin-bottom: clamp(16px, 1.8vw, 24px); }
.mp__leyenda{ display: flex; flex-direction: column; gap: 10px; }
.mp__ley{
  --t: var(--mp-c-accesos);
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px 12px 12px; cursor: pointer; text-align: left !important;
  font-family: var(--texto, 'Montserrat', sans-serif); color: var(--tinta, #16250d);
  background: #fff; border: 1px solid rgba(88,106,60,.14); border-left: 3px solid var(--t); border-radius: 3px;
  transition: background-color .3s ease, border-color .3s ease;
}
.mp__ley[data-cat="highlights"]{ --t: var(--mp-c-highlights); }
.mp__ley[data-cat="amenidades"]{ --t: var(--mp-c-amenidades); }
.mp__ley .ico{ width: 46px; height: 46px; stroke: none; color: var(--t); flex: none; }
.mp__ley-t{ display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.mp__ley-nombre{ font-weight: 600; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; }
.mp__ley-sub{ font-size: .8rem; opacity: .72; }
.mp__ley-n{ flex: none; font-size: .74rem; font-weight: 600; color: var(--t); letter-spacing: .04em; }
.mp__ley:hover{ border-color: var(--t); background: #fbf9f3; }
.mp__ley:focus-visible{ outline: 2px solid var(--t); outline-offset: 2px; }

.mp__foto{ margin: 0; position: relative; flex: none; }
.mp__foto[hidden], .mp__legal[hidden], .mp__dato[hidden]{ display: none !important; }
.mp__foto-btn{
  display: block; width: 100%; padding: 0; border: 0; background: #dcd8cb; cursor: zoom-in;
  border-radius: 0; overflow: hidden; aspect-ratio: 2 / 1;
}
.mp__foto-btn img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mp__foto-btn:hover img{ transform: scale(1.04); }
/* miniaturas sobre la foto, abajo a la derecha (ahorran alto) */
.mp__miniaturas{ position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.mp__miniaturas:empty{ display: none; }
.mp__mini{
  width: 58px; padding: 0; border: 2px solid rgba(251,249,243,.85); background: none; cursor: pointer; aspect-ratio: 16 / 10;
  border-radius: 3px; overflow: hidden; opacity: .8; transition: opacity .3s ease, border-color .3s ease;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.6);
}
.mp__mini img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.mp__mini[aria-current="true"], .mp__mini:hover{ opacity: 1; border-color: var(--c); }

.mp__texto{ padding: clamp(14px, 1.5vw, 20px) clamp(18px, 1.8vw, 26px) 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.mp__detalle--sin-foto .mp__texto{ display: flex; flex-direction: column; justify-content: center; }
html #mapa .mp__categoria{
  display: flex; align-items: center; gap: .55em;
  margin: 0 0 .55rem; font: 600 .7rem/1 var(--texto, 'Montserrat', sans-serif);
  letter-spacing: .2em; text-transform: uppercase; color: var(--c);
  text-align: left !important; text-align-last: auto !important;
}
html #mapa .mp__categoria .ico{ width: 36px; height: 36px; stroke: none; color: var(--c); }
.mp__nombre{
  margin: 0 0 .35rem; font-family: var(--display, 'Playfair Display', serif); font-weight: 400;
  font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.15; color: var(--verde-profundo, #1d3a09);
  text-align: left;
}
.mp__dato{
  margin: 0 0 .7rem; font: 600 .84rem/1.2 var(--texto, 'Montserrat', sans-serif); letter-spacing: .04em;
  background: var(--acento-lujo, none); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; text-align: left !important; text-align-last: auto !important;
}
html #mapa .mp__desc{
  margin: 0; font-family: var(--texto, 'Montserrat', sans-serif); font-size: .92rem; line-height: 1.65; color: var(--tinta, #16250d);
  text-align: justify !important; text-align-last: left !important;
}
html #mapa .mp__general .mp__desc{ text-align: left !important; text-align-last: left !important; }

.mp__navega{
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px clamp(18px, 1.8vw, 26px) 0; padding-top: 12px; border-top: 1px solid rgba(88,106,60,.16);
}
.mp__navega button{
  width: 36px; height: 36px; border-radius: 3px; cursor: pointer;
  border: 1px solid rgba(88,106,60,.25); background: transparent; color: var(--verde-profundo, #1d3a09);
  font-size: 1rem; transition: background-color .3s ease, color .3s ease;
}
.mp__navega button:hover{ background: var(--c); border-color: var(--c); color: #fbf9f3; }
.mp__contador{ margin: 0; font: 500 .74rem/1 var(--texto, 'Montserrat', sans-serif); letter-spacing: .12em; opacity: .7; text-align: center !important; }
/* «Imagen ilustrativa»: mucho más pequeño, a la derecha */
html #mapa .mp__legal{
  flex: none; margin: 8px clamp(18px, 1.8vw, 26px) 12px !important; font-size: 10px !important; max-width: none; opacity: .62;
}
html #mapa .mp__detalle > .mp__navega:last-child{ margin-bottom: 14px; }

/* ---------- Tableta ---------- */
@media (max-width: 1180px){
  html #mapa .mp__pestana .ico{ width: 36px; height: 36px; }
  html #mapa .mp__pestana{ gap: 10px; padding: 14px 12px; }
  .mp__pestana-flecha{ display: none; }
}
@media (max-width: 960px){
  .mp{ --alto: auto; }
  .mp__cuerpo{ grid-template-columns: minmax(0, 1fr); }
  .mp__plano{ height: auto; }
  .mp__lienzo{ height: auto; aspect-ratio: 2604 / 1509; }
  .mp__panel{ height: auto; overflow: visible; }
  .mp__texto{ overflow: visible; }
  .mp__general{ justify-content: flex-start; }
  html #mapa .mp__pestanas{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html #mapa .mp__pestana:nth-child(3){ box-shadow: inset 0 1px 0 rgba(88,106,60,.14); }
  html #mapa .mp__pestana:nth-child(4){ box-shadow: inset 1px 0 0 rgba(88,106,60,.14), inset 0 1px 0 rgba(88,106,60,.14); }
  html #mapa .mp__pestana:first-child{ border-top-left-radius: 3px; }
  html #mapa .mp__pestana:nth-child(2){ border-top-right-radius: 3px; }
  html #mapa .mp__pestana:last-child{ border-top-right-radius: 0; }
}
/* ---------- Móvil ---------- */
@media (max-width: 640px){
  html #mapa .mp-intro{ grid-template-columns: minmax(0, 1fr); }
  .mp__lienzo{ aspect-ratio: 4 / 3; }
  html #mapa .mp__pestana{ gap: 8px; padding: 12px 10px; }
  html #mapa .mp__pestana .ico{ width: 32px; height: 32px; }
  .mp__pestana-nombre{ font-size: .72rem; letter-spacing: .08em; }
  .mp__pestana-sub{ font-size: .68rem; }
  .mp__pestana-n{ min-width: 22px; height: 22px; font-size: .66rem; }
  .mp__lista ul{ justify-content: flex-start; padding: 12px; gap: 6px; }
  .mp__item{ font-size: .78rem; }
  .mp__item .mp__item-ico{ width: 26px; height: 26px; }
  .mp__marcador{ width: 26px; height: 26px; font-size: 11px; }
  .mp__zoom{ right: 8px; top: 8px; }
  .mp__zoom button{ width: 34px; height: 34px; }
  .mp__original{ right: 8px; bottom: 8px; padding: .8em .9em; font-size: .6rem; }
}
@media (max-width: 380px){
  .mp__pestana-sub{ display: none; }
}

/* ---------- Botones unificados (ronda 4): rectángulos de 3 px, ícono de línea
   fina centrado, 40 px mínimo, hover / activo / foco claros ---------- */
.mp-lin{ width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
html #mapa .mp__zoom button, html #mapa .mp__navega button{
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border-radius: 3px; border: 1px solid rgba(88,106,60,.28); background: #fbf9f3; color: var(--verde-profundo, #1d3a09);
  box-shadow: 0 4px 12px -8px rgba(22,37,13,.45);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
html #mapa .mp__zoom button:hover, html #mapa .mp__navega button:hover{ background: var(--c); border-color: var(--c); color: #fbf9f3; }
html #mapa .mp__zoom button:active, html #mapa .mp__navega button:active, html #mapa .mp__original:active{ transform: translateY(1px); }
html #mapa .mp__zoom button:focus-visible, html #mapa .mp__navega button:focus-visible,
html #mapa .mp__original:focus-visible, html #mapa .mp__mini:focus-visible, html #mapa .mp__foto-btn:focus-visible{
  outline: 2px solid var(--c); outline-offset: 2px; }
html #mapa .mp__original{ min-height: 40px; border-radius: 3px; background: #fbf9f3; box-shadow: 0 4px 12px -8px rgba(22,37,13,.45); }
html #mapa .mp__mini{ min-width: 40px; }
/* marcadores: mismo lenguaje (rectángulo de 3 px), con borde claro */
.mp__marcador{ border-radius: 3px; width: 30px; height: 30px; }
.mp__marcador[aria-current="true"]{ border-radius: 3px; }
@media (max-width: 640px){
  html #mapa .mp__zoom button{ width: 40px; height: 40px; }
  .mp__marcador{ width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce){
  .mp__mundo.mp--suave, .mp__vector, .mp__base, .mp__marcador, .mp__foto-btn img,
  .mp__vector .mp-zona *, .mp__lista, .mp__pestana, .mp__pestana::after, .mp__pestana-flecha,
  .mp__item, .mp__ley, .mp__panel{ transition: none !important; }
}

/* 27-nov (Tash): sin mostaza; animaciones suaves */
html #mapa.mp-seccion{ --mp-c-highlights: #2f4a2a; }
.mp__mundo.mp--suave{ transition: transform 1.1s cubic-bezier(.65,0,.35,1) !important; }
.mp__mundo.mp--rueda{ transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.mp__foto img, #mapa img.mp--fundiendo{ transition: opacity .45s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
#mapa img.mp--fundiendo{ opacity: 0; }
@keyframes mpEntra{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
#mapa .mp--entra .mp__det-cuerpo, #mapa .mp--entra h3, #mapa .mp--entra p{ animation: mpEntra .55s cubic-bezier(.2,.7,.2,1) both; }
html #mapa .mp__pestana, html #mapa .mp__item, html #mapa .mp__marcador, html #mapa .mp__marcador span{ transition-duration: .5s !important; transition-timing-function: cubic-bezier(.2,.7,.2,1) !important; }
@media (prefers-reduced-motion: reduce){ #mapa .mp--entra *{ animation: none !important; } }
