*{box-sizing:border-box}html,body,#app,#map{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:#15241f;color:white}#app{position:relative}#map{position:absolute;inset:0}.brand{position:absolute;top:20px;left:22px;display:flex;align-items:center;gap:12px;padding:13px 17px;background:rgba(13,23,19,.86);border:1px solid #ffffff35;border-radius:17px;backdrop-filter:blur(14px);pointer-events:none}.brand strong{font-size:15px;letter-spacing:1.5px}.brand small{display:block;font-size:10px;letter-spacing:1px;color:#c4d6ca;margin-top:4px}.leaf{font-size:25px;color:#f3c95c}.status{position:absolute;top:100px;left:22px;max-width:min(480px,calc(100vw - 44px));padding:11px 15px;border-radius:12px;background:#10251de0;border:1px solid #ffffff3b;font-size:13px;transition:opacity .5s;z-index:3}.status.quiet{opacity:0;pointer-events:none}.status.error{background:#5c201fe6;opacity:1}.islands{position:absolute;bottom:33px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);display:flex;align-items:center;gap:16px;z-index:5}.island{display:flex;align-items:center;gap:3px;padding:7px;background:rgba(14,18,26,.85);border:1px solid #ffffff40;border-radius:19px;backdrop-filter:blur(18px) saturate(145%);box-shadow:0 8px 28px #0008}.island button{appearance:none;border:0;color:#fff;background:transparent;border-radius:12px;width:39px;height:43px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .16s,color .16s,transform .16s}.island button:hover,.island button:focus-visible{background:#ffffff2b;outline:1px solid #ffffff50;transform:translateY(-2px)}.island button.active{color:var(--accent,#a5dfd2);background:#ffffff1c}.tourism button{width:45px}.tourism button svg{width:29px;height:33px}.search-island{gap:6px}.search-form{display:flex;align-items:center;gap:5px}.search-form[hidden],.tour-panel[hidden]{display:none}.search-form input{width:150px;max-width:25vw;padding:10px;border:1px solid #ffffff40;border-radius:9px;background:#0f1824;color:white;outline:none}.search-form button{font-size:13px;width:32px}.tour-panel{position:absolute;left:50%;transform:translateX(-50%);bottom:113px;width:min(420px,calc(100vw - 30px));padding:18px 22px;background:rgba(14,18,26,.93);border:1px solid #ffffff45;border-radius:17px;backdrop-filter:blur(20px);box-shadow:0 10px 40px #0008;z-index:5}.tour-panel h2{font-size:17px;margin:0 0 10px}.tour-panel p{font-size:13px;line-height:1.55;color:#dce3e6;margin:0}.close-panel{position:absolute;right:10px;top:6px;border:0;background:none;color:white;font-size:25px;cursor:pointer}.foot{position:absolute;bottom:5px;left:12px;font-size:10px;color:white;text-shadow:0 1px 4px black;pointer-events:none}@media(max-width:820px){.islands{gap:7px;bottom:24px}.island{padding:4px;gap:0;border-radius:14px}.island button{width:31px;height:38px}.island svg{width:19px;height:19px}.tourism button{width:34px}.tourism button svg{width:24px;height:28px}.brand{top:10px;left:10px;padding:9px}.brand strong{font-size:11px}.brand small{font-size:8px}.status{top:75px;left:10px}.tour-panel{bottom:90px}}@media(max-width:600px){.islands{left:8px;right:8px;transform:none;max-width:none;flex-wrap:wrap;justify-content:center;gap:6px}.camera{order:2}.tourism{order:1}.search-island{order:3}.tour-panel{bottom:135px}.search-form input{max-width:36vw}}

/* 021-F2: tres islas centradas, laterales idénticos y buscador estable */
#roadMap{position:absolute;inset:0;width:100%;height:100%;z-index:1}
#roadMap[hidden],#map[hidden]{display:none!important}
.islands{display:grid;grid-template-columns:var(--side-island-width) max-content var(--side-island-width);--side-island-width:350px;gap:16px;align-items:center;justify-content:center;width:max-content;max-width:calc(100vw - 20px)}
.islands>.island{min-width:0}
.islands>.camera,.islands>.search-island{width:var(--side-island-width)}
.camera{justify-content:space-evenly}
.search-island{justify-content:flex-start}
.search-island .search-form{display:flex!important;flex:1;min-width:0}
.search-island .search-form input{flex:1;width:100%;min-width:0;max-width:none}
.search-island #searchToggle{flex:none}
.search-island .search-form button{flex:none}
@media(max-width:1160px){.islands{--side-island-width:305px;gap:10px}.island button{width:35px}.tourism button{width:40px}}
@media(max-width:1000px){.islands{--side-island-width:265px;gap:8px}.island{padding:5px;gap:1px}.island button{width:32px;height:40px}.tourism button{width:36px}}
@media(max-width:850px){.islands{--side-island-width:235px;gap:6px}.island button{width:28px}.tourism button{width:32px}.island svg{width:20px;height:20px}.tourism button svg{width:24px;height:28px}}
@media(max-width:740px){.islands{display:flex;flex-wrap:wrap;justify-content:center;width:calc(100% - 16px);left:8px;right:8px;transform:none;max-width:none;gap:7px}.islands>.camera,.islands>.search-island{width:min(350px,calc(100vw - 16px))}.camera{order:2}.tourism{order:1}.search-island{order:3}.tour-panel{bottom:165px}}

/* mapa3d-02: bienvenida transparente de Andrea sobre vista panorámica */
.welcome{position:absolute;z-index:4;left:50%;bottom:100px;transform:translateX(-50%);width:min(1120px,90vw);max-height:calc(100vh - 155px);pointer-events:none;display:flex;align-items:flex-end;justify-content:center;opacity:1;visibility:visible;transition:opacity .24s ease,visibility .24s ease}
.welcome img{display:block;width:100%;height:auto;max-height:calc(100vh - 155px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 20px rgba(0,0,0,.16))}
.welcome.is-hidden{opacity:0;visibility:hidden}
@media(max-width:740px){.welcome{width:min(96vw,620px);bottom:175px;max-height:calc(100vh - 235px)}.welcome img{max-height:calc(100vh - 235px)}}

/* mapa3d-03: Andrea anclada al borde inferior izquierdo, detrás de las islas. */
.welcome{left:0;bottom:0;transform:none;width:min(1120px,90vw);max-height:calc(100vh - 30px);justify-content:flex-start;z-index:4}
.welcome img{max-height:calc(100vh - 30px);object-position:left bottom}
@media(max-width:740px){.welcome{left:0;bottom:0;transform:none;width:min(96vw,620px);max-height:calc(100vh - 10px)}.welcome img{max-height:calc(100vh - 10px)}}

/* mapa3d-05: panel de calibración temporal, sin tocar los docks. */
.camera-calibration{position:absolute;top:78px;left:16px;z-index:12;font:13px/1.4 system-ui,sans-serif;color:#fff}
.camera-calibration button{cursor:pointer;background:rgba(16,24,28,.9);color:white;border:1px solid rgba(255,255,255,.25);border-radius:9px;padding:9px 12px}
.camera-calibration button:hover{background:#31433f}
.calibration-panel{margin-top:8px;width:min(340px,calc(100vw - 32px));background:rgba(12,20,25,.96);border:1px solid rgba(255,255,255,.3);border-radius:12px;padding:14px;box-shadow:0 8px 25px #0007}
.calibration-panel[hidden]{display:none!important}
.calibration-panel p{font-size:12px;color:#ddd;margin:9px 0}
.calibration-panel textarea{display:block;box-sizing:border-box;width:100%;height:155px;margin:9px 0;background:#f9fafb;color:#14211d;font:12px/1.5 monospace;padding:9px;border-radius:7px;resize:vertical}
.calibration-panel button{margin:3px 4px 3px 0}
#calibrationStatus{display:block;color:#b7e9ce;margin:8px 0;font-size:12px}

/* mapa3d-06: Andrea ligeramente mas pequena, anclada a esquina inferior izquierda. */
.welcome{width:min(1000px,81vw)}
@media(max-width:740px){.welcome{width:min(90vw,560px)}}

/* mapa3d-07: etiquetas fijas y hover por categoría; solo cápsula central */
.tourism{align-items:stretch}
.tourism .tour-button{height:65px;display:flex;flex-direction:column;justify-content:center;gap:2px;position:relative;color:#fff}
.tourism .tour-button .pin-icon{flex:none;width:26px;height:30px;overflow:visible}
.tourism .tour-button .pin-outline{fill:transparent;stroke:#fff;transition:fill .18s ease,filter .18s ease}
.tourism .tour-button .pin-symbol{stroke:#fff;transition:stroke .18s ease}
.tourism .tour-button .tour-label{font-size:9px;line-height:1.1;letter-spacing:.05px;color:#e9edf1;white-space:nowrap;transition:color .18s ease}
.tourism .tour-button:hover .pin-outline,.tourism .tour-button:focus-visible .pin-outline,.tourism .tour-button.active .pin-outline{fill:var(--accent)}
.tourism .tour-button:hover .pin-icon,.tourism .tour-button:focus-visible .pin-icon,.tourism .tour-button.active .pin-icon{filter:drop-shadow(0 0 5px var(--accent))}
.tourism .tour-button:hover .tour-label,.tourism .tour-button.active .tour-label{color:var(--accent)}
.tourism .tour-button.active{color:#fff;background:#ffffff17}
.tourism .tour-button:hover{color:#fff}
@media(max-width:1160px){.tourism .tour-button{width:49px}}
@media(max-width:850px){.tourism .tour-button{width:44px}.tourism .tour-button .tour-label{font-size:8px}}
@media(max-width:740px){.tourism .tour-button{width:50px}}

/* mapa3d-08: jerarquía visual del dock turístico; los docks laterales no cambian. */
@media(min-width:1161px){
  .islands{gap:13px}
  .tourism{gap:8px;padding:9px 13px;border-radius:21px}
  .tourism .tour-button{width:66px;height:77px;gap:6px}
  .tourism .tour-button .pin-icon{width:31px;height:36px}
  .tourism .tour-button .tour-label{font-size:11px;line-height:1.2;letter-spacing:.08px}
}
@media(min-width:851px) and (max-width:1160px){
  .tourism{gap:4px;padding:8px 9px}
  .tourism .tour-button{width:55px;height:72px;gap:5px}
  .tourism .tour-button .pin-icon{width:29px;height:33px}
  .tourism .tour-button .tour-label{font-size:10px}
}
@media(min-width:741px) and (max-width:850px){
  .tourism{gap:2px;padding:7px 8px}
  .tourism .tour-button{width:48px;height:68px;gap:4px}
  .tourism .tour-button .tour-label{font-size:9px}
}
@media(max-width:740px){
  .tourism{gap:5px;padding:8px 10px}
  .tourism .tour-button{width:58px;height:72px;gap:4px}
  .tourism .tour-button .tour-label{font-size:10px}
}

/* mapa3d-09: acabado negro brillante, estilo cristal de reloj, solo dock turistico */
.island.tourism{
  isolation:isolate;position:relative;overflow:visible;
  background:linear-gradient(172deg,rgba(76,82,94,.97) 0%,rgba(20,22,29,.99) 13%,rgba(5,7,12,.98) 53%,rgba(18,21,29,.98) 100%);
  border:1px solid rgba(220,229,243,.48);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.55),inset 0 -2px 4px rgba(0,0,0,.92),0 2px 0 rgba(0,0,0,.8),0 11px 26px rgba(0,0,0,.55),0 0 0 2px rgba(0,0,0,.30);
}
.island.tourism::before{
  content:"";position:absolute;pointer-events:none;z-index:0;left:6%;right:6%;top:2px;height:21%;border-radius:80% 80% 45% 45% / 80% 80% 40% 40%;
  background:linear-gradient(to bottom,rgba(255,255,255,.27),rgba(255,255,255,.09) 32%,rgba(255,255,255,0));
  opacity:.75;transition:opacity .28s ease;
}
.island.tourism::after{
  content:"";position:absolute;pointer-events:none;z-index:0;inset:2px;border-radius:inherit;
  border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 -1px 2px rgba(255,255,255,.09);
}
.island.tourism:hover::before{opacity:1}
.island.tourism .tour-button{z-index:1}
/* mapa3d-10: tooltips EXTERNOS, por encima de los iconos de las islas laterales. */
.island.camera,.island.search-island{overflow:visible}
.island.camera button[data-tip],.island.search-island button[data-tip]{position:relative}
.island.camera button[data-tip]::after,.island.search-island button[data-tip]::after{
  content:attr(data-tip);position:absolute;bottom:calc(100% + 13px);left:50%;
  transform:translate(-50%,4px);opacity:0;visibility:hidden;
  padding:5px 8px;background:rgba(11,14,21,.97);border:1px solid rgba(255,255,255,.20);
  border-radius:7px;color:#f7f9fc;font:500 10px/1.25 system-ui,-apple-system,sans-serif;
  white-space:nowrap;box-shadow:0 4px 12px #0008;pointer-events:none;z-index:100;
  transition:opacity .12s ease,transform .12s ease,visibility .12s;
}
.island.camera button[data-tip]:hover::after,.island.camera button[data-tip]:focus-visible::after,
.island.search-island button[data-tip]:hover::after,.island.search-island button[data-tip]:focus-visible::after{
  opacity:1;visibility:visible;transform:translate(-50%,0);
}
/* El tooltip no queda oculto por la isla central ni por islas vecinas. */
.island.camera:has(button:hover),.island.search-island:has(button:hover),
.island.camera:has(button:focus-visible),.island.search-island:has(button:focus-visible){z-index:15}

/* mapa3d-11: control continuo sin selección accidental del texto */
.island.camera button{touch-action:none;user-select:none;-webkit-user-select:none}
.island.camera button.is-pressed{filter:brightness(1.18)}

/* Tarjeta de destino WordPress */
.te-dest-image{display:block;max-width:100%;max-height:160px;object-fit:cover;border-radius:10px;margin:9px 0}
.te-dest-link{display:block;color:#9de1ff;font-weight:600;margin-top:12px}

/* Identificador discreto de versión, fuera de los controles de la derecha */
.te-version-badge{position:fixed;right:56px;bottom:7px;z-index:8;pointer-events:none;color:rgba(255,255,255,.75);background:rgba(8,12,19,.48);border:1px solid rgba(255,255,255,.12);border-radius:5px;padding:2px 5px;font:500 10px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.2px;white-space:nowrap}
@media(max-width:740px){.te-version-badge{right:48px;bottom:5px;font-size:9px}}

/* ETAPA 015: panel lateral de tarjetas, inspirado en el prototipo original. */
.tour-panel.te-list-panel{left:12px;top:36px;bottom:auto;transform:none;width:315px;max-height:calc(100vh - 165px);padding:17px 13px 14px;border-radius:18px;background:rgba(20,31,55,.87);border:1px solid rgba(202,218,249,.25);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 12px 38px #0008;z-index:7}
.tour-panel.te-list-panel[hidden],.te-detail-panel[hidden]{display:none!important}
.te-list-panel h2{font-size:17px;padding:0 24px 0 3px;margin:0 0 4px}
.te-list-body{min-height:0;overflow:hidden;display:flex;flex-direction:column}
.te-list-subtitle{font-size:10px;color:#c3d0e7;margin:0 0 13px 3px}
.te-service-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding:2px 3px 6px;scrollbar-width:thin}
.te-service-card{width:100%;min-height:78px;text-align:left;display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;background:rgba(130,154,205,.17);border:1px solid rgba(225,235,255,.17);color:#fff;cursor:pointer;transition:background .15s,border-color .15s}
.te-service-card:hover,.te-service-card.is-selected{background:rgba(139,164,219,.34);border-color:rgba(255,255,255,.48)}
.te-service-card img,.te-service-placeholder{flex:none;width:56px;height:56px;border-radius:9px;object-fit:cover;background:#33445b}
.te-service-placeholder{display:grid;place-items:center;font-size:24px;color:#ffb76b}
.te-service-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.te-service-copy small{font-size:9px;color:#e7a99d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.te-service-copy strong{font-size:11px;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.te-service-excerpt{font-size:10px;color:#c4cde1;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.te-service-arrow{font-size:22px;color:#d8e2f5}
.te-detail-panel{position:absolute;z-index:8;right:18px;top:50%;transform:translateY(-50%);width:min(390px,calc(100vw - 36px));max-height:calc(100vh - 175px);overflow-y:auto;border:1px solid #ffffff5a;border-radius:18px;background:rgba(15,20,30,.96);padding:19px;box-shadow:0 16px 45px #000a;backdrop-filter:blur(15px)}
.te-detail-panel h2{font-size:19px;padding-right:24px;margin:0 0 12px}.te-detail-panel p{font-size:13px;line-height:1.55;color:#e4e8ef}.te-detail-image{width:100%;max-height:200px;object-fit:cover;border-radius:12px}.te-detail-category{color:#f5b77d;font-size:12px;margin-top:10px}.te-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.te-detail-actions button,.te-detail-actions a{border:1px solid #ffffff55;border-radius:9px;padding:10px 12px;background:#ad5338;color:#fff;font:600 12px system-ui;text-decoration:none;cursor:pointer}
.te-version-badge{background:none;border:0;border-radius:0;padding:0;right:58px;bottom:5px;font-size:10px;text-shadow:0 1px 4px #000,0 0 5px #000}
@media(max-width:740px){.tour-panel.te-list-panel{left:8px;top:8px;width:min(310px,calc(100vw - 16px));max-height:calc(100vh - 245px)}.te-detail-panel{top:45%;right:8px;max-height:calc(100vh - 240px)}.te-version-badge{font-size:8px;right:47px}}

/* ETAPA 016 — Recuperación de tarjetas: fondo más sólido, panel intacto. */
.tour-panel.te-list-panel .te-service-card{
 background:rgba(68,85,123,.86);
 border-color:rgba(225,235,255,.22);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 2px 7px rgba(0,0,0,.12);
 transition:background .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.tour-panel.te-list-panel .te-service-card:hover{
 background:rgba(110,131,169,.96);
 border-color:rgba(255,255,255,.62);
 box-shadow:0 0 17px rgba(175,205,255,.2),inset 0 1px 0 rgba(255,255,255,.16);
 transform:translateX(2px);
}
.tour-panel.te-list-panel .te-service-card.is-selected{
 background:rgba(93,117,161,.96);
 border-color:rgba(155,204,255,.9);
 box-shadow:0 0 0 1px rgba(130,190,255,.22),0 0 15px rgba(100,155,255,.16);
}

/* ETAPA 016.1 — contraste visible solo en celdas, panel translúcido intacto */
.tour-panel.te-list-panel .te-service-card {
 background:rgba(63,78,108,.96)!important;
 border:1px solid rgba(221,231,255,.38)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 3px 10px rgba(0,0,0,.23)!important;
 transition:background-color .24s ease,box-shadow .24s ease,border-color .24s ease,transform .24s ease!important;
}
.tour-panel.te-list-panel .te-service-card:hover,
.tour-panel.te-list-panel .te-service-card:focus-visible {
 background:rgba(186,202,229,.97)!important;
 color:#142139!important;
 border-color:#ffffff!important;
 box-shadow:0 0 0 1px rgba(255,255,255,.62),0 0 24px rgba(206,224,255,.65)!important;
 transform:translateX(4px) scale(1.015)!important;
}
.tour-panel.te-list-panel .te-service-card:hover .te-service-copy *,
.tour-panel.te-list-panel .te-service-card:focus-visible .te-service-copy * {color:#152139!important}
.tour-panel.te-list-panel .te-service-card.is-selected:not(:hover) {
 background:rgba(108,143,195,.98)!important;
 border-color:#b5dbff!important;
 box-shadow:0 0 0 1px rgba(157,209,255,.75),0 0 18px rgba(130,191,255,.4)!important;
}

/* 16.3: panel un poco más ancho, sin desplazamiento horizontal. */
.tour-panel.te-list-panel{width:355px;max-width:calc(100vw - 24px)}
.tour-panel.te-list-panel,.tour-panel.te-list-panel *{box-sizing:border-box}
.tour-panel.te-list-panel .te-list-body,.tour-panel.te-list-panel .te-service-list{min-width:0;max-width:100%;overflow-x:hidden}
.tour-panel.te-list-panel .te-service-list{scrollbar-width:thin;scrollbar-color:#566174 transparent;overscroll-behavior:contain}
.tour-panel.te-list-panel .te-service-list::-webkit-scrollbar{width:7px;height:0}
.tour-panel.te-list-panel .te-service-list::-webkit-scrollbar-track{background:transparent}
.tour-panel.te-list-panel .te-service-list::-webkit-scrollbar-thumb{background:#566174;border-radius:10px}
.tour-panel.te-list-panel .te-service-card{min-width:0;max-width:100%}
@media(max-width:740px){.tour-panel.te-list-panel{width:min(355px,calc(100vw - 16px))}}

/* 16.4: tarjetas fijas al pasar el cursor; solo se ilumina el fondo. */
.tour-panel.te-list-panel .te-service-card:hover,
.tour-panel.te-list-panel .te-service-card:focus-visible,
.tour-panel.te-list-panel .te-service-card.is-selected {
  transform:none!important;
}
.tour-panel.te-list-panel .te-service-card {
  transform:none!important;
  transform-origin:center center;
}

/* 16.6: la tarjeta seleccionada permanece íntegra, sin agrandarse ni desplazarse. */
.tour-panel.te-list-panel .te-service-list{padding-bottom:20px;scroll-padding-block:20px}
.tour-panel.te-list-panel .te-service-card,
.tour-panel.te-list-panel .te-service-card:hover,
.tour-panel.te-list-panel .te-service-card:focus-visible,
.tour-panel.te-list-panel .te-service-card.is-selected{transform:none!important;scale:1!important;flex-shrink:0;position:relative;left:auto;right:auto;margin-inline:0!important}

/* 16.8: espacio real junto al scroll, tarjetas completamente inmóviles. */
.tour-panel.te-list-panel .te-service-list{padding:5px 14px 24px 4px!important;gap:9px;overflow-x:hidden!important;scrollbar-gutter:stable}
.tour-panel.te-list-panel .te-service-card{width:100%!important;max-width:100%!important;min-width:0!important;transform:none!important;scale:1!important;filter:none}
.tour-panel.te-list-panel .te-service-card:hover,.tour-panel.te-list-panel .te-service-card:focus-visible,.tour-panel.te-list-panel .te-service-card.is-selected{transform:none!important;scale:1!important;left:auto!important;right:auto!important}
.te-commune-heading{position:relative;margin:11px 0 1px;padding:7px 9px 5px;border-bottom:1px solid rgba(225,235,255,.26);color:#e5b58e;font-size:10px;font-weight:750;letter-spacing:1.2px;text-align:left}
.te-commune-heading:first-child{margin-top:0}

/* 16.9 — cristal negro, tarjetas inmóviles y ficha turística clara */
.tour-panel.te-list-panel{background:rgba(8,9,12,.79)!important;border-color:rgba(255,255,255,.24)!important;backdrop-filter:blur(22px) saturate(120%)}
.tour-panel.te-list-panel .te-service-card{background:rgba(20,20,23,.76)!important;border:1px solid rgba(255,255,255,.19)!important;transform:none!important;scale:1!important;transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease!important}
.tour-panel.te-list-panel .te-service-card:hover,.tour-panel.te-list-panel .te-service-card:focus-visible{background:rgba(215,219,225,.89)!important;border-color:rgba(255,255,255,.9)!important;box-shadow:0 0 0 1px rgba(255,255,255,.4)!important;transform:none!important;scale:1!important}
.tour-panel.te-list-panel .te-service-card.is-selected:not(:hover){background:rgba(80,82,89,.94)!important;border-color:#f1a35c!important;box-shadow:inset 3px 0 0 #f1a35c!important}
.tour-panel.te-list-panel .te-service-list{scrollbar-color:#525252 transparent!important}
.tour-panel.te-list-panel .te-service-list::-webkit-scrollbar-thumb{background:#525252!important}
/* El marcador seleccionado destaca sin modificar su posición geográfica. */
.te-place-pin{transform-origin:50% 100%;will-change:transform,filter}
.te-place-pin.te-pin-selected{animation:te-marker-bounce 1.1s ease-in-out infinite;filter:drop-shadow(0 0 7px rgba(255,181,99,.95)) drop-shadow(0 5px 3px rgba(0,0,0,.65))}
.te-glyph-selected{font-weight:900!important}
@keyframes te-marker-bounce{0%,100%{transform:translateY(0) scale(1.1)}45%{transform:translateY(-13px) scale(1.2)}70%{transform:translateY(-4px) scale(1.13)}}
/* Ficha vertical, blanca y con barra inferior siempre visible */
.te-detail-panel{right:clamp(12px,3vw,50px)!important;top:50%!important;transform:translateY(-50%)!important;width:min(445px,calc(100vw - 32px))!important;height:min(730px,calc(100vh - 135px))!important;max-height:calc(100vh - 135px)!important;display:flex!important;flex-direction:column;overflow:hidden!important;padding:0!important;background:#f9f9f8!important;color:#222!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:22px!important;box-shadow:0 20px 65px #0009!important}
.te-detail-panel[hidden]{display:none!important}
.te-detail-panel #closeDetail{display:none}
#detailContent{min-height:0;display:flex;flex-direction:column;height:100%;overflow:hidden}
.te-detail-hero{height:210px;flex:none;position:relative;background:linear-gradient(135deg,#e9e8e4,#c6c9c9);overflow:hidden}
.te-detail-hero>img{width:100%;height:100%;object-fit:cover;display:block}
.te-detail-hero:after{content:'';position:absolute;bottom:0;left:0;right:0;height:70px;background:linear-gradient(transparent,#f9f9f8);pointer-events:none}
.te-detail-tools{position:absolute;right:12px;top:12px;display:flex;gap:7px;z-index:2}
.te-detail-tools button{border:1px solid #ffffff9c;background:#fffef0e8;color:#333;border-radius:50%;height:34px;width:34px;cursor:pointer;font-size:22px;line-height:1;display:grid;place-items:center;box-shadow:0 2px 8px #0003}
.te-detail-tools button.is-favorite{color:#e16d67}
.te-detail-scroll{padding:3px 25px 24px;overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#aaa transparent}
.te-detail-panel .te-detail-category{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#cb7c6b;font-weight:700;margin:5px 0 7px}
.te-detail-panel h2{color:#222;font-size:24px;line-height:1.15;padding:0;margin:0 0 20px}
.te-detail-panel h3{color:#222;font-size:15px;margin:0 0 8px}
.te-detail-panel p{color:#555;font-size:13px;line-height:1.65;margin:0 0 15px}
.te-highlights{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.te-highlights span{font-size:11px;border:1px solid #ddd;border-radius:8px;padding:6px 9px;color:#555;background:#fff}
.te-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:15px 0}
.te-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px}
.te-detail-panel .te-detail-actions{display:flex;flex-wrap:wrap;gap:7px;flex:none;margin:0;padding:12px 16px 15px;border-top:1px solid #e8e8e8;background:#fff;justify-content:center}
.te-detail-panel .te-detail-actions a{font-size:11px;background:#f2f2f2;color:#333;border:1px solid #ddd;border-radius:10px;padding:10px 12px;text-align:center;text-decoration:none}
.te-detail-panel .te-detail-actions a.te-action-route{background:#d77555;color:white;border-color:#d77555}
.te-detail-panel .te-detail-actions a.te-action-web{background:#262626;color:white;border-color:#262626}
@media(max-width:740px){.te-detail-panel{right:8px!important;top:45%!important;height:min(610px,calc(100vh - 230px))!important;max-height:calc(100vh - 230px)!important}.te-detail-hero{height:150px}}
@media(prefers-reduced-motion:reduce){.te-place-pin.te-pin-selected{animation:none;filter:drop-shadow(0 0 9px #ffb563)}}

/* TERRITORIO ELEMENTAL 17.0 — refinamiento de ficha y mapa */
#app:has(.te-detail-panel:not([hidden]))::before{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;background:rgba(12,15,19,.12);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.te-detail-panel{z-index:9!important;right:clamp(35px,7vw,135px)!important;width:min(470px,calc(100vw - 32px))!important;height:min(705px,calc(100vh - 150px))!important}
.te-detail-hero{height:240px!important}
.te-detail-panel .te-detail-scroll{padding:14px 27px 26px!important}
.te-detail-panel .te-detail-actions{justify-content:space-between!important;gap:8px!important}
.te-detail-panel .te-detail-actions button,.te-detail-panel .te-detail-actions a{flex:1 1 auto;font:600 11px system-ui;padding:11px 8px;border-radius:10px;cursor:pointer;text-align:center;white-space:nowrap}
.te-detail-panel .te-detail-actions button.te-action-map{background:#fff;color:#292929;border:1px solid #d5d5d5}
.tour-panel.te-list-panel .te-service-card{background:rgba(13,14,16,.46)!important;border-color:rgba(255,255,255,.16)!important;backdrop-filter:blur(10px)}
.tour-panel.te-list-panel .te-service-card.is-selected:not(:hover){background:rgba(44,44,47,.72)!important}
.tour-panel.te-list-panel{background:rgba(10,12,15,.66)!important;backdrop-filter:blur(17px)!important}
.te-active-marker{filter:drop-shadow(0 0 9px rgba(255,168,74,.95));animation:te-selected-3d-pulse 1.3s ease-in-out infinite}
@keyframes te-selected-3d-pulse{0%,100%{filter:drop-shadow(0 0 5px rgba(255,167,73,.5))}50%{filter:drop-shadow(0 0 18px rgba(255,167,73,1))}}
@media(max-width:740px){.te-detail-panel{right:8px!important;width:calc(100vw - 16px)!important;height:min(620px,calc(100vh - 190px))!important}.te-detail-hero{height:165px!important}}
@media(prefers-reduced-motion:reduce){.te-active-marker{animation:none}}

/* v17.1 — enfoque cinematográfico progresivo, sin borde circular perceptible.
   La zona del marcador queda nítida; el desenfoque aumenta muy gradualmente
   hacia los extremos. La capa no intercepta clics. */
#app:has(.te-detail-panel:not([hidden]))::before{
  background:rgba(3,9,7,.055);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  -webkit-mask-image:radial-gradient(ellipse 68% 75% at 49% 46%, transparent 0%, rgba(0,0,0,.025) 16%, rgba(0,0,0,.13) 32%, rgba(0,0,0,.35) 53%, rgba(0,0,0,.73) 78%, #000 100%);
  mask-image:radial-gradient(ellipse 68% 75% at 49% 46%, transparent 0%, rgba(0,0,0,.025) 16%, rgba(0,0,0,.13) 32%, rgba(0,0,0,.35) 53%, rgba(0,0,0,.73) 78%, #000 100%);
}

/* v17.2: pins salmón / azul con centro blanco y sombra al seleccionar. */
.te-pin-dot{display:block;width:11px;height:11px;border-radius:50%;background:#fff;border:1px solid rgba(255,255,255,.9);box-shadow:0 1px 2px rgba(0,0,0,.3)}
.te-active-marker{animation:none!important;filter:drop-shadow(0 0 12px rgba(226,120,91,.92)) drop-shadow(0 8px 6px rgba(0,0,0,.8))!important}
.te-place-pin.te-pin-selected{animation:none!important;filter:drop-shadow(0 0 8px rgba(229,133,102,.9)) drop-shadow(0 7px 4px rgba(0,0,0,.75))!important}
/* El vidrio queda debajo de los controles propios, paneles y docks. */
#app:has(.te-detail-panel:not([hidden]))::before{z-index:6!important;
  -webkit-mask-image:radial-gradient(ellipse 68% 75% at 49% 46%,transparent 0%,rgba(0,0,0,.025) 16%,rgba(0,0,0,.13) 32%,rgba(0,0,0,.35) 53%,rgba(0,0,0,.73) 78%,#000 100%),linear-gradient(to right,#000 0%,#000 calc(100% - 92px),transparent calc(100% - 50px));
  mask-image:radial-gradient(ellipse 68% 75% at 49% 46%,transparent 0%,rgba(0,0,0,.025) 16%,rgba(0,0,0,.13) 32%,rgba(0,0,0,.35) 53%,rgba(0,0,0,.73) 78%,#000 100%),linear-gradient(to right,#000 0%,#000 calc(100% - 92px),transparent calc(100% - 50px));
  -webkit-mask-composite:source-in;mask-composite:intersect;
}
.islands{z-index:12!important}.tour-panel.te-list-panel{z-index:11!important}.te-detail-panel{z-index:13!important}.status{z-index:14!important}.te-version-badge{z-index:14!important}

/* 17.3: los controles HTML siempre sobre el velo de enfoque. */
.islands{z-index:20!important}
.tour-panel.te-list-panel{z-index:20!important}
.te-detail-panel{z-index:21!important}
.te-version-badge,.foot{z-index:20!important}
/* El pin activo conserva su anclaje geográfico y destaca por tamaño y sombra. */
.te-active-marker{filter:drop-shadow(0 0 11px rgba(232,122,93,.95)) drop-shadow(0 9px 5px rgba(0,0,0,.85))!important}

/* v17.4: nombre solo sobre el marcador seleccionado. */
.te-selected-place-label{display:block;position:relative;transform:translate(-50%,-68px);width:max-content;max-width:230px;padding:5px 10px;border-radius:7px;background:rgba(16,20,19,.84);color:#fff;font:600 13px/1.3 Arial,sans-serif;text-align:center;text-shadow:0 1px 2px #000;box-shadow:0 3px 12px rgba(0,0,0,.55);white-space:normal;pointer-events:none}
.te-place-pin.te-pin-selected{animation:none!important;filter:drop-shadow(0 4px 5px rgba(0,0,0,.72))!important}
.te-active-marker{animation:none!important;filter:drop-shadow(0 5px 5px rgba(0,0,0,.58))!important}

/* v17.5 — velo de enfoque a ancho completo: sin recorte en el borde derecho.
   Oscurecimiento negro translúcido progresivo, sin círculo perceptible. */
#app:has(.te-detail-panel:not([hidden]))::before{
  inset:0!important;
  background:rgba(3,7,6,.20)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  -webkit-mask-image:radial-gradient(ellipse 75% 86% at 49% 46%,transparent 0%,rgba(0,0,0,.018) 14%,rgba(0,0,0,.10) 30%,rgba(0,0,0,.30) 51%,rgba(0,0,0,.67) 77%,#000 100%)!important;
  mask-image:radial-gradient(ellipse 75% 86% at 49% 46%,transparent 0%,rgba(0,0,0,.018) 14%,rgba(0,0,0,.10) 30%,rgba(0,0,0,.30) 51%,rgba(0,0,0,.67) 77%,#000 100%)!important;
  -webkit-mask-composite:initial!important;mask-composite:initial!important;
  pointer-events:none!important;z-index:6!important;
}
/* Los controles de la aplicación permanecen por encima del velo. */
.islands,.tour-panel.te-list-panel,.te-version-badge{z-index:20!important}
.te-detail-panel{z-index:21!important}

/* v17.6 — sombra negra transparente SIN desenfoque sobre el mapa.
   Se mantiene la nitidez de las imágenes satelitales y de todos los controles. */
#app:has(.te-detail-panel:not([hidden]))::before {
  inset:0!important;
  background:linear-gradient(90deg,rgba(0,0,0,.13) 0%,rgba(0,0,0,.07) 32%,rgba(0,0,0,.07) 68%,rgba(0,0,0,.13) 100%)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
  mask-composite:initial!important;
  -webkit-mask-composite:initial!important;
  pointer-events:none!important;
  z-index:6!important;
}
/* Paneles, docks y fichas siempre encima de la sombra. */
.islands,.tour-panel.te-list-panel,.te-version-badge,.foot{z-index:20!important}
.te-detail-panel{z-index:21!important}

/* v17.7 — ficha de mayor superficie, encuadre despejado a su izquierda.
   No afecta al diseño móvil ni a la cámara general. */
@media(min-width:901px){
  .te-detail-panel{
    right:clamp(28px,5vw,95px)!important;
    width:min(550px,calc(100vw - 650px))!important;
    height:min(745px,calc(100vh - 128px))!important;
    max-height:calc(100vh - 128px)!important;
  }
  .te-detail-hero{height:255px!important}
  .te-detail-panel .te-detail-scroll{padding:18px 30px 28px!important}
}

/* v17.8 — ficha de servicio: vidrio blanco elevado, lectura amplia y controles nítidos. */
@media(min-width:901px){
  .te-detail-panel{
    width:min(700px,calc(100vw - 560px))!important;
    right:clamp(18px,3vw,55px)!important;
    height:min(790px,calc(100vh - 105px))!important;
    max-height:calc(100vh - 105px)!important;
  }
  .te-detail-hero{height:270px!important}
  .te-detail-panel .te-detail-scroll{padding:20px 34px 34px!important}
}
.te-detail-panel{
  background:linear-gradient(145deg,rgba(255,255,255,.985),rgba(244,246,247,.975))!important;
  border:1px solid rgba(255,255,255,.98)!important;
  box-shadow:0 25px 72px rgba(0,0,0,.43),0 7px 22px rgba(0,0,0,.16),inset 0 1px 1px #fff!important;
  backdrop-filter:blur(16px) saturate(125%);
  -webkit-backdrop-filter:blur(16px) saturate(125%);
}
.te-detail-panel .te-detail-scroll{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(110,118,126,.48) transparent}
.te-detail-panel .te-detail-actions{
  flex-shrink:0!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(235,238,241,.98))!important;
  border-top:1px solid rgba(255,255,255,.9)!important;
  box-shadow:0 -7px 19px rgba(55,62,72,.08),inset 0 1px 0 #fff!important;
}
.te-detail-panel .te-detail-actions button,.te-detail-panel .te-detail-actions a{
  border-radius:12px!important;
  box-shadow:0 4px 9px rgba(0,0,0,.18),inset 0 1px 1px rgba(255,255,255,.65)!important;
  transition:box-shadow .16s ease,transform .16s ease,filter .16s ease;
}
.te-detail-panel .te-detail-actions button:hover,.te-detail-panel .te-detail-actions a:hover{
  transform:translateY(-1px);filter:brightness(1.04);
  box-shadow:0 7px 15px rgba(0,0,0,.22),inset 0 1px 1px rgba(255,255,255,.7)!important;
}
.te-detail-tools{gap:6px!important;right:12px!important;top:12px!important}
.te-detail-tools button{
  width:29px!important;height:29px!important;font-size:17px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(224,229,232,.96))!important;
  border:1px solid rgba(255,255,255,.95)!important;
  box-shadow:0 4px 10px rgba(0,0,0,.24),inset 0 1px 1px #fff!important;
  transition:transform .16s ease,box-shadow .16s ease;
}
.te-detail-tools button:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.3),inset 0 1px 1px #fff!important}
/* Vidrio ahumado más transparente detrás de la lista; las cápsulas conservan contraste. */
.tour-panel.te-list-panel{
  background:rgba(8,10,13,.43)!important;
  backdrop-filter:blur(15px) saturate(115%)!important;
  -webkit-backdrop-filter:blur(15px) saturate(115%)!important;
  border-color:rgba(255,255,255,.26)!important;
}
@media(max-width:900px){.te-detail-panel{max-width:calc(100vw - 16px)!important}}

/* ================================================================
   MAPA 3D v17.9 — docks compactos y ficha adaptable.
   Solo afecta la aplicacion /mapa3d/; no modifica WordPress.
   ================================================================ */
/* Tres grupos: 260 + 315 + 240 + 20 de separacion = 835 px. */
@media (min-width: 901px) {
  .islands {
    --side-island-width: 260px;
    grid-template-columns: 260px 315px 240px;
    gap: 10px;
    width: 835px;
    max-width: calc(100vw - 24px);
  }
  .islands > .camera { width: 260px; padding: 6px 5px; gap: 1px; }
  .islands > .search-island { width: 240px; padding: 6px; gap: 3px; }
  .islands > .tourism {
    width: 315px;
    padding: 7px 7px;
    gap: 3px;
    justify-content: space-around;
  }
  .islands .camera > button { width: 34px; height: 42px; flex: 0 1 34px; }
  .islands .camera > button svg { width: 20px; height: 20px; }
  .islands .tourism .tour-button { width: 55px; height: 65px; gap: 3px; }
  .islands .tourism .tour-button .pin-icon { width: 26px; height: 30px; }
  .islands .tourism .tour-button .tour-label { font-size: 9px; }
  .islands .search-island #searchToggle { width: 32px; height: 42px; }
  .islands .search-island .search-form { gap: 3px; }
  .islands .search-island .search-form input { padding: 8px; font-size: 12px; }
  .islands .search-island .search-form button { width: 28px; height: 39px; }

  /* Ficha: conserva su anchura, reduce la altura y no tapa el dock. */
  .te-detail-panel {
    top: clamp(12px, 4dvh, 35px) !important;
    transform: none !important;
    height: min(580px, calc(100dvh - 165px)) !important;
    max-height: calc(100dvh - 165px) !important;
    min-height: 0 !important;
  }
  .te-detail-hero { height: clamp(145px, 23dvh, 205px) !important; }
  .te-detail-panel .te-detail-scroll { min-height: 0 !important; flex: 1 1 auto !important; }
  .te-detail-panel .te-detail-actions { flex: 0 0 auto !important; }
}
/* Notebooks angostos: se mantienen tres grupos, sin desbordar. */
@media (min-width: 741px) and (max-width: 900px) {
  .islands {
    --side-island-width: 210px;
    grid-template-columns: 210px minmax(0, 1fr) 200px;
    width: calc(100vw - 20px);
    gap: 6px;
  }
  .islands > .camera { width: 210px; }
  .islands > .search-island { width: 200px; }
  .islands > .tourism { min-width: 0; gap: 1px; padding: 5px; }
  .islands .tourism .tour-button { width: auto; min-width: 0; flex: 1 1 0; }
  .islands .tourism .tour-button .tour-label { font-size: 8px; }
  .islands .camera button { flex: 1 1 0; min-width: 0; }
  .te-detail-panel {
    top: 14px !important;
    transform: none !important;
    height: min(580px, calc(100dvh - 160px)) !important;
    max-height: calc(100dvh - 160px) !important;
  }
  .te-detail-hero { height: clamp(135px, 22dvh, 190px) !important; }
}
/* En moviles se respeta la distribucion original de docks apilados. */
@media (max-width: 740px) {
  .te-detail-panel {
    top: 10px !important;
    transform: none !important;
    height: max(160px, calc(100dvh - 215px)) !important;
    max-height: calc(100dvh - 215px) !important;
  }
  .te-detail-hero { height: 135px !important; }
  .te-detail-panel .te-detail-scroll { min-height: 0 !important; }
}

/* ================================================================
   MAPA 3D v17.10 — bienvenida y controles proporcionales al viewport.
   Se preservan paneles, marcadores y comportamiento del mapa.
   ================================================================ */
/* Pantallas de escritorio: ancho total 710px (220 + 270 + 200 + 20). */
@media (min-width: 901px) {
  .islands {
    bottom: 12px;
    width: 710px;
    grid-template-columns: 220px 270px 200px;
    gap: 10px;
  }
  .islands > .camera { width: 220px; padding: 4px 3px; gap: 0; }
  .islands > .tourism { width: 270px; padding: 4px 5px; gap: 1px; }
  .islands > .search-island { width: 200px; padding: 4px 5px; gap: 2px; }
  .islands .camera > button { width: 29px; height: 35px; flex: 0 1 29px; }
  .islands .camera > button svg { width: 18px; height: 18px; }
  .islands .tourism .tour-button { width: 48px; height: 54px; gap: 2px; }
  .islands .tourism .tour-button .pin-icon { width: 23px; height: 26px; }
  .islands .tourism .tour-button .tour-label { font-size: 8px; }
  .islands .search-island #searchToggle { width: 28px; height: 35px; }
  .islands .search-island .search-form input { padding: 6px; font-size: 11px; }
  .islands .search-island .search-form button { width: 25px; height: 33px; }
}
/* Ventanas intermedias: grupos más pequeños sin perder ningún botón. */
@media (min-width: 741px) and (max-width: 900px) {
  .islands {
    bottom: 12px;
    width: min(710px, calc(100vw - 20px));
    grid-template-columns: minmax(0, 220fr) minmax(0, 270fr) minmax(0, 200fr);
    gap: 7px;
  }
  .islands > .camera, .islands > .search-island, .islands > .tourism { width: 100%; min-width: 0; padding: 4px 3px; }
  .islands .camera button { height: 34px; }
  .islands .tourism .tour-button { height: 52px; }
  .islands .tourism .tour-button .pin-icon { width: 22px; height: 25px; }
  .islands .search-island .search-form input { padding: 5px; font-size: 11px; }
  .islands .search-island .search-form button { width: 24px; height: 32px; }
}
/* Andrea y su gráfica son un único PNG: reducirlo sin alterar proporciones. */
@media (min-width: 741px) and (max-width: 1600px) {
  .welcome { width: min(800px, 64.8vw); max-height: calc(100dvh - 65px); }
  .welcome img { max-height: calc(100dvh - 65px); }
}
@media (min-width: 1601px) {
  .welcome { width: min(1000px, 70vw); max-height: calc(100dvh - 55px); }
  .welcome img { max-height: calc(100dvh - 55px); }
}
/* En móvil conservar los docks apilados; bienvenida un poco más contenida. */
@media (max-width: 740px) {
  .welcome { width: min(80vw, 500px); }
}

/* ETAPA 022-A: prototipo visual reversible, sin alterar el mapa ni los servicios. */
.te-widgets{position:absolute;inset:0;pointer-events:none;z-index:9;font-family:system-ui,-apple-system,sans-serif}
.te-widget{background:rgba(12,19,25,.77);color:#fff;border:1px solid rgba(255,255,255,.24);border-radius:17px;box-shadow:0 12px 35px #0005;backdrop-filter:blur(15px);padding:13px 15px;pointer-events:auto;transition:transform .65s cubic-bezier(.22,1,.36,1),opacity .55s,visibility .55s;animation:teWidgetIn .75s both}
.te-widget header{display:flex;justify-content:space-between;align-items:center;gap:12px;letter-spacing:1.7px;font-size:12px;color:#f1e8c9}.te-widget-close,.te-welcome-close{background:rgba(255,255,255,.13);color:white;border:1px solid #ffffff55;border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:20px;line-height:1}
.te-calendar{--te-shift:-125%}.te-news{--te-shift:125%;}
@keyframes teWidgetIn{from{opacity:0;transform:translateX(var(--te-shift))}to{opacity:1;transform:translateX(0)}}
.te-widget.is-dismissed,.te-exploring .te-widget{opacity:0;visibility:hidden;transform:translateX(var(--te-shift));pointer-events:none}
.te-cal-top{display:flex;justify-content:space-between;align-items:center;margin:13px 0 9px;font-weight:650;text-transform:capitalize;font-size:15px}.te-cal-top button,.te-news-controls button{background:#ffffff19;border:1px solid #ffffff33;color:white;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:20px}.te-cal-weekdays,.te-cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:2px}.te-cal-weekdays{font-size:10px;color:#bfc9c9;margin-bottom:5px}.te-cal-days button{background:transparent;border:0;border-radius:50%;aspect-ratio:1;color:#fff;font-size:11px;cursor:pointer}.te-cal-days button:hover,.te-cal-days .is-selected{background:#b66a37}.te-cal-days .is-today{outline:1px solid #f2ca67;color:#ffdd85}.te-widget-note{font-size:10px;line-height:1.45;color:#c5d1d3;margin:11px 0 0}
.te-news-content{padding:18px 2px 5px;min-height:230px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(145deg,rgba(48,86,78,.25),rgba(8,14,21,.1));border-radius:9px;margin-top:10px}.te-news-tag{font-size:10px;color:#f2d78d;letter-spacing:1.1px}.te-news h2{font-size:21px;line-height:1.15;margin:12px 0 8px;color:white}.te-news p{font-size:12px;line-height:1.45;color:#d7e0df;margin:0}.te-news-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px;font-size:11px}
.te-welcome-close{position:absolute;left:min(67vw,830px);bottom:clamp(130px,19vh,215px);pointer-events:auto;transition:opacity .45s,transform .6s}.te-exploring .te-welcome-close,.te-andrea-dismissed .te-welcome-close{opacity:0;pointer-events:none;transform:translateX(-60px)}
.welcome{transition:opacity .6s ease,visibility .6s ease,translate .65s cubic-bezier(.22,1,.36,1)!important;translate:0 0}.welcome.is-hidden{translate:-100px 0}
@media(max-width:1100px){.te-widget{padding:10px}.te-news h2{font-size:17px}.te-news-content{min-height:170px}.te-welcome-close{left:65vw;bottom:125px}}
@media(max-width:760px){.te-widget{padding:9px}.te-news-content{min-height:130px}.te-news h2{font-size:15px}.te-widget-note{display:none}.te-cal-days button{font-size:10px}.te-welcome-close{left:auto;right:12px;bottom:155px}}
@media(max-height:690px){.te-news-content{min-height:100px}.te-cal-days button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.te-widget{animation:none;transition:none}.welcome,.te-welcome-close{transition:none!important}}

/* ETAPA 022-B — v17.12: paneles tipo cápsula, calendario y slider panorámico. */
.te-widget{box-sizing:border-box;background:rgba(7,10,14,.91);border:1px solid rgba(255,255,255,.24);border-radius:22px;box-shadow:0 12px 36px rgba(0,0,0,.38);backdrop-filter:blur(22px) saturate(135%);-webkit-backdrop-filter:blur(22px) saturate(135%)}
.te-widget.te-calendar{background:rgba(2,4,7,.94)}
.te-widget header{min-height:28px;gap:7px;letter-spacing:.75px;font-size:11px;color:#f8f8f8}
.te-widget-title{display:inline-flex;align-items:center;gap:8px;min-width:0;line-height:1.2;font-weight:750}
.te-heading-icon{width:18px;height:18px;flex:none;fill:none;stroke:#f5f5f5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.te-widget-close{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;width:auto;height:24px;padding:0 9px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.13);font-size:10px;font-weight:600;line-height:1;letter-spacing:.1px;transition:background .2s,transform .2s}
.te-widget-close span{font-size:14px;line-height:1}
.te-widget-close:hover{background:rgba(255,255,255,.28);transform:scale(1.035)}
.te-news-photo{height:clamp(125px,18vh,195px);margin-top:12px;position:relative;overflow:hidden;border-radius:13px;background:linear-gradient(155deg,rgba(18,42,51,.7),rgba(14,24,35,.9) 52%,rgba(6,13,21,.95));border:1px solid rgba(255,255,255,.13);display:flex;align-items:center;justify-content:center}
.te-news-photo::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.36),transparent 60%);pointer-events:none}
.te-news-photo span{position:relative;font-size:10px;letter-spacing:1.5px;color:rgba(255,255,255,.6);font-weight:650}
.te-news-content{min-height:0;padding:12px 2px 3px;margin-top:0;background:none;display:flex;flex-direction:column;justify-content:flex-start}
.te-news h2{font-size:clamp(18px,1.55vw,22px);line-height:1.2;margin:9px 0 7px}
.te-news p{font-size:12px;line-height:1.45}
.te-news-controls{margin-top:12px}
@media(max-width:1100px){.te-widget.te-calendar{padding:11px 12px}.te-widget.te-news{padding:11px 12px}.te-news-photo{height:132px}.te-news h2{font-size:18px}}
@media(max-width:760px){.te-widget.te-calendar{padding:9px}.te-widget.te-news{padding:9px}.te-widget-title{gap:4px;font-size:9px}.te-heading-icon{width:15px;height:15px}.te-widget-close{padding:0 6px;font-size:9px;height:22px}.te-news-photo{height:105px}.te-news-content{padding-top:8px}.te-news h2{font-size:15px}}
@media(max-height:690px){.te-news-photo{height:105px}.te-news h2{font-size:16px}}

/* ETAPA 022-C — v17.13: fotografía y enlace a noticia real. */
.te-news-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;position:absolute;inset:0}
.te-news-link{align-self:flex-start;display:inline-flex;gap:6px;align-items:center;margin-top:11px;padding:6px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;text-decoration:none;font-size:11px;font-weight:650;transition:background .2s}
.te-news-link:hover{background:rgba(255,255,255,.25)}
.te-news-link[hidden]{display:none!important}
.te-news-controls button:disabled{opacity:.35;cursor:default}
.te-news h2{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.te-news p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ETAPA 022-D — v17.14: identidad salmón, vidrio más transparente y desplazamiento del carrusel. */
.te-widget{background:rgba(7,10,14,.81);backdrop-filter:blur(22px) saturate(135%);-webkit-backdrop-filter:blur(22px) saturate(135%)}
.te-widget.te-calendar{background:rgba(2,4,7,.84)}
.te-widget.te-news{background:rgba(7,10,14,.81)}
.te-widget .te-widget-title{color:#e99477}
.te-widget .te-heading-icon{stroke:#e99477}
.te-news-photo,.te-news-content{will-change:transform,opacity}
.te-news.is-slide-out .te-news-photo,.te-news.is-slide-out .te-news-content{animation:teNewsSlideOut .22s ease-in both}
.te-news.is-slide-in .te-news-photo,.te-news.is-slide-in .te-news-content{animation:teNewsSlideIn .34s cubic-bezier(.22,1,.36,1) both}
@keyframes teNewsSlideOut{from{transform:translateX(0);opacity:1}to{transform:translateX(var(--news-exit,-25px));opacity:0}}
@keyframes teNewsSlideIn{from{transform:translateX(var(--news-enter,28px));opacity:0}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.te-news.is-slide-out .te-news-photo,.te-news.is-slide-out .te-news-content,.te-news.is-slide-in .te-news-photo,.te-news.is-slide-in .te-news-content{animation:none}}

/* v17.15 — vidrio ahumado: 70% transparente, 30% opacidad de fondo.
   No aplicar opacity al panel para preservar fotos y textos. */
.te-widget.te-calendar,
.te-widget.te-news {
  background: rgba(7, 10, 14, .30) !important;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

/* ETAPA 022-F — v17.16: cabecera y pie 30% transparentes; centro 70%.
   Solo se colorean fondos, sin reducir la opacidad del contenido. */
.te-widget.te-calendar,.te-widget.te-news{
  padding:0 !important;overflow:hidden;display:flex;flex-direction:column;
  background:rgba(7,10,14,.30) !important;
}
.te-widget > header{
  flex:none;padding:12px 14px;min-height:46px;box-sizing:border-box;
  background:rgba(2,4,7,.70);
}
.te-cal-body{padding:0 14px 12px;flex:1;min-height:0}
.te-widget-footer{flex:none;background:rgba(2,4,7,.70);box-sizing:border-box;padding:11px 14px}
.te-cal-footer .te-widget-note{margin:0;font-size:10px}
.te-news-body{padding:0 14px;flex:1;min-height:0;display:flex;flex-direction:column}
.te-news-photo{flex:none;margin-top:12px}
.te-news-content{flex:1;min-height:0;padding:11px 0 13px;display:flex;flex-direction:column}
.te-news-tag{flex:none;min-height:14px}
.te-news h2{flex:none;min-height:calc(1.2em * 2);max-height:calc(1.2em * 2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0 6px}
.te-news p{flex:none;min-height:calc(1.45em * 3);max-height:calc(1.45em * 3);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.te-news-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:57px}
.te-news-footer .te-news-link{margin:0;flex:none;white-space:nowrap;padding:6px 9px;font-size:10px}
.te-news-footer .te-news-controls{margin:0;flex:none;gap:8px}
.te-news-footer .te-news-controls button{width:27px;height:27px}
/* Deslizar solo el cuerpo: cabecera y pie permanecen fijos. */
.te-news.is-slide-out .te-news-photo,.te-news.is-slide-out .te-news-content,
.te-news.is-slide-in .te-news-photo,.te-news.is-slide-in .te-news-content{animation:none}
.te-news.is-slide-out .te-news-body{animation:teNewsSlideOut .22s ease-in both}
.te-news.is-slide-in .te-news-body{animation:teNewsSlideIn .34s cubic-bezier(.22,1,.36,1) both}
@media(max-width:1100px){.te-widget>header{padding:10px 12px}.te-cal-body,.te-news-body{padding-left:12px;padding-right:12px}.te-widget-footer{padding:9px 12px}}
@media(max-width:760px){.te-widget>header{padding:8px}.te-cal-body,.te-news-body{padding-left:8px;padding-right:8px}.te-widget-footer{padding:7px 8px}.te-news h2{font-size:14px}.te-news p{font-size:10px}.te-news-footer{gap:3px}.te-news-footer .te-news-link{font-size:8px;padding:5px}.te-news-footer .te-news-controls{gap:3px}.te-news-footer .te-news-controls button{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.te-news.is-slide-out .te-news-body,.te-news.is-slide-in .te-news-body{animation:none}}

/* ETAPA 022-G — v17.17: identidad verde musgo, franjas suaves, lectura ampliada */
.te-widget.te-calendar,.te-widget.te-news{
  background:rgba(37,52,34,.30) !important;
  backdrop-filter:blur(18px) saturate(112%);
  -webkit-backdrop-filter:blur(18px) saturate(112%);
}
.te-widget > header,.te-widget-footer{background:rgba(5,12,8,.50)}
.te-news-content{justify-content:flex-start}
.te-news h2{min-height:calc(1.2em * 3);max-height:calc(1.2em * 3);-webkit-line-clamp:3}
.te-news p{min-height:calc(1.45em * 7);max-height:calc(1.45em * 7);-webkit-line-clamp:7}
.te-news-footer{min-height:57px}
.te-news-footer .te-news-controls{gap:7px}
.te-news-footer .te-news-controls .te-news-toggle{font-size:13px;font-weight:700;line-height:1}
@media(max-width:1100px){.te-news p{min-height:calc(1.45em * 6);max-height:calc(1.45em * 6);-webkit-line-clamp:6}}
@media(max-width:760px){.te-news p{min-height:calc(1.45em * 5);max-height:calc(1.45em * 5);-webkit-line-clamp:5}.te-news-footer .te-news-controls{gap:3px}.te-news-footer .te-news-link{font-size:8px}}
@media(max-height:650px){.te-news-photo{height:100px}.te-news p{-webkit-line-clamp:4;max-height:calc(1.45em * 4);min-height:calc(1.45em * 4)}}

/* ETAPA 022-H — v17.18: musgo más profundo, Andrea 10% menor y tarjetas comunales georreferenciadas */
.te-widget.te-calendar,.te-widget.te-news{
  background:rgba(12,23,14,.47)!important;
  backdrop-filter:blur(18px) saturate(105%);
  -webkit-backdrop-filter:blur(18px) saturate(105%);
}
/* Se conserva la separación suave de cabecera y pie. */
.te-widget>header,.te-widget-footer{background:rgba(3,10,6,.56)}
/* Se reduce solo la presentación, sin afectar la tarjeta, el mapa ni los docks. */
.welcome{scale:.90;transform-origin:center bottom}
.te-commune-marker{z-index:3;pointer-events:none}
.te-commune-card{
 width:150px;box-sizing:border-box;overflow:hidden;pointer-events:none;
 border-radius:13px;background:rgba(12,24,17,.91);border:1px solid rgba(255,255,255,.65);
 box-shadow:0 8px 23px rgba(0,0,0,.50);color:#fff;text-align:center;
 font:700 12px/1.25 system-ui,-apple-system,sans-serif;
 transform:translateY(-12px)
}
.te-commune-card img{display:block;width:150px;height:96px;object-fit:cover}
.te-commune-card span{display:block;padding:7px 4px 8px;text-shadow:0 1px 3px #000}
@media(max-width:800px){.te-commune-card{width:116px}.te-commune-card img{width:116px;height:74px}.te-commune-card span{font-size:10px;padding:5px}}

/* v17.19: prueba visual de tarjetas en pantalla (no georreferenciadas). */
.te-commune-overlay{z-index:5;pointer-events:none;transition:opacity .5s,transform .6s}
.te-commune-overlay.is-hidden,.te-exploring .te-commune-overlay{opacity:0;transform:translateY(-24px);visibility:hidden}
.te-test-commune-card{width:128px;flex:0 0 128px;overflow:hidden;border-radius:13px;background:rgba(10,22,15,.88);border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 22px #0008;color:white;text-align:center;font:700 12px/1.3 system-ui,-apple-system,sans-serif;animation:te-card-in .75s both}
.te-test-commune-card:nth-child(2){animation-delay:.09s}.te-test-commune-card:nth-child(3){animation-delay:.18s}.te-test-commune-card:nth-child(4){animation-delay:.27s}.te-test-commune-card:nth-child(5){animation-delay:.36s}
.te-test-commune-card img{display:block;width:128px;height:82px;object-fit:cover}
.te-test-commune-card span{display:block;padding:7px 3px 8px}
@keyframes te-card-in{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
/* Andrea: entrada suave, luego queda quieta; sigue siendo PNG. */
.welcome:not(.is-hidden){animation:te-andrea-arrive .85s ease-out both}
@keyframes te-andrea-arrive{from{opacity:0;translate:-28px 24px}to{opacity:1;translate:0 0}}
@media(max-width:1100px){.te-test-commune-card{width:95px;flex-basis:95px}.te-test-commune-card img{width:95px;height:61px}.te-test-commune-card span{font-size:10px}}
@media(max-width:700px){.te-test-commune-card{width:78px;flex-basis:78px}.te-test-commune-card img{width:78px;height:52px}}
@media(prefers-reduced-motion:reduce){.welcome:not(.is-hidden),.te-test-commune-card{animation:none}}

/* ETAPA 022-J — v17.20: tarjetas verticales, interactivas, alineadas al calendario. */
.te-commune-overlay{


pointer-events:auto;z-index:6;
}
.te-commune-overlay.is-hidden,.te-exploring .te-commune-overlay{
  opacity:0;transform:translate(-50%,-24px);pointer-events:none;visibility:hidden;
}
.te-test-commune-card,.te-test-commune-card:nth-child(n){
  position:relative;appearance:none;cursor:pointer;min-width:0;flex:1 1 0;
  width:auto;height:var(--commune-height,300px);padding:0;overflow:hidden;
  border:1px solid rgba(255,255,255,.5);border-radius:16px;
  background:rgba(12,25,17,.75);box-shadow:0 8px 22px rgba(0,0,0,.32);
  transition:filter .22s ease,box-shadow .22s ease,border-color .22s ease,transform .22s ease;
}
.te-test-commune-card img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:brightness(.85);transition:filter .22s ease,transform .3s ease}
.te-test-commune-card span{position:absolute;bottom:0;left:0;right:0;padding:16px 3px 12px;
  background:linear-gradient(transparent,rgba(0,0,0,.87) 55%);font-size:clamp(10px,.83vw,13px);font-weight:750;
  text-shadow:0 1px 3px #000;pointer-events:none}
.te-test-commune-card:hover,.te-test-commune-card:focus-visible{
  transform:translateY(-5px) scale(1.035);z-index:2;border-color:#e99a7d;
  box-shadow:0 0 0 2px rgba(235,148,119,.42),0 10px 30px rgba(236,132,100,.4);outline:none
}
.te-test-commune-card:hover img,.te-test-commune-card:focus-visible img{filter:brightness(1.16) saturate(1.1);transform:scale(1.035)}
/* Andrea más compacta, anclada realmente a la esquina inferior izquierda. */
.welcome{scale:.85;transform-origin:left bottom;left:0;bottom:0}
/* Noticias: utilizar el espacio central disponible para mostrar más texto real. */
.te-news-content{flex:1;min-height:0;overflow:hidden;padding-bottom:5px}
.te-news h2{min-height:0;max-height:calc(1.2em * 4);-webkit-line-clamp:4;flex:none}
.te-news p{flex:1 1 auto;min-height:0;max-height:none;-webkit-line-clamp:18;overflow:hidden;line-height:1.48;margin:5px 0 0}
@media(max-width:1300px){.te-test-commune-card span{font-size:10px}}
@media(max-width:1000px){.te-test-commune-card span{font-size:9px}.te-test-commune-card{border-radius:11px}}
@media(max-width:780px){.te-test-commune-card,.te-test-commune-card:nth-child(n){height:175px}.te-test-commune-card span{font-size:9px;padding:10px 2px 7px}.te-news p{-webkit-line-clamp:10}}
@media(prefers-reduced-motion:reduce){.te-test-commune-card,.te-test-commune-card img{transition:none}}

/* v17.21 — conservar proporción fotográfica original 268:403; evitar tarjetas estiradas.
   El ancho manda y la altura se deriva de la relación de aspecto de la foto. */
.te-commune-overlay{


}
.te-test-commune-card,.te-test-commune-card:nth-child(n){
  flex:1 1 0;width:0;min-width:0;
  height:auto;aspect-ratio:268 / 403;
}
.te-test-commune-card img{width:100%;height:100%;object-fit:cover;object-position:center}
@media(max-width:1300px){}
@media(max-width:1000px){}
@media(max-width:780px){.te-test-commune-card,.te-test-commune-card:nth-child(n){height:auto;aspect-ratio:268 / 403}}

/* v17.22 — fotografías completas, sin recorte ni deformación.
   Las cinco tarjetas conservan proporción 2:3 y caben entre los paneles. */
.te-commune-overlay{}
.te-test-commune-card,.te-test-commune-card:nth-child(n){
  flex:1 1 0;min-width:0;width:0;height:auto;aspect-ratio:2 / 3;
  display:flex;align-items:stretch;justify-content:center;
}
.te-test-commune-card img{
  display:block;position:absolute;inset:0;width:100%;height:100%;
  object-fit:contain!important;object-position:center center!important;
}
@media(max-width:1300px){}
@media(max-width:1000px){}
@media(max-width:780px){.te-test-commune-card,.te-test-commune-card:nth-child(n){height:auto;aspect-ratio:2 / 3}}


/* v17.23: fotografías íntegras, en proporción real 268:403.
   Imagen y pie son dos filas distintas: sin object-fit:cover, sin recorte. */
.te-commune-overlay{






}
.te-test-commune-card,.te-test-commune-card:nth-child(n){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;box-sizing:border-box!important;
  width:100%!important;height:auto!important;aspect-ratio:auto!important;
  min-width:0!important;padding:0!important;overflow:hidden!important;
  background:rgba(10,20,14,.88)!important;border-radius:13px!important;
}
.te-test-commune-card img{
  position:static!important;inset:auto!important;display:block!important;
  width:100%!important;height:auto!important;aspect-ratio:268 / 403!important;
  object-fit:contain!important;object-position:center!important;
  max-height:none!important;transform:none!important;flex:none!important;
}
.te-test-commune-card span{
  position:static!important;inset:auto!important;display:flex!important;
  justify-content:center!important;align-items:center!important;
  height:28px!important;min-height:28px!important;padding:0 3px!important;
  background:rgba(8,16,11,.94)!important;line-height:1.15!important;
  font-size:11px!important;white-space:nowrap!important;
}
.te-test-commune-card:hover img,.te-test-commune-card:focus-visible img{
  transform:none!important;filter:brightness(1.17) saturate(1.1)!important;
}
.te-commune-overlay.is-hidden,.te-exploring .te-commune-overlay{
  transform:translate(-50%,-24px)!important;
}
@media(max-width:1150px){
 .te-test-commune-card span{font-size:9px!important}
}
@media(max-width:780px){
 .te-test-commune-card span{font-size:8px!important;height:24px!important;min-height:24px!important}
}

/* v17.24 — geometría medida, sin recorte y sin deformación de fotografías.
   Las tarjetas ocupan la altura del calendario; la foto usa contain, nunca cover.
   Si la pantalla no admite cinco fotos de 2:3 a altura completa, se muestran
   enteras dentro de su tarjeta, con fondo neutro a los lados/arriba y abajo. */
.te-commune-overlay{





overflow:visible!important;
}
.te-commune-overlay.is-hidden,.te-exploring .te-commune-overlay{transform:translateY(-24px)!important}
.te-test-commune-card,.te-test-commune-card:nth-child(n){
 position:relative!important;display:flex!important;flex-direction:column!important;
 justify-content:space-between!important;align-items:stretch!important;
 width:100%!important;height:100%!important;min-height:0!important;
 aspect-ratio:auto!important;overflow:hidden!important;
 padding:0!important;border-radius:13px!important;
 background:rgba(10,22,17,.88)!important;
}
.te-test-commune-card img{
 position:relative!important;inset:auto!important;display:block!important;
 width:100%!important;height:calc(100% - 29px)!important;min-height:0!important;
 aspect-ratio:auto!important;object-fit:contain!important;object-position:center center!important;
 flex:1 1 auto!important;max-height:calc(100% - 29px)!important;
 transform:none!important;filter:brightness(.94)!important;
}
.te-test-commune-card span{
 position:relative!important;inset:auto!important;display:flex!important;
 flex:0 0 29px!important;min-height:29px!important;height:29px!important;
 justify-content:center!important;align-items:center!important;
 background:rgba(6,12,10,.96)!important;padding:0 2px!important;
 font-size:clamp(8px,.72vw,11px)!important;white-space:nowrap!important;
}
.te-test-commune-card:hover,.te-test-commune-card:focus-visible{
 transform:translateY(-4px) scale(1.025)!important;
 box-shadow:0 0 0 2px rgba(235,148,119,.5),0 8px 25px rgba(236,132,100,.36)!important;
}
.te-test-commune-card:hover img,.te-test-commune-card:focus-visible img{
 filter:brightness(1.17) saturate(1.1)!important;transform:none!important;
}
/* Noticias: solo líneas enteras. El JS determina la altura disponible exacta. */
.te-news-content{overflow:hidden!important;min-height:0!important;}
.te-news p{display:block!important;flex:0 0 auto!important;min-height:0!important;
 max-height:var(--news-lines-height,140px)!important;overflow:hidden!important;
 -webkit-line-clamp:unset!important;line-height:1.48!important;
}

/* v17.25 — Tarjetas angostas y centradas: foto llena la altura, recorte lateral solamente.
   Reemplaza reglas acumuladas de las pruebas anteriores. */
.te-commune-overlay{





overflow:visible!important;
}
.te-commune-overlay.is-hidden,.te-exploring .te-commune-overlay{
  transform:translateY(-24px)!important;
}
.te-test-commune-card,.te-test-commune-card:nth-child(n){
  position:relative!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-width:0!important;
  aspect-ratio:auto!important;overflow:hidden!important;padding:0!important;
  border-radius:13px!important;background:rgba(8,18,14,.9)!important;
}
.te-test-commune-card img{
  position:relative!important;inset:auto!important;
  width:100%!important;height:calc(100% - 28px)!important;
  min-height:0!important;max-height:none!important;
  aspect-ratio:auto!important;display:block!important;
  flex:1 1 0!important;object-fit:cover!important;object-position:center center!important;
  transform:none!important;filter:brightness(.94)!important;
}
.te-test-commune-card span{
  position:relative!important;inset:auto!important;
  flex:0 0 28px!important;height:28px!important;min-height:28px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:rgba(5,12,10,.94)!important;padding:0 2px!important;
  font-size:clamp(8px,.72vw,11px)!important;white-space:nowrap!important;
}
.te-test-commune-card:hover,.te-test-commune-card:focus-visible{
  transform:translateY(-4px) scale(1.025)!important;
  box-shadow:0 0 0 2px rgba(235,148,119,.55),0 8px 25px rgba(236,132,100,.4)!important;
}
.te-test-commune-card:hover img,.te-test-commune-card:focus-visible img{
  filter:brightness(1.18) saturate(1.1)!important;transform:none!important;
}

/* v17.26: tarjetas centradas, más anchas, separación y luz blanca.
   La imagen conserva proporciones intrínsecas: cover recorta solo lateralmente
   cuando el contenedor es más estrecho que la imagen a altura completa. */
.te-commune-overlay{}
.te-test-commune-card:hover,.te-test-commune-card:focus-visible{
  box-shadow:0 0 0 2px rgba(255,255,255,.94),0 0 18px 4px rgba(255,255,255,.50),0 10px 28px rgba(255,255,255,.22)!important;
  border-color:rgba(255,255,255,.95)!important;
}
.te-test-commune-card:hover img,.te-test-commune-card:focus-visible img{
  filter:brightness(1.22) saturate(1.04)!important;
}
.te-test-commune-card img{object-fit:cover!important;object-position:center center!important;}

/* v17.27-B: Mensajes de navegación abajo a la izquierda, sin cubrir las tarjetas. */
.status:not(.error){top:auto!important;bottom:104px!important;left:24px!important;max-width:min(390px,calc(100vw - 48px))!important;}
@media(max-width:820px){.status:not(.error){bottom:125px!important;left:12px!important;}}

/* v17.27-A3: override final, sin transformaciones de versiones previas. */
.te-commune-overlay:not(.is-hidden){box-sizing:border-box!important;}
.status.te-flight-status{position:absolute!important;top:auto!important;bottom:108px!important;left:24px!important;right:auto!important;z-index:30!important;}
@media(max-width:820px){.status.te-flight-status{bottom:125px!important;left:12px!important;}}

/* v17.27-A4: SOLO fotografía de Río Hurtado: priorizar cabeza del dinosaurio a la izquierda. */
.te-test-commune-card img[src*="comuna-rio-hurtado"]{object-position:left center!important;}

/* TE 5.9.27 — tarjetas de comunas dentro del mapa 3D y resumen territorial */
.te-map-commune-photo{width:112px;min-height:110px;border:2px solid #e2b66d;background:#271c17;border-radius:13px;overflow:hidden;box-shadow:0 8px 22px #0009;display:flex;flex-direction:column;cursor:pointer;pointer-events:auto;transform:translateZ(0)}
.te-map-commune-photo img{display:block;width:112px;height:82px;object-fit:cover;max-width:none}
.te-map-commune-photo strong{display:block;text-align:center;color:#fff;font:700 12px/1.2 system-ui,sans-serif;padding:7px 3px;white-space:nowrap;text-shadow:0 1px 2px #000}
.te-map-commune-photo:hover{border-color:#fff0ba;box-shadow:0 9px 28px #000b}
.te-commune-hero img{object-fit:cover;width:100%}
.te-commune-summary .te-commune-section-title{font-size:14px;margin:20px 0 7px;color:#a75336;letter-spacing:.01em}
.te-commune-mini-list{display:flex;flex-direction:column;gap:7px}
.te-commune-mini{display:flex;align-items:center;gap:9px;width:100%;padding:8px;border:1px solid #dfcfb6;border-radius:9px;background:#fffaf1;color:#302a24;text-align:left;cursor:pointer}
.te-commune-mini:hover,.te-commune-mini:focus-visible{background:#eadac2;outline:2px solid #bd873d;outline-offset:1px}
.te-commune-mini img{width:42px;height:42px;flex-shrink:0;object-fit:cover;border-radius:6px}
.te-commune-mini span{display:block;min-width:0;flex:1}
.te-commune-mini strong{display:block;font-size:12px;line-height:1.25}
.te-commune-mini small{display:block;margin-top:2px;font-size:11px;line-height:1.25;color:#776657}
.te-commune-more{border:0;background:transparent;color:#954b29;text-decoration:underline;font-weight:700;font-size:12px;cursor:pointer;padding:7px 2px}
.te-commune-empty{font-size:12px!important;color:#71675f!important;margin:3px 0 11px}
.te-commune-list-total{font-size:13px;padding:7px 3px;border-bottom:1px solid #ffffff22;color:#f2e9dd}
@media(max-width:740px){.te-map-commune-photo{width:82px;min-height:84px}.te-map-commune-photo img{width:82px;height:58px}.te-map-commune-photo strong{font-size:10px;padding:6px 2px}}
