/* Quiénes somos — página de estudio DP Renders */
:root {
  --section-gap: clamp(0.5rem, 1.8vh, 1.25rem);
  --hero-title-max-h: clamp(120px, 28vw, 220px);
  --qs-gold: #c4a35a;
  --qs-gold-2: #e8c97a;
  --qs-ink: #0c0c0c;
  --qs-muted: #6b6560;
  --qs-paper: #f6f3ee;
  --qs-white: #fbfaf7;
  --qs-line: rgba(196, 163, 90, 0.28);
  --qs-max: 1180px;
}

html {
  scroll-padding-top: var(--header-offset);
}

.l-m.qs-page {
  width: 100% !important;
  max-width: none;
  float: none;
  background: var(--qs-white);
}

.qs-page {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1c1917;
  background: var(--qs-white);
  overflow-x: hidden;
}

.qs-page h1,
.qs-page h2,
.qs-page h3 {
  font-family: inherit !important;
  text-transform: none !important;
  color: inherit;
}

.qs-page figure {
  margin: 0;
}

.qs-page img {
  max-width: 100%;
}

.qs-page a {
  color: inherit;
}

.qs-page *,
.qs-page *::before,
.qs-page *::after {
  box-sizing: border-box;
}

.qs-wrap {
  max-width: var(--qs-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.qs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qs-gold);
}

.qs-kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.qs-h2 {
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--qs-ink);
}

.qs-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--qs-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Hero */
.qs-hero {
  position: relative;
  color: #fff;
  padding: calc(var(--header-offset) + 1.5rem) 0 2.25rem;
  overflow: visible;
  height: auto;
}

.qs-hero img {
  height: 100%;
}

.qs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.qs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.qs-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.72) 45%, rgba(8, 8, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.15) 70%);
}

.qs-hero .qs-wrap {
  position: relative;
  z-index: 1;
}

.qs-hero h1 {
  margin: 0.7rem 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.05rem, 5.6vw, 4.15rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
  color: #fff !important;
}

.qs-hero-copy {
  max-width: 38rem;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.qs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.qs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-wrap: balance;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.qs-btn:hover {
  transform: translateY(-1px);
}

.qs-btn-gold {
  background: var(--qs-gold);
  color: #111 !important;
}

.qs-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.qs-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.qs-hero-stats strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--qs-gold-2);
}

.qs-hero-stats span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Sections */
.qs-section {
  padding: clamp(2.5rem, 6vw, 4.75rem) 0;
}

.qs-section-dark {
  background: var(--qs-ink);
  color: #f4f1ea;
}

.qs-section-dark .qs-h2,
.qs-section-dark .qs-lead {
  color: #f4f1ea;
}

.qs-section-dark .qs-lead {
  color: rgba(244, 241, 234, 0.72);
}

.qs-section-paper {
  background: var(--qs-paper);
}

.qs-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.qs-split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.qs-copy p {
  margin: 0 0 1rem;
  color: var(--qs-muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.qs-copy p:last-child {
  margin-bottom: 0;
}

.qs-copy strong {
  color: var(--qs-ink);
  font-weight: 700;
}

.qs-section-dark .qs-copy p {
  color: rgba(244, 241, 234, 0.72);
}

.qs-section-dark a {
  color: var(--qs-gold-2);
}

.qs-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  background: #1a1a1a;
}

.qs-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.qs-gallery img,
.qs-card img,
.qs-cta-bg img,
.qs-hero-bg img {
  height: 100%;
}

.qs-photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(12, 12, 12, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Timeline */
.qs-timeline {
  margin-top: 2rem;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--qs-line);
  padding-left: 1.35rem;
}

.qs-year {
  position: relative;
  padding: 0 0 1.75rem 0.25rem;
}

.qs-year::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--qs-gold);
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.18);
}

.qs-year time {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qs-gold);
}

.qs-year h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.qs-year p {
  margin: 0;
  color: var(--qs-muted);
  line-height: 1.65;
}

.qs-section-dark .qs-year p {
  color: rgba(244, 241, 234, 0.68);
}

/* Method */
.qs-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.qs-step {
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 16px;
  background: #fff;
}

.qs-step b {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--qs-gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.qs-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.qs-step p {
  margin: 0;
  color: var(--qs-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Clients / services */
.qs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.qs-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(12, 12, 12, 0.35);
}

.qs-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.qs-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.qs-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.qs-card p {
  margin: 0;
  color: var(--qs-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.qs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.qs-pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(196, 163, 90, 0.12);
  color: #3f3420;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Gallery */
.qs-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.qs-gallery a,
.qs-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.qs-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.qs-gallery a:hover img {
  transform: scale(1.04);
}

.qs-gallery a:first-child,
.qs-gallery figure:first-child {
  grid-row: 1 / span 2;
}

.qs-gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--qs-ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 1rem;
}

/* Values */
.qs-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.qs-value h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.qs-value p {
  margin: 0;
  color: var(--qs-muted);
  line-height: 1.65;
}

/* CTA */
.qs-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
}

.qs-cta-bg {
  position: absolute;
  inset: 0;
}

.qs-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.62) 55%, rgba(8, 8, 8, 0.4) 100%);
}

.qs-cta .qs-wrap {
  position: relative;
  z-index: 1;
}

.qs-cta h2 {
  margin: 0 0 0.7rem;
  max-width: 16ch;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
  color: #fff !important;
}

.qs-cta p {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: radial-gradient(60% 60% at 50% 50%, #25d366 0%, #1ebe57 80%);
  color: #fff;
  text-decoration: none;
  z-index: 999999;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  animation: qsFloatY 3.2s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-float.neon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  filter: blur(14px);
  background: radial-gradient(closest-side, rgba(37, 211, 102, 0.55), rgba(37, 211, 102, 0) 70%);
  z-index: -1;
}

@keyframes qsFloatY {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .qs-gallery img,
  .qs-card {
    animation: none;
    transition: none;
  }
}

@media (min-width: 769px) {
  .qs-hero {
    min-height: min(78vh, 820px);
    display: flex;
    align-items: flex-end;
    padding-bottom: 3.25rem;
  }
}

@media (max-width: 900px) {
  .qs-hero-stats,
  .qs-steps,
  .qs-cards,
  .qs-values {
    grid-template-columns: 1fr 1fr;
  }

  .qs-split,
  .qs-split.reverse {
    grid-template-columns: 1fr;
  }

  .qs-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 180px 180px;
  }

  .qs-gallery a:first-child,
  .qs-gallery figure:first-child {
    grid-column: 1 / span 2;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .qs-hero {
    height: auto;
    min-height: 0;
    padding-top: calc(var(--header-offset) + 1.5rem) !important;
    padding-bottom: 1.75rem;
  }

  .qs-hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .qs-hero-actions .qs-btn {
    width: 100%;
  }

  .qs-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
  }

  .qs-photo img {
    min-height: 220px;
    max-height: 280px;
  }

  .qs-section {
    padding: clamp(2rem, 8vw, 3rem) 0;
  }

  .qs-cta {
    padding: 2.25rem 0;
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  :root {
    --hero-title-max-h: clamp(90px, 22vw, 160px);
    --section-gap: clamp(0.4rem, 1.4vh, 0.85rem);
  }

  .qs-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
  }
}

@media (max-width: 560px) {
  .qs-steps,
  .qs-cards,
  .qs-values,
  .qs-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .qs-gallery a:first-child,
  .qs-gallery figure:first-child {
    grid-column: auto;
    min-height: 200px;
  }

  .qs-gallery a,
  .qs-gallery figure {
    min-height: 180px;
  }

  .qs-card img {
    height: 180px;
  }
}

@media (max-width: 380px) {
  .qs-kicker {
    letter-spacing: 0.1em;
  }

  .qs-hero-stats strong {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }
}
