:root {
  --bg-2: #f5f5f7;
  --bg-3: #ececef;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent-2: #ff2a3a;
  --accent-glow: rgba(228, 18, 31, 0.35);
  --amb-blue: #2b7fd4;
  --amb-green: #1f9254;
  --amb-teal: #16a394;
  --amb-purple: #7a4fd1;
  --amb-orange: #e08a1e;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.button-primary, .button-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.button-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--accent-glow);
}
.button-primary.lg { padding: 16px 26px; font-size: 14px; }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999; will-change: transform; }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,0,0,0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
  mix-blend-mode: difference;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
}
.cursor-dot {
  position: absolute; left: 0; top: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.15s var(--ease), height 0.15s var(--ease), background 0.15s var(--ease);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }
.cursor.is-hover .cursor-dot { background: #fff; }
.cursor.is-click .cursor-ring { width: 18px; height: 18px; border-color: var(--accent); transition: width 0.08s, height 0.08s; }
.cursor.is-click .cursor-dot { width: 10px; height: 10px; background: var(--accent); }
@media (max-width: 900px) { .cursor { display: none; } }

/* =========================================================
   SOLUCIONES POR PROBLEMA · plantilla base compartida
   ========================================================= */
.sol-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.sol-section--last { border-bottom: 0; }

.sol-head { margin-bottom: clamp(34px, 4vw, 56px); }
.sol-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  max-width: 22ch;
}
.sol-head h2 em { font-style: normal; color: var(--accent); }
.sol-head h2::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--accent);
  margin-top: 16px;
}
.sol-head-sub { margin: -8px 0 0; font-size: 15px; color: var(--text-muted); }

/* ---------- HERO ---------- */
.sol-hero {
  display: grid;
  grid-template-columns: minmax(300px, 45%) minmax(0, 1fr);
  align-items: stretch;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 78px;
  border-bottom: 1px solid var(--line);
}
.sol-hero-copy {
  padding: clamp(48px, 6vw, 86px) clamp(28px, 4vw, 56px) clamp(48px, 6vw, 86px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.sol-hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 18px 0 26px;
  max-width: 100%;
  hyphens: auto;
  overflow-wrap: break-word;
}
.sol-hero-copy h1 em { font-style: normal; color: var(--accent); display: block; }
.sol-hero-lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; margin: 0 0 18px; max-width: 32ch; }
.sol-hero-sub { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 34px; max-width: 36ch; }
.sol-hero-copy .button-primary { align-self: flex-start; text-transform: uppercase; letter-spacing: 0.06em; }
.sol-hero-media { position: relative; overflow: hidden; min-height: 420px; background: #0c0c0e; }
.sol-hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* =========================================================
   EL PROBLEMA
   ========================================================= */
.amb-problema { display: grid; grid-template-columns: 2.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.amb-problema-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 34px) clamp(18px, 2vw, 30px);
}
.amb-problema-grid li { display: flex; flex-direction: column; gap: 12px; }
.amb-problema-grid svg {
  width: 26px; height: 26px; fill: none; stroke: var(--accent);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.amb-problema-grid p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.amb-problema-grid p b { color: var(--text); font-weight: 700; }

.amb-quote {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.amb-quote svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.amb-quote-lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.35;
  color: var(--text);
}
.amb-quote-sub { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

/* =========================================================
   ¿CÓMO IDENTIFICAMOS EL IMPACTO?
   ========================================================= */
.amb-claridad-grid { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.amb-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.amb-tri-col { padding: 0 clamp(14px, 1.6vw, 22px); }
.amb-tri-col:first-child { padding-left: 0; }
.amb-tri-col:last-child { padding-right: 0; }
.amb-tri-col + .amb-tri-col { border-left: 1px solid var(--line); }
.amb-tri-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  margin-bottom: 12px;
}
.amb-tri-icon svg { width: 19px; height: 19px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.amb-tri-col--fuente .amb-tri-icon svg { stroke: var(--accent); }
.amb-tri-col--entorno .amb-tri-icon svg { stroke: var(--amb-orange); }
.amb-tri-col--receptor .amb-tri-icon svg { stroke: var(--amb-green); }
.amb-tri-col h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.amb-tri-col--fuente h3 { color: var(--accent); }
.amb-tri-col--entorno h3 { color: var(--amb-orange); }
.amb-tri-col--receptor h3 { color: var(--amb-green); }
.amb-tri-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.amb-tri-col li { font-size: 13px; line-height: 1.4; color: var(--text-muted); padding-left: 14px; position: relative; }
.amb-tri-col li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }

.amb-diagrama { margin: 0; }
.amb-diagrama img { width: 100%; border-radius: var(--radius-lg); display: block; }

.amb-callout {
  margin-top: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.amb-callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amb-callout-lead { margin: 0; font-size: 14.5px; line-height: 1.55; font-weight: 700; }
.amb-callout-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); font-weight: 400; }
.amb-callout > div { display: flex; flex-wrap: wrap; gap: 4px 40px; align-items: baseline; }
.amb-callout > div .amb-callout-lead { flex: 1 1 260px; }
.amb-callout > div .amb-callout-sub { flex: 1.4 1 320px; margin-top: 0; }

/* =========================================================
   ¿CÓMO LO RESOLVEMOS?
   ========================================================= */
.amb-proceso { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 26px); }
.amb-proceso::before {
  content: "";
  position: absolute; left: 6%; right: 6%; top: 22px;
  height: 0; border-top: 2px dashed var(--line-strong);
  z-index: 0;
}
.amb-step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.amb-step-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 2px solid currentColor;
}
.amb-step-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amb-step--01 { color: var(--amb-blue); }
.amb-step--02 { color: var(--accent); }
.amb-step--03 { color: var(--amb-green); }
.amb-step--04 { color: var(--amb-purple); }
.amb-step--05 { color: var(--amb-teal); }
.amb-step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.amb-step p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.amb-step figure { margin: auto 0 0; }
.amb-step figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }

/* =========================================================
   RESULTADO
   ========================================================= */
.amb-resultado { display: grid; grid-template-columns: 0.85fr 1.3fr 1fr; gap: clamp(22px, 2.6vw, 38px); align-items: stretch; }
.amb-resultado-media { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: #0c0c0e; }
.amb-resultado-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amb-resultado-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: center; }
.amb-resultado-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.amb-resultado-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.amb-resultado-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--amb-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amb-resultado .amb-quote { grid-column: 3; }

/* =========================================================
   CTA final · barra roja de ancho completo
   ========================================================= */
.amb-cta-band {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: clamp(22px, 2.6vw, 30px) var(--pad);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 19px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease);
}
.amb-cta-band:hover { background: var(--accent-2); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .amb-problema { grid-template-columns: 1fr; }
  .amb-problema-grid { grid-template-columns: repeat(3, 1fr); }
  .amb-claridad-grid { grid-template-columns: 1fr; }
  .amb-resultado { grid-template-columns: 1fr 1fr; }
  .amb-resultado .amb-quote { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sol-hero { grid-template-columns: 1fr; padding-top: 72px; }
  .sol-hero-copy { padding: clamp(40px, 8vw, 64px) var(--pad); }
  .sol-hero-lead, .sol-hero-sub { max-width: 46ch; }
  .sol-hero-media { min-height: 260px; max-height: 55vh; }
  .amb-problema-grid { grid-template-columns: repeat(2, 1fr); }
  .amb-tri { grid-template-columns: 1fr; gap: 22px; }
  .amb-tri-col { padding: 0 !important; border-left: 0 !important; }
  .amb-proceso { grid-template-columns: 1fr 1fr; }
  .amb-proceso::before { display: none; }
  .amb-callout > div { flex-direction: column; gap: 6px; }
  .amb-resultado { grid-template-columns: 1fr; }
  .amb-resultado .amb-quote { grid-column: 1; }
  .amb-resultado-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .amb-problema-grid { grid-template-columns: 1fr 1fr; }
  .amb-proceso { grid-template-columns: 1fr; }
}
