: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);
}

/* =========================================================
   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: 18ch;
}
.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;
}

/* ---------- HERO ---------- */
.sol-hero {
  display: grid;
  grid-template-columns: minmax(360px, 45%) 1fr;
  align-items: stretch;
  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)
           max(var(--pad), calc((100vw - var(--maxw)) / 2 + 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(30px, 3.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 26px;
  max-width: 100%;
  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: cover; object-position: center; }

/* =========================================================
   ¿TE PASA ESTO? · checklist + tarjetas de espacio
   ========================================================= */
.ruido-sintomas {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ruido-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ruido-checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 13px; align-items: start; }
.ruido-checklist svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ruido-checklist p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

.ruido-spaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.ruido-space { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: #0c0c0e; }
.ruido-space img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.ruido-space:hover img { transform: scale(1.05); }
.ruido-space::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.82) 100%);
  pointer-events: none;
}
.ruido-space-icon {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,12,.7);
  backdrop-filter: blur(2px);
}
.ruido-space-icon svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ruido-space span {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}

/* =========================================================
   ¿CÓMO SE TRANSMITE EL RUIDO? · flujo horizontal
   ========================================================= */
.ruido-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(6px, 1vw, 14px);
}
.ruido-flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.ruido-flow-arrow svg { width: 18px; height: 18px; }
.ruido-node {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.ruido-node b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
}
.ruido-node p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.ruido-node.ruido-node-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;
  margin-bottom: 2px;
}
.ruido-node.ruido-node-step { align-items: flex-start; }
.ruido-node-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft);
  margin-bottom: 2px;
}
.ruido-node-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ruido-node--01 .ruido-node-icon, .ruido-node--01 b { color: #2b7fd4; }
.ruido-node--01 .ruido-node-icon svg { stroke: #2b7fd4; }
.ruido-node--02 .ruido-node-icon, .ruido-node--02 b { color: var(--accent); }
.ruido-node--02 .ruido-node-icon svg { stroke: var(--accent); }
.ruido-node--03 .ruido-node-icon, .ruido-node--03 b { color: #e08a1e; }
.ruido-node--03 .ruido-node-icon svg { stroke: #e08a1e; }
.ruido-flow-note { margin: clamp(24px, 3vw, 34px) 0 0; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* =========================================================
   ¿CÓMO LO RESOLVEMOS? · pasos circulares
   ========================================================= */
.ruido-process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 22px); text-align: center; }
.ruido-process::before {
  content: "";
  position: absolute; left: 10%; right: 10%; top: 26px;
  height: 0; border-top: 2px dashed var(--line-strong);
  z-index: 0;
}
.ruido-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ruido-step-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 2px solid currentColor;
}
.ruido-step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ruido-step:nth-child(1) { color: #2b7fd4; }
.ruido-step:nth-child(2) { color: var(--accent); }
.ruido-step:nth-child(3) { color: #7a4fd1; }
.ruido-step:nth-child(4) { color: #e08a1e; }
.ruido-step:nth-child(5) { color: #1f9254; }
.ruido-step b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.ruido-step p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); max-width: 18ch; }

.ruido-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;
}
.ruido-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; }
.ruido-callout p { margin: 0; font-size: 14px; line-height: 1.55; }
.ruido-callout b { font-family: var(--font-display); display: block; color: var(--accent); }

/* =========================================================
   CTA final
   ========================================================= */
.sol-cta {
  --text: #f4f4f5;
  --text-muted: #b6b6be;
  --line: rgba(255, 255, 255, 0.12);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #08080a;
  color: var(--text);
  min-height: 340px;
  display: flex;
}
.sol-cta-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.35) brightness(0.42);
}
.sol-cta::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(6,6,8,0.94) 0%, rgba(6,6,8,0.80) 55%, rgba(6,6,8,0.62) 100%);
}
.sol-cta-body { padding: clamp(30px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sol-cta-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 20ch;
}
.sol-cta-body h2 em { font-style: normal; display: block; }
.sol-cta-body p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin: 0 0 14px; max-width: 50ch; }
.sol-cta-body .button-primary { align-self: flex-start; margin-top: 16px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .ruido-spaces { grid-template-columns: repeat(2, 1fr); }
  .ruido-flow { grid-template-columns: 1fr; }
  .ruido-flow-arrow { transform: rotate(90deg); margin: 2px 0; }
}
@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: 50vh; }
  .ruido-sintomas { grid-template-columns: 1fr; }
  .ruido-process { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .ruido-process::before { display: none; }
  .sol-cta { min-height: 0; }
}
@media (max-width: 620px) {
  .ruido-spaces { grid-template-columns: 1fr 1fr; }
  .ruido-process { grid-template-columns: 1fr 1fr; }
}
