
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}



:root{
  --yellow:#FECB28;
  --yellow-deep:#C98600;
  --red:#E22B21;
  --green:#0E8F4E;
  --navy:#1D4E89;
  --ink:#1B1A17;
  --paper:#F7F6F1;
  --paper-2:#FFFFFF;
  --line:#E4E1D6;
  --muted:#6B685E;
}
*{box-sizing:border-box;}
html,body{width:100%;max-width:100%;margin:0;padding:0;overflow-x:hidden;background:var(--paper);color:var(--ink);font-family:'Inter',sans-serif;}
.store-plan{width:100%;max-width:100%;overflow-x:hidden;}
h1,h2,h3,.display{font-family:'Archivo',sans-serif;font-weight:800;letter-spacing:-0.01em;}
a{color:inherit;}

/* ---------- ACCESS ---------- */
body.locked{overflow:hidden;}
.access-gate{
  position:fixed;inset:0;z-index:20000;background:var(--yellow);
  display:flex;align-items:center;justify-content:center;padding:24px;
}
.access-gate.hidden{display:none;}
.access-card{
  width:min(440px,100%);background:#fff;border-radius:16px;padding:34px;
  box-shadow:0 22px 70px rgba(27,26,23,.24);text-align:center;
}
.access-brand{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:22px;}
.access-logo-ahorramas,.brand-chip{background:var(--yellow);border-radius:9px;padding:9px 15px;}
.access-logo-ahorramas img{display:block;width:210px;max-width:100%;height:auto;}
.access-logo-reload,.reload-chip{
  background:#fff;border-radius:999px;padding:10px 16px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
}
.access-logo-reload img{display:block;height:21px;width:auto;}
.access-card h1{font-size:26px;margin:0 0 8px;}
.access-card p{margin:0 0 22px;color:var(--muted);font-size:14px;line-height:1.5;}
.access-form{display:flex;gap:10px;}
.access-form input{
  min-width:0;flex:1;border:1px solid var(--line);border-radius:8px;padding:12px 14px;
  font:inherit;outline:none;
}
.access-form input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(14,143,78,.12);}
.access-form button{
  border:0;border-radius:8px;background:var(--green);color:#fff;padding:12px 18px;
  font:600 14px 'Inter',sans-serif;cursor:pointer;
}
.access-form button:hover{background:#087a41;}
.access-error{min-height:18px;margin:10px 0 0!important;color:var(--red)!important;font-size:12.5px!important;}
@media (max-width:520px){.access-form{flex-direction:column;}.access-card{padding:28px 22px;}}

/* ---------- STORE SELECTOR ---------- */
.store-selector[hidden]{display:none!important;}
.store-selector{
  position:fixed;inset:0;z-index:19000;overflow-y:auto;
  background:linear-gradient(145deg,var(--yellow) 0 31%,var(--paper) 31% 100%);
}
.selector-shell{width:100%;min-height:100%;margin:0;padding:40px clamp(28px,4vw,64px) 64px;}
.selector-brand{display:flex;align-items:center;gap:14px;margin-bottom:52px;}
.selector-brand .access-logo-ahorramas{box-shadow:0 5px 18px rgba(27,26,23,.18);}
.selector-brand .access-logo-ahorramas img{width:220px;}
.selector-brand-x{font-size:18px;font-weight:800;color:var(--ink);}
.selector-brand .access-logo-reload{box-shadow:0 5px 18px rgba(27,26,23,.18);}
.selector-heading{max-width:720px;margin-bottom:30px;}
.selector-kicker{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--green);}
.selector-heading h1{font-size:clamp(31px,5vw,48px);line-height:1.06;margin:0 0 12px;}
.selector-heading>p:last-child{font-size:15px;line-height:1.6;color:var(--muted);margin:0;}
.store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;width:100%;}
.store-card{
  appearance:none;min-width:0;padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);
  text-align:left;overflow:hidden;cursor:pointer;box-shadow:0 12px 34px rgba(27,26,23,.11);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.store-card:hover,.store-card:focus-visible{transform:translateY(-4px);box-shadow:0 18px 42px rgba(27,26,23,.17);border-color:var(--yellow-deep);outline:none;}
.store-card>img{display:block;width:100%;aspect-ratio:16/11;object-fit:cover;object-position:center;}
.store-card-copy{display:block;width:100%;padding:34px 34px 38px;}
.store-card-label{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--green);margin-bottom:6px;}
.store-card h2{font-size:25px;margin:0 0 5px;}
.store-card-address{display:block;color:var(--muted);font-size:13px;line-height:1.45;margin-bottom:18px;}
.store-card-action{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;color:var(--green);}
.store-card-action::after{content:'→';font-size:20px;}
@media (max-width:600px){
  .store-selector{background:linear-gradient(160deg,var(--yellow) 0 24%,var(--paper) 24% 100%);}
  .selector-shell{padding-top:28px;}.selector-brand{margin-bottom:42px;flex-wrap:wrap;}
  .selector-brand .access-logo-ahorramas img{width:180px;}
  .store-grid{grid-template-columns:1fr;}
  .store-card-copy{padding:30px 28px 34px;}
}
@media (max-width:1100px) and (min-width:601px){.store-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:360px;
  display:flex;
  align-items:flex-end;
  background:#111;
  overflow:hidden;
}
.hero img.bg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0.55;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(20,18,10,0.15) 0%, rgba(15,13,8,0.92) 100%);
}
.hero-content{position:relative;z-index:2;width:100%;padding:36px clamp(20px,5vw,64px) 32px;color:#fff;}
.brand-row{display:flex;align-items:center;gap:16px;margin-bottom:18px;}
.brand-chip{box-shadow:0 4px 14px rgba(0,0,0,0.35);}
.brand-chip img{display:block;height:30px;width:auto;}
.brand-x{color:#D8D5C8;font-size:15px;}
.reload-chip img{display:block;height:20px;width:auto;}
.hero h1{font-size:clamp(32px,5vw,52px);margin:0 0 6px;line-height:1.02;color:#fff;}
.hero .sub{font-size:16px;color:#D8D5C8;margin:0 0 20px;max-width:640px;}
.hero-stats{display:flex;gap:28px;flex-wrap:wrap;}
.stat{border-left:3px solid var(--yellow);padding-left:12px;}
.stat b{display:block;font-family:'Archivo',sans-serif;font-size:22px;font-weight:800;color:#fff;}
.stat span{font-size:12.5px;color:#B9B6A9;}

/* ---------- TABS ---------- */
.tab-nav{
  display:flex;gap:6px;padding:0 clamp(20px,5vw,64px);background:#fff;
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1100;overflow-x:auto;
}
.tab-button{
  appearance:none;border:0;border-bottom:4px solid transparent;background:transparent;
  padding:17px 20px 14px;font:700 14px 'Inter',sans-serif;color:var(--muted);cursor:pointer;
}
.tab-button:hover{color:var(--ink);}
.tab-button.active{color:var(--ink);border-bottom-color:var(--yellow);}
.tab-button:disabled{color:#A6A294;cursor:not-allowed;opacity:.72;}
.tab-button:disabled:hover{color:#A6A294;}
.store-menu-button{appearance:none;border:0;background:transparent;padding:17px 12px 14px 0;color:var(--green);font:800 12px 'Inter',sans-serif;cursor:pointer;white-space:nowrap;}
.store-menu-button:hover{text-decoration:underline;}
.tab-panel[hidden]{display:none!important;}
.blank-panel{min-height:540px;}

/* ---------- MATERIALS REPOSITORY ---------- */
.materials-panel{background:var(--paper-2);min-height:620px;}
.materials-section{width:100%;max-width:none;margin:0;padding:46px clamp(20px,5vw,64px) 64px;}
.materials-heading{max-width:760px;margin-bottom:28px;}
.materials-kicker{margin:0 0 8px;color:#7A7568;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;}
.materials-heading h2{font-family:'Archivo',sans-serif;font-size:clamp(28px,4vw,40px);line-height:1.08;margin:0 0 10px;color:var(--ink);}
.materials-heading p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.65;}
.materials-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;}
.material-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 26px rgba(38,34,20,.06);overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease;}
.material-card:hover{border-color:#D5C55B;box-shadow:0 12px 32px rgba(38,34,20,.10);}
.material-card[open]{grid-column:1/-1;border-color:#CDBB43;}
.material-card summary{display:flex;align-items:center;gap:15px;padding:20px;cursor:pointer;list-style:none;}
.material-card summary::-webkit-details-marker{display:none;}
.material-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:13px;background:var(--yellow);font:800 18px 'Archivo',sans-serif;color:var(--ink);}
.material-title{min-width:0;flex:1;}
.material-title h3{font-family:'Archivo',sans-serif;font-size:19px;line-height:1.15;margin:0 0 6px;color:var(--ink);}
.material-deadline{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#FFF6B8;color:#4B4210;font-size:11px;font-weight:800;line-height:1.25;}
.material-deadline.pending{background:#EFEEE9;color:#706C61;}
.material-chevron{font-size:20px;color:#787369;transition:transform .2s ease;}
.material-card[open] .material-chevron{transform:rotate(180deg);}
.material-repository{border-top:1px solid var(--line);padding:22px;}
.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;padding:24px;border:2px dashed #CFC9B6;border-radius:14px;background:#FCFBF5;text-align:center;cursor:pointer;transition:border-color .2s ease,background .2s ease;}
.upload-zone:hover,.upload-zone.dragover{border-color:#A48F00;background:#FFFBE1;}
.upload-zone strong{font-size:15px;color:var(--ink);margin-bottom:5px;}
.upload-zone span{font-size:12.5px;color:var(--muted);line-height:1.5;}
.upload-symbol{display:grid;place-items:center;width:38px;height:38px;margin-bottom:10px;border-radius:50%;background:var(--yellow);font-size:21px;font-weight:800;color:var(--ink);}
.upload-status{min-height:20px;margin:10px 2px 0;color:#486D43;font-size:12px;font-weight:700;}
.file-list{display:grid;gap:9px;margin-top:12px;}
.file-empty{padding:20px;border:1px solid var(--line);border-radius:12px;color:#858074;font-size:13px;text-align:center;background:#fff;}
.file-row{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;}
.file-type{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:10px;background:#F0EEE5;color:#4C493F;font-size:10px;font-weight:900;text-transform:uppercase;overflow:hidden;}
.file-info{min-width:0;flex:1;}
.file-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--ink);}
.file-meta{display:block;margin-top:3px;color:#827D70;font-size:11px;}
.file-actions{display:flex;gap:7px;flex-wrap:wrap;}
.file-action{appearance:none;border:1px solid #D7D2C3;border-radius:9px;background:#fff;padding:8px 10px;color:#39372F;font:700 11px 'Inter',sans-serif;cursor:pointer;}
.file-action:hover{background:#F5F2E8;}
.file-action.delete{color:#A3392C;}
.materials-note{display:flex;gap:9px;margin:20px 0 0;padding:13px 15px;border-radius:12px;background:#EEECE3;color:#656156;font-size:12px;line-height:1.5;}
@media(max-width:820px){
  .materials-grid{grid-template-columns:1fr;}
  .material-card[open]{grid-column:auto;}
  .file-row{align-items:flex-start;}
}
@media(max-width:520px){
  .file-row{flex-wrap:wrap;}
  .file-actions{width:100%;padding-left:54px;}
}

/* ---------- LAYOUT ---------- */
.workspace{
  display:grid;
  grid-template-columns: 300px 1fr;
  width:100%;
  min-width:0;
  min-height:640px;
  border-bottom:1px solid var(--line);
}
@media (max-width: 880px){
  .workspace{grid-template-columns:1fr;}
}

.sidebar{
  background:var(--paper-2);
  border-right:1px solid var(--line);
  padding:22px 18px;
  overflow-y:auto;
}
.sidebar h2.title{font-family:'Archivo';font-size:17px;color:var(--ink);font-weight:800;margin-bottom:16px;}
.sidebar h2.subhead{font-size:13px;letter-spacing:0;margin:0 0 4px;color:var(--muted);font-weight:600;font-family:'Inter';}

.filter-group{margin-bottom:22px;}
.filter-row{
  display:flex;align-items:center;gap:10px;
  padding:8px 10px;border-radius:6px;cursor:pointer;
  border:1px solid transparent;
  transition:background .15s;
  font-size:14px;
}
.filter-row:hover{background:var(--paper);}
.filter-row.active{background:#FBF3DD;border-color:var(--yellow);}
.dot{width:13px;height:13px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 2px rgba(0,0,0,0.12);}
.dot.valla{background:var(--red);}
.dot.integral{background:var(--green);}
.dot.mupi{background:var(--navy);}
.dot.metro{background:#7A3FA0;}
.dot.monoposte{background:#E57A18;}
.dot.store{background:var(--yellow);}
.dot.bus{background:#D9488B;}
.dot.station{background:#4F7B2D;}
.dot.competitor{background:#8B8878;}
.filter-row .count{margin-left:auto;font-size:12px;color:var(--muted);font-weight:600;}

.legend-note{font-size:12.5px;color:var(--muted);line-height:1.5;padding:12px;background:var(--paper);border-radius:8px;border:1px dashed var(--line);margin-bottom:18px;}

.support-quicklist{list-style:none;margin:0;padding:0;}
.support-quicklist li{
  padding:9px 10px;border-radius:6px;cursor:pointer;font-size:13px;
  display:flex;align-items:center;gap:8px;border:1px solid transparent;
}
.support-quicklist li:hover{background:var(--paper);border-color:var(--line);}
.support-quicklist .sw{width:9px;height:9px;border-radius:50%;flex:none;}
.support-quicklist .sw.valla{background:var(--red);}
.support-quicklist .sw.integral{background:var(--green);}
.support-quicklist .sw.mupi{background:var(--navy);}
.support-quicklist .sw.metro{background:#7A3FA0;}
.support-quicklist .sw.monoposte{background:#E57A18;}
.support-quicklist .sw.bus{background:#D9488B;}
.support-quicklist .sw.station{background:#4F7B2D;}

.map-pane{position:relative;min-width:0;}
#map,#getafeMap,#humanesMap,#cabanillasMap,#expropiacionMap{width:100%;height:100%;min-height:640px;background:#E9E7DD;}
.leaflet-popup-content-wrapper{border-radius:8px;}

/* custom marker */
.pin{
  width:30px;height:30px;border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.35);
  border:2px solid #fff;
}
.pin span{transform:rotate(45deg);font-size:13px;font-weight:800;color:#fff;}
.pin.valla{background:var(--red);}
.pin.integral{background:var(--green);}
.pin.mupi{background:var(--navy);}
.pin.metro{background:#7A3FA0;}
.pin.monoposte{background:#E57A18;}
.pin.bus{background:#D9488B;}
.pin.station{background:#4F7B2D;}
.pin.store{background:var(--yellow);width:38px;height:38px;}
.pin.store span{color:#231C00;font-size:16px;}
.pin.competitor{background:#8B8878;}

/* ---------- DETAIL DRAWER (overlay on the map) ---------- */
.drawer-backdrop{
  position:absolute;inset:0;background:rgba(20,18,10,0.25);
  opacity:0;pointer-events:none;transition:opacity .25s;z-index:500;
}
.drawer-backdrop.open{opacity:1;pointer-events:auto;}

.detail-drawer{
  position:absolute;top:0;right:0;height:100%;width:min(420px, 92%);
  background:var(--paper-2);
  box-shadow:-12px 0 30px rgba(0,0,0,0.25);
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.2,.8,.3,1);
  z-index:600;
  overflow-y:auto;
  padding:22px 22px 32px;
}
.detail-drawer.open{transform:translateX(0);}
.drawer-close{
  position:sticky;top:0;float:right;
  background:var(--ink);color:#fff;border:none;border-radius:50%;
  width:32px;height:32px;font-size:16px;cursor:pointer;z-index:2;
}
.drawer-close:hover{background:#000;}
.detail-card{clear:both;padding-top:4px;}
.detail-card .cat-pill{
  display:inline-block;font-size:12px;font-weight:700;padding:4px 11px;border-radius:20px;color:#fff;margin-bottom:12px;
}
.cat-pill.valla{background:var(--red);}
.cat-pill.integral{background:var(--green);}
.cat-pill.mupi{background:var(--navy);}
.cat-pill.metro{background:#7A3FA0;}
.cat-pill.monoposte{background:#E57A18;}
.cat-pill.bus{background:#D9488B;}
.cat-pill.station{background:#4F7B2D;}
.detail-card h3{font-size:23px;margin:0 0 6px;line-height:1.12;}
.detail-card .addr{font-size:14.5px;color:var(--muted);margin-bottom:14px;line-height:1.45;}
.photo-strip{display:flex;gap:8px;overflow-x:auto;margin-bottom:16px;border-radius:10px;}
.photo-strip img{height:160px;border-radius:8px;flex:none;object-fit:cover;cursor:zoom-in;}
.field{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line);}
.field:last-child{border-bottom:none;}
.field .k{font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;margin-bottom:4px;}
.field .v{font-size:14.5px;line-height:1.5;}
.field.investment .v{font-size:17px;font-weight:800;font-family:'Archivo';color:var(--ink);}

/* ---------- CONTEXT + TABLE ---------- */
.section{width:100%;max-width:none;padding:48px clamp(20px,5vw,64px);margin:0;}
.section h2.display{font-size:26px;margin:0 0 18px;}
.context-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;}
.context-grid.single-column{grid-template-columns:1fr;gap:14px;max-width:960px;}
.context-grid.single-column .context-list{margin-top:0;}
@media (max-width:820px){.context-grid{grid-template-columns:1fr;}}
.context-grid p{font-size:15px;line-height:1.65;color:#3A3830;margin:0 0 16px;}
.context-list{list-style:none;margin:0;padding:0;}
.context-list li{
  position:relative;padding-left:22px;margin-bottom:14px;font-size:14.5px;line-height:1.55;color:#3A3830;
}
.context-list li::before{
  content:"";position:absolute;left:0;top:7px;width:8px;height:8px;background:var(--yellow);border-radius:50%;
}

.invest-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--paper-2);}
table.invest{width:100%;border-collapse:collapse;font-size:13.5px;min-width:760px;}
table.invest caption{
  text-align:left;background:var(--ink);color:#fff;padding:12px 16px;font-weight:700;font-family:'Archivo';font-size:14px;caption-side:top;
}
table.invest th{
  text-align:left;background:#2A2820;color:#fff;padding:10px 14px;font-weight:600;font-size:12px;text-transform:none;
}
table.invest td{padding:9px 14px;border-bottom:1px solid var(--line);vertical-align:top;}
table.invest td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
table.invest tr.group-start td{border-top:2px solid var(--line);}
table.invest tr.spacer td{padding:4px;border-bottom:none;background:var(--paper);}
table.invest tr.fee td{font-weight:700;background:#F2F0E7;}
table.invest tr.total td{font-weight:800;font-family:'Archivo';background:#FBF3DD;font-size:15.5px;white-space:nowrap;}
table.invest td.comment{color:var(--muted);font-size:12.5px;}
table.invest td.grouplabel{font-weight:700;}

footer{
  padding:28px clamp(20px,5vw,64px);color:var(--muted);font-size:12.5px;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
}
footer .foot-brand{display:flex;align-items:center;gap:10px;}
footer .foot-brand img{height:22px;width:auto;display:block;}
footer .foot-text{text-align:right;line-height:1.6;}

/* lightbox */
.lightbox{
  position:fixed;inset:0;background:rgba(10,9,6,0.9);display:none;
  align-items:center;justify-content:center;z-index:9999;cursor:zoom-out;
}
.lightbox.open{display:flex;}
.lightbox img{max-width:90vw;max-height:88vh;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,0.5);}

/* ---------- GETAFE: COMPROBANTES + REPORTE ---------- */
.content-panel{background:var(--paper-2);min-height:620px;}
.content-shell{width:100%;max-width:none;margin:0;padding:46px clamp(20px,5vw,64px) 68px;}
.content-heading{max-width:800px;margin-bottom:28px;}
.content-kicker{margin:0 0 8px;color:var(--green);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;}
.content-heading h2{font-family:'Archivo',sans-serif;font-size:clamp(28px,4vw,40px);line-height:1.08;margin:0 0 10px;}
.content-heading p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.65;}
.proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.proof-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(38,34,20,.06);}
.proof-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 19px;border-bottom:1px solid var(--line);}
.proof-card h3{font-size:19px;margin:0 0 4px;}
.proof-location{font-size:12.5px;line-height:1.45;color:var(--muted);}
.proof-tag{flex:none;padding:5px 9px;border-radius:999px;background:#E9F5EE;color:#167044;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.proof-phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);}
.proof-phase{background:#fff;padding:14px;min-width:0;}
.proof-phase h4{margin:0 0 9px;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#6F6A5F;}
.proof-photo{display:block;width:100%;height:190px;object-fit:cover;border-radius:9px;cursor:zoom-in;background:#EEECE4;}
.proof-photo + .proof-photo{margin-top:8px;}
.proof-missing{display:grid;place-items:center;height:190px;padding:18px;border:1px dashed #CFC9B6;border-radius:9px;background:#F8F6EF;text-align:center;color:#858074;font-size:12.5px;line-height:1.45;}
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 30px;}
.report-kpi{padding:20px 18px;border-radius:15px;background:var(--ink);color:#fff;}
.report-kpi b{display:block;font:800 clamp(24px,3vw,34px) 'Archivo',sans-serif;color:var(--yellow);line-height:1;}
.report-kpi span{display:block;margin-top:7px;color:#D2CEC0;font-size:12px;line-height:1.4;}
.report-section{margin-top:34px;}
.report-section h3{font:800 23px 'Archivo',sans-serif;margin:0 0 14px;}
.report-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff;}
.report-table{width:100%;border-collapse:collapse;min-width:760px;font-size:12.5px;}
.report-table th{background:#2A2820;color:#fff;padding:10px 12px;text-align:left;}
.report-table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;}
.report-table td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
.report-table tr.total td{background:#FFF5AA;font-weight:800;font-size:14px;}
.channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.channel-card{padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;}
.channel-card h4{margin:0 0 8px;font-size:17px;}
.channel-card p{margin:0;color:#4F4B42;font-size:13.5px;line-height:1.62;}
.channel-metric{display:block;margin-top:12px;color:var(--green);font-weight:800;font-size:13px;}
.conclusion-box{padding:24px;border-left:5px solid var(--yellow);border-radius:0 14px 14px 0;background:#fff;}
.conclusion-box ul{margin:0;padding-left:20px;}
.conclusion-box li{margin:0 0 10px;line-height:1.55;color:#3E3B33;}
@media(max-width:820px){.proof-grid,.channel-grid{grid-template-columns:1fr;}.report-kpis{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.proof-phases{grid-template-columns:1fr;}.proof-photo,.proof-missing{height:170px;}}

html,body{max-width:100%;overflow-x:hidden}
body{min-height:100vh}
.store-plan{display:block}
.store-plan[hidden]{display:none!important}
.creative-view [data-financial],.creative-view .financial-only{display:none!important}
.creative-view .hero-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
table.invest,table.invest caption,table.invest th,table.invest td{font-family:'Inter',sans-serif!important}
.specification-block{display:grid;gap:14px;margin-bottom:20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8f7f1}
.specification-block h4{margin:0;font:800 16px 'Archivo',sans-serif;color:var(--ink)}
.specification-block p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.specification-list{margin:0;padding-left:20px;color:#454138;font-size:13px;line-height:1.7}
.specification-document{width:100%;height:min(70vh,720px);border:1px solid #d7d2c3;border-radius:10px;background:#fff}
.specification-download{display:inline-flex;width:max-content;padding:9px 12px;border-radius:9px;background:var(--green);color:#fff;text-decoration:none;font-size:12px;font-weight:800}
.pin.brand{width:42px;height:42px;background:#fff;padding:4px;border-color:#fff}
.pin.brand img{width:31px;height:31px;object-fit:contain;transform:rotate(45deg);border-radius:5px}
.pin.store.brand{width:48px;height:48px;background:var(--yellow);padding:5px}
.pin.store.brand img{width:38px;height:28px;border-radius:3px}
