/* ═══════════════════════════════════════════════════════
   GUÍA TURI · Archix Agency
   Sistema visual clonado del portfolio archixagency.com:
   tokens.css + base.css + patrones svc-* de servicios.css
   ═══════════════════════════════════════════════════════ */

:root {
  /* Colors — idénticos al portfolio */
  --bg:       #f2f2ef;
  --dark:     #0d0d0d;
  --text:     #111111;
  --muted:    #6b6b6b;
  --border:   rgba(0,0,0,0.1);
  --white:    #ffffff;

  /* Typography */
  --font-sans:    'DM Sans', sans-serif;
  --font-display: 'Archivo Black', sans-serif;
  --font-script:  'Luxurious Script', cursive;

  /* Spacing */
  --max-w:    1320px;
  --gutter:   clamp(24px, 5vw, 80px);
  --section-pad: clamp(80px, 10vw, 160px);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Lenis maneja el smooth; auto como en el portfolio */
html { scroll-behavior: auto; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
::selection { background: var(--dark); color: var(--white); }

.g-inner { width: 100%; max-width: var(--max-w); margin: 0 auto; }

/* ─── REVEAL ON SCROLL (gated por .js, como el portfolio) ── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── BARRA DE PROGRESO ──────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
  mix-blend-mode: difference;
}

/* ─── NAV LATERAL ────────────────────────────────────── */
.side-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 90;
  mix-blend-mode: difference;
}
.side-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-left: 1px solid rgba(255,255,255,0.25);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.side-nav a:hover { color: var(--white); }
.side-nav a.is-active {
  color: var(--white);
  border-left-color: var(--white);
}
@media (max-width: 1500px) { .side-nav { display: none; } }

/* ─── SECTION LABEL (idéntico al portfolio) ──────────── */
.s-label {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.s-label::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}
.g-hero .s-label,
.g-section--dark .s-label { color: rgba(255,255,255,0.6); }
.g-hero .s-label::before,
.g-section--dark .s-label::before { background: var(--white); }

/* ─── HERO (patrón svc-hero) ─────────────────────────── */
.g-hero {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--white);
  min-height: 92vh;
  padding: clamp(80px, 12vh, 160px) var(--gutter) clamp(60px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.g-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 28px 0 0;
  max-width: 16ch;
}
.g-hero-title em,
.g-heading em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.35em;
  line-height: 1;
}

.g-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  margin: 32px 0 0;
}
.g-hero-sub strong { color: var(--white); font-weight: 500; }

.g-hero-note {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,0.55);
  max-width: 52ch;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.35);
}

/* ─── SECCIONES (patrón svc-section) ─────────────────── */
.g-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) var(--gutter);
}
.g-section--light {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
}
.g-section--dark {
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* top: label + heading (patrón svc-top) */
.g-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}

.g-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.g-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 56px;
}
.g-lead strong, .g-lead em { color: var(--text); }
.g-section--dark .g-lead { color: rgba(255,255,255,0.68); }
.g-section--dark .g-lead strong { color: var(--white); }

.g-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  margin: 64px 0 20px;
}

.g-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
}
.g-section--dark .g-note { color: rgba(255,255,255,0.5); }

/* ─── CHECKLISTS ─────────────────────────────────────── */
.checklist { list-style: none; max-width: 760px; }
.checklist li { border-bottom: 1px solid var(--border); }
.checklist label {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 6px;
  cursor: pointer;
  transition: background 0.25s var(--ease-out);
}
.checklist label:hover { background: rgba(0,0,0,0.025); }
.checklist input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.checklist input[type="checkbox"]:checked {
  background: var(--dark);
  border-color: var(--dark);
}
.checklist input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid var(--white);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.checklist span { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.checklist span strong { color: var(--text); font-weight: 500; }
.checklist input[type="checkbox"]:checked + span { opacity: 0.55; }
.checklist--compact label { padding: 16px 6px; }

/* ─── FEATURES GRID (patrón svc-features) ────────────── */
.g-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin: 56px 0 0;
}
.g-feature {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.g-feature-num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.g-feature-title {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
}
.g-feature-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}
.g-feature-desc strong { color: var(--text); font-weight: 500; }
.g-features--schedule { margin-top: 64px; }

/* ─── COPY BLOCK / GUIONES ───────────────────────────── */
.copy-block, .script {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-top: 48px;
  max-width: 760px;
}
.copy-block-head, .script-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.copy-block-head h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
}
pre {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text);
}
.script pre {
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.scripts { display: grid; gap: 28px; margin-top: 40px; }
.script { margin-top: 0; }
.script:nth-child(even) { margin-left: auto; }
@media (max-width: 1024px) { .script:nth-child(even) { margin-left: 0; } }

.tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* ─── BOTONES PILL (patrón svc-cta / btn-pill) ───────── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 1px solid var(--dark);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.25s var(--ease-out);
}
.btn-pill:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-pill span { transition: transform 0.2s var(--ease-out); }
.btn-pill:hover span { transform: translateX(4px); }
.btn-pill:active { transform: translateY(0); }

.btn-pill--sm { padding: 10px 22px; font-size: 0.85rem; flex-shrink: 0; }

.btn-pill--light {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-pill.copied { background: var(--muted); border-color: var(--muted); }

/* ─── PILARES ────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 56px 0 0;
}
.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar-bar {
  height: 150px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.pillar-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--p);
  background: var(--dark);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s var(--ease-out) 0.25s;
}
.pillar-bar span {
  position: absolute;
  top: 14px; left: 18px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  mix-blend-mode: difference;
  filter: invert(1);
}
.is-visible .pillar-bar::after,
.pillars.is-visible .pillar-bar::after { transform: scaleY(1); }
@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

/* ─── CALLOUT ────────────────────────────────────────── */
.callout {
  background: var(--dark);
  color: var(--white);
  border-radius: 24px;
  padding: 40px;
  max-width: 860px;
  margin-top: 64px;
}
.callout p { font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.72); }
.callout p strong { color: var(--white); font-weight: 500; }
.callout--dark {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ─── HOOKS ──────────────────────────────────────────── */
.hooks {
  list-style: none;
  counter-reset: hook;
  columns: 2;
  column-gap: 48px;
  max-width: 980px;
  margin-top: 8px;
}
.hooks li {
  counter-increment: hook;
  break-inside: avoid;
  padding: 18px 0 18px 46px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.hooks li::before {
  content: counter(hook, decimal-leading-zero);
  position: absolute;
  left: 0; top: 19px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 820px) { .hooks { columns: 1; } }

/* ─── TABS CALENDARIO ────────────────────────────────── */
.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 14px 28px;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.tab:hover { color: var(--text); border-color: var(--muted); transform: translateY(-2px); }
.tab.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn 0.5s var(--ease-out); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.plan { list-style: none; max-width: 820px; }
.plan li {
  padding: 18px 0 18px 28px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  position: relative;
  font-size: 1rem;
  line-height: 1.55;
}
.plan li::before {
  content: '';
  position: absolute;
  left: -5.5px; top: 26px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text);
}
.plan li strong { color: var(--text); font-weight: 500; }

/* ─── EMBUDO (patrón svc-steps, sección dark) ────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}
.step-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
}
.step-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
  margin-top: auto;
}
@media (max-width: 1200px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; padding: 28px; } }

/* ─── REGLAS (sección 07) ────────────────────────────── */
.rules { list-style: none; max-width: 860px; }
.rules li {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.rules li strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

/* ─── TABLA REPARTO ──────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 0 0 56px; }
.who-does {
  width: 100%;
  max-width: 980px;
  border-collapse: collapse;
}
.who-does th {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: left;
  color: var(--white);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.who-does td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.68);
  vertical-align: top;
  min-width: 260px;
  font-size: 1rem;
  line-height: 1.55;
}

/* ─── OFERTA FINAL ───────────────────────────────────── */
.offer {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  max-width: 760px;
}
.offer-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}
.offer-price em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.35em;
  line-height: 1;
}
.offer-desc {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 56ch;
}
.offer .btn-pill--light { margin-top: 32px; }

/* ─── FOOTER ─────────────────────────────────────────── */
.g-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px var(--gutter);
  text-align: center;
  font-size: 0.95rem;
}
.g-footer .brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.g-footer a { color: var(--white); }
.g-footer a:hover { opacity: 0.8; }
.foot-note { margin-top: 12px; font-size: 0.85rem; }
.foot-note em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.5em;
  line-height: 1;
  color: rgba(255,255,255,0.8);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .g-top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .g-features { grid-template-columns: 1fr; }
  .g-feature { padding: 28px; }
  .g-hero { min-height: 80vh; }
  .copy-block, .script { padding: 28px; }
}

@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pillar-bar { height: 110px; }
  .script-head, .copy-block-head { flex-direction: column; }
}

/* ─── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .pillar-bar::after { transform: scaleY(1) !important; }
}

/* ─── PRINT ──────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #111; }
  .progress-bar, .side-nav, .btn-pill { display: none !important; }
  .g-hero, .g-section--dark, .g-footer, .callout {
    background: #fff !important;
    color: #111 !important;
    border-color: rgba(0,0,0,0.15) !important;
  }
  .g-hero-title, .g-heading, .step-title, .offer-price,
  .g-hero-sub, .g-hero-note, .g-lead, .step-desc, .step-num,
  .offer-desc, .who-does th, .who-does td, .callout p,
  .g-footer .brand, .foot-note em { color: #111 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .tab-panel { display: block !important; }
  .pillar-bar::after { transform: scaleY(1) !important; }
}
