:root{
  --brand:#13a06f;
  --brand2:#13a06f;
  --brand-dark:#071b17;
  --soft:#eef8f4;
  --brand-rgb:19,160,111;
}
body{font-family:Arial,Helvetica,sans-serif;color:#1f2b27}.navbar{backdrop-filter:blur(10px)}.hero{min-height:92vh;background:radial-gradient(circle at 20% 20%,rgba(var(--brand-rgb),.28),transparent 28%),linear-gradient(135deg,var(--brand-dark),var(--brand) 55%,color-mix(in srgb,var(--brand) 70%,#000));color:white;display:flex;align-items:center;overflow:hidden}.hero-card{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:28px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.30)}.product-visual{min-height:420px;border-radius:32px;background:linear-gradient(145deg,#f8fff9,color-mix(in srgb,var(--brand) 20%,#ffffff));position:relative;box-shadow:0 30px 80px rgba(0,0,0,.22);overflow:hidden}.product-visual:before{content:'Bullsynch';position:absolute;left:38px;top:48px;font-size:46px;font-weight:800;color:var(--brand)}.product-visual:after{content:'Sincronización reproductiva bovina';position:absolute;left:42px;top:112px;color:var(--brand);font-weight:600}.vial{position:absolute;right:50px;bottom:34px;width:110px;height:300px;border-radius:28px;background:linear-gradient(90deg,#fff,color-mix(in srgb,var(--brand) 22%,#ffffff));border:6px solid var(--brand);box-shadow:0 18px 50px rgba(0,0,0,.24);transform:rotate(-12deg)}.vial span{position:absolute;bottom:25px;left:10px;right:10px;background:var(--brand2);color:white;border-radius:14px;padding:18px 8px;text-align:center;font-weight:800}.section-pad{padding:90px 0}.soft{background:var(--soft)}.feature{height:100%;border:0;border-radius:22px;box-shadow:0 12px 35px rgba(0,0,0,.08)}.badge-soft{background:color-mix(in srgb,var(--brand) 14%,#ffffff);color:var(--brand)}.cta{background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 75%,#000));color:white;border-radius:28px}.form-control,.form-select{border-radius:14px;padding:12px 14px}.btn{border-radius:999px;padding:11px 22px;font-weight:700}.btn-primary{background:var(--brand);border-color:var(--brand)}.btn-primary:hover{background:color-mix(in srgb,var(--brand) 82%,#000);border-color:color-mix(in srgb,var(--brand) 82%,#000)}.btn-outline-success{color:var(--brand);border-color:var(--brand)}.btn-outline-success:hover{background:var(--brand);border-color:var(--brand);color:#fff}.footer{background:var(--brand-dark);color:#cfe5dd}.table td,.table th{vertical-align:middle}.form-control-color{height:50px;min-width:72px;padding:6px;border-radius:14px}.modal-content{border-radius:24px}.btn-outline-secondary{border-radius:999px}

/* Administración: respeta el color configurado desde Configuración General */
.admin-body{background:color-mix(in srgb,var(--brand) 7%,#f8f9fa)}
.admin-sidebar{min-height:100vh;background:linear-gradient(180deg,color-mix(in srgb,var(--brand) 62%,#071b17),var(--brand-dark));box-shadow:8px 0 26px rgba(0,0,0,.12)}
.admin-sidebar .admin-brand{color:#fff;font-weight:800;letter-spacing:.2px;margin-bottom:1.25rem}
.admin-sidebar .nav-link{color:rgba(255,255,255,.88)!important;border-radius:14px;margin-bottom:6px;font-weight:700;padding:10px 13px}
.admin-sidebar .nav-link:hover,.admin-sidebar .nav-link.active{background:rgba(255,255,255,.18);color:#fff!important}
.admin-main h1{color:color-mix(in srgb,var(--brand) 70%,#10231d);font-weight:800}.admin-card,.admin-main .card{border:0;border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,.08)}.admin-main .table thead th{background:color-mix(in srgb,var(--brand) 12%,#ffffff);color:color-mix(in srgb,var(--brand) 65%,#10231d);border-bottom:0}.admin-main .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-bg-type:color-mix(in srgb,var(--brand) 4%,#ffffff)}.admin-main .badge.text-bg-success{background-color:var(--brand)!important}.admin-login-card{border-top:7px solid var(--brand)}
@media(max-width:768px){.hero{min-height:auto;padding:110px 0 55px}.product-visual{min-height:320px}.section-pad{padding:55px 0}.admin-sidebar{min-height:auto}.admin-main{padding:1rem!important}}

/* v021: landing limpia con imagen completa y márgenes */
.hero-clean{
  min-height:auto;
  padding:96px 0 42px;
  background:linear-gradient(135deg,var(--brand-dark),color-mix(in srgb,var(--brand) 70%,#000));
  color:white;
  display:block;
  overflow:visible;
}
.hero-image-frame{
  position:relative;
  width:100%;
  min-height:calc(100vh - 150px);
  border-radius:34px;
  padding:28px;
  background:rgba(255,255,255,.12);
  box-shadow:0 28px 80px rgba(0,0,0,.28);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-bg-img{
  width:100%;
  height:100%;
  max-height:calc(100vh - 206px);
  object-fit:contain;
  object-position:center;
  display:block;
  border-radius:24px;
}
.hero-bg-fallback{
  width:100%;
  min-height:520px;
  border-radius:24px;
  background:radial-gradient(circle at 25% 25%,rgba(var(--brand-rgb),.36),transparent 34%),linear-gradient(135deg,var(--brand-dark),var(--brand));
}
.hero-product-overlay{
  position:absolute;
  left:75%;
  top:50%;
  transform:translate(-50%,-50%);
  max-width:38%;
  max-height:72%;
  object-fit:contain;
  border-radius:28px;
  padding:14px;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(255,255,255,.62));
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 28px 70px rgba(0,0,0,.34),0 0 0 10px rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
@media(max-width:768px){
  .hero-clean{padding:86px 0 28px}
  .hero-image-frame{min-height:58vh;padding:14px;border-radius:22px}
  .hero-bg-img{max-height:calc(58vh - 28px);border-radius:16px}
  .hero-product-overlay{left:50%;top:50%;transform:translate(-50%,-50%);max-width:62%;max-height:58%;border-radius:20px;padding:9px}
}

/* v023: mapa de distribuidores en el espacio principal del producto */
.hero-map-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(42%,520px);
  height:min(72%,520px);
  min-height:340px;
  object-fit:initial;
  color:#1f2b27;
}
.hero-map-title{font-weight:800;color:var(--brand);font-size:1.05rem;padding:2px 4px 0}.hero-map-note{font-size:.86rem;color:#45615a;padding:0 4px 2px}#distributorsMap{flex:1;min-height:260px;border-radius:22px;overflow:hidden;border:1px solid rgba(var(--brand-rgb),.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}#distributorsMap .leaflet-popup-content{font-size:.92rem}.leaflet-container{font-family:Arial,Helvetica,sans-serif}
@media(max-width:992px){.hero-map-card{width:min(48%,440px);height:66%;min-height:300px}}
@media(max-width:768px){.hero-map-card{left:50%;top:58%;width:82%;height:48%;min-height:260px;max-width:82%;max-height:48%;padding:10px}.hero-map-title{font-size:.95rem}#distributorsMap{min-height:190px;border-radius:16px}}
@media(max-width:480px){.hero-image-frame{min-height:72vh}.hero-map-card{top:62%;width:88%;height:44%;max-width:88%;max-height:44%}#distributorsMap{min-height:160px}}

/* v023: ajustes responsive generales */
@media(max-width:768px){
  .navbar .btn{width:100%;margin:.35rem 0 0!important}.feature{border-radius:18px}.card.feature.p-4{padding:1rem!important}.modal-dialog{margin:.75rem}.tree-list ul{padding-left:.8rem;margin-left:.35rem}.tree-node:before,.tree-list ul:before{display:none}.table-responsive{font-size:.9rem}.footer .container{gap:.75rem;text-align:center}.section-pad .text-center p{padding:0 .75rem}
}

/* v024: el mapa de distribuidores va en la sección Producto, no sobre el hero */
.distributors-map-card{
  height:420px;
  min-height:420px;
  border-radius:26px;
  padding:12px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),color-mix(in srgb,var(--brand) 8%,#ffffff));
  border:1px solid rgba(var(--brand-rgb),.18);
  box-shadow:0 18px 48px rgba(0,0,0,.12);
  overflow:hidden;
}
.distributors-map-card #distributorsMap{
  width:100%;
  height:100%;
  min-height:100%;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(var(--brand-rgb),.15);
}
@media(max-width:768px){
  .distributors-map-card{height:340px;min-height:340px;border-radius:20px;padding:8px}
  .distributors-map-card #distributorsMap{border-radius:16px}
}

/* v033: calendario mensual como tabla real, sin dependencias modernas */
.calendar-wrap{width:100%;overflow-x:auto;padding-bottom:4px}
.calendar-table{width:100%;min-width:980px;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important;background:#fff;border:1px solid rgba(0,0,0,.10);border-radius:22px;overflow:hidden}
.calendar-table th{width:14.285%!important;background:rgba(var(--brand-rgb),.12);color:var(--brand);font-weight:800;text-align:center;padding:12px 8px;border-right:1px solid rgba(0,0,0,.07);border-bottom:1px solid rgba(0,0,0,.10)}
.calendar-table th:last-child{border-right:0}
.calendar-table td.calendar-cell{display:table-cell!important;width:14.285%!important;height:150px;min-height:150px;vertical-align:top;background:#fff;border-right:1px solid rgba(0,0,0,.07);border-bottom:1px solid rgba(0,0,0,.07);padding:8px;position:relative}
.calendar-table tr td:last-child{border-right:0}
.calendar-table tbody tr:last-child td{border-bottom:0}
.calendar-table td.calendar-empty{background:rgba(var(--brand-rgb),.04)}
.calendar-table td.today{box-shadow:inset 0 0 0 2px var(--brand);background:rgba(var(--brand-rgb),.06)}
.calendar-date{font-weight:800;color:#20332e;margin-bottom:6px;font-size:.98rem}
.calendar-event{display:block;text-decoration:none;background:rgba(var(--brand-rgb),.10);border-left:4px solid var(--brand);color:#20332e;border-radius:10px;padding:6px 7px;margin-bottom:5px;font-size:.80rem;line-height:1.18;overflow:hidden;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.calendar-event strong,.calendar-event small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-event:hover{background:rgba(var(--brand-rgb),.18);color:#10231d}
.calendar-more{font-size:.78rem;font-weight:700;color:var(--brand);padding:2px 4px}
.calendar-list{display:flex;flex-direction:column;gap:10px}
.calendar-list-item{display:flex;gap:14px;align-items:flex-start;border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:13px;background:#fff}
.calendar-list-date{min-width:92px;font-weight:800;color:var(--brand)}
@media(max-width:900px){
  .calendar-table{min-width:760px}
  .calendar-table td.calendar-cell{height:125px;min-height:125px;padding:6px}
  .calendar-event{font-size:.74rem;padding:5px 6px}
  .calendar-list-item{flex-direction:column}
  .calendar-list-date{min-width:auto}
  .calendar-list-item .btn{width:100%}
}
@media(max-width:520px){
  .calendar-wrap{overflow:visible}
  .calendar-table,.calendar-table thead,.calendar-table tbody,.calendar-table tr,.calendar-table td{display:block!important;width:100%!important;min-width:0!important}
  .calendar-table{border:0;background:transparent;box-shadow:none!important}
  .calendar-table thead{display:none!important}
  .calendar-table td.calendar-empty,.calendar-table td.no-events{display:none!important}
  .calendar-table td.calendar-cell{height:auto;min-height:auto;border:0;border-radius:18px;margin-bottom:10px;box-shadow:0 8px 22px rgba(0,0,0,.07);padding:12px;background:#fff}
  .calendar-date:before{content:'Día ';font-weight:600;color:#667}
}


/* v034: calendario estilo Promovet, grilla mensual visual real */
.promovet-calendar-card{background:#fff;border:1px solid rgba(0,0,0,.10);border-radius:22px;overflow:hidden;box-shadow:0 16px 45px rgba(0,0,0,.08)}
.promovet-calendar-head{display:grid;grid-template-columns:repeat(7,1fr);background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:800;text-align:center;letter-spacing:.2px}
.promovet-calendar-head>div{padding:13px 8px;border-right:1px solid rgba(255,255,255,.22)}
.promovet-calendar-head>div:last-child{border-right:0}
.promovet-calendar-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;align-items:stretch;background:#e9eeec;gap:1px}
.promovet-day{min-height:158px;background:#fff;padding:10px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.promovet-day.empty{background:#f3f6f5;background-image:linear-gradient(135deg,rgba(0,0,0,.025) 25%,transparent 25%,transparent 50%,rgba(0,0,0,.025) 50%,rgba(0,0,0,.025) 75%,transparent 75%,transparent);background-size:18px 18px}
.promovet-day.weekend{background:#fbfcfb}
.promovet-day.today{box-shadow:inset 0 0 0 3px var(--brand);z-index:1;background:rgba(var(--brand-rgb),.055)}
.promovet-day-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px;min-height:26px}
.promovet-day-number{font-size:1.05rem;font-weight:900;color:#20352f;background:#f1f5f3;border-radius:999px;min-width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center}
.promovet-day.today .promovet-day-number{background:var(--brand);color:#fff}
.promovet-day-count{font-size:.72rem;font-weight:800;color:var(--brand);background:rgba(var(--brand-rgb),.12);border-radius:999px;padding:4px 7px;white-space:nowrap}
.promovet-events{display:flex;flex-direction:column;gap:6px;min-width:0}
.promovet-event{display:block;text-decoration:none;color:#1c302a;background:rgba(var(--brand-rgb),.10);border:1px solid rgba(var(--brand-rgb),.18);border-left:5px solid var(--brand);border-radius:12px;padding:7px 8px;box-shadow:0 3px 10px rgba(0,0,0,.04);transition:.16s ease;min-width:0}
.promovet-event:hover{background:rgba(var(--brand-rgb),.18);transform:translateY(-1px);color:#10251e}
.promovet-event span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15}
.promovet-event .event-title{font-weight:900;font-size:.82rem}
.promovet-event .event-meta{font-size:.73rem;color:#50635e;margin-top:2px}
.promovet-event .event-topic{font-size:.68rem;color:var(--brand);font-weight:800;margin-top:2px}
.promovet-more{font-size:.78rem;font-weight:900;color:var(--brand);padding:3px 6px}
@media (max-width: 1199px){.promovet-day{min-height:138px;padding:8px}.promovet-event{padding:6px}.promovet-event .event-title{font-size:.78rem}.promovet-event .event-meta{font-size:.69rem}}
@media (max-width: 900px){.promovet-calendar-card{overflow-x:auto}.promovet-calendar-head,.promovet-calendar-grid{min-width:900px}}
@media (max-width: 640px){.promovet-calendar-card{overflow:visible;background:transparent;border:0;box-shadow:none}.promovet-calendar-head{display:none}.promovet-calendar-grid{display:block!important;min-width:0!important;background:transparent}.promovet-day.empty{display:none}.promovet-day{min-height:auto;border-radius:18px;border:1px solid rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(0,0,0,.08);margin-bottom:10px}.promovet-day.no-events:not(.today){display:none}}

/* Menú administrativo agrupado */
.admin-menu-group{
  color:rgba(255,255,255,.62);
  text-transform:uppercase;
  font-size:.72rem;
  letter-spacing:.08em;
  font-weight:800;
  margin:18px 0 7px;
  padding:0 12px;
}
.admin-menu-group:first-of-type{margin-top:4px}
.admin-menu-group-last{margin-top:22px}
@media(max-width:768px){
  .admin-sidebar nav{display:grid;grid-template-columns:1fr;gap:2px}
  .admin-menu-group{margin-top:14px}
}

/* v036: menú administrativo desplegable */
.admin-collapsible-menu{gap:8px}
.admin-menu-details{border-radius:16px;background:rgba(255,255,255,.07);overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.admin-menu-details[open]{background:rgba(255,255,255,.10)}
.admin-menu-summary{list-style:none;cursor:pointer;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;user-select:none}
.admin-menu-summary::-webkit-details-marker{display:none}
.admin-menu-summary span:first-child{display:flex;align-items:center;gap:8px}
.admin-menu-icon{width:22px;text-align:center;opacity:.95}
.admin-menu-chevron{transition:transform .18s ease;font-size:1rem;opacity:.75}
.admin-menu-details[open] .admin-menu-chevron{transform:rotate(180deg)}
.admin-menu-items{padding:0 7px 8px}
.admin-menu-items .nav-link{margin-bottom:4px;padding:9px 11px 9px 33px;font-size:.94rem}
.admin-menu-session{margin-top:14px;background:rgba(0,0,0,.10)}
.admin-menu-group{display:none!important}
@media(max-width:768px){.admin-collapsible-menu{gap:6px}.admin-menu-items .nav-link{padding-left:18px}}

/* v036: calendario estilo Promovet con tabla real */
.promovet-calendar-wrap{background:#fff;border:1px solid rgba(0,0,0,.10);border-radius:22px;overflow:hidden;box-shadow:0 16px 45px rgba(0,0,0,.08);width:100%}
.promovet-calendar-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;margin:0;background:#e6ece9}
.promovet-calendar-table thead th{background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 78%,#000));color:#fff;text-align:center;font-weight:900;padding:13px 8px;border-right:1px solid rgba(255,255,255,.22);font-size:.92rem}
.promovet-calendar-table thead th:last-child{border-right:0}
.promovet-calendar-table tbody td{width:14.285%;height:165px;vertical-align:top;background:#fff;border-right:1px solid #e6ece9;border-bottom:1px solid #e6ece9;padding:9px;position:relative;overflow:hidden}
.promovet-calendar-table tbody tr td:last-child{border-right:0}
.promovet-calendar-table tbody tr:last-child td{border-bottom:0}
.promovet-cal-cell.empty{background:#f3f6f5;background-image:linear-gradient(135deg,rgba(0,0,0,.025) 25%,transparent 25%,transparent 50%,rgba(0,0,0,.025) 50%,rgba(0,0,0,.025) 75%,transparent 75%,transparent);background-size:18px 18px}
.promovet-cal-cell.weekend{background:#fbfcfb}
.promovet-cal-cell.today{box-shadow:inset 0 0 0 3px var(--brand);background:rgba(var(--brand-rgb),.055);z-index:1}
.promovet-cal-day-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px;min-height:30px}
.promovet-cal-day-number{font-size:1.02rem;font-weight:900;color:#20352f;background:#f1f5f3;border-radius:999px;min-width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center}
.promovet-cal-cell.today .promovet-cal-day-number{background:var(--brand);color:#fff}
.promovet-cal-count{font-size:.72rem;font-weight:900;color:#fff;background:var(--brand);border-radius:999px;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.promovet-cal-events{display:flex;flex-direction:column;gap:6px;min-width:0}
.promovet-cal-event{display:block;text-decoration:none;color:#1c302a;background:rgba(var(--brand-rgb),.10);border:1px solid rgba(var(--brand-rgb),.18);border-left:5px solid var(--brand);border-radius:12px;padding:7px 8px;box-shadow:0 3px 10px rgba(0,0,0,.04);transition:.16s ease;min-width:0;max-width:100%}
.promovet-cal-event:hover{background:rgba(var(--brand-rgb),.18);transform:translateY(-1px);color:#10251e}
.promovet-cal-event strong,.promovet-cal-event small,.promovet-cal-event em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15}
.promovet-cal-event strong{font-size:.82rem;font-weight:900}
.promovet-cal-event small{font-size:.72rem;color:#50635e;margin-top:2px}
.promovet-cal-event em{font-size:.68rem;color:var(--brand);font-weight:800;margin-top:2px;font-style:normal}
.promovet-cal-more{font-size:.78rem;font-weight:900;color:var(--brand);padding:3px 6px}
@media(max-width:1199px){.promovet-calendar-table tbody td{height:145px;padding:7px}.promovet-cal-event{padding:6px}.promovet-cal-event strong{font-size:.76rem}.promovet-cal-event small{font-size:.68rem}}
@media(max-width:900px){.promovet-calendar-wrap{overflow-x:auto}.promovet-calendar-table{min-width:980px}}
@media(max-width:640px){.promovet-calendar-wrap{overflow:visible;background:transparent;border:0;box-shadow:none}.promovet-calendar-table,.promovet-calendar-table thead,.promovet-calendar-table tbody,.promovet-calendar-table tr,.promovet-calendar-table td{display:block;width:100%}.promovet-calendar-table thead{display:none}.promovet-calendar-table tbody td.empty{display:none}.promovet-calendar-table tbody td.no-events:not(.today){display:none}.promovet-calendar-table tbody td{height:auto;min-height:0;border:1px solid rgba(0,0,0,.08)!important;border-radius:18px;margin-bottom:10px;box-shadow:0 8px 24px rgba(0,0,0,.08)}.promovet-cal-cell:before{content:attr(data-date);display:block;font-size:.78rem;font-weight:900;color:var(--brand);margin-bottom:4px}}

/* v040: mejora visual del menú desplegable administrativo */
.admin-sidebar .admin-brand{
  font-size:1.22rem;
  line-height:1.15;
}
.admin-menu-details{
  margin-bottom:9px;
  border-radius:14px;
}
.admin-menu-summary{
  min-height:42px;
  padding:10px 12px;
  font-size:.93rem;
  line-height:1.15;
  letter-spacing:.02em;
  text-transform:uppercase;
  background:rgba(255,255,255,.08);
}
.admin-menu-details[open]>.admin-menu-summary{
  background:rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.admin-menu-icon{
  width:20px;
  font-size:.95rem;
}
.admin-menu-items{
  padding:7px 7px 9px 7px;
}
.admin-sidebar .admin-menu-items .nav-link{
  font-size:.82rem!important;
  line-height:1.15;
  font-weight:600;
  padding:7px 10px 7px 30px!important;
  margin-bottom:3px;
  border-radius:11px;
  opacity:.92;
}
.admin-sidebar .admin-menu-items .nav-link.active,
.admin-sidebar .admin-menu-items .nav-link:hover{
  opacity:1;
  font-weight:700;
}
.admin-menu-session .admin-menu-summary{
  font-size:.88rem;
}
.admin-menu-session .admin-menu-items .nav-link{
  font-size:.80rem!important;
}
@media(max-width:768px){
  .admin-menu-summary{font-size:.90rem;min-height:40px}
  .admin-sidebar .admin-menu-items .nav-link{font-size:.84rem!important;padding-left:22px!important}
}

/* v043: menú administrativo en frame pastel, ordenado y con jerarquía visual */
.admin-sidebar{
  padding:18px 14px!important;
}
.admin-sidebar .admin-brand{
  margin:0 4px 14px;
  color:#fff;
  font-weight:900;
  font-size:1.18rem;
}
.admin-collapsible-menu{
  background:rgba(var(--brand-rgb),.16)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:24px!important;
  padding:12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 16px 36px rgba(0,0,0,.16)!important;
  gap:10px!important;
}
.admin-menu-details{
  background:rgba(255,255,255,.60)!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 8px 22px rgba(0,0,0,.08)!important;
  margin:0 0 10px 0!important;
}
.admin-menu-details[open]{
  background:rgba(255,255,255,.70)!important;
}
.admin-menu-summary{
  color:color-mix(in srgb,var(--brand) 52%,#10251e)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(var(--brand-rgb),.18))!important;
  border-bottom:1px solid rgba(var(--brand-rgb),.20)!important;
  min-height:46px!important;
  padding:12px 13px!important;
  font-size:.98rem!important;
  font-weight:950!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}
.admin-menu-details[open]>.admin-menu-summary{
  color:#fff!important;
  background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 72%,#000))!important;
  border-bottom:1px solid rgba(255,255,255,.16)!important;
}
.admin-menu-summary span:first-child{
  gap:9px!important;
}
.admin-menu-icon{
  width:24px!important;
  height:24px!important;
  border-radius:9px!important;
  background:rgba(var(--brand-rgb),.16)!important;
  color:var(--brand)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:.9rem!important;
}
.admin-menu-details[open] .admin-menu-icon{
  background:rgba(255,255,255,.20)!important;
  color:#fff!important;
}
.admin-menu-chevron{
  opacity:.9!important;
  font-weight:900!important;
}
.admin-menu-items{
  padding:8px 8px 10px!important;
  background:rgba(255,255,255,.36)!important;
}
.admin-sidebar .admin-menu-items .nav-link{
  color:#243a33!important;
  background:rgba(255,255,255,.62)!important;
  border:1px solid rgba(var(--brand-rgb),.10)!important;
  border-radius:13px!important;
  font-size:.84rem!important;
  line-height:1.2!important;
  font-weight:650!important;
  padding:8px 11px 8px 24px!important;
  margin-bottom:5px!important;
  box-shadow:none!important;
}
.admin-sidebar .admin-menu-items .nav-link:hover{
  color:color-mix(in srgb,var(--brand) 70%,#000)!important;
  background:rgba(var(--brand-rgb),.12)!important;
  border-color:rgba(var(--brand-rgb),.26)!important;
}
.admin-sidebar .admin-menu-items .nav-link.active{
  color:#fff!important;
  background:var(--brand)!important;
  border-color:var(--brand)!important;
  font-weight:800!important;
}
.admin-menu-session{
  margin-top:14px!important;
  background:rgba(255,255,255,.50)!important;
}
.admin-menu-session .admin-menu-summary{
  font-size:.90rem!important;
}
@media(max-width:768px){
  .admin-collapsible-menu{border-radius:20px!important;padding:10px!important}
  .admin-menu-summary{font-size:.92rem!important;min-height:42px!important}
  .admin-sidebar .admin-menu-items .nav-link{font-size:.86rem!important;padding-left:18px!important}
}

/* v044: replanteo completo del menú administrativo */
.admin-body{
  background:linear-gradient(135deg, rgba(var(--brand-rgb),.08), #f6faf8 45%, #ffffff) !important;
}
.admin-layout{
  min-height:100vh;
  display:flex;
  align-items:stretch;
}
.admin-sidebar{
  width:292px !important;
  min-width:292px !important;
  min-height:100vh !important;
  padding:16px !important;
  background:linear-gradient(180deg, rgba(var(--brand-rgb),.94), #10251f 72%) !important;
  box-shadow:10px 0 34px rgba(0,0,0,.14) !important;
}
.admin-sidebar-inner{
  position:sticky;
  top:16px;
}
.admin-main{
  flex:1;
  min-width:0;
  padding:28px !important;
}
.admin-brand-box{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 16px;
  padding:12px 10px;
  color:#fff;
}
.admin-brand-mark{
  width:42px;
  height:42px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.26);
  font-size:1.25rem;
  font-weight:950;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}
.admin-sidebar .admin-brand{
  color:#fff !important;
  margin:0 !important;
  font-size:1.18rem !important;
  font-weight:950 !important;
  letter-spacing:.02em;
}
.admin-brand-subtitle{
  color:rgba(255,255,255,.72);
  font-size:.78rem;
  font-weight:650;
  margin-top:1px;
}
.admin-collapsible-menu{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  padding:14px !important;
  border-radius:28px !important;
  background:rgba(255,255,255,.84) !important;
  border:1px solid rgba(255,255,255,.78) !important;
  box-shadow:0 20px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.95) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.admin-menu-details{
  margin:0 !important;
  border-radius:22px !important;
  overflow:hidden !important;
  border:1px solid rgba(var(--brand-rgb),.14) !important;
  background:rgba(var(--brand-rgb),.045) !important;
  box-shadow:none !important;
}
.admin-menu-details[open]{
  background:#ffffff !important;
  box-shadow:0 10px 24px rgba(0,0,0,.065) !important;
}
.admin-menu-summary{
  min-height:50px !important;
  padding:12px 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  color:#17352d !important;
  background:linear-gradient(135deg, rgba(var(--brand-rgb),.16), rgba(var(--brand-rgb),.055)) !important;
  border:0 !important;
  font-size:.95rem !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
  cursor:pointer;
}
.admin-menu-details[open]>.admin-menu-summary{
  color:#fff !important;
  background:linear-gradient(135deg, var(--brand), rgba(var(--brand-rgb),.78)) !important;
  border:0 !important;
}
.admin-menu-summary::-webkit-details-marker{display:none !important}
.admin-menu-summary>span:first-child{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.admin-menu-icon{
  flex:0 0 auto;
  width:28px !important;
  height:28px !important;
  border-radius:11px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
  color:var(--brand) !important;
  font-size:.86rem !important;
  box-shadow:0 3px 10px rgba(0,0,0,.07) !important;
}
.admin-menu-details[open] .admin-menu-icon{
  background:rgba(255,255,255,.22) !important;
  color:#fff !important;
  box-shadow:none !important;
}
.admin-menu-chevron{
  color:inherit !important;
  font-size:.95rem !important;
  font-weight:950 !important;
  opacity:.8 !important;
  transition:transform .18s ease;
}
.admin-menu-details[open] .admin-menu-chevron{transform:rotate(180deg)}
.admin-menu-items{
  padding:9px !important;
  background:linear-gradient(180deg, #fff, rgba(var(--brand-rgb),.035)) !important;
}
.admin-sidebar .admin-menu-items .nav-link{
  position:relative;
  display:flex !important;
  align-items:center;
  min-height:36px;
  width:100%;
  color:#2f433d !important;
  background:transparent !important;
  border:1px solid transparent !important;
  border-radius:14px !important;
  padding:8px 10px 8px 28px !important;
  margin:0 0 4px !important;
  font-size:.84rem !important;
  font-weight:720 !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  text-decoration:none !important;
}
.admin-sidebar .admin-menu-items .nav-link:before{
  content:'';
  position:absolute;
  left:12px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(var(--brand-rgb),.38);
  transform:translateY(-50%);
}
.admin-sidebar .admin-menu-items .nav-link:hover{
  color:#17352d !important;
  background:rgba(var(--brand-rgb),.09) !important;
  border-color:rgba(var(--brand-rgb),.16) !important;
}
.admin-sidebar .admin-menu-items .nav-link.active{
  color:#fff !important;
  background:var(--brand) !important;
  border-color:var(--brand) !important;
  box-shadow:0 8px 18px rgba(var(--brand-rgb),.25) !important;
  font-weight:850 !important;
}
.admin-sidebar .admin-menu-items .nav-link.active:before{
  background:#fff;
}
.admin-menu-session{
  margin-top:2px !important;
  background:rgba(15,35,29,.04) !important;
}
.admin-menu-session .admin-menu-summary{
  min-height:44px !important;
  font-size:.86rem !important;
  background:rgba(15,35,29,.06) !important;
  color:#27443b !important;
}
.admin-menu-session[open]>.admin-menu-summary{
  background:#223b34 !important;
  color:#fff !important;
}
@media(max-width:991px){
  .admin-layout{display:block}
  .admin-sidebar{width:100% !important;min-width:0 !important;min-height:auto !important;padding:12px !important}
  .admin-sidebar-inner{position:static}
  .admin-brand-box{padding:6px 4px;margin-bottom:8px}
  .admin-collapsible-menu{border-radius:22px !important;padding:10px !important;gap:9px !important}
  .admin-main{padding:18px 12px !important}
}
@media(max-width:520px){
  .admin-menu-summary{font-size:.88rem !important;min-height:46px !important;padding:10px 12px !important}
  .admin-sidebar .admin-menu-items .nav-link{font-size:.84rem !important;min-height:34px;padding-left:24px !important}
  .admin-menu-icon{width:25px !important;height:25px !important;border-radius:9px !important}
}

/* v045: replanteo definitivo del layout y menu admin
   Mantiene siempre el panel de trabajo a la derecha en escritorio.
   Solo apila menu/contenido en pantallas chicas. */
@media (min-width: 769px){
  body.admin-body .admin-layout{
    display:grid !important;
    grid-template-columns:280px minmax(0,1fr) !important;
    align-items:start !important;
    min-height:100vh !important;
    width:100% !important;
  }
  body.admin-body .admin-sidebar{
    grid-column:1 !important;
    width:280px !important;
    min-width:280px !important;
    max-width:280px !important;
    min-height:100vh !important;
    height:100vh !important;
    position:sticky !important;
    top:0 !important;
    overflow-y:auto !important;
    padding:16px !important;
  }
  body.admin-body .admin-main{
    grid-column:2 !important;
    width:auto !important;
    min-width:0 !important;
    padding:26px 30px !important;
  }
}

body.admin-body{
  background:linear-gradient(135deg, rgba(var(--brand-rgb),.075), #f7fbf9 48%, #fff) !important;
}
body.admin-body .admin-sidebar{
  background:linear-gradient(180deg, color-mix(in srgb,var(--brand) 84%,#0f271f), #10241e 78%) !important;
  box-shadow:8px 0 28px rgba(0,0,0,.13) !important;
}
body.admin-body .admin-brand-box{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 0 14px !important;
  padding:10px 8px !important;
}
body.admin-body .admin-brand-mark{
  width:38px !important;
  height:38px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.18) !important;
  color:#fff !important;
}
body.admin-body .admin-sidebar .admin-brand{
  font-size:1.08rem !important;
  margin:0 !important;
  color:#fff !important;
  line-height:1.1 !important;
}
body.admin-body .admin-brand-subtitle{
  font-size:.74rem !important;
  color:rgba(255,255,255,.72) !important;
}

/* Frame pastel del menu */
body.admin-body .admin-collapsible-menu{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  padding:12px !important;
  border-radius:24px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(var(--brand-rgb),.13)) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:0 16px 36px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.95) !important;
}
body.admin-body .admin-menu-details{
  margin:0 !important;
  border:1px solid rgba(var(--brand-rgb),.16) !important;
  border-radius:18px !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.68) !important;
  box-shadow:none !important;
}
body.admin-body .admin-menu-details[open]{
  background:#fff !important;
  box-shadow:0 8px 20px rgba(0,0,0,.06) !important;
}

/* Titulos de grupo: mayor jerarquia que los items */
body.admin-body .admin-menu-summary{
  min-height:44px !important;
  padding:10px 12px !important;
  list-style:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  cursor:pointer !important;
  color:color-mix(in srgb,var(--brand) 62%,#172f28) !important;
  background:linear-gradient(135deg, rgba(var(--brand-rgb),.18), rgba(255,255,255,.92)) !important;
  border:0 !important;
  border-bottom:1px solid rgba(var(--brand-rgb),.10) !important;
  font-size:.91rem !important;
  font-weight:900 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  line-height:1.1 !important;
}
body.admin-body .admin-menu-summary::-webkit-details-marker{display:none !important;}
body.admin-body .admin-menu-details[open] > .admin-menu-summary{
  color:#fff !important;
  background:linear-gradient(135deg, var(--brand), color-mix(in srgb,var(--brand) 70%,#061b15)) !important;
  border-bottom:0 !important;
}
body.admin-body .admin-menu-summary > span:first-child{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
body.admin-body .admin-menu-icon{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  border-radius:9px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(255,255,255,.92) !important;
  color:var(--brand) !important;
  font-size:.78rem !important;
  box-shadow:0 2px 8px rgba(0,0,0,.08) !important;
}
body.admin-body .admin-menu-details[open] .admin-menu-icon{
  color:#fff !important;
  background:rgba(255,255,255,.20) !important;
  box-shadow:none !important;
}
body.admin-body .admin-menu-chevron{
  color:inherit !important;
  font-size:.88rem !important;
  opacity:.9 !important;
  transform:none !important;
}
body.admin-body .admin-menu-details[open] .admin-menu-chevron{transform:rotate(180deg) !important;}

/* Items internos: mas chicos y contenidos */
body.admin-body .admin-menu-items{
  padding:7px !important;
  background:linear-gradient(180deg, #fff, rgba(var(--brand-rgb),.035)) !important;
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link{
  display:flex !important;
  align-items:center !important;
  position:relative !important;
  min-height:32px !important;
  width:100% !important;
  color:#30463f !important;
  background:transparent !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  padding:7px 8px 7px 24px !important;
  margin:0 0 3px !important;
  font-size:.78rem !important;
  font-weight:650 !important;
  line-height:1.15 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  text-decoration:none !important;
  box-shadow:none !important;
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link::before{
  content:'' !important;
  position:absolute !important;
  left:10px !important;
  top:50% !important;
  width:5px !important;
  height:5px !important;
  border-radius:50% !important;
  background:rgba(var(--brand-rgb),.42) !important;
  transform:translateY(-50%) !important;
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link:hover{
  color:color-mix(in srgb,var(--brand) 70%,#10241f) !important;
  background:rgba(var(--brand-rgb),.09) !important;
  border-color:rgba(var(--brand-rgb),.18) !important;
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link.active{
  color:#fff !important;
  background:var(--brand) !important;
  border-color:var(--brand) !important;
  box-shadow:0 7px 16px rgba(var(--brand-rgb),.24) !important;
  font-weight:800 !important;
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link.active::before{background:#fff !important;}
body.admin-body .admin-menu-session{
  margin-top:0 !important;
}
body.admin-body .admin-menu-session .admin-menu-summary{
  font-size:.82rem !important;
  min-height:40px !important;
  background:rgba(32,56,49,.08) !important;
  color:#263f38 !important;
}
body.admin-body .admin-menu-session[open] > .admin-menu-summary{
  background:#263f38 !important;
  color:#fff !important;
}

@media (max-width:768px){
  body.admin-body .admin-layout{display:block !important;}
  body.admin-body .admin-sidebar{width:100% !important;min-width:0 !important;max-width:none !important;min-height:auto !important;height:auto !important;position:relative !important;top:auto !important;padding:10px !important;}
  body.admin-body .admin-sidebar-inner{position:static !important;}
  body.admin-body .admin-main{padding:14px 10px !important;width:100% !important;}
  body.admin-body .admin-collapsible-menu{border-radius:18px !important;padding:9px !important;gap:8px !important;}
}


/* v051: quitar Informes del menú, unificar Sesión/Salir con tarjetas principales */
body.admin-body .admin-menu-session{
  margin-top:0 !important;
  border:1px solid rgba(var(--brand-rgb),.16) !important;
  border-radius:18px !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.68) !important;
  box-shadow:none !important;
}
body.admin-body .admin-menu-session[open]{
  background:#fff !important;
  box-shadow:0 8px 20px rgba(0,0,0,.06) !important;
}
body.admin-body .admin-menu-session .admin-menu-summary{
  min-height:44px !important;
  padding:10px 12px !important;
  color:color-mix(in srgb,var(--brand) 62%,#172f28) !important;
  background:linear-gradient(135deg, rgba(var(--brand-rgb),.18), rgba(255,255,255,.92)) !important;
  border-bottom:1px solid rgba(var(--brand-rgb),.10) !important;
  font-size:.91rem !important;
  font-weight:900 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
}
body.admin-body .admin-menu-session[open] > .admin-menu-summary{
  color:#fff !important;
  background:linear-gradient(135deg, var(--brand), color-mix(in srgb,var(--brand) 70%,#061b15)) !important;
  border-bottom:0 !important;
}
body.admin-body .admin-menu-session .admin-menu-items{
  background:linear-gradient(180deg, #fff, rgba(var(--brand-rgb),.035)) !important;
}
body.admin-body .admin-menu-session .admin-menu-items .nav-link{
  color:#30463f !important;
  background:transparent !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  font-size:.78rem !important;
  font-weight:650 !important;
}
body.admin-body .admin-menu-session .admin-menu-items .nav-link:hover{
  color:color-mix(in srgb,var(--brand) 70%,#10241f) !important;
  background:rgba(var(--brand-rgb),.09) !important;
  border-color:rgba(var(--brand-rgb),.18) !important;
}

/* v086: fondo uniforme en toda la parte publica */
body{
  background:color-mix(in srgb,var(--brand) 7%,#ffffff);
}
.section-pad,
.section-pad.soft,
#distribuidores,
#biblioteca,
#casos,
#pedido{
  background:color-mix(in srgb,var(--brand) 7%,#ffffff)!important;
}
/* El hero conserva su contenido multimedia, pero el contenedor exterior usa la misma base */
.hero-clean{
  background:color-mix(in srgb,var(--brand) 7%,#ffffff)!important;
}
/* Las tarjetas y formularios mantienen contraste sobre el fondo uniforme */
.section-pad .card,
.section-pad .feature,
.section-pad .distributors-map-card,
.section-pad form,
.section-pad .cta{
  position:relative;
}

/* v089: fondo publico dominado por el color elegido, con degradado minimo */
body:not(.admin-body){
  min-height:100vh;
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--brand) 96%,#ffffff) 0%,
    var(--brand) 52%,
    color-mix(in srgb,var(--brand) 94%,#000000) 100%
  );
  background-attachment:fixed;
}
body:not(.admin-body) .section-pad,
body:not(.admin-body) .section-pad.soft,
body:not(.admin-body) #distribuidores,
body:not(.admin-body) #biblioteca,
body:not(.admin-body) #casos,
body:not(.admin-body) #pedido,
body:not(.admin-body) .hero-clean,
body:not(.admin-body) .footer{
  background:transparent!important;
}
body:not(.admin-body) .section-pad{
  position:relative;
}
body:not(.admin-body) .section-pad::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
body:not(.admin-body) .section-pad>.container,
body:not(.admin-body) .hero-clean>.container{
  position:relative;
  z-index:1;
}
body:not(.admin-body) .section-pad .card,
body:not(.admin-body) .section-pad .feature,
body:not(.admin-body) .section-pad .distributors-map-card,
body:not(.admin-body) .section-pad form,
body:not(.admin-body) .section-pad .cta,
body:not(.admin-body) .tree-folder details,
body:not(.admin-body) .tree-leaf{
  background:rgba(255,255,255,.94)!important;
  border-color:rgba(255,255,255,.58)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.10);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
body:not(.admin-body) .footer{
  color:#fff;
  border-top:1px solid rgba(255,255,255,.22);
  box-shadow:0 -12px 30px rgba(0,0,0,.08);
}
@media(max-width:768px){
  body:not(.admin-body){background-attachment:scroll;}
}

/* v088: contraste automatico en areas publicas y privadas */
:root{
  --brand-contrast:#fff;
  --brand-contrast-inverse:#14212b;
  --surface-text:#17232d;
  --surface-muted:#53616d;
}

/* Elementos pintados directamente con el color configurado */
.btn-primary,
.btn-success,
.navbar,
.badge.bg-primary,
body.admin-body .admin-sidebar .admin-menu-items .nav-link.active,
body.admin-body .admin-menu-details[open] > .admin-menu-summary,
body.admin-body .admin-menu-session[open] > .admin-menu-summary{
  color:var(--brand-contrast)!important;
}
.btn-primary *,
.btn-success *,
.navbar *,
body.admin-body .admin-menu-details[open] > .admin-menu-summary *,
body.admin-body .admin-menu-session[open] > .admin-menu-summary *{
  color:inherit!important;
}
.btn-outline-success,
.btn-outline-primary{
  color:color-mix(in srgb,var(--brand) 76%,var(--brand-contrast-inverse))!important;
  border-color:color-mix(in srgb,var(--brand) 82%,var(--brand-contrast-inverse))!important;
  background:rgba(255,255,255,.82)!important;
}
.btn-outline-success:hover,
.btn-outline-primary:hover{
  background:var(--brand)!important;
  color:var(--brand-contrast)!important;
}

/* Parte publica: titulos sobre el degradado con contraste garantizado */
body:not(.admin-body) .section-pad > .container > .text-center > h1,
body:not(.admin-body) .section-pad > .container > .text-center > h2,
body:not(.admin-body) .section-pad > .container > .text-center > h3,
body:not(.admin-body) .section-pad > .container > .text-center > p,
body:not(.admin-body) .section-pad > .container > .text-center > .lead,
body:not(.admin-body) #distribuidores .text-center,
body:not(.admin-body) #biblioteca .text-center,
body:not(.admin-body) #casos .text-center{
  color:var(--brand-contrast)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.38),0 0 14px rgba(0,0,0,.16);
}
/* Si el color configurado es muy claro, la variable cambia a texto oscuro y se usa halo claro */
body:not(.admin-body) .section-pad > .container > .text-center,
body:not(.admin-body) #distribuidores .text-center,
body:not(.admin-body) #biblioteca .text-center,
body:not(.admin-body) #casos .text-center{
  border-radius:18px;
  padding:.7rem 1rem;
  background:color-mix(in srgb,var(--brand) 62%,transparent);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}

/* Superficies claras: texto oscuro fijo para no heredar el color del degradado */
body:not(.admin-body) .card,
body:not(.admin-body) .feature,
body:not(.admin-body) form,
body:not(.admin-body) .cta,
body:not(.admin-body) .modal-content,
body:not(.admin-body) .tree-folder details,
body:not(.admin-body) .tree-leaf,
body:not(.admin-body) .distributors-map-card,
body:not(.admin-body) .alert{
  color:var(--surface-text)!important;
}
body:not(.admin-body) .card p,
body:not(.admin-body) .card small,
body:not(.admin-body) .text-muted,
body:not(.admin-body) .form-text{
  color:var(--surface-muted)!important;
}
body:not(.admin-body) .card h1,
body:not(.admin-body) .card h2,
body:not(.admin-body) .card h3,
body:not(.admin-body) .card h4,
body:not(.admin-body) .cta h1,
body:not(.admin-body) .cta h2,
body:not(.admin-body) .modal-title,
body:not(.admin-body) label{
  color:var(--surface-text)!important;
  text-shadow:none!important;
}

/* Panel privado: encabezados, menu y controles */
body.admin-body{
  color:var(--surface-text)!important;
}
body.admin-body .admin-brand-box,
body.admin-body .admin-collapsible-menu,
body.admin-body .card,
body.admin-body .modal-content,
body.admin-body form,
body.admin-body .table,
body.admin-body .alert{
  color:var(--surface-text)!important;
}
body.admin-body .admin-menu-summary{
  color:color-mix(in srgb,var(--brand) 60%,#17232d)!important;
}
body.admin-body .admin-menu-details[open] > .admin-menu-summary,
body.admin-body .admin-menu-session[open] > .admin-menu-summary{
  color:var(--brand-contrast)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.22);
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link.active{
  color:var(--brand-contrast)!important;
}
body.admin-body .admin-sidebar .admin-menu-items .nav-link.active::before{
  background:var(--brand-contrast)!important;
}
body.admin-body h1,
body.admin-body h2,
body.admin-body h3,
body.admin-body h4,
body.admin-body label,
body.admin-body .form-label,
body.admin-body .table{
  color:var(--surface-text);
}
body.admin-body .text-muted,
body.admin-body small,
body.admin-body .form-text{
  color:var(--surface-muted)!important;
}

/* Foco visible y accesible */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid color-mix(in srgb,var(--brand) 62%,#ffffff)!important;
  outline-offset:2px;
}


/* v091: contraste reforzado, segundo fondo y modulos publicos configurables */
.btn,
button.btn,
a.btn{
  border-width:2px!important;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  text-decoration:none!important;
}
.btn-light,
.btn-outline-light{
  background:#fff!important;
  color:#17232d!important;
  border-color:rgba(23,35,45,.52)!important;
}
.btn-light:hover,
.btn-outline-light:hover{
  background:#eef3f7!important;
  color:#0f1820!important;
  border-color:#17232d!important;
}
.btn-outline-secondary,
.btn-secondary{
  background:#fff!important;
  color:#273746!important;
  border-color:#617180!important;
}
.btn-outline-secondary:hover,
.btn-secondary:hover{
  background:#273746!important;
  color:#fff!important;
  border-color:#273746!important;
}
.btn-outline-danger{background:#fff!important;color:#a92d36!important;border-color:#b83b45!important}
.btn-outline-danger:hover{background:#b83b45!important;color:#fff!important}
.btn-outline-warning{background:#fff!important;color:#725500!important;border-color:#a77800!important}
.btn-outline-warning:hover{background:#a77800!important;color:#fff!important}
.card .btn,
.modal-content .btn,
form .btn,
.admin-main .btn{
  min-height:40px;
}
.secondary-public-background{
  padding:0 0 28px;
  background:transparent;
}
.secondary-public-background-frame{
  position:relative;
  width:100%;
  min-height:280px;
  max-height:68vh;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,0,0,.16);
  background:color-mix(in srgb,var(--brand) 94%,#fff);
}
.hero-secondary-media{
  display:block;
  width:100%;
  height:100%;
  min-height:280px;
  max-height:68vh;
  object-fit:cover;
  border:0;
}
.hero-media-iframe.hero-secondary-media{position:absolute;inset:0;max-height:none}
@media(max-width:768px){
  .secondary-public-background{padding-bottom:18px}
  .secondary-public-background-frame,
  .hero-secondary-media{min-height:190px;max-height:48vh;border-radius:18px}
}


/* v092: Distribuidores publico ocupa la altura util de la pantalla */
body:not(.admin-body) #distribuidores{
  min-height:100vh;
  min-height:100svh;
  padding-top:calc(72px + 1.25rem)!important;
  padding-bottom:1.25rem!important;
  display:flex;
  align-items:stretch;
}
body:not(.admin-body) #distribuidores>.container{
  width:100%;
  min-height:calc(100vh - 72px - 2.5rem);
  min-height:calc(100svh - 72px - 2.5rem);
  display:flex;
  flex-direction:column;
}
body:not(.admin-body) #distribuidores .text-center{
  flex:0 0 auto;
  margin-bottom:1rem!important;
}
body:not(.admin-body) #distribuidores .product-map-section{
  flex:1 1 auto;
  min-height:0;
  display:flex;
}
body:not(.admin-body) #distribuidores .distributors-map-card{
  flex:1 1 auto;
  width:100%;
  height:auto;
  min-height:420px;
  display:flex;
}
body:not(.admin-body) #distribuidores #distributorsMap{
  flex:1 1 auto;
  height:auto!important;
  min-height:100%!important;
  cursor:grab;
}
body:not(.admin-body) #distribuidores #distributorsMap:active{cursor:grabbing}
@media(max-width:768px){
  body:not(.admin-body) #distribuidores{
    padding-top:calc(64px + .75rem)!important;
    padding-bottom:.75rem!important;
  }
  body:not(.admin-body) #distribuidores>.container{
    min-height:calc(100svh - 64px - 1.5rem);
  }
  body:not(.admin-body) #distribuidores .text-center{margin-bottom:.65rem!important}
  body:not(.admin-body) #distribuidores .text-center p{margin-bottom:0}
  body:not(.admin-body) #distribuidores .distributors-map-card{
    height:auto!important;
    min-height:360px!important;
  }
}

/* v093: mapa publico de distribuidores en pantalla completa */
body:not(.admin-body) .distributors-fullscreen-section{
  position:relative;
  width:100%;
  height:calc(100vh - 72px);
  height:calc(100svh - 72px);
  min-height:640px;
  padding:0!important;
  margin:0;
  overflow:hidden;
}
body:not(.admin-body) .distributors-fullscreen-shell,
body:not(.admin-body) .distributors-map-fullscreen,
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  position:relative;
  width:100%;
  height:100%!important;
  min-height:100%!important;
}
body:not(.admin-body) .distributors-map-fullscreen{
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
  background:#dce8ef;
}
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  z-index:1;
  cursor:grab;
}
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap:active{cursor:grabbing}
body:not(.admin-body) .distributors-map-toolbar{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  z-index:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.8rem 1rem;
  border:1px solid rgba(255,255,255,.65);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 32px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
}
body:not(.admin-body) .distributors-map-toolbar h2{
  margin:0;
  font-size:clamp(1.05rem,2vw,1.55rem);
  color:var(--surface-text)!important;
  text-shadow:none!important;
}
body:not(.admin-body) .distributors-map-toolbar p{
  margin:.15rem 0 0;
  color:var(--surface-muted)!important;
  font-size:.9rem;
  text-shadow:none!important;
}
body:not(.admin-body) .public-distributors-list{
  position:absolute;
  top:88px;
  right:18px;
  bottom:18px;
  z-index:650;
  width:min(360px,calc(100% - 36px));
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,.75);
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 45px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
  transform:translateX(calc(100% + 30px));
  opacity:0;
  pointer-events:none;
  transition:transform .24s ease,opacity .24s ease;
}
body:not(.admin-body) .public-distributors-list.is-open{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}
body:not(.admin-body) .public-distributors-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.85rem 1rem;
  border-bottom:1px solid #e5ebef;
  color:var(--surface-text);
}
body:not(.admin-body) .public-distributors-list-body{
  overflow:auto;
  padding:.55rem;
}
body:not(.admin-body) .public-distributor-item{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.12rem;
  padding:.72rem .8rem;
  margin-bottom:.45rem;
  border:1px solid color-mix(in srgb,var(--brand) 22%,#dce3e8);
  border-radius:12px;
  background:#fff;
  color:var(--surface-text);
  text-align:left;
  box-shadow:0 3px 10px rgba(0,0,0,.06);
}
body:not(.admin-body) .public-distributor-item:hover{
  border-color:var(--brand);
  background:color-mix(in srgb,var(--brand) 6%,#fff);
}
body:not(.admin-body) .public-distributor-item span,
body:not(.admin-body) .public-distributor-item small{color:var(--surface-muted)!important}
@media(max-width:768px){
  body:not(.admin-body) .distributors-fullscreen-section{
    height:calc(100svh - 64px);
    min-height:520px;
  }
  body:not(.admin-body) .distributors-map-toolbar{
    top:10px;left:10px;right:10px;
    padding:.65rem .75rem;
    border-radius:14px;
  }
  body:not(.admin-body) .distributors-map-toolbar p{display:none}
  body:not(.admin-body) .public-distributors-list{
    top:70px;right:10px;bottom:10px;width:calc(100% - 20px);
    border-radius:14px;
  }
}

/*v095*/
.public-section,#distribuidores,#biblioteca,#casos,#contacto{background:transparent!important;margin:0!important}.container,.hero-container{max-width:1400px;margin:auto}.public-card,.card{background:rgba(255,255,255,.94)!important}#distribuidores{min-height:calc(100vh - 80px)}.leaflet-container{min-height:calc(100vh - 120px)!important}


/* v096: imagen principal sin fondo excedente e imagen inferior completa */
body:not(.admin-body) .hero-image-frame.hero-main-is-image{
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden;
}
body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-bg-backdrop{
  display:none!important;
}
body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-bg-media{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
}
/* El producto puede superponerse, pero sin placa/fondo propio que sobresalga. */
body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-product-media{
  background:transparent!important;
  border:0!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}

/* El segundo fondo se muestra completo y respeta su proporcion original. */
body:not(.admin-body) .secondary-public-background{
  background:transparent!important;
}
body:not(.admin-body) .secondary-public-background-frame{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:hidden;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:contain!important;
  border-radius:0!important;
  background:transparent!important;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-video{
  aspect-ratio:16/9;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-video .hero-secondary-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:contain!important;
  background:#000!important;
}
@media(max-width:768px){
  body:not(.admin-body) .hero-image-frame.hero-main-is-image{
    min-height:0!important;
  }
  body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media{
    min-height:0!important;
    max-height:none!important;
  }
}

/* Bullsynch v097 - bordes rectos en fondo principal e imagen inferior */
body:not(.admin-body) .hero-clean,
body:not(.admin-body) .hero-clean > .container,
body:not(.admin-body) .hero-image-frame,
body:not(.admin-body) .hero-image-frame.hero-main-is-image,
body:not(.admin-body) .hero-image-frame img,
body:not(.admin-body) .hero-image-frame video,
body:not(.admin-body) .hero-image-frame iframe,
body:not(.admin-body) .hero-bg-media,
body:not(.admin-body) .hero-product-media,
body:not(.admin-body) .secondary-public-background,
body:not(.admin-body) .secondary-public-background-frame,
body:not(.admin-body) .secondary-public-background-frame img,
body:not(.admin-body) .secondary-public-background-frame video,
body:not(.admin-body) .secondary-public-background-frame iframe,
body:not(.admin-body) .hero-secondary-media {
  border-radius: 0 !important;
}

body:not(.admin-body) .hero-image-frame,
body:not(.admin-body) .secondary-public-background-frame {
  overflow: hidden !important;
}

/* Bullsynch v098 - imagen principal a ancho completo y mapa alineado al fondo inferior */
:root{
  --public-media-max-width:1400px;
}

/* La imagen principal ocupa todo el ancho útil del contenedor, sin franjas laterales. */
body:not(.admin-body) .hero-clean > .container,
body:not(.admin-body) .secondary-public-background > .container{
  width:min(100%,var(--public-media-max-width))!important;
  max-width:var(--public-media-max-width)!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body:not(.admin-body) .hero-image-frame.hero-main-is-image{
  width:100%!important;
  max-width:none!important;
}
body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-bg-media{
  display:block!important;
  width:100%!important;
  min-width:100%!important;
  height:auto!important;
  object-fit:fill!important;
  object-position:center!important;
}

/* El mapa no supera el ancho máximo de la imagen inferior. */
body:not(.admin-body) .distributors-fullscreen-section{
  width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  overflow:visible!important;
}
body:not(.admin-body) .distributors-fullscreen-shell{
  width:min(100%,var(--public-media-max-width))!important;
  max-width:var(--public-media-max-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow:hidden!important;
}
body:not(.admin-body) .distributors-map-fullscreen,
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  width:100%!important;
  max-width:100%!important;
}

@media(max-width:768px){
  body:not(.admin-body) .hero-clean > .container,
  body:not(.admin-body) .secondary-public-background > .container,
  body:not(.admin-body) .distributors-fullscreen-shell{
    width:100%!important;
    max-width:100%!important;
  }
}


/* Bullsynch v099 - eliminar franjas laterales estirando la imagen principal */
body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-bg-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
}
body:not(.admin-body) .hero-image-frame.hero-main-is-image{
  min-height:clamp(360px,62vw,760px)!important;
  height:clamp(360px,62vw,760px)!important;
  background:transparent!important;
}
@media(max-width:768px){
  body:not(.admin-body) .hero-image-frame.hero-main-is-image{
    min-height:420px!important;
    height:420px!important;
  }
}

/* v101: filtros y sincronizacion del panel publico de distribuidores */
body:not(.admin-body) .public-distributors-list-head{padding:1rem 1rem .85rem}
body:not(.admin-body) .public-distributors-filters{margin:18px 12px 10px;padding:12px;border:1px solid color-mix(in srgb,var(--brand) 16%,#dde5ea);border-radius:14px;background:color-mix(in srgb,var(--brand) 4%,#fff)}
body:not(.admin-body) .public-distributors-filters .form-label{margin-bottom:.25rem;font-size:.78rem;font-weight:700;color:var(--surface-text)}
body:not(.admin-body) .public-distributors-results{margin-top:.65rem;font-size:.82rem;font-weight:600;color:var(--surface-muted)}
body:not(.admin-body) .public-distributors-list-body{scroll-behavior:smooth;overscroll-behavior:contain;padding:.55rem .75rem .8rem}
body:not(.admin-body) .public-distributor-item{min-height:78px;margin-bottom:.55rem;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
body:not(.admin-body) .public-distributor-item:hover{transform:translateY(-1px)}
body:not(.admin-body) .public-distributor-item.is-active{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent),0 7px 18px rgba(0,0,0,.1)}
body:not(.admin-body) .public-distributor-item[hidden]{display:none!important}
body:not(.admin-body) .public-distributors-empty{margin:.75rem;padding:1rem;border-radius:12px;background:#f5f7f8;color:var(--surface-muted);text-align:center;font-size:.9rem}
body:not(.admin-body) .distributors-fullscreen-shell{max-width:1400px;margin-inline:auto}
body:not(.admin-body) .distributors-map-fullscreen{border-radius:24px}
@media(max-width:768px){body:not(.admin-body) .public-distributors-filters{margin:16px 10px 8px;padding:10px}body:not(.admin-body) .distributors-map-fullscreen{border-radius:16px}}

/* v102: distribución correcta de título, mapa y panel de distribuidores */
body:not(.admin-body) .distributors-map-fullscreen{
  --distributors-content-top:96px;
}
body:not(.admin-body) .distributors-map-toolbar{
  z-index:700;
}
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  position:absolute!important;
  top:var(--distributors-content-top)!important;
  left:0!important;
  right:auto!important;
  bottom:0!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  transition:width .24s ease;
}
body:not(.admin-body) .public-distributors-list{
  top:var(--distributors-content-top)!important;
  bottom:0!important;
  right:0!important;
  border-radius:18px 0 0 0!important;
}
@media(min-width:769px){
  body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open #distributorsMap{
    width:calc(100% - 378px)!important;
  }
}
@media(max-width:768px){
  body:not(.admin-body) .distributors-map-fullscreen{
    --distributors-content-top:76px;
  }
  body:not(.admin-body) .public-distributors-list{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    width:auto!important;
    border-radius:14px!important;
  }
}

/* v103: opción A - título arriba; mapa y tarjeta alineados debajo */
body:not(.admin-body) .distributors-map-fullscreen{
  --distributors-panel-width:380px;
  --distributors-gap:16px;
  position:relative!important;
  padding:0!important;
}
body:not(.admin-body) .distributors-map-toolbar{
  top:0!important;
  left:0!important;
  right:0!important;
  border-radius:20px 20px 0 0!important;
  box-shadow:none!important;
  border:1px solid color-mix(in srgb,var(--brand) 18%,#dce5ea)!important;
  border-bottom:0!important;
  background:#fff!important;
  backdrop-filter:none!important;
}
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  top:var(--distributors-content-top)!important;
  left:0!important;
  bottom:0!important;
  width:calc(100% - var(--distributors-panel-width) - var(--distributors-gap))!important;
  border-radius:0 0 0 20px!important;
}
body:not(.admin-body) .public-distributors-list{
  top:var(--distributors-content-top)!important;
  right:0!important;
  bottom:0!important;
  width:var(--distributors-panel-width)!important;
  max-width:var(--distributors-panel-width)!important;
  border-radius:0 0 20px 0!important;
  border:1px solid color-mix(in srgb,var(--brand) 18%,#dce5ea)!important;
  box-shadow:none!important;
  background:#fff!important;
  backdrop-filter:none!important;
  transform:none!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body:not(.admin-body) .public-distributors-list-head{
  min-height:54px;
  padding:.8rem 1rem!important;
}
body:not(.admin-body) .public-distributors-filters{
  margin:0 12px 10px!important;
}
body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open #distributorsMap{
  width:calc(100% - var(--distributors-panel-width) - var(--distributors-gap))!important;
}
@media(min-width:769px){
  body:not(.admin-body) #toggleDistributorsList,
  body:not(.admin-body) #closeDistributorsList{display:none!important}
}
@media(max-width:768px){
  body:not(.admin-body) .distributors-fullscreen-section{
    height:auto!important;
    min-height:0!important;
  }
  body:not(.admin-body) .distributors-fullscreen-shell,
  body:not(.admin-body) .distributors-map-fullscreen{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  body:not(.admin-body) .distributors-map-toolbar{
    position:relative!important;
    top:auto!important;left:auto!important;right:auto!important;
    border-radius:16px 16px 0 0!important;
  }
  body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
    position:relative!important;
    top:auto!important;left:auto!important;bottom:auto!important;
    width:100%!important;
    height:48vh!important;
    min-height:340px!important;
    border-radius:0!important;
  }
  body:not(.admin-body) .public-distributors-list{
    position:relative!important;
    top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    max-height:620px!important;
    border-radius:0 0 16px 16px!important;
  }
  body:not(.admin-body) #toggleDistributorsList,
  body:not(.admin-body) #closeDistributorsList{display:none!important}
}

/* v104: título fuera del mapa; listado oculto y mapa adaptable */
body:not(.admin-body) .distributors-fullscreen-shell{
  overflow:visible!important;
}
body:not(.admin-body) .distributors-section-title{
  position:relative!important;
  z-index:710;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  width:100%;
  padding:1rem 1.2rem;
  margin:0!important;
  border:1px solid color-mix(in srgb,var(--brand) 18%,#dce5ea);
  border-radius:20px 20px 0 0;
  background:#fff;
}
body:not(.admin-body) .distributors-section-title h2{margin:0;color:var(--brand);font-weight:800}
body:not(.admin-body) .distributors-section-title p{margin:.2rem 0 0;color:var(--surface-muted)}
body:not(.admin-body) .distributors-map-fullscreen{
  --distributors-panel-width:380px;
  position:relative!important;
  height:clamp(520px,68vh,760px)!important;
  min-height:520px!important;
  padding:0!important;
  border-radius:0 0 20px 20px!important;
  overflow:hidden!important;
}
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border-radius:0 0 20px 20px!important;
  transition:width .24s ease!important;
}
body:not(.admin-body) .public-distributors-list{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:var(--distributors-panel-width)!important;
  max-width:calc(100% - 40px)!important;
  height:100%!important;
  border-radius:0 0 20px 0!important;
  transform:translateX(105%)!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:transform .24s ease,opacity .18s ease!important;
  z-index:705!important;
}
body:not(.admin-body) .public-distributors-list.is-open{
  transform:translateX(0)!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open #distributorsMap{
  width:calc(100% - var(--distributors-panel-width))!important;
}
body:not(.admin-body) .distributors-map-toolbar{display:none!important}
@media(max-width:768px){
  body:not(.admin-body) .distributors-section-title{padding:.85rem 1rem;border-radius:16px 16px 0 0}
  body:not(.admin-body) .distributors-section-title p{font-size:.86rem}
  body:not(.admin-body) .distributors-map-fullscreen{height:70vh!important;min-height:460px!important;overflow:hidden!important}
  body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{position:absolute!important;inset:0!important;height:100%!important;width:100%!important}
  body:not(.admin-body) .public-distributors-list{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:min(92vw,380px)!important;max-width:92vw!important;height:100%!important;border-radius:0 0 16px 0!important}
  body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open #distributorsMap{width:calc(100% - min(92vw,380px))!important}
  body:not(.admin-body) #toggleDistributorsList,
  body:not(.admin-body) #closeDistributorsList{display:inline-block!important}
}

/* v105: mapa y listado como columnas contiguas de igual altura */
body:not(.admin-body) .distributors-map-fullscreen{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch!important;
  width:100%!important;
}
body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open{
  grid-template-columns:minmax(0,1fr) minmax(320px,380px)!important;
}
body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
  position:relative!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  border-radius:0 0 0 20px!important;
  transition:none!important;
}
body:not(.admin-body) .public-distributors-list{
  position:relative!important;
  inset:auto!important;
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:0!important;
  transform:none!important;
  opacity:1!important;
  pointer-events:auto!important;
  display:none!important;
  border-left:1px solid rgba(0,0,0,.12)!important;
  border-radius:0 0 20px 0!important;
}
body:not(.admin-body) .public-distributors-list.is-open{
  display:flex!important;
}
body:not(.admin-body) .distributors-map-fullscreen:not(.has-distributors-list-open) #distributorsMap{
  border-radius:0 0 20px 20px!important;
}
body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open #distributorsMap{
  width:100%!important;
}
@media(max-width:768px){
  body:not(.admin-body) .distributors-map-fullscreen.has-distributors-list-open{
    grid-template-columns:minmax(0,1fr) minmax(280px,72vw)!important;
  }
  body:not(.admin-body) .public-distributors-list{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    border-radius:0 0 16px 0!important;
  }
  body:not(.admin-body) .distributors-map-fullscreen #distributorsMap{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
  }
}


/* v106: contraste del encabezado y botón visible junto al título */
body:not(.admin-body) .distributors-section-title{
  background:#ffffff!important;
  color:#1f2937!important;
  border-color:#d8dee5!important;
}
body:not(.admin-body) .distributors-section-title h2{
  color:#1f2937!important;
  text-shadow:none!important;
}
body:not(.admin-body) .distributors-section-title p{
  color:#59636e!important;
}
body:not(.admin-body) #toggleDistributorsList{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  color:#1f2937!important;
  background:#ffffff!important;
  border:1px solid #1f2937!important;
  font-weight:700!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
body:not(.admin-body) #toggleDistributorsList:hover,
body:not(.admin-body) #toggleDistributorsList:focus{
  color:#ffffff!important;
  background:#1f2937!important;
  border-color:#1f2937!important;
}
@media(max-width:576px){
  body:not(.admin-body) .distributors-section-title{
    align-items:flex-start!important;
    gap:.65rem!important;
  }
  body:not(.admin-body) #toggleDistributorsList{
    font-size:.78rem!important;
    padding:.42rem .65rem!important;
  }
}

/* v107 DEFINITIVO: encabezado independiente, botón visible y mapa/listado contiguos */
body:not(.admin-body) #distribuidores .distributors-fullscreen-shell{
  display:block!important;
  width:min(1400px,calc(100% - 32px))!important;
  max-width:1400px!important;
  margin:0 auto!important;
  overflow:visible!important;
}
body:not(.admin-body) #distribuidores .distributors-section-title{
  position:relative!important;
  inset:auto!important;
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  width:100%!important;
  min-height:88px!important;
  padding:16px 20px!important;
  margin:0!important;
  background:var(--brand)!important;
  color:var(--brand-contrast)!important;
  border:0!important;
  border-radius:20px 20px 0 0!important;
  box-shadow:none!important;
}
body:not(.admin-body) #distribuidores .distributors-section-title h2,
body:not(.admin-body) #distribuidores .distributors-section-title p{
  color:var(--brand-contrast)!important;
  text-shadow:none!important;
}
body:not(.admin-body) #distribuidores .distributors-section-title h2{margin:0!important;font-weight:800!important}
body:not(.admin-body) #distribuidores .distributors-section-title p{margin:3px 0 0!important;opacity:.88!important}
body:not(.admin-body) #distribuidores #toggleDistributorsList{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  padding:.55rem .9rem!important;
  color:var(--brand)!important;
  background:var(--brand-contrast)!important;
  border:1px solid var(--brand-contrast)!important;
  border-radius:10px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
body:not(.admin-body) #distribuidores #toggleDistributorsList:hover,
body:not(.admin-body) #distribuidores #toggleDistributorsList:focus{
  filter:brightness(.94)!important;
}
body:not(.admin-body) #distribuidores .distributors-map-fullscreen{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;
  height:clamp(520px,68vh,760px)!important;
  min-height:520px!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:0 0 20px 20px!important;
  background:#e9eef1!important;
}
body:not(.admin-body) #distribuidores .distributors-map-fullscreen.has-distributors-list-open{
  grid-template-columns:minmax(0,1fr) minmax(340px,390px)!important;
}
body:not(.admin-body) #distribuidores #distributorsMap{
  position:relative!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  border-radius:0 0 20px 20px!important;
}
body:not(.admin-body) #distribuidores .has-distributors-list-open #distributorsMap{
  border-radius:0 0 0 20px!important;
}
body:not(.admin-body) #distribuidores #publicDistributorsList{
  position:relative!important;
  inset:auto!important;
  grid-column:2!important;
  grid-row:1!important;
  display:none!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:0!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  border-left:1px solid rgba(0,0,0,.14)!important;
  border-radius:0 0 20px 0!important;
  background:#fff!important;
  overflow:hidden!important;
}
body:not(.admin-body) #distribuidores #publicDistributorsList.is-open{
  display:flex!important;
}
body:not(.admin-body) #distribuidores .public-distributors-list-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
}
@media(max-width:768px){
  body:not(.admin-body) #distribuidores .distributors-fullscreen-shell{width:calc(100% - 16px)!important}
  body:not(.admin-body) #distribuidores .distributors-section-title{min-height:78px!important;padding:12px 14px!important;border-radius:16px 16px 0 0!important}
  body:not(.admin-body) #distribuidores .distributors-section-title p{display:none!important}
  body:not(.admin-body) #distribuidores #toggleDistributorsList{font-size:.76rem!important;padding:.48rem .62rem!important}
  body:not(.admin-body) #distribuidores .distributors-map-fullscreen{height:68vh!important;min-height:460px!important;border-radius:0 0 16px 16px!important}
  body:not(.admin-body) #distribuidores .distributors-map-fullscreen.has-distributors-list-open{grid-template-columns:minmax(0,1fr) minmax(280px,78vw)!important}
  body:not(.admin-body) #distribuidores #publicDistributorsList{border-radius:0 0 16px 0!important}
}


/* V108 - Botones superiores unificados con PEDIR BULLSYNCH */
.navbar .top-nav-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 22px;
  border-radius:999px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  color:var(--brand-contrast)!important;
  background:var(--brand)!important;
  border:1px solid var(--brand)!important;
  text-decoration:none;
}
.navbar .top-nav-button:hover,
.navbar .top-nav-button:focus,
.navbar .top-nav-button:active{
  color:var(--brand-contrast)!important;
  background:color-mix(in srgb,var(--brand) 82%,#000)!important;
  border-color:color-mix(in srgb,var(--brand) 82%,#000)!important;
}
@media(max-width:991.98px){
  .navbar .top-nav-button{width:100%;margin:.35rem 0 0!important;}
}

/* Bullsynch v109 - solicitud geolocalizada */
.pedido-title-block{max-width:920px;margin-inline:auto}.pedido-title-block h2{font-size:clamp(2rem,4vw,3rem);color:#17231f}.pedido-title-block p{font-size:1.05rem;color:#5f6f68}.pedido-form-card{border-radius:24px}.pedido-location-card{height:100%;padding:1rem;border:1px solid rgba(var(--brand-rgb),.18);border-radius:20px;background:color-mix(in srgb,var(--brand) 4%,#fff)}.pedido-map{height:360px;width:100%;border-radius:16px;overflow:hidden;border:1px solid rgba(0,0,0,.12);background:#e9efec}.nearby-heading{display:flex;justify-content:space-between;gap:.75rem;font-weight:800;margin-bottom:.45rem}.nearby-heading small{font-weight:600;color:#6c757d}.nearby-list{display:grid;gap:.5rem;max-height:230px;overflow:auto;padding-right:.2rem}.nearby-item{width:100%;display:flex;justify-content:space-between;align-items:center;gap:.75rem;text-align:left;border:1px solid rgba(var(--brand-rgb),.16);background:#fff;border-radius:13px;padding:.7rem .8rem;color:#1d2c26}.nearby-item:hover{border-color:var(--brand);box-shadow:0 6px 16px rgba(0,0,0,.07)}.nearby-item span{display:flex;flex-direction:column;min-width:0}.nearby-item small{color:#6c757d;white-space:normal}.nearby-item b{white-space:nowrap;color:var(--brand);font-size:.82rem}.nearby-empty{padding:.75rem;border-radius:12px;background:rgba(255,255,255,.72);color:#6c757d;font-size:.9rem}@media(max-width:1199.98px){.pedido-map{height:420px}}@media(max-width:575.98px){.pedido-location-card{padding:.75rem}.pedido-map{height:330px}.pedido-title-block{text-align:left!important}.nearby-item{align-items:flex-start}}


/* Bullsynch v111 - selección simple de quién atiende */
.selected-attention-summary{padding:.75rem .85rem;border:1px solid rgba(var(--brand-rgb),.2);border-radius:13px;background:color-mix(in srgb,var(--brand) 6%,#fff);font-size:.9rem;color:#405048}
.nearby-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:.45rem .5rem .45rem .7rem}
.nearby-item.is-selected{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 8%,#fff);box-shadow:0 0 0 2px rgba(var(--brand-rgb),.1)}
.nearby-focus{display:flex;justify-content:space-between;align-items:center;gap:.75rem;width:100%;min-width:0;padding:.25rem .35rem .25rem 0;border:0;background:transparent;text-align:left;color:inherit}
.nearby-focus span{display:flex;flex-direction:column;min-width:0}.nearby-focus small{color:#6c757d;white-space:normal}.nearby-focus b{white-space:nowrap;color:var(--brand);font-size:.82rem}
.nearby-select{min-width:92px;margin-left:.35rem;white-space:nowrap}
@media(max-width:575.98px){.nearby-item{grid-template-columns:1fr}.nearby-select{width:100%;margin:.45rem 0 0}.nearby-focus{align-items:flex-start}}

/* Bullsynch v113 - mapa y selección de atención en paralelo */
.pedido-location-layout{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.9fr);
  gap:1rem;
  align-items:stretch;
}
.pedido-map-column{min-width:0;display:flex;flex-direction:column}
.pedido-location-layout .pedido-map{height:520px;min-height:520px}
.nearby-network-side{
  height:520px;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:.85rem;
  border:1px solid rgba(var(--brand-rgb),.18);
  border-radius:16px;
  background:#fff;
}
.nearby-network-head{flex:0 0 auto;margin-bottom:.55rem}
.nearby-network-side .selected-attention-summary{
  flex:0 0 auto;
  margin-bottom:.65rem;
  padding:.55rem .65rem;
  font-size:.82rem;
  line-height:1.25;
}
.nearby-columns{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) minmax(0,1fr);
  gap:.7rem;
}
.nearby-network-side .nearby-group{min-height:0;display:flex;flex-direction:column;margin:0!important}
.nearby-network-side .nearby-heading{flex:0 0 auto;margin-bottom:.35rem;font-size:.9rem}
.nearby-network-side .nearby-list{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  gap:.35rem;
  padding-right:.2rem;
  scrollbar-width:thin;
}
.nearby-network-side .nearby-item{
  grid-template-columns:minmax(0,1fr) auto;
  gap:.35rem;
  padding:.38rem .42rem .38rem .55rem;
  border-radius:10px;
}
.nearby-network-side .nearby-focus{gap:.4rem;padding:.1rem .2rem .1rem 0}
.nearby-network-side .nearby-focus strong{font-size:.82rem;line-height:1.15}
.nearby-network-side .nearby-focus small{font-size:.72rem;line-height:1.15}
.nearby-network-side .nearby-focus b{font-size:.72rem}
.nearby-network-side .nearby-select{min-width:78px;margin-left:.15rem;padding:.25rem .42rem;font-size:.72rem}
.nearby-network-side .nearby-empty{padding:.55rem;font-size:.8rem}
@media(max-width:991.98px){
  .pedido-location-layout{grid-template-columns:1fr}
  .pedido-location-layout .pedido-map{height:420px;min-height:420px}
  .nearby-network-side{height:auto;max-height:none;overflow:visible}
  .nearby-columns{grid-template-columns:1fr 1fr;grid-template-rows:none}
  .nearby-network-side .nearby-list{max-height:260px}
}
@media(max-width:767.98px){
  .nearby-columns{grid-template-columns:1fr}
  .pedido-location-layout .pedido-map{height:340px;min-height:340px}
}

/* Bullsynch v114 - formulario de contacto organizado en tarjetas */
.pedido-data-cards{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);
  grid-template-areas:
    "contact vet"
    "contact distributor";
  gap:1rem;
  align-items:stretch;
}
.pedido-data-card{
  padding:1.1rem;
  border:1px solid rgba(var(--brand-rgb),.18);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(21,42,34,.06);
}
.pedido-contact-card{grid-area:contact}
.pedido-vet-card{grid-area:vet}
.pedido-distributor-card{grid-area:distributor}
.pedido-data-card-head{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  margin-bottom:1rem;
  padding-bottom:.8rem;
  border-bottom:1px solid rgba(var(--brand-rgb),.13);
}
.pedido-card-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--brand);
  color:var(--brand-contrast);
  font-weight:800;
}
.pedido-data-card-head h4{margin:0 0 .15rem;font-size:1.05rem;font-weight:800;color:#1c2d26}
.pedido-data-card-head p{margin:0;color:#6b7872;font-size:.82rem;line-height:1.3}
.pedido-data-card .form-label{font-weight:700;font-size:.88rem;margin-bottom:.35rem}
.pedido-distributor-help{padding:.65rem .75rem;border-radius:11px;background:color-mix(in srgb,var(--brand) 5%,#fff);color:#58675f}
@media(max-width:991.98px){
  .pedido-data-cards{grid-template-columns:1fr 1fr;grid-template-areas:"contact contact" "vet distributor"}
}
@media(max-width:767.98px){
  .pedido-data-cards{grid-template-columns:1fr;grid-template-areas:"contact" "vet" "distributor"}
  .pedido-data-card{padding:.9rem}
}


/* Bullsynch v115 - canal veterinario primero y diez opciones visibles sin scroll */
@media(min-width:992px){
  .pedido-location-layout .pedido-map{height:640px;min-height:640px}
  .nearby-network-side{height:640px}
  .nearby-columns{grid-template-rows:1fr 1fr;gap:.45rem}
  .nearby-network-side .nearby-list{
    overflow:visible;
    max-height:none;
    padding-right:0;
    gap:.22rem;
  }
  .nearby-network-side .nearby-heading{margin-bottom:.2rem;font-size:.86rem}
  .nearby-network-side .nearby-item{
    min-height:38px;
    padding:.24rem .32rem .24rem .45rem;
    gap:.25rem;
  }
  .nearby-network-side .nearby-focus{padding:0;gap:.25rem}
  .nearby-network-side .nearby-focus strong{font-size:.76rem;line-height:1.05}
  .nearby-network-side .nearby-focus small{font-size:.66rem;line-height:1.05}
  .nearby-network-side .nearby-focus b{font-size:.66rem}
  .nearby-network-side .nearby-select{min-width:70px;padding:.18rem .3rem;font-size:.66rem}
}
@media(max-width:991.98px){
  .nearby-network-side .nearby-list{overflow:visible;max-height:none}
}

/* Bullsynch v119: paso inicial de zona y contraste global de botones privados */
.pedido-zone-step{margin-bottom:1.5rem;padding:1.1rem 1.2rem;border:1px solid rgba(var(--brand-rgb),.28);border-radius:18px;background:color-mix(in srgb,var(--brand) 6%,#fff);box-shadow:0 10px 26px rgba(0,0,0,.06)}
.pedido-zone-step-head{display:flex;gap:.85rem;align-items:flex-start;margin-bottom:1rem}.pedido-zone-step-head h4{margin:0;font-weight:800}.pedido-zone-step-head p{margin:.15rem 0 0;color:#65726e}
.pedido-form-content{scroll-margin-top:90px}
.admin-body .btn{border-width:1px!important;border-style:solid!important;box-shadow:none}
.admin-body .btn-primary{border-color:color-mix(in srgb,var(--brand) 72%,#000)!important;color:var(--brand-contrast,#fff)!important}
.admin-body .btn-outline-primary{border-color:var(--brand)!important;background:#fff;color:var(--brand)!important}
.admin-body .btn-secondary,.admin-body .btn-outline-secondary{border-color:#59636d!important}
.admin-body .btn-danger,.admin-body .btn-outline-danger{border-color:#9f1c27!important}
.admin-body .btn-success,.admin-body .btn-outline-success{border-color:#146c43!important}
.admin-body .btn-warning,.admin-body .btn-outline-warning{border-color:#8a6700!important}
.admin-body .btn-light{border-color:#8c969f!important}
.admin-body .btn-link{border:1px solid currentColor!important;text-decoration:none!important;padding:.375rem .75rem!important}
@media(max-width:767.98px){.pedido-zone-step .btn{margin-top:.25rem}}

/* Bullsynch v120: flujo guiado ubicación -> red -> contacto */
.pedido-network-step{margin-top:1.25rem;padding:1.1rem 1.2rem;border:1px solid rgba(var(--brand-rgb),.28);border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(0,0,0,.06);scroll-margin-top:90px}
.pedido-form-unlocked{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;border:1px solid rgba(var(--brand-rgb),.25);border-radius:14px;background:color-mix(in srgb,var(--brand) 7%,#fff)}
.pedido-form-unlocked strong,.pedido-form-unlocked small{display:block}.pedido-form-unlocked small{color:#65726e}
.pedido-network-step .pedido-location-layout{margin-top:.5rem}
@media(max-width:767.98px){.pedido-network-step{padding:.9rem}.pedido-map{min-height:380px}}


/* Bullsynch v121: alternativas cuando no figura quién atiende */
.nearby-alternative-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.65rem 0 .8rem}.nearby-alternative-actions .btn{flex:1 1 190px}


/* Bullsynch v122 - 10 + 10 opciones visibles en todo el alto del mapa */
@media(min-width:992px){
  .pedido-location-layout{
    grid-template-columns:minmax(0,1.25fr) minmax(500px,1fr);
    gap:.75rem;
  }
  .pedido-location-layout .pedido-map,
  .nearby-network-side{
    height:680px;
    min-height:680px;
  }
  .nearby-network-side{
    padding:.6rem;
  }
  .nearby-network-head{
    margin-bottom:.25rem;
  }
  .nearby-network-head h5{font-size:.98rem}
  .nearby-network-head small{font-size:.72rem}
  .nearby-network-side .selected-attention-summary{
    margin-bottom:.3rem;
    padding:.35rem .45rem;
    font-size:.72rem;
    line-height:1.15;
  }
  .nearby-alternative-actions{
    margin:.25rem 0 .35rem;
    gap:.3rem;
  }
  .nearby-alternative-actions .btn{
    flex:1 1 0;
    min-height:30px;
    padding:.2rem .4rem;
    font-size:.68rem;
    line-height:1.1;
  }
  .nearby-columns{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:1fr;
    gap:.45rem;
  }
  .nearby-network-side .nearby-group{
    min-width:0;
    padding:.35rem;
    border:1px solid rgba(var(--brand-rgb),.14);
    border-radius:12px;
    background:color-mix(in srgb,var(--brand) 2%,#fff);
  }
  .nearby-network-side .nearby-heading{
    margin-bottom:.22rem;
    padding:0 .1rem;
    font-size:.78rem;
    line-height:1.1;
  }
  .nearby-network-side .nearby-list{
    display:grid;
    grid-template-rows:repeat(10,minmax(0,1fr));
    gap:.18rem;
    overflow:hidden;
    max-height:none;
    padding:0;
  }
  .nearby-network-side .nearby-item{
    min-height:0;
    height:100%;
    grid-template-columns:minmax(0,1fr) 28px;
    gap:.2rem;
    padding:.18rem .18rem .18rem .35rem;
    border-radius:8px;
  }
  .nearby-network-side .nearby-focus{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:.25rem;
    min-width:0;
    padding:0;
  }
  .nearby-network-side .nearby-focus span{min-width:0}
  .nearby-network-side .nearby-focus strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.7rem;
    line-height:1.05;
  }
  .nearby-network-side .nearby-focus small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.59rem;
    line-height:1.05;
  }
  .nearby-network-side .nearby-focus b{
    align-self:center;
    font-size:.59rem;
    line-height:1;
  }
  .nearby-network-side .nearby-select{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    min-width:26px;
    height:26px;
    margin:0;
    padding:0;
    border:1px solid var(--brand);
    border-radius:50%;
    background:#fff;
    color:var(--brand);
    font-size:.9rem;
    font-weight:900;
    line-height:1;
  }
  .nearby-network-side .nearby-select:hover,
  .nearby-network-side .nearby-select:focus,
  .nearby-network-side .nearby-select.is-active{
    background:var(--brand);
    color:var(--brand-contrast,#fff);
  }
}
@media(min-width:992px) and (max-width:1199.98px){
  .pedido-location-layout{grid-template-columns:minmax(0,1fr) minmax(460px,1fr)}
}


/* Bullsynch v123 - contacto limpio y distribuidor más cercano predeterminado */
.pedido-contact-card > .row{margin-top:0}
.pedido-distributor-card .pedido-distributor-help{margin-top:.1rem}
.nearby-item.is-selected{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,#fff);box-shadow:0 0 0 1px rgba(var(--brand-rgb),.12)}

/* Bullsynch v125 - contraste y borde visible en todos los botones */
.btn{
  border-width:1px!important;
  border-style:solid!important;
}
.btn-outline-primary{
  background:#fff!important;
  border-color:color-mix(in srgb,var(--brand) 75%,#000)!important;
  color:color-mix(in srgb,var(--brand) 72%,#000)!important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active{
  background:var(--brand)!important;
  border-color:color-mix(in srgb,var(--brand) 72%,#000)!important;
  color:var(--brand-contrast,#fff)!important;
}
.btn-outline-secondary{
  background:#fff!important;
  border-color:#59636d!important;
  color:#343a40!important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active{
  background:#59636d!important;
  border-color:#404850!important;
  color:#fff!important;
}
.btn-outline-success{
  background:#fff!important;
  border-color:#146c43!important;
  color:#0f5132!important;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active{
  background:#146c43!important;
  border-color:#0f5132!important;
  color:#fff!important;
}
.btn-outline-danger{
  background:#fff!important;
  border-color:#b02a37!important;
  color:#842029!important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger.active{
  background:#b02a37!important;
  border-color:#842029!important;
  color:#fff!important;
}
.btn-outline-warning{
  background:#fff!important;
  border-color:#997404!important;
  color:#664d03!important;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning.active{
  background:#ffc107!important;
  border-color:#997404!important;
  color:#332701!important;
}
.btn-outline-info{
  background:#fff!important;
  border-color:#087990!important;
  color:#055160!important;
}
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active,
.btn-outline-info.active{
  background:#0dcaf0!important;
  border-color:#087990!important;
  color:#052c33!important;
}
.btn-light{
  background:#fff!important;
  border-color:#7b858e!important;
  color:#212529!important;
}
.btn-dark{border-color:#000!important}
.btn-primary{border-color:color-mix(in srgb,var(--brand) 72%,#000)!important}
.btn-secondary{border-color:#404850!important}
.btn-success{border-color:#0f5132!important}
.btn-danger{border-color:#842029!important}
.btn-warning{border-color:#997404!important}
.btn-info{border-color:#087990!important}
.btn:focus-visible{
  outline:3px solid color-mix(in srgb,var(--brand) 35%,transparent)!important;
  outline-offset:2px;
}
.btn:disabled,.btn.disabled{opacity:.62!important}


/* V126: información visible al pasar sobre marcadores públicos */
.leaflet-tooltip.public-map-hover-card{
  max-width:280px;
  padding:9px 11px;
  border:1px solid rgba(24,39,36,.28);
  border-radius:10px;
  background:rgba(255,255,255,.98);
  color:#182724;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  font-size:.82rem;
  line-height:1.35;
  white-space:normal;
}
.leaflet-tooltip.public-map-hover-card strong{display:block;margin-bottom:2px;color:#10211e;font-size:.9rem}
.leaflet-tooltip-top.public-map-hover-card:before{border-top-color:rgba(255,255,255,.98)}


/* V127: misma ficha en hover y clic, con selección desde el mapa */
.public-marker-card{min-width:220px;max-width:290px;color:#182724;font-size:.82rem;line-height:1.3}
.public-marker-card-head{padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid rgba(24,39,36,.14)}
.public-marker-card-head>strong{display:block!important;margin:0!important;color:#10211e!important;font-size:.94rem!important}
.public-marker-card-head>small{display:block;margin-top:2px;color:#526762;font-weight:700}
.public-marker-card-body{display:grid;gap:5px}
.public-marker-card-body>div{display:grid;grid-template-columns:72px 1fr;gap:7px;align-items:start}
.public-marker-card-body span{color:#687b76;font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.public-marker-card-body strong{display:block!important;margin:0!important;color:#182724!important;font-size:.82rem!important;overflow-wrap:anywhere}
.public-marker-card .public-map-select{width:100%;margin-top:9px;padding:.38rem .65rem;font-weight:800;border-width:1px!important}
.leaflet-tooltip.public-map-hover-card{padding:10px 12px}
.leaflet-tooltip.public-map-hover-card .public-marker-card{min-width:210px}
.leaflet-popup.public-map-popup-card .leaflet-popup-content-wrapper{border:1px solid rgba(24,39,36,.24);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.leaflet-popup.public-map-popup-card .leaflet-popup-content{margin:12px 14px}

/* Bullsynch v130 - botones privados siempre visibles */
.admin-body .btn{
  border-width:2px!important;
  border-style:solid!important;
  opacity:1!important;
  text-decoration:none!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.92),0 2px 6px rgba(20,33,43,.16)!important;
}
.admin-body .btn-primary{
  background:var(--brand)!important;
  color:var(--brand-contrast,#fff)!important;
  border-color:color-mix(in srgb,var(--brand) 62%,#000)!important;
}
.admin-body .btn-primary:hover,
.admin-body .btn-primary:focus,
.admin-body .btn-primary:active,
.admin-body .btn-primary.active{
  background:color-mix(in srgb,var(--brand) 78%,#000)!important;
  color:var(--brand-contrast,#fff)!important;
  border-color:color-mix(in srgb,var(--brand) 48%,#000)!important;
}
.admin-body .btn-secondary{
  background:#59636d!important;color:#fff!important;border-color:#343b42!important;
}
.admin-body .btn-success{
  background:#198754!important;color:#fff!important;border-color:#0f5132!important;
}
.admin-body .btn-danger{
  background:#dc3545!important;color:#fff!important;border-color:#842029!important;
}
.admin-body .btn-warning{
  background:#ffc107!important;color:#332701!important;border-color:#8a6700!important;
}
.admin-body .btn-info{
  background:#0dcaf0!important;color:#052c33!important;border-color:#087990!important;
}
.admin-body .btn-light{
  background:#fff!important;color:#212529!important;border-color:#68727c!important;
}
.admin-body .btn-dark{
  background:#212529!important;color:#fff!important;border-color:#000!important;
}
.admin-body .btn-outline-primary,
.admin-body .btn-outline-secondary,
.admin-body .btn-outline-success,
.admin-body .btn-outline-danger,
.admin-body .btn-outline-warning,
.admin-body .btn-outline-info{
  background:#fff!important;
}
.admin-body .btn:hover,
.admin-body .btn:focus,
.admin-body .btn:active,
.admin-body .btn.active{
  box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(var(--brand-rgb),.35)!important;
}
.admin-body .btn:disabled,
.admin-body .btn.disabled{
  opacity:.65!important;
  filter:saturate(.65)!important;
}

/* Bullsynch v131 - contraste garantizado para botones outline privados */
.admin-body .btn-outline-primary{
  background:#ffffff!important;
  color:#174f3f!important;
  border-color:#174f3f!important;
  box-shadow:0 0 0 1px #174f3f,0 2px 6px rgba(20,33,43,.16)!important;
}
.admin-body .btn-outline-primary:hover,
.admin-body .btn-outline-primary:focus,
.admin-body .btn-outline-primary:active,
.admin-body .btn-outline-primary.active{
  background:#174f3f!important;
  color:#ffffff!important;
  border-color:#0d352a!important;
}
.admin-body .btn-outline-secondary{
  background:#ffffff!important;
  color:#343a40!important;
  border-color:#59636d!important;
}
.admin-body .btn-outline-success{
  background:#ffffff!important;
  color:#0f5132!important;
  border-color:#198754!important;
}
.admin-body .btn-outline-danger{
  background:#ffffff!important;
  color:#842029!important;
  border-color:#b02a37!important;
}
.admin-body .btn-outline-warning{
  background:#ffffff!important;
  color:#664d03!important;
  border-color:#997404!important;
}
.admin-body .btn-outline-info{
  background:#ffffff!important;
  color:#055160!important;
  border-color:#087990!important;
}
.admin-body .btn-outline-secondary:hover,
.admin-body .btn-outline-secondary:focus,
.admin-body .btn-outline-secondary:active,
.admin-body .btn-outline-secondary.active{background:#59636d!important;color:#fff!important;border-color:#343a40!important}
.admin-body .btn-outline-success:hover,
.admin-body .btn-outline-success:focus,
.admin-body .btn-outline-success:active,
.admin-body .btn-outline-success.active{background:#198754!important;color:#fff!important;border-color:#0f5132!important}
.admin-body .btn-outline-danger:hover,
.admin-body .btn-outline-danger:focus,
.admin-body .btn-outline-danger:active,
.admin-body .btn-outline-danger.active{background:#b02a37!important;color:#fff!important;border-color:#842029!important}
.admin-body .btn-outline-warning:hover,
.admin-body .btn-outline-warning:focus,
.admin-body .btn-outline-warning:active,
.admin-body .btn-outline-warning.active{background:#ffc107!important;color:#332701!important;border-color:#997404!important}
.admin-body .btn-outline-info:hover,
.admin-body .btn-outline-info:focus,
.admin-body .btn-outline-info:active,
.admin-body .btn-outline-info.active{background:#0dcaf0!important;color:#052c33!important;border-color:#087990!important}

/* Bullsynch v132 - imagen inferior con el mismo criterio visual que la imagen principal */
body:not(.admin-body) .secondary-public-background{
  padding:0 0 28px!important;
  background:transparent!important;
}
body:not(.admin-body) .secondary-public-background > .container{
  width:min(100%,var(--public-media-max-width,1400px))!important;
  max-width:var(--public-media-max-width,1400px)!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body:not(.admin-body) .secondary-public-background-frame{
  position:relative!important;
  width:100%!important;
  min-height:clamp(360px,62vw,760px)!important;
  height:clamp(360px,62vw,760px)!important;
  max-height:none!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body:not(.admin-body) .secondary-public-background-frame .hero-secondary-media,
body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media,
body:not(.admin-body) .secondary-public-background-frame.secondary-is-video .hero-secondary-media{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  min-width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  transform:none!important;
}
@media(max-width:768px){
  body:not(.admin-body) .secondary-public-background{
    padding-bottom:18px!important;
  }
  body:not(.admin-body) .secondary-public-background > .container{
    width:100%!important;
    max-width:100%!important;
  }
  body:not(.admin-body) .secondary-public-background-frame{
    min-height:420px!important;
    height:420px!important;
  }
}


/* Bullsynch v133 - líneas de relación reforzadas e imagen inferior proporcional */
body:not(.admin-body) .secondary-public-background-frame.secondary-is-image{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  background:transparent!important;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:760px!important;
  object-fit:contain!important;
  object-position:center center!important;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-video{
  height:clamp(360px,62vw,760px)!important;
  min-height:clamp(360px,62vw,760px)!important;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-video .hero-secondary-media{
  object-fit:contain!important;
}
@media(max-width:768px){
  body:not(.admin-body) .secondary-public-background-frame.secondary-is-image{
    height:auto!important;
    min-height:0!important;
  }
  body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media{
    width:100%!important;
    height:auto!important;
    max-height:70vh!important;
    object-fit:contain!important;
  }
}


/* v136 bottom media proportional */
.bottom-media img,
.imagen-inferior img,
#imagen-inferior img,
.bottom-image img{
  width:100%;
  height:auto !important;
  max-width:100%;
  object-fit:contain !important;
  display:block;
  margin:0 auto;
}

/* Bullsynch v137 - imagen inferior exactamente al ancho del fondo y alto proporcional */
body:not(.admin-body) .hero-clean > .container,
body:not(.admin-body) .secondary-public-background > .container{
  width:min(100%, var(--public-media-max-width, 1400px))!important;
  max-width:var(--public-media-max-width, 1400px)!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-image{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
}
body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center top!important;
  transform:none!important;
  box-sizing:border-box!important;
}
@media(max-width:768px){
  body:not(.admin-body) .secondary-public-background > .container,
  body:not(.admin-body) .secondary-public-background-frame.secondary-is-image,
  body:not(.admin-body) .secondary-public-background-frame.secondary-is-image .hero-secondary-media{
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
  }
}

/* v138 mobile hero fix */
@media (max-width:768px){.hero,.hero-image,.hero-background,.hero img,.hero-background img{width:100%!important;height:auto!important;max-height:none!important;object-fit:cover!important;object-position:center center!important;border-radius:0!important;}}

/* Bullsynch v140 - volver a v138 y corregir solo la imagen principal en celular */
@media (max-width: 768px){
  body:not(.admin-body) .hero.hero-clean{
    min-height:0!important;
    height:auto!important;
    padding:86px 0 28px!important;
    overflow:visible!important;
  }
  body:not(.admin-body) .hero-clean > .container{
    width:100%!important;
    max-width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body:not(.admin-body) .hero-image-frame.hero-main-is-image{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:0!important;
  }
  body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-bg-media{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center top!important;
    border-radius:0!important;
    transform:none!important;
  }
}


/* Bullsynch v141 - hero móvil proporcional sin espacios y menú contextual visible */
@media (max-width: 991.98px){
  body:not(.admin-body) .navbar{
    z-index:1100!important;
  }
  body:not(.admin-body) .navbar .navbar-toggler{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:46px!important;
    height:42px!important;
    padding:6px!important;
    margin-left:auto!important;
    border:2px solid var(--brand-contrast)!important;
    border-radius:8px!important;
    background:color-mix(in srgb,var(--brand) 78%,#000)!important;
    box-shadow:0 2px 8px rgba(0,0,0,.22)!important;
    opacity:1!important;
  }
  body:not(.admin-body) .navbar .navbar-toggler:focus{
    box-shadow:0 0 0 3px rgba(255,255,255,.38)!important;
  }
  body:not(.admin-body) .navbar .navbar-toggler-icon{
    display:block!important;
    width:24px!important;
    height:24px!important;
    opacity:1!important;
    filter:none!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")!important;
  }
  body:not(.admin-body) .navbar .navbar-collapse{
    margin-top:.55rem!important;
    padding:.65rem!important;
    border:1px solid rgba(255,255,255,.35)!important;
    border-radius:10px!important;
    background:color-mix(in srgb,var(--brand) 92%,#000)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
  }
}

@media (max-width: 768px){
  body:not(.admin-body) .hero.hero-clean{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
    background:transparent!important;
  }
  body:not(.admin-body) .hero-clean > .container{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  body:not(.admin-body) .hero-image-frame.hero-main-is-image{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    line-height:0!important;
  }
  body:not(.admin-body) .hero-image-frame.hero-main-is-image .hero-bg-media{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:center top!important;
    transform:none!important;
    border:0!important;
    border-radius:0!important;
    vertical-align:top!important;
  }
}


/* v142 mobile hero fix */
@media (max-width:768px){
header, .site-header, .navbar{z-index:1000;}
.hero,.hero-section,.hero-banner{
margin-top:0!important;
padding-top:0!important;
}
body.has-fixed-header .hero,
body.has-fixed-header .hero-section{
margin-top:var(--header-height,70px)!important;
}
.hero img,.hero-image,.hero-background{
display:block;
width:100%!important;
height:auto!important;
max-width:100%!important;
border-radius:0!important;
}
}


/* Bullsynch v143 - el hero móvil comienza debajo de la altura real del header fijo */
@media (max-width: 991.98px){
  body:not(.admin-body) .hero.hero-clean{
    margin-top:var(--public-header-height, 72px)!important;
  }
}
@media (min-width: 992px){
  body:not(.admin-body) .hero.hero-clean{
    margin-top:0!important;
  }
}

/* v145: lista unificada de los 20 puntos de atención más cercanos */
.nearby-columns-unified{display:block!important;min-height:0}
.nearby-group-unified{height:100%;min-height:0}
.nearby-list-unified{grid-template-columns:1fr!important;align-content:start;overflow:auto!important;max-height:none!important}
.nearby-kind{display:inline-flex!important;align-self:flex-start;width:max-content;padding:.08rem .36rem;border-radius:999px;font-size:.66rem!important;font-weight:800;line-height:1.25;text-transform:uppercase;letter-spacing:.025em;margin-bottom:.12rem}
.nearby-kind-vet{color:#5b247a!important;background:#f1e6f8}
.nearby-kind-dist{color:#124f8c!important;background:#e5f1fb}

/* v150: mostrar los 20 puntos de atención en dos columnas */
.nearby-list-unified{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:.45rem!important;
  align-content:start;
  overflow:visible!important;
  max-height:none!important;
}
.nearby-list-unified .nearby-item{
  min-width:0;
  width:100%;
}
@media(max-width:767.98px){
  .nearby-list-unified{
    grid-template-columns:1fr!important;
  }
}


/* v151: jerarquía visual del punto de atención */
.nearby-list-unified .nearby-focus .nearby-name{
  display:block;
  order:1;
  font-size:1rem!important;
  line-height:1.2!important;
  font-weight:800!important;
  color:#17231f;
  margin:0 0 .12rem;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nearby-list-unified .nearby-focus .nearby-kind{
  order:2;
  font-size:.62rem!important;
  line-height:1.15!important;
  margin:0 0 .1rem!important;
}
.nearby-list-unified .nearby-focus .nearby-location{
  order:3;
  font-size:.7rem!important;
  line-height:1.15!important;
  color:#6c757d!important;
}
@media(max-width:575.98px){
  .nearby-list-unified .nearby-focus .nearby-name{font-size:.94rem!important}
}


/* v153: lista compacta, sin mostrar el tipo de canal */
.nearby-list-unified .nearby-kind{
  display:none!important;
}
.nearby-list-unified .nearby-focus .nearby-name{
  font-size:.88rem!important;
  line-height:1.12!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden!important;
  overflow-wrap:anywhere;
  margin:0 0 .08rem!important;
}
.nearby-list-unified .nearby-focus .nearby-location{
  font-size:.66rem!important;
  line-height:1.1!important;
}
@media(max-width:575.98px){
  .nearby-list-unified .nearby-focus .nearby-name{
    font-size:.84rem!important;
  }
}

/* Bullsynch v161: hero móvil visible, completo y proporcional */
@media (max-width: 768px) {
  body:not(.admin-body) .hero.hero-clean {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body:not(.admin-body) .hero.hero-clean > .container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  body:not(.admin-body) .hero-image-frame.hero-main-is-image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
  }

  body:not(.admin-body) .hero-image-frame.hero-main-is-image > .hero-bg-backdrop {
    display: none !important;
  }

  body:not(.admin-body) .hero-image-frame.hero-main-is-image > img.hero-bg-media {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
    transform: none !important;
    clip-path: none !important;
    border-radius: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
