:root{
  --blue:#258bd0;
  --blue-dark:#0d4f7a;
  --ink:#102033;
  --muted:#64748b;
  --soft:#f3f8fb;
  --line:#d9e5ec;
  --white:#fff;
  --dark:#0b1725;
  --green:#2f9e75;
  --shadow:0 24px 70px rgba(16,32,51,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f2f9fe 0%,#ffffff 34%,#eef7fd 100%);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,92vw);margin-inline:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(217,229,236,.75)}
.nav{height:82px;display:flex;align-items:center;gap:28px}.brand-logo{width:210px}.nav-links{display:flex;gap:20px;margin-left:auto;align-items:center;font-weight:600;color:#31445a;font-size:.95rem}.nav-links a:hover{color:var(--blue)}.nav-toggle{display:none;border:0;background:#eef6fb;border-radius:12px;padding:10px 12px;font-size:1.2rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:0;border-radius:999px;padding:13px 21px;font-weight:800;cursor:pointer;transition:.2s ease;font-size:.95rem}.btn-primary{background:linear-gradient(135deg,var(--blue),var(--blue-dark));color:#fff;box-shadow:0 12px 25px rgba(37,139,208,.24)}
.btn-whatsapp{background:#25D366;color:#fff;box-shadow:0 12px 25px rgba(37,211,102,.26);border:1px solid rgba(18,140,126,.12)}
.btn-whatsapp:hover{background:#1ebe5d;transform:translateY(-2px);box-shadow:0 16px 34px rgba(37,211,102,.34)}
.whatsapp-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.whatsapp-icon svg{width:22px;height:22px;display:block;fill:currentColor}
.whatsapp-link{display:inline-flex;align-items:center;gap:8px;color:#128C7E!important;font-weight:900!important}
.whatsapp-link .whatsapp-icon{color:#25D366}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(37,139,208,.3)}.btn-secondary{background:#fff;color:var(--blue-dark);border:1px solid var(--line)}.btn-light{background:#fff;color:var(--blue-dark)}.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 12%,rgba(37,139,208,.22) 0,rgba(232,245,252,.86) 28%,rgba(255,255,255,.95) 55%),linear-gradient(135deg,#eaf7ff 0%,#ffffff 48%,#dff2fc 100%);padding:88px 0 70px}.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:58px;align-items:center}.eyebrow{margin:0 0 12px;font-weight:800;text-transform:uppercase;letter-spacing:.11em;font-size:.78rem;color:var(--blue)}h1,h2,h3{line-height:1.08;margin:0;color:var(--ink)}h1{font-size:clamp(2.35rem,5vw,4.9rem);letter-spacing:-.055em;max-width:760px}h2{font-size:clamp(2rem,4vw,3.45rem);letter-spacing:-.04em}h3{font-size:1.35rem}.hero-text{font-size:1.18rem;color:#42566d;max-width:640px;margin:24px 0}.hero-actions{display:flex;gap:14px;flex-wrap:wrap}.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:34px}.hero-stats div{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px}.hero-stats strong{display:block;color:var(--blue-dark);font-size:1.05rem}.hero-stats span{font-size:.82rem;color:var(--muted)}.hero-media{position:relative}.hero-media img{border-radius:34px;box-shadow:var(--shadow);aspect-ratio:1.18/1;object-fit:cover}.floating-card{position:absolute;left:24px;bottom:24px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);padding:18px 20px;border-radius:20px;box-shadow:0 12px 34px rgba(0,0,0,.12);max-width:260px}.floating-card strong{display:block;color:var(--blue-dark)}.floating-card span{font-size:.92rem;color:var(--muted)}.section{padding:86px 0}.section-soft{background:linear-gradient(180deg,#f7fcff 0%,#edf7fd 100%)}.section-dark{background:linear-gradient(135deg,#0a2237,#0b1725);color:#fff}.section-dark h2,.section-dark h3{color:#fff}.section-dark p{color:#d7e5ee}.two-col{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start}.content-card,.card-form{background:#fff;border:1px solid var(--line);border-radius:28px;padding:34px;box-shadow:0 12px 45px rgba(16,32,51,.06)}.section-soft .content-card{box-shadow:none}.values{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.values span,.tag{display:inline-flex;background:#e8f5fc;color:var(--blue-dark);border:1px solid #cde7f7;border-radius:999px;padding:8px 12px;font-size:.82rem;font-weight:800}.section-head{max-width:800px;margin-bottom:34px}.section-head p:not(.eyebrow){color:var(--muted);font-size:1.05rem}.section-head.compact{max-width:690px}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:26px;min-height:270px;display:flex;flex-direction:column;transition:.2s ease}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-card h3{margin:18px 0 10px}.product-card p{color:var(--muted);font-size:.96rem}.text-link{margin-top:auto;color:var(--blue-dark);font-weight:900}.brand-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.brand-grid div{border:1px solid var(--line);background:#fff;border-radius:22px;padding:26px;text-align:center;font-weight:900;color:var(--blue-dark);box-shadow:0 8px 25px rgba(16,32,51,.05)}.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.catalog-card{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);border-radius:26px;padding:28px}.catalog-card p{min-height:112px}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.news-card{border:1px solid var(--line);border-radius:26px;padding:28px;background:#fff}.news-card span{color:var(--blue);font-weight:900;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.news-card h3{margin:10px 0}.news-card p{color:var(--muted)}.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:54px;align-items:start}.contact-list{margin-top:24px}.contact-list p{margin:12px 0;color:#40546a}.contact-list a{color:var(--blue-dark);font-weight:800}.form{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form label{display:grid;gap:7px;font-weight:800;color:#23364c}.form input,.form select,.form textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 14px;font:inherit;background:#fff;color:var(--ink);outline:none}.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,139,208,.13)}.checkbox{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px;font-size:.9rem;font-weight:600!important;color:#40546a!important}.checkbox input{width:auto;margin-top:4px}.form-message{margin:0;color:var(--blue-dark);font-weight:800}.form-message.error{color:#b42318}.legal{background:#f8fafc;font-size:.92rem;color:#53667c}.footer{background:#07111d;color:#d7e5ee;padding:48px 0}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px}.footer-logo{width:210px;background:#fff;border-radius:18px;padding:10px;margin-bottom:14px}.footer a{display:block;color:#fff;margin-top:8px}.modal{display:none;position:fixed;inset:0;z-index:80}.modal.show{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(4,12,20,.65);backdrop-filter:blur(5px)}.modal-dialog{position:relative;background:#fff;border-radius:30px;width:min(760px,92vw);max-height:90vh;overflow:auto;margin:5vh auto;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.25)}.modal-close{position:absolute;right:20px;top:18px;border:0;background:#eef6fb;color:var(--ink);font-size:1.6rem;border-radius:50%;width:42px;height:42px;cursor:pointer}.modal h2{font-size:2.1rem;margin-right:50px}.modal p{color:var(--muted)}
@media (max-width:1050px){.product-grid,.catalog-grid{grid-template-columns:repeat(2,1fr)}.brand-grid{grid-template-columns:repeat(3,1fr)}.hero-grid,.two-col,.contact-grid{grid-template-columns:1fr}.nav-links,.nav-cta{display:none}.nav-toggle{display:block;margin-left:auto}.nav.open .nav-links{display:flex;position:absolute;left:4vw;right:4vw;top:82px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;padding:18px;flex-direction:column;align-items:flex-start}.hero-stats{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:680px){.brand-logo{width:170px}.hero{padding:56px 0}.section{padding:58px 0}.hero-stats,.news-grid,.brand-grid,.product-grid,.catalog-grid,.footer-grid,.form-grid{grid-template-columns:1fr}.hero-actions{flex-direction:column}.btn{width:100%}.content-card,.card-form,.modal-dialog{padding:24px}.catalog-card p{min-height:auto}.floating-card{position:static;margin-top:14px}.modal-dialog{margin:2vh auto;max-height:96vh}}

/* V7 mejoras productos, noticias y TECMA */
.product-grid-visual { align-items: stretch; }
.visual-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-image { width: 100%; height: 190px; background: #f4f8fb; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.visual-card:hover .product-image img { transform: scale(1.04); }
.product-logo { min-height: 64px; display: flex; align-items: center; padding: 18px 22px 6px; }
.product-logo img { max-width: 142px; max-height: 46px; object-fit: contain; }
.visual-card h3, .visual-card p, .visual-card .text-link { margin-left: 22px; margin-right: 22px; }
.visual-card h3 { margin-top: 8px; }
.visual-card .text-link { margin-bottom: 22px; margin-top: auto; padding-top: 10px; }
.section-news { background: linear-gradient(135deg, #eaf7ff 0%, #ffffff 58%, #dff2fc 100%); }
.news-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 26px; align-items: start; }
.news-card { background: #fff; border: 1px solid rgba(20, 52, 83, .10); border-radius: 24px; padding: 28px; box-shadow: 0 18px 45px rgba(14, 35, 57, .08); }
.featured-news { background: linear-gradient(145deg, #112238, #1e7dbb); color: #fff; }
.featured-news .tag { background: rgba(255,255,255,.14); color: #fff; }
.featured-news p { color: rgba(255,255,255,.88); }
.mini-form { display: grid; gap: 14px; margin-top: 18px; }
.mini-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-form label { display: grid; gap: 7px; color: #1d3048; font-weight: 700; }
.mini-form input, .mini-form select, .mini-form textarea { width: 100%; border: 1px solid rgba(20, 52, 83, .16); border-radius: 14px; padding: 12px 13px; font: inherit; color: #122238; background: #fff; }
.mini-form textarea { resize: vertical; }
.mini-form .checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.35; }
.mini-form .checkbox input { width: auto; margin-top: 3px; }
.download-link-inline { display: inline-flex; margin-top: 10px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } .mini-form .form-row { grid-template-columns: 1fr; } .product-image { height: 220px; } }
.brand-grid-logos div { display:flex; align-items:center; justify-content:center; min-height:86px; padding:18px; }
.brand-grid-logos img { max-width: 150px; max-height: 54px; object-fit: contain; }

/* V10: alineación visual de productos, imágenes, textos y logos */
.product-grid.product-grid-visual{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.product-card.visual-card{
  min-height: 560px;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
}
.product-card.visual-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(16,32,51,.13);
}
.product-image{
  height: 235px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg,#eff8fe 0%,#dfeff8 100%);
  border-bottom: 1px solid rgba(217,229,236,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #fff;
}
.visual-card:hover .product-image img{
  transform: none;
}
.product-logo{
  height: 76px;
  min-height: 76px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(217,229,236,.72);
  background: #fff;
}
.product-logo img{
  max-width: 155px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
}
.visual-card h3{
  min-height: 58px;
  margin: 20px 24px 10px;
  display: flex;
  align-items: flex-start;
  font-size: 1.25rem;
}
.visual-card p{
  min-height: 108px;
  margin: 0 24px 18px;
  color: var(--muted);
  font-size: .96rem;
}
.visual-card .text-link{
  margin: auto 24px 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(217,229,236,.7);
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}
.brand-grid.brand-grid-logos{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.brand-grid-logos div{
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
}
.brand-grid-logos img{
  max-width: 180px;
  max-height: 66px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width:1050px){
  .product-grid.product-grid-visual{grid-template-columns: repeat(2, minmax(0, 1fr));}
  .product-card.visual-card{min-height: 540px;}
}
@media (max-width:680px){
  .product-grid.product-grid-visual{grid-template-columns: 1fr;}
  .product-card.visual-card{min-height: auto;}
  .product-image{height: 230px;}
  .visual-card h3,.visual-card p,.visual-card .text-link{min-height: auto;}
  .brand-grid.brand-grid-logos{grid-template-columns: 1fr;}
}

/* V11: Makita sin logo en foto y logos de productos perfectamente alineados */
.product-logo{
  height: 82px;
  min-height: 82px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-logo img{
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-card.visual-card{
  display: flex;
  flex-direction: column;
}
.product-image{
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.visual-card h3{
  min-height: 60px;
  display: flex;
  align-items: flex-start;
}
.visual-card p{
  min-height: 112px;
}
.visual-card .text-link{
  margin-top: auto;
}


/* v13 - iconos frescos en Quiénes somos y descarga visible */
.values.values-fresh{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:26px}
.values.values-fresh span{display:flex;align-items:center;gap:10px;justify-content:center;text-align:center;background:linear-gradient(135deg,#ffffff,#eaf7ff);border:1px solid #cde7f7;border-radius:18px;padding:16px 14px;color:var(--blue-dark);font-size:.94rem;font-weight:900;box-shadow:0 10px 24px rgba(16,32,51,.06)}
.values.values-fresh span strong{font-size:1.7rem;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.download-link-inline{display:inline-flex;margin-top:14px;text-decoration:none}
@media (max-width:900px){.values.values-fresh{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.values.values-fresh{grid-template-columns:1fr}.values.values-fresh span{justify-content:flex-start}}


/* Acceso privado TECMA */
.section-access { padding-top: 48px; }
.tecma-access-card { max-width: 760px; margin: 0 auto; }
.tecma-protected[hidden] { display: none !important; }
.password-field { position: relative; display: block; width: 100%; }
.password-field input,
.mini-form .password-field input {
  width: 100%;
  padding-right: 56px !important;
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.password-field .password-toggle,
.mini-form .password-field .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  line-height: 1;
  z-index: 2;
}
.password-field .password-toggle:hover,
.mini-form .password-field .password-toggle:hover { background: rgba(17, 24, 39, .08); }
.password-field .password-toggle:active,
.mini-form .password-field .password-toggle:active { transform: translateY(-50%) scale(.96); }
.password-toggle .eye-icon { width: 22px; height: 22px; fill: currentColor; display: block; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }



/* Ajuste definitivo ojo clave TECMA v25 */
.access-password-wrap,
.mini-form .access-password-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.access-password-wrap input,
.mini-form .access-password-wrap input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 58px !important;
}
.access-password-eye,
.mini-form .access-password-eye {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #111827 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  z-index: 10 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.access-password-eye:hover { background: rgba(17,24,39,.08) !important; }
.access-password-eye .eye-icon { width: 23px !important; height: 23px !important; fill: currentColor !important; pointer-events: none !important; }
.access-password-eye .eye-closed { display: none !important; }
.access-password-eye.is-visible .eye-open { display: none !important; }
.access-password-eye.is-visible .eye-closed { display: block !important; }


/* TECMA private password field - v27 */
.tecma-password-box {
  position: relative;
  display: block;
  width: 100%;
}
.tecma-password-box input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 56px !important;
}
.tecma-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 50;
  border-radius: 999px;
}
.tecma-eye-btn:hover,
.tecma-eye-btn:focus-visible {
  background: rgba(15, 23, 42, 0.08);
  outline: none;
}
.tecma-eye-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
  display: block;
}
.tecma-eye-btn .tecma-eye-closed { display: none; }
.tecma-eye-btn.is-visible .tecma-eye-open { display: none; }
.tecma-eye-btn.is-visible .tecma-eye-closed { display: block; }

/* v28 Noticias LinkedIn y aliados */
.linkedin-news-grid { grid-template-columns: repeat(3, 1fr) !important; }
.linkedin-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .linkedin-news-grid { grid-template-columns: 1fr !important; } }

/* v29: Aliados con logotipos uniformes */
.brand-grid.brand-grid-logos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.brand-grid-logos div {
  height: 128px;
  min-height: 128px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-grid-logos img {
  width: 170px;
  height: 62px;
  max-width: 170px;
  max-height: 62px;
  object-fit: contain;
  object-position: center;
  display: block;
}
@media (max-width: 1050px) {
  .brand-grid.brand-grid-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .brand-grid.brand-grid-logos { grid-template-columns: 1fr; }
  .brand-grid-logos div { height: 116px; min-height: 116px; }
  .brand-grid-logos img { width: 160px; height: 58px; max-width: 160px; max-height: 58px; }
}

/* v30: aumentar Magnut y Makita un 30% en Aliados */
#marcas .brand-grid-logos div:nth-child(1) img,
#marcas .brand-grid-logos div:nth-child(4) img {
  width: 221px;
  height: 81px;
  max-width: 221px;
  max-height: 81px;
}

@media (max-width: 680px) {
  #marcas .brand-grid-logos div:nth-child(1) img,
  #marcas .brand-grid-logos div:nth-child(4) img {
    width: 208px;
    height: 75px;
    max-width: 208px;
    max-height: 75px;
  }
}

/* v31: Aliados - logos Magnut y Makita al mismo tamaño visual que Baygar */
#marcas .brand-grid-logos div {
  height: 142px;
  min-height: 142px;
  padding: 24px 30px;
}
#marcas .brand-grid-logos img {
  width: auto !important;
  height: 72px !important;
  max-width: 260px !important;
  max-height: 72px !important;
  object-fit: contain;
  object-position: center;
}
#marcas .brand-grid-logos div:nth-child(1) img,
#marcas .brand-grid-logos div:nth-child(4) img {
  width: auto !important;
  height: 72px !important;
  max-width: 260px !important;
  max-height: 72px !important;
}
@media (max-width: 680px) {
  #marcas .brand-grid-logos div { height: 126px; min-height: 126px; }
  #marcas .brand-grid-logos img,
  #marcas .brand-grid-logos div:nth-child(1) img,
  #marcas .brand-grid-logos div:nth-child(4) img {
    width: auto !important;
    height: 68px !important;
    max-width: 240px !important;
    max-height: 68px !important;
  }
}


/* v32: Aliados - logos grandes de verdad */
#marcas .brand-grid.brand-grid-logos{
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 28px !important;
}
#marcas .brand-grid-logos div{
  min-height: 190px !important;
  height: 190px !important;
  padding: 28px 42px !important;
  overflow: visible !important;
}
#marcas .brand-grid-logos img{
  width: 100% !important;
  height: auto !important;
  max-width: 380px !important;
  max-height: 118px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}
#marcas .brand-grid-logos div:nth-child(1) img,
#marcas .brand-grid-logos div:nth-child(4) img{
  width: 100% !important;
  height: auto !important;
  max-width: 430px !important;
  max-height: 126px !important;
}
@media (max-width: 900px){
  #marcas .brand-grid.brand-grid-logos{ grid-template-columns: 1fr !important; }
  #marcas .brand-grid-logos div{ min-height: 170px !important; height: 170px !important; padding: 24px 32px !important; }
  #marcas .brand-grid-logos img{ max-width: 340px !important; max-height: 105px !important; }
  #marcas .brand-grid-logos div:nth-child(1) img,
  #marcas .brand-grid-logos div:nth-child(4) img{ max-width: 380px !important; max-height: 115px !important; }
}

/* v33: Aliados - Magnut y Makita 100% más grandes y visibles */
#marcas .brand-grid.brand-grid-logos{
  grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
  gap: 34px !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#marcas .brand-grid-logos div{
  min-height: 270px !important;
  height: 270px !important;
  padding: 28px 38px !important;
  overflow: visible !important;
}
#marcas .brand-grid-logos img{
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}
/* Magnut y Makita: el doble de tamaño visual */
#marcas .brand-grid-logos div:nth-child(1) img,
#marcas .brand-grid-logos div:nth-child(4) img{
  width: 96% !important;
  max-width: 760px !important;
  height: auto !important;
  max-height: 210px !important;
  transform: scale(1.18) !important;
}
/* Baygar y Floema se quedan equilibrados, sin competir */
#marcas .brand-grid-logos div:nth-child(2) img,
#marcas .brand-grid-logos div:nth-child(3) img{
  width: auto !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 140px !important;
}
@media (max-width: 900px){
  #marcas .brand-grid.brand-grid-logos{grid-template-columns: 1fr !important; max-width: 640px !important;}
  #marcas .brand-grid-logos div{min-height: 220px !important; height: 220px !important; padding: 24px 28px !important;}
  #marcas .brand-grid-logos div:nth-child(1) img,
  #marcas .brand-grid-logos div:nth-child(4) img{width: 94% !important; max-width: 560px !important; max-height: 170px !important; transform: scale(1.08) !important;}
}

/* v34 - Fondo corporativo Urbatec más profesional */
main{background:linear-gradient(180deg,rgba(234,247,255,.65) 0%,rgba(255,255,255,.98) 24%,rgba(239,248,254,.82) 100%)}
.section{position:relative;overflow:hidden}
.section:not(.section-dark)::before{content:"";position:absolute;inset:auto -12% -120px auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(37,139,208,.10),rgba(37,139,208,0) 68%);pointer-events:none;z-index:0}
.section .container{position:relative;z-index:1}
.content-card,.card-form,.product-card,.news-card,.brand-grid div{background:rgba(255,255,255,.94);backdrop-filter:blur(8px)}

/* v35 - Productos: logos homogéneos y más grandes */
#productos .product-logo{
  height: 104px !important;
  min-height: 104px !important;
  padding: 18px 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.98) !important;
}
#productos .product-logo img{
  width: 230px !important;
  height: 74px !important;
  max-width: 230px !important;
  max-height: 74px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}
/* Refuerzo para logos horizontales que visualmente quedaban pequeños */
#productos .product-logo img[src*="magnut"],
#productos .product-logo img[src*="makita"],
#productos .product-logo img[src*="baygar"],
#productos .product-logo img[src*="floema"],
#productos .product-logo img[src*="urbatec"]{
  width: 230px !important;
  height: 74px !important;
  max-width: 230px !important;
  max-height: 74px !important;
}
@media (max-width:680px){
  #productos .product-logo{height: 96px !important; min-height: 96px !important;}
  #productos .product-logo img{width: 210px !important; height: 68px !important; max-width: 210px !important; max-height: 68px !important;}
}


/* v36 - Productos: Magnut y Makita realmente más grandes */
#productos .product-logo{
  height: 132px !important;
  min-height: 132px !important;
  padding: 12px 18px !important;
  overflow: visible !important;
}
#productos .product-logo img{
  object-fit: contain !important;
  object-position: center !important;
}
#productos .product-logo img[src*="magnut"],
#productos .product-logo img[src*="makita"]{
  width: 96% !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 112px !important;
  transform: scale(1.34) !important;
  transform-origin: center center !important;
}
#productos .product-logo img[src*="baygar"],
#productos .product-logo img[src*="floema"],
#productos .product-logo img[src*="urbatec"]{
  width: auto !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: 92px !important;
}
@media (max-width:680px){
  #productos .product-logo{height: 118px !important; min-height: 118px !important;}
  #productos .product-logo img[src*="magnut"],
  #productos .product-logo img[src*="makita"]{
    width: 94% !important;
    max-width: 320px !important;
    max-height: 96px !important;
    transform: scale(1.2) !important;
  }
}


/* v42 - Iconos elegantes y portada dinámica */
.values.values-premium span{
  justify-content:flex-start !important;
  gap:14px !important;
  min-height:92px !important;
  padding:18px 20px !important;
  background:linear-gradient(145deg, rgba(255,255,255,.98), rgba(230,246,255,.92)) !important;
  border:1px solid rgba(37,139,208,.22) !important;
  box-shadow:0 18px 38px rgba(13,72,113,.10) !important;
}
.value-icon{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  border-radius:16px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 10px 24px rgba(13,72,113,.16) !important;
  overflow:hidden !important;
}
.value-icon svg{width:27px;height:27px;fill:#fff;display:block}
.value-innovation{background:linear-gradient(135deg,#2a9be5,#0b5f9f)}
.value-saving{background:linear-gradient(135deg,#2ec4b6,#157a9b)}
.value-security{background:linear-gradient(135deg,#3a7bd5,#123b73)}
.value-circular{background:linear-gradient(135deg,#3bcf8e,#0b8f5d)}

.hero-slider{
  position:relative;
  min-height:520px;
  border-radius:34px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:linear-gradient(135deg,#eaf7ff,#ffffff);
}
.hero-slider .hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:0;
  opacity:0;
  transform:scale(1.035);
  transition:opacity 1.1s ease, transform 6.5s ease;
  box-shadow:none;
  aspect-ratio:auto;
}
.hero-slider .hero-slide.active{
  opacity:1;
  transform:scale(1);
}
.hero-slider::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(4,18,32,0) 54%,rgba(4,18,32,.28) 100%);
  pointer-events:none;
}
.hero-dots{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:2;
}
.hero-dots span{
  width:9px;
  height:9px;
  border-radius:999px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.8);
  transition:.25s ease;
}
.hero-dots span.active{
  width:28px;
  background:#fff;
}
@media (max-width:1050px){
  .hero-slider{min-height:460px;}
}
@media (max-width:680px){
  .hero-slider{min-height:340px;border-radius:26px;}
  .values.values-premium span{justify-content:flex-start !important;}
}

/* v43: valores con emoticonos pequeños, elegantes y bien alineados */
.values.values-elegant{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:26px !important;
}
.values.values-elegant span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  min-height:72px !important;
  padding:14px 16px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(235,248,255,.9)) !important;
  border:1px solid rgba(37,139,208,.22) !important;
  color:#0b4f7a !important;
  font-size:1rem !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
  box-shadow:0 10px 24px rgba(16,32,51,.055) !important;
  white-space:normal !important;
}
.values.values-elegant .value-emoji{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:1.15rem !important;
  line-height:1 !important;
}
.values.values-elegant .value-icon,
.values.values-elegant .value-icon svg{
  display:none !important;
}
@media (max-width:900px){
  .values.values-elegant{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:520px){
  .values.values-elegant{grid-template-columns:1fr !important;}
  .values.values-elegant span{justify-content:flex-start !important;text-align:left !important;}
}

/* v44 - Professional growth phase: product pages, projects, distributors, news */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.case-card {
  overflow: hidden;
  border: 1px solid rgba(40, 143, 214, 0.18);
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 22px 60px rgba(16, 83, 132, 0.10);
}
.case-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.case-card div { padding: 22px; }
.case-card h3 { margin: 10px 0 10px; font-size: 1.25rem; }
.case-card p { color: #53687f; line-height: 1.65; }
.subhero {
  padding: 86px 0 58px;
  background: radial-gradient(circle at top right, rgba(31,143,214,.20), transparent 35%), linear-gradient(135deg, #e9f7ff 0%, #ffffff 74%);
}
.narrow { max-width: 900px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 56px;
  align-items: center;
}
.product-detail-hero h1,
.subhero h1 { font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: .95; margin: 0 0 22px; color: #102037; }
.detail-media {
  background: rgba(255,255,255,.82);
  padding: 18px;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(16, 83, 132, 0.14);
  border: 1px solid rgba(40,143,214,.16);
}
.detail-media > img { width:100%; height: 410px; object-fit: cover; border-radius: 22px; display:block; }
.detail-logo { height: 80px; display:flex; align-items:center; justify-content:center; margin-top: 16px; }
.detail-logo img { max-height: 62px; max-width: 240px; object-fit: contain; }
.benefit-list { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.benefit-item {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(40,143,214,.16);
  box-shadow: 0 14px 38px rgba(16,83,132,.07);
}
.benefit-item strong { display:block; color:#0b4e7a; margin-bottom: 8px; }
.benefit-item span { color:#53687f; line-height:1.55; }
.cta-band {
  display:flex;
  justify-content:space-between;
  gap: 26px;
  align-items:center;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(232,247,255,.86));
  border: 1px solid rgba(40,143,214,.17);
  box-shadow: 0 24px 60px rgba(16,83,132,.10);
}
.cta-band h2 { margin: 0 0 8px; }
.article .content-card { font-size: 1.08rem; line-height: 1.75; }
.article h2 { margin-top: 34px; color: #102037; }
.distributor-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.distributor-grid div {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(40,143,214,.16);
}
.distributor-grid strong { display:block; font-size: 1.2rem; color:#0b4e7a; margin-bottom: 8px; }
.distributor-grid span { color:#53687f; line-height:1.55; }
ul.clean-list { margin: 16px 0 0; padding-left: 20px; color:#53687f; line-height:1.9; }
.values-elegant .value-emoji { font-size: 1.2rem; line-height: 1; margin-right: 8px; filter: saturate(.92); }
.values-elegant span { gap: 2px; justify-content: center; }
@media (max-width: 980px) {
  .case-grid, .product-detail-grid, .benefit-list, .distributor-grid { grid-template-columns: 1fr; }
  .detail-media > img { height: 300px; }
  .cta-band { flex-direction: column; align-items:flex-start; }
}


/* v47 - Valores: emoticonos pequeños, alineación profesional */
.values.values-clean{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
  margin-top:28px !important;
  align-items:stretch !important;
}
.values.values-clean span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  min-height:74px !important;
  padding:14px 18px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#ffffff 0%,#f0faff 100%) !important;
  border:1px solid rgba(37,139,208,.22) !important;
  box-shadow:0 10px 28px rgba(16,32,51,.06) !important;
  color:var(--blue-dark) !important;
  text-align:center !important;
  line-height:1.2 !important;
}
.values.values-clean .value-emoji{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:22px !important;
  height:22px !important;
  flex:0 0 22px !important;
  margin:0 !important;
  padding:0 !important;
  font-size:18px !important;
  line-height:1 !important;
  font-style:normal !important;
  font-weight:400 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
}
.values.values-clean em{
  font-style:normal !important;
  font-size:1rem !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
}
@media (max-width:900px){
  .values.values-clean{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:520px){
  .values.values-clean{grid-template-columns:1fr !important;}
  .values.values-clean span{justify-content:flex-start !important;text-align:left !important;}
}

/* v48 - Ajuste conjunto: emoticonos profesionales y logos homogéneos */
.values.values-clean{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}
.values.values-clean span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:11px !important;
  min-height:78px !important;
  padding:16px 18px !important;
  border-radius:20px !important;
  background:linear-gradient(135deg,#ffffff 0%,#eef9ff 100%) !important;
  border:1px solid rgba(37,139,208,.24) !important;
  box-shadow:0 14px 34px rgba(16,83,132,.07) !important;
  overflow:hidden !important;
}
.values.values-clean .value-emoji{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:24px !important;
  height:24px !important;
  flex:0 0 24px !important;
  margin:0 !important;
  padding:0 !important;
  font-size:19px !important;
  line-height:1 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.values.values-clean em{
  display:block !important;
  font-style:normal !important;
  font-size:1rem !important;
  font-weight:900 !important;
  line-height:1.18 !important;
  color:#0b4e7a !important;
  text-align:center !important;
}

/* Productos: misma caja visual y logos más uniformes */
#productos .product-logo{
  height:106px !important;
  min-height:106px !important;
  padding:14px 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(255,255,255,.78) !important;
  border-radius:18px !important;
  overflow:hidden !important;
}
#productos .product-logo img{
  width:250px !important;
  height:74px !important;
  max-width:92% !important;
  max-height:74px !important;
  object-fit:contain !important;
  display:block !important;
}
#productos .product-logo img[src*="magnut"],
#productos .product-logo img[src*="makita"],
#productos .product-logo img[src*="baygar"],
#productos .product-logo img[src*="floema"],
#productos .product-logo img[src*="urbatec"]{
  width:250px !important;
  height:74px !important;
  max-width:92% !important;
  max-height:74px !important;
  object-fit:contain !important;
  transform:none !important;
}

/* Aliados/Marcas: todos los logos centrados y con tamaño visual homogéneo */
#marcas .brand-grid.brand-grid-logos{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:22px !important;
  align-items:stretch !important;
}
#marcas .brand-grid-logos div{
  min-height:160px !important;
  height:160px !important;
  padding:26px 24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:24px !important;
  overflow:hidden !important;
}
#marcas .brand-grid-logos img,
#marcas .brand-grid-logos div:nth-child(1) img,
#marcas .brand-grid-logos div:nth-child(2) img,
#marcas .brand-grid-logos div:nth-child(3) img,
#marcas .brand-grid-logos div:nth-child(4) img{
  width:260px !important;
  height:92px !important;
  max-width:92% !important;
  max-height:92px !important;
  object-fit:contain !important;
  transform:none !important;
  display:block !important;
}
@media (max-width:980px){
  #marcas .brand-grid.brand-grid-logos{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .values.values-clean{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:560px){
  #marcas .brand-grid.brand-grid-logos{grid-template-columns:1fr !important;}
  #marcas .brand-grid-logos div{height:142px !important; min-height:142px !important;}
  #productos .product-logo{height:94px !important; min-height:94px !important;}
  #productos .product-logo img{height:64px !important; max-height:64px !important;}
  .values.values-clean{grid-template-columns:1fr !important;}
}

/* v49 - Corrección final: aumentar SOLO Magnut y Makita sin tocar los demás logos */
#productos .product-logo img[src*="magnut"],
#productos .product-logo img[src*="makita"]{
  width: 340px !important;
  height: 100px !important;
  max-width: 108% !important;
  max-height: 100px !important;
  object-fit: contain !important;
  transform: scale(1.18) !important;
  transform-origin: center center !important;
}
#productos .product-logo:has(img[src*="magnut"]),
#productos .product-logo:has(img[src*="makita"]){
  height: 118px !important;
  min-height: 118px !important;
  padding: 8px 10px !important;
}
#marcas .brand-grid-logos div:nth-child(1) img,
#marcas .brand-grid-logos div:nth-child(4) img{
  width: 360px !important;
  height: 122px !important;
  max-width: 108% !important;
  max-height: 122px !important;
  object-fit: contain !important;
  transform: scale(1.18) !important;
  transform-origin: center center !important;
}

/* v50 - Noticias privadas y portada dinámica */
.news-thumb{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:18px;
  border:1px solid rgba(217,229,236,.8);
}
.featured-news .news-thumb{
  border-color:rgba(255,255,255,.28);
}
.news-detail-image{
  width:100%;
  max-height:440px;
  object-fit:cover;
  border-radius:24px;
  margin:0 0 28px;
  border:1px solid rgba(217,229,236,.8);
}
.admin-main .section-head h1{
  font-size:clamp(2.4rem,5vw,4.6rem);
}
.admin-login{
  max-width:520px;
}
.admin-news-layout{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
  gap:26px;
  align-items:start;
}
.admin-card-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:22px;
}
.admin-card-head h2{
  font-size:1.9rem;
}
.admin-small-btn{
  width:auto;
  padding:10px 16px;
}
.admin-news-list{
  display:grid;
  gap:16px;
}
.admin-news-item{
  display:grid;
  grid-template-columns:108px minmax(0,1fr);
  gap:14px;
  padding:16px;
  border:1px solid rgba(217,229,236,.85);
  border-radius:18px;
  background:#fff;
}
.admin-news-item img{
  width:108px;
  height:96px;
  object-fit:cover;
  border-radius:14px;
}
.admin-news-item span{
  display:block;
  color:var(--blue);
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}
.admin-news-item h3{
  font-size:1.05rem;
  margin:0 0 6px;
}
.admin-news-item p{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
}
.admin-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
  align-items:center;
}
.admin-actions button{
  border:0;
  background:#eef6fb;
  color:var(--blue-dark);
  border-radius:999px;
  padding:7px 12px;
  font-weight:800;
  cursor:pointer;
}
.admin-actions button[data-delete]{
  background:#fff0f0;
  color:#a11b1b;
}
.admin-muted{
  margin:0;
  color:var(--muted);
}
@media (max-width:980px){
  .admin-news-layout{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .admin-news-item{grid-template-columns:1fr;}
  .admin-news-item img{width:100%;height:170px;}
}

/* v51 - Admin general y mapa de distribuidores */
.admin-hub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.admin-hub-card{
  display:block;
  transition:.2s ease;
}
.admin-hub-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.admin-hub-card span{
  display:inline-flex;
  margin-bottom:14px;
  color:var(--blue);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
}
.province-selector{
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  margin:0;
}
.province-selector legend{
  padding:0 8px;
  font-weight:900;
  color:#23364c;
}
.province-checks{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  max-height:320px;
  overflow:auto;
  padding-right:8px;
}
.province-checks label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border:1px solid rgba(217,229,236,.85);
  border-radius:12px;
  background:#fff;
  font-weight:700;
  font-size:.88rem;
}
.province-checks input{
  width:auto;
}
.admin-distributor-item{
  grid-template-columns:1fr;
}
.distributor-map-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:28px;
  align-items:start;
}
.spain-map-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(40,143,214,.16);
  border-radius:28px;
  box-shadow:0 22px 60px rgba(16,83,132,.10);
  padding:24px;
}
.spain-map{
  position:relative;
  height:620px;
  border-radius:24px;
  background:linear-gradient(145deg,#eef9ff,#ffffff);
  border:1px solid rgba(37,139,208,.16);
  overflow:hidden;
}
.spain-silhouette{
  position:absolute;
  inset:12px 18px 8px 8px;
  width:calc(100% - 26px);
  height:calc(100% - 20px);
  filter:drop-shadow(0 22px 42px rgba(16,83,132,.13));
}
.spain-land{
  fill:#e3f6ff;
  stroke:#79bfe8;
  stroke-width:2.5;
}
.portugal-land{
  fill:#e8f8ef;
  stroke:#6ec39a;
  stroke-width:2.4;
}
.spain-coast{
  fill:none;
  stroke:#2b93d2;
  stroke-width:3;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.portugal-coast{
  fill:none;
  stroke:#2f9e75;
  stroke-width:3;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.spain-river{
  fill:none;
  stroke:rgba(37,139,208,.28);
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-dasharray:4 8;
}
.spain-map button{
  position:absolute;
  left:calc(var(--x) * 1%);
  top:calc(var(--y) * 1%);
  transform:translate(-50%,-50%);
  border:1px solid rgba(37,139,208,.24);
  background:#fff;
  color:#143550;
  border-radius:999px;
  padding:7px 10px;
  min-width:54px;
  min-height:32px;
  font-size:.73rem;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(16,83,132,.08);
  z-index:1;
  transition:.18s ease;
}
.spain-map button:hover,
.spain-map button.is-selected,
.island-map button:hover,
.island-map button.is-selected{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
  transform:translate(-50%,-50%) scale(1.05);
}
.spain-map button.has-distributor,
.island-map button.has-distributor{
  border-color:rgba(47,158,117,.55);
  box-shadow:0 0 0 3px rgba(47,158,117,.12),0 8px 20px rgba(16,83,132,.08);
}
.island-map{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.island-map button{
  position:static;
  transform:none;
  border:1px solid rgba(37,139,208,.24);
  background:#fff;
  color:#143550;
  border-radius:999px;
  padding:9px 12px;
  font-size:.82rem;
  font-weight:900;
  cursor:pointer;
}
.island-map button:hover,
.island-map button.is-selected{
  transform:none;
}
.distributor-result{
  position:sticky;
  top:104px;
}
.distributor-result h2{
  font-size:2rem;
  margin-bottom:12px;
}
.distributor-contact-lines{
  display:grid;
  gap:10px;
  margin:18px 0;
}
.distributor-contact-lines a{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  color:var(--blue-dark);
  font-weight:900;
  border-bottom:1px solid rgba(37,139,208,.3);
}
@media (max-width:1100px){
  .distributor-map-layout{grid-template-columns:1fr;}
  .distributor-result{position:static;}
}
@media (max-width:760px){
  .admin-hub-grid,.province-checks{grid-template-columns:1fr;}
  .spain-map{height:760px;}
  .spain-map button{font-size:.68rem;min-width:48px;padding:6px 8px;}
}

.map-actions{
  display:grid;
  grid-template-columns:auto minmax(220px,1fr);
  gap:12px;
  align-items:center;
  margin-bottom:16px;
}
.map-actions label{
  font-weight:900;
  color:#143550;
}
.map-actions select{
  width:100%;
  border:1px solid rgba(37,139,208,.22);
  border-radius:12px;
  background:#fff;
  color:#143550;
  font:inherit;
  font-weight:800;
  padding:11px 14px;
}
.map-loading{
  margin:auto;
  color:#557084;
  font-weight:800;
}
.iberia-map{
  display:block;
  width:100%;
  height:100%;
}
.map-region{
  vector-effect:non-scaling-stroke;
  cursor:pointer;
  outline:none;
  transition:fill .16s ease, stroke .16s ease, filter .16s ease;
}
.spain-province{
  fill:var(--region-fill,#e5f5fc);
  stroke:var(--region-stroke,#7bbce0);
  stroke-width:1.15;
}
.portugal-zone{
  fill:var(--region-fill,#e6f6ee);
  stroke:var(--region-stroke,#33a26f);
  stroke-width:1.6;
}
.map-region:hover,
.map-region.is-selected{
  fill:var(--region-hover,#238bd0);
  stroke:#0f5c91;
  filter:drop-shadow(0 6px 10px rgba(16,83,132,.26));
}
.map-region.has-distributor{
  stroke:#239265;
  stroke-width:2.4;
}
.map-region.has-distributor:hover,
.map-region.has-distributor.is-selected{
  fill:var(--region-hover,#239265);
  stroke:#116a47;
}
@media (max-width:720px){
  .map-actions{
    grid-template-columns:1fr;
  }
  .spain-map{
    height:520px;
  }
}
