/*
Theme Name: Curvas que hablan
Theme URI: https://estoyderuta.com/
Author: Estoy de Ruta
Description: Tema editorial de 20 etapas para Curvas que hablan.
Version: 1.1.2
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: curvas-que-hablan
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cqh-ink: #121313;
  --cqh-paper: #f2eee5;
  --cqh-sand: #d7a56f;
  --cqh-sand-light: #e5bd8e;
  --cqh-muted: #bdb8af;
  --cqh-line: rgba(242, 238, 229, .46);
  --cqh-display: 'Bebas Neue', Impact, sans-serif;
  --cqh-body: 'Inter', Arial, sans-serif;
  --cqh-gutter: clamp(1.25rem, 4vw, 4.1rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cqh-paper);
  background: var(--cqh-ink);
  font-family: var(--cqh-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cqh-shell { min-height: 100vh; overflow: clip; background: #171818; }
.cqh-hero-wrap { position: relative; min-height: 790px; }

.cqh-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem clamp(1.5rem, 10.5vw, 10.5rem);
}
.cqh-brand {
  font-family: var(--cqh-display);
  font-size: 1.85rem;
  letter-spacing: .19em;
  line-height: 1;
  white-space: nowrap;
}
.cqh-menu { display: flex; align-items: center; gap: clamp(1.8rem, 4vw, 4.25rem); margin: 0; padding: 0; list-style: none; }
.cqh-menu a { position: relative; font-size: .97rem; color: #171717; transition: opacity .2s ease; }
.cqh-menu a::after { content: ''; position: absolute; left: 0; bottom: -.7rem; width: 0; height: 2px; background: currentColor; transition: width .2s ease; }
.cqh-menu a:hover::after, .cqh-menu .current-menu-item > a::after, .cqh-menu a[aria-current='page']::after { width: 100%; }
.cqh-menu-toggle { display: none; border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(15,15,15,.25); padding: .55rem .75rem; }

.cqh-hero {
  position: relative;
  min-height: 790px;
  height: min(82vh, 900px);
  isolation: isolate;
  background-color: #2b2722;
  background-image: var(--cqh-hero-image);
  background-size: cover;
  background-position: center 48%;
}
.cqh-hero.wp-block-cover { padding: 0; }
.cqh-hero .wp-block-cover__image-background { object-position: center 48%; }
.cqh-hero .wp-block-cover__background { display: none; }
.cqh-hero > .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; height: 100%; }
.cqh-hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,13,13,.92) 0%, rgba(12,13,13,.62) 31%, rgba(12,13,13,.13) 59%, rgba(12,13,13,.03) 100%);
}
.cqh-hero::after { content: ''; position: absolute; z-index: 1; inset: 70% 0 0; background: linear-gradient(0deg, rgba(15,16,16,.72), transparent); pointer-events: none; }
.cqh-hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(6.5rem, 10.6vw, 10.8rem);
  width: min(31rem, 38vw);
  transform: translateY(-43%);
}
.cqh-kicker { margin: 0 0 .65rem; color: var(--cqh-sand); font-size: 1rem; letter-spacing: .12em; }
.cqh-title { margin: 0; font-family: var(--cqh-display); font-size: clamp(5.2rem, 10.9vw, 10.5rem); font-weight: 400; line-height: .78; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.cqh-subtitle { width: min(29rem, 100%); margin: 1.6rem 0 1.75rem; font-size: clamp(1.05rem, 1.45vw, 1.34rem); font-weight: 300; line-height: 1.5; letter-spacing: .025em; }
.cqh-hero .wp-block-buttons { margin: 0; }
.wp-block-button.cqh-button { margin: 0; }
a.cqh-button, .cqh-button .wp-block-button__link { display: inline-flex; min-width: 19.7rem; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 2.55rem; border: 0; border-radius: 0; color: #131313; background: var(--cqh-sand-light); font-family: var(--cqh-display); font-size: 1.8rem; letter-spacing: .08em; line-height: 1; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
a.cqh-button:hover, a.cqh-button:focus-visible, .cqh-button .wp-block-button__link:hover, .cqh-button .wp-block-button__link:focus-visible { transform: translateY(-3px); color: #131313; background: #efcda7; }
.cqh-arrow { font-family: Arial, sans-serif; font-size: 2.4rem; font-weight: 300; line-height: .6; }

.cqh-progress {
  position: absolute;
  z-index: 6;
  top: 11.5rem;
  bottom: 6.5rem;
  left: 3.9rem;
  display: flex;
  width: 1.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #dfd8cd;
}
.cqh-progress-label { font-size: .88rem; line-height: 1.4; letter-spacing: .08em; text-align: center; }
.cqh-progress-current { color: var(--cqh-sand); }
.cqh-progress-track { position: relative; display: flex; flex: 1; width: 100%; flex-direction: column; align-items: center; justify-content: space-between; margin: 1.3rem 0; }
.cqh-progress-track::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--cqh-line); }
.cqh-progress-dot { position: relative; z-index: 1; width: .82rem; height: .82rem; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: #272727; transition: transform .2s ease, background .2s ease; }
.cqh-progress-dot:hover, .cqh-progress-dot.is-active { transform: scale(1.2); border-color: var(--cqh-sand); background: var(--cqh-sand); box-shadow: 0 0 0 7px rgba(215,165,111,.12); }

.cqh-scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 1.15rem; transform: translateX(-50%); font-size: .78rem; text-align: center; }
.cqh-scroll-cue span { display: block; margin-top: .05rem; font-size: 2rem; line-height: 1; animation: cqh-bob 1.7s ease-in-out infinite; }
@keyframes cqh-bob { 50% { transform: translateY(6px); } }

.cqh-stage {
  position: relative;
  display: grid;
  min-height: 310px;
  grid-template-columns: minmax(17rem, 1fr) minmax(25rem, 2fr) 8rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: 2.7rem clamp(4rem, 10.5vw, 10.5rem) 3.5rem;
  background: radial-gradient(circle at 76% 35%, #292a29 0, #1b1c1c 36%, #131414 75%);
  border-top: 1px solid rgba(255,255,255,.03);
}
.cqh-stage-heading { position: relative; padding-left: 2.5rem; }
.cqh-stage-heading::before { content: ''; position: absolute; top: .25rem; bottom: -5.2rem; left: 0; width: 1px; background: rgba(255,255,255,.62); }
.cqh-stage-heading::after { content: ''; position: absolute; top: .15rem; left: -.42rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--cqh-sand-light); }
.cqh-stage-number { margin: 0 0 .45rem; color: var(--cqh-sand); font-size: 1.15rem; letter-spacing: .12em; }
.cqh-stage h2 { margin: 0; font-family: var(--cqh-display); font-size: clamp(2.15rem, 3vw, 3.15rem); font-weight: 400; line-height: 1; letter-spacing: .035em; }
.cqh-stage-copy { max-width: 43rem; padding-top: .05rem; color: #eeeae4; font-size: 1rem; line-height: 1.55; }
.cqh-stage-copy p { margin: 0 0 1.25rem; }
.cqh-stage-copy .cqh-stage-lead { margin-bottom: 1.5rem; color: var(--cqh-sand-light); font-size: 1.08rem; }
.cqh-stage-copy h3, .cqh-stage-copy h4 { font-family: var(--cqh-display); font-weight: 400; letter-spacing: .04em; }
.cqh-stage-copy ul, .cqh-stage-copy ol { padding-left: 1.3rem; }
.cqh-stage-copy blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 2px solid var(--cqh-sand); color: var(--cqh-muted); }
.cqh-stage-copy img { max-width: 100%; height: auto; }
.cqh-next { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding-top: 1.4rem; border: 0; color: var(--cqh-paper); background: transparent; cursor: pointer; text-align: center; }
.cqh-next-icon { display: grid; width: 4.1rem; height: 4.1rem; place-items: center; border: 2px solid var(--cqh-sand); border-radius: 50%; color: var(--cqh-sand); font-family: Arial, sans-serif; font-size: 2rem; transition: color .2s, background .2s, transform .2s; }
.cqh-next:hover .cqh-next-icon { transform: translateX(4px); color: #161616; background: var(--cqh-sand); }
.cqh-next-label { font-size: .77rem; line-height: 1.3; }
.cqh-section-slot { position: relative; }
.cqh-editorial {
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(2rem, 14vw, 13.5rem);
  color: var(--cqh-paper);
  background: #191a1a;
}
.cqh-editorial > * { max-width: 51rem; margin-right: auto; margin-left: auto; }
.cqh-editorial-label { margin-bottom: .7rem; color: var(--cqh-sand); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.cqh-editorial-title { margin: 0 0 1.7rem; font-family: var(--cqh-display); font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 400; line-height: .95; letter-spacing: .025em; }
.cqh-editorial p:not(.cqh-editorial-label), .cqh-editorial li { font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.75; }
.cqh-editorial-cierre { background: #111212; }
.cqh-editorial-autor-recursos { background: #24211d; }
.cqh-editorial a { color: var(--cqh-sand-light); text-decoration: underline; text-underline-offset: .18em; }
.cqh-anchor-target { position: absolute; top: 0; }
.cqh-footer { padding: 2rem var(--cqh-gutter); color: #aaa59d; background: #0d0e0e; font-size: .78rem; text-align: center; }

@media (max-width: 900px) {
  .cqh-header { padding: 1.5rem; }
  .cqh-brand { font-size: 1.45rem; }
  .cqh-menu-toggle { display: block; }
  .cqh-navigation { position: absolute; top: 4.8rem; right: 1.5rem; display: none; width: min(20rem, calc(100vw - 3rem)); padding: 1.1rem; background: rgba(18,19,19,.97); }
  .cqh-navigation.is-open { display: block; }
  .cqh-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .cqh-menu a { display: block; padding: .85rem; color: white; }
  .cqh-menu a::after { display: none; }
  .cqh-hero { min-height: 760px; height: 100svh; background-position: 62% center; }
  .cqh-hero::before { background: linear-gradient(90deg, rgba(12,13,13,.92), rgba(12,13,13,.38) 70%, rgba(12,13,13,.13)); }
  .cqh-hero-content { left: 4.7rem; width: calc(100% - 6.5rem); transform: translateY(-37%); }
  .cqh-title { font-size: clamp(5rem, 18vw, 8rem); }
  .cqh-progress { top: 8.5rem; bottom: 5rem; left: 1.4rem; }
  .cqh-stage { grid-template-columns: 1fr; gap: 1.75rem; padding: 3rem 2rem 3.5rem 4.7rem; }
  .cqh-stage-heading::before { bottom: -.5rem; }
  .cqh-next { align-items: flex-start; flex-direction: row; justify-self: start; }
  .cqh-next-label { align-self: center; }
}

@media (max-width: 560px) {
  .cqh-hero { min-height: 700px; background-position: 63% center; }
  .cqh-hero-content { top: 47%; left: 3.7rem; width: calc(100% - 4.8rem); }
  .cqh-kicker { font-size: .76rem; }
  .cqh-title { font-size: clamp(4.2rem, 22vw, 6.4rem); }
  .cqh-subtitle { margin: 1.2rem 0 1.5rem; font-size: .96rem; }
  a.cqh-button, .cqh-button .wp-block-button__link { min-width: 0; width: 100%; padding: 1rem 1.35rem; font-size: 1.45rem; }
  .cqh-hero .wp-block-buttons, .wp-block-button.cqh-button { width: 100%; }
  .cqh-progress { left: .85rem; }
  .cqh-progress-dot:nth-of-type(n+7):not(:last-child) { display: none; }
  .cqh-stage { padding-left: 3.7rem; }
  .cqh-scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
