/* D06 / G3 — Galería de territorios. PH03 Mercados es la única foto nueva;
 * PH04–PH07 preservan espacios de producción sin reutilizar ni inventar imágenes. */
.territories.territories-g3 {
  background:#faf4f0;
  color:#2e1c31;
  padding:92px 0 109px;
}
.territories-g3 .section-head {margin-bottom:34px;gap:44px;}
.territories-g3 .section-head>.section-head-copy{min-width:0;}
.territories-g3 .eyebrow.light{color:#795383;}
.territories-g3 .section-head .display {font-size:clamp(43px,4.75vw,75px);max-width:900px;}
.territories-g3 .section-head .display em{color:#a17bad;}
.territories-g3 .section-head>p{color:#635364;padding-bottom:8px;font-size:13px;}
.territories-g3 .territory-wrap {display:block;min-height:0;border:0;}
.territories-g3 .territory-tabs{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:11px;background:transparent;
}
.territories-g3 .territory-tab{
  min-height:0;height:100%;
  padding:0;gap:0;
  display:flex;flex-direction:column;align-items:stretch;
  background:#fffaf7;color:#271b2a;
  border:1px solid #e0d1d9;
  text-align:left;
  box-shadow:0 8px 22px #3d224512;
  transition:border-color 160ms ease,box-shadow 160ms ease,background 160ms ease;
  overflow:hidden;
}
.territories-g3 .territory-tab:hover,
.territories-g3 .territory-tab[aria-pressed="true"]{
  background:#fffaf7;color:#291929;
  border-color:#9968a1;
  box-shadow:0 0 0 2px #ab7aac42,0 8px 22px #3d22451b;
}
.territories-g3 .territory-tab:focus-visible{
  outline:3px solid #9968a1;
  outline-offset:3px;
}
.territories-g3 .territory-card-photo{
  width:100%;height:auto;aspect-ratio:1.26/1;
  display:block;object-fit:cover;object-position:36% 55%;
  background:#aa96a6;
  flex:none;
}
.territories-g3 .territory-card-pending{
  position:relative;overflow:hidden;
  background:linear-gradient(145deg,#b6a7b7,#69556d);
}
.territories-g3 .territory-tab:nth-child(3) .territory-card-pending{background:linear-gradient(145deg,#c9b4bd,#977f91,#695b68)}
.territories-g3 .territory-tab:nth-child(4) .territory-card-pending{background:linear-gradient(145deg,#ab9dab,#806f83,#564255)}
.territories-g3 .territory-tab:nth-child(5) .territory-card-pending{background:linear-gradient(145deg,#c5b2c1,#947f98,#634f6d)}
.territories-g3 .territory-card-pending::before{
  content:"";
  position:absolute;inset:16% 14% 0;
  background:linear-gradient(105deg,#fff5,#fff1);
  border:1px solid #fff6;
  clip-path:polygon(17% 0,79% 0,100% 100%,0 100%);
}
.territories-g3 .territory-card-pending::after{
  content:"FOTOGRAFÍA PENDIENTE";
  position:absolute;bottom:10px;left:8px;right:8px;
  font:700 9px/1.2 var(--body);
  letter-spacing:.07em;color:#fff;text-align:center;
  background:#38283f85;padding:8px 4px;
}
.territories-g3 .territory-card-body{
  display:flex;align-items:center;gap:8px;
  padding:18px 12px 9px;
}
.territories-g3 .territory-card-body small{
  font:italic 28px/1 var(--display);color:#a17aac;
}
.territories-g3 .territory-card-body strong{
  font-size:12px;line-height:1.26;font-weight:750;color:#281b2c;
  flex:1;
}
.territories-g3 .territory-card-body .territory-arrow{
  font-size:17px;line-height:1;color:#986b9d;flex:none;
  display:inline;
}
.territories-g3 .territory-card-subline{
  padding:0 13px 18px;
  font-size:11px;line-height:1.55;
  color:#6b5b68;flex:1;
}
.territories-g3 .territory-panel{
  margin-top:17px;display:block;min-height:0;
  border-left:4px solid #966aa2;
  background:#f0e5ed;
}
.territories-g3 .territory-art{display:none;}
.territories-g3 .territory-info{
  display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  gap:5px 30px;
  padding:21px 28px 22px;
}
.territories-g3 .territory-info .micro-heading{grid-column:1;align-self:end;margin:0;font-size:9px;color:#76517d;}
.territories-g3 .territory-info h3{
  grid-column:1;margin:4px 0 0;font-size:clamp(25px,2.3vw,34px);
}
.territories-g3 .territory-info>p:first-of-type{
  grid-column:2;grid-row:1/span 2;align-self:center;
  font-size:13px;max-width:none;margin:0;
}
.territories-g3 .territory-info .micro-heading:nth-of-type(2){
  grid-column:1;grid-row:3;margin:11px 0 0;
}
.territories-g3 .territory-info .possible{
  grid-column:2;grid-row:3/span 2;
  align-self:center;margin:0;font-size:12px;
}
.territories-g3 .territory-info .qualifier{
  grid-column:1;grid-row:4;font-size:10px;color:#796b79;
}
@media(max-width:1040px){
 .territories-g3 .territory-tabs{gap:8px;}
 .territories-g3 .territory-card-body{padding:13px 8px 7px;gap:5px;}
 .territories-g3 .territory-card-body strong{font-size:11px;}
 .territories-g3 .territory-card-subline{padding:0 8px 15px;font-size:10px;}
}
@media(max-width:900px){
 .territories-g3 .territory-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
 .territories-g3 .territory-tab:last-child{grid-column:auto;}
 .territories-g3 .territory-card-photo{aspect-ratio:1.5/1}
}
@media(max-width:650px){
 .territories.territories-g3{padding:66px 0 79px;}
 .territories-g3 .section-head{gap:14px;margin-bottom:24px;}
 .territories-g3 .section-head .display{font-size:clamp(45px,10vw,63px);}
 .territories-g3 .territory-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 .territories-g3 .territory-tab:last-child{grid-column:auto;}
 .territories-g3 .territory-card-photo{aspect-ratio:1.28/1}
 .territories-g3 .territory-card-body{padding:11px 9px 5px;}
 .territories-g3 .territory-card-subline{padding:0 9px 13px;line-height:1.4;}
 .territories-g3 .territory-card-body strong{font-size:12px;}
 .territories-g3 .territory-info{display:block;padding:20px 19px 23px;}
 .territories-g3 .territory-info .micro-heading{display:block;margin:0 0 6px;}
 .territories-g3 .territory-info h3{font-size:31px;margin-bottom:11px;}
 .territories-g3 .territory-info>p:first-of-type{font-size:12px;margin:0 0 15px;}
 .territories-g3 .territory-info .micro-heading:nth-of-type(2){margin:9px 0 7px;}
 .territories-g3 .territory-info .possible{font-size:12px;margin:0 0 12px;}
}
@media(max-width:355px){
 .territories-g3 .territory-card-body strong{font-size:11px;}
 .territories-g3 .territory-card-subline{font-size:10px;}
 .territories-g3 .territory-card-body small{font-size:24px;}
}
