#que-hacemos {
  position: relative;
  z-index: 12;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(193, 39, 45, 0.08), transparent 55%),
    #070707;
  color: #d0d0d0;
  scroll-margin-top: var(--header-h, 62px);
  padding: calc(var(--header-h, 62px) + 0.4rem) 0 0.7rem;
}

#que-hacemos * { box-sizing: border-box; }

.qh-ghost {
  pointer-events: none;
  position: absolute;
  inset: auto 0 4%;
  z-index: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(4rem, 16vw, 14rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

.qh-head {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  max-width: 44rem;
  margin: 0 auto 0.7rem;
  padding: 0 1.25rem;
  text-align: center;
}

.qh-kicker {
  margin: 0;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c1272d;
}

.qh-title {
  margin: 0.28rem 0 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f4f4f4;
}

.qh-sub {
  margin: 0.5rem auto 0;
  max-width: 34rem;
  font-family: var(--font-serif), serif;
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  font-style: italic;
  line-height: 1.4;
  color: rgba(208, 208, 208, 0.68);
}

.qh-strip {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.qh-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 0;
  height: 100%;
  padding: 1rem 0.9rem 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(208, 208, 208, 0.1);
  background:
    radial-gradient(ellipse 90% 70% at 50% 28%, rgba(193, 39, 45, 0.16), transparent 62%),
    linear-gradient(180deg, #121212 0%, #080808 100%);
  text-align: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.qh-panel::before,
.qh-panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.45;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.qh-panel::before {
  top: 8px;
  left: 8px;
  border-top: 1.5px solid #c1272d;
  border-left: 1.5px solid #c1272d;
}

.qh-panel::after {
  right: 8px;
  bottom: 8px;
  border-right: 1.5px solid #c1272d;
  border-bottom: 1.5px solid #c1272d;
}

.qh-panel.is-on {
  border-color: rgba(193, 39, 45, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(193, 39, 45, 0.25),
    0 0 40px rgba(193, 39, 45, 0.14);
}

.qh-panel.is-on::before,
.qh-panel.is-on::after {
  opacity: 1;
}

.qh-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.qh-num {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 2;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.28);
}

.qh-panel.is-on .qh-num { color: #c1272d; }

.qh-orb {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 39, 45, 0.38), transparent 70%);
  transform: translateX(-50%) scale(0.78);
  opacity: 0.5;
  filter: blur(10px);
  animation: qh-orb 4.8s ease-in-out infinite;
}

.qh-panel.is-on .qh-orb {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

.qh-ico {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 0 0.45rem;
  color: #f4f4f4;
}

.qh-ico::before {
  content: "";
  position: absolute;
  inset: -0.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 6px rgba(193, 39, 45, 0.05);
}

.qh-panel.is-on .qh-ico::before {
  border-color: rgba(193, 39, 45, 0.45);
  animation: qh-ring 3.4s ease-in-out infinite;
}

.qh-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(193, 39, 45, 0.15));
}

.qh-stroke,
.qh-lens,
.qh-link,
.qh-wave,
.qh-draw,
.qh-scan,
.qh-cursor {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qh-lens,
.qh-node,
.qh-recdot,
.qh-flash-burst,
.qh-dot,
.qh-lens-core {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.qh-lens-core,
.qh-recdot,
.qh-flash-burst,
.qh-dot {
  fill: #c1272d;
  stroke: none;
}

.qh-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 18rem;
}

.qh-name {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.qh-tag {
  margin: 0.28rem 0 0;
  font-family: var(--font-serif), serif;
  font-size: 0.86rem;
  font-style: italic;
  color: rgba(208, 208, 208, 0.8);
}

.qh-tag em {
  font-style: italic;
  color: #c1272d;
}

.qh-line {
  margin: 0.4rem 0 0;
  max-width: 17.5rem;
  font-family: var(--font-body), sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(208, 208, 208, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qh-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  margin-top: 0.7rem;
  min-width: 6.6rem;
  background: #c1272d;
  color: #fff;
  border: 0;
  padding: 0.48rem 0.9rem;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(193, 39, 45, 0.28);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.qh-more:hover {
  background: #d94a4f;
  box-shadow: 0 10px 28px rgba(193, 39, 45, 0.4);
}

.qh-svg-video .qh-recdot { animation: qh-blink 1s ease-in-out infinite; }
.qh-svg-video .qh-lens { transform-origin: 45px 58px; animation: qh-spin 7s linear infinite; }
.qh-svg-video .qh-lens-core { animation: qh-pulse 1.6s ease-in-out infinite; }
.qh-panel.is-on .qh-svg-video { animation: qh-float 3.2s ease-in-out infinite; }

.qh-svg-foto .qh-lens { transform-origin: 60px 65px; animation: qh-aperture 2.4s ease-in-out infinite; }
.qh-svg-foto .qh-flash-burst { animation: qh-flash 2.1s ease-in-out infinite; }
.qh-svg-foto .qh-flash { stroke: #c1272d; animation: qh-flash 2.1s ease-in-out infinite; }

.qh-svg-social .qh-node-a,
.qh-svg-social .qh-node-b,
.qh-svg-social .qh-node-c {
  transform-box: fill-box;
  transform-origin: center;
}
.qh-svg-social .qh-node-a { animation: qh-node 2.4s ease-in-out infinite; }
.qh-svg-social .qh-node-b { animation: qh-node 2.4s ease-in-out 0.3s infinite; }
.qh-svg-social .qh-node-c { animation: qh-node 2.4s ease-in-out 0.6s infinite; }

.qh-svg-mic .qh-wave { stroke: #c1272d; opacity: 0.2; }
.qh-svg-mic .qh-wave-1 { animation: qh-wave 1.5s ease-out infinite; }
.qh-svg-mic .qh-wave-2 { animation: qh-wave 1.5s ease-out 0.25s infinite; }
.qh-svg-mic .qh-wave-3 { animation: qh-wave 1.5s ease-out 0.12s infinite; }

.qh-svg-pen .qh-draw {
  stroke: #c1272d;
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: qh-write 2.4s ease-in-out infinite;
}
.qh-panel.is-on .qh-svg-pen { animation: qh-nudge 2.8s ease-in-out infinite; }

.qh-svg-web .qh-scan {
  stroke: #c1272d;
  animation: qh-scan 2.2s ease-in-out infinite;
}
.qh-svg-web .qh-cursor { animation: qh-cursor 1.6s ease-in-out infinite; }

@keyframes qh-orb {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@keyframes qh-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes qh-blink {
  0%, 40%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
@keyframes qh-spin { to { transform: rotate(360deg); } }
@keyframes qh-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
@keyframes qh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes qh-aperture {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(0.82); }
  55% { transform: scale(1.08); }
}
@keyframes qh-flash {
  0%, 70%, 100% { opacity: 0.2; }
  76% { opacity: 1; }
  82% { opacity: 0.15; }
}
@keyframes qh-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes qh-wave {
  0% { opacity: 0; transform: scale(0.92); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes qh-write {
  0% { stroke-dashoffset: 70; }
  45% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes qh-nudge {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(4deg); }
}
@keyframes qh-scan {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(22px); opacity: 0; }
}
@keyframes qh-cursor {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 4px); }
}

@media (min-width: 900px) {
  .qh-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .qh-panel { padding: 0.85rem 1rem 0.8rem; }
  .qh-ico { width: 4.6rem; height: 4.6rem; margin-bottom: 0.4rem; }
  .qh-line { font-size: 0.8rem; }
}

@media (max-height: 780px) {
  .qh-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
  .qh-sub { display: none; }
  .qh-ico { width: 3.6rem; height: 3.6rem; }
  .qh-line { -webkit-line-clamp: 1; }
  .qh-more { margin-top: 0.5rem; padding: 0.4rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qh-orb,
  .qh-ico::before,
  .qh-svg,
  .qh-svg * {
    animation: none !important;
  }
}
