/* =========================================================
   Orden Operativo — hoja de estilos
   Concepto: "mesa de trabajo" (papel frío + tinta pino + coral)
   ========================================================= */

:root {
  color-scheme: light;

  --background: oklch(0.976 0.006 165);
  --foreground: oklch(0.26 0.028 165);
  --card: oklch(0.995 0.003 160);
  --primary: oklch(0.45 0.068 165);
  --primary-foreground: oklch(0.98 0.012 160);
  --secondary: oklch(0.935 0.01 165);
  --muted: oklch(0.945 0.008 165);
  --muted-foreground: oklch(0.5 0.022 165);
  --accent: oklch(0.66 0.16 32);
  --accent-foreground: oklch(0.99 0.012 60);
  --border: oklch(0.892 0.012 165);
  --ink: oklch(0.28 0.035 168);
  --ink-foreground: oklch(0.95 0.012 160);

  --radius: 0.625rem;
  --maxw: 72rem;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
}

/* -------- Reset básico -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg.icon {
  width: 1rem;
  height: 1rem;
}

/* Icono con trazo (estilo lucide) */
.feature-icon svg,
.check svg,
.btn svg,
.intake-btn svg,
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.accent {
  color: var(--accent);
}

/* Textura de papel punteado */
.paper-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(
    color-mix(in oklch, var(--foreground) 9%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}

/* -------- Botones -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-dark {
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
  transform: none;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.brand-mark.small {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-name.small {
  font-size: 0.875rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--foreground);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.eyebrow-pill .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
}

.hero-title .hl {
  position: relative;
  white-space: nowrap;
  color: var(--accent);
}

.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 0.375rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 30%, transparent);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 100%;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tarjeta Antes/Después */
.ba-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.35);
}

.ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.25rem;
  margin-bottom: 1rem;
}

.ba-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}

.ba-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
}

.ba-before {
  border: 1px dashed var(--border);
  background: color-mix(in oklch, var(--secondary) 40%, transparent);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.ba-label {
  margin: 0 0 0.25rem;
  padding-inline: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.ba-label.after {
  color: var(--primary);
}

.ba-notes {
  position: relative;
  height: 13rem;
}

.note {
  position: absolute;
  width: 5rem;
  border-radius: 3px;
  padding: 0.25rem 0.375rem;
  font-size: 0.6rem;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.note-yellow {
  background: oklch(0.92 0.09 95);
  color: oklch(0.35 0.05 95);
}

.note-coral {
  background: oklch(0.9 0.06 32);
  color: oklch(0.4 0.1 32);
}

.note-white {
  background: var(--card);
  color: var(--muted-foreground);
}

.n1 { left: 0.5rem; top: 0.75rem; transform: rotate(-6deg); }
.n2 { right: 0.75rem; top: 1.5rem; transform: rotate(6deg); }
.n3 { left: 1.5rem; top: 6rem; transform: rotate(3deg); }
.n4 { right: 1.5rem; top: 7rem; transform: rotate(-3deg); }
.n5 { left: 50%; top: 4rem; transform: translateX(-50%) rotate(2deg); }

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.ba-after {
  border: 1px solid color-mix(in oklch, var(--primary) 25%, transparent);
  background: color-mix(in oklch, var(--primary) 6%, transparent);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.ba-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ba-steps::before {
  content: "";
  position: absolute;
  left: 0.5625rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: color-mix(in oklch, var(--primary) 30%, transparent);
}

.ba-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--card);
}

.check svg {
  width: 0.625rem;
  height: 0.625rem;
  color: var(--primary);
  stroke-width: 3;
}

.step-chip {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* =========================================================
   SECCIONES GENÉRICAS
   ========================================================= */
.section {
  border-bottom: 1px solid var(--border);
}

.section > .container {
  padding-block: 5rem;
}

.section-tint {
  background: color-mix(in oklch, var(--secondary) 30%, transparent);
}

.section-head {
  max-width: 42rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* Grillas de tarjetas */
.grid-4 {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Ejemplos */
.example:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.5);
}

.tag {
  align-self: flex-start;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.example h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

/* Herramientas */
.tools-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--card);
  padding: 1.75rem;
}

.tool-n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: color-mix(in oklch, var(--primary) 25%, transparent);
}

.tool h3 {
  font-size: 1.125rem;
}

.tool p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Metodología */
.steps {
  position: relative;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.step h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}

.step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* =========================================================
   CASO REAL (superficie tinta)
   ========================================================= */
.section-ink {
  background: var(--ink);
  color: var(--ink-foreground);
}

.section-ink .section-title {
  color: var(--ink-foreground);
}

.case-top {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.case-problem,
.case-solution {
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.case-problem {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.case-solution {
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
}

.case-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: color-mix(in oklch, var(--ink-foreground) 60%, transparent);
}

.case-label.accent {
  color: var(--accent);
}

.case-problem p:last-child,
.case-solution p:last-child {
  margin-top: 0.75rem;
  color: color-mix(in oklch, var(--ink-foreground) 88%, transparent);
}

.case-mocks {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.mock-label {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: color-mix(in oklch, var(--ink-foreground) 60%, transparent);
}

.intake {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.intake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
}

.intake-k {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--ink-foreground) 60%, transparent);
}

.intake-v {
  font-size: 0.875rem;
  font-weight: 500;
}

.intake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.board-col {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.board-h {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-inline: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: color-mix(in oklch, var(--ink-foreground) 70%, transparent);
}

.bdot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
}

.bdot.muted { background: color-mix(in oklch, var(--ink-foreground) 40%, transparent); }
.bdot.accent { background: var(--accent); }
.bdot.primary { background: oklch(0.7 0.09 165); }

.board-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.board-item:last-child {
  margin-bottom: 0;
}

/* =========================================================
   SOBRE MÍ
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 0.625rem;
  box-shadow: 0 25px 60px -30px rgba(0, 0, 0, 0.5);
}

.photo-frame img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Cinta adhesiva decorativa */
.tape {
  position: relative;
}

.tape::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: 4.5rem;
  height: 1.4rem;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  border-radius: 2px;
  z-index: 1;
}

.about-text {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.about-text strong {
  color: var(--foreground);
  font-weight: 600;
}

.about-stats {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.about-stats > div {
  background: var(--card);
  padding: 1.25rem;
}

.about-stats dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.about-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  max-width: 48rem;
  text-align: center;
  padding-block: 6rem;
}

.cta-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
}

.cta-lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.cta .btn {
  margin-top: 2rem;
}

/* =========================================================
   PIE
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--secondary) 30%, transparent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  text-align: center;
}

.footer-copy,
.footer-mail {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-mail:hover {
  color: var(--foreground);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding-block: 6rem;
  }

  .section > .container {
    padding-block: 7rem;
  }

  .case-top {
    grid-template-columns: 1fr 1fr;
  }

  .case-mocks {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 1.75rem;
    height: 1px;
    background: var(--border);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-frame {
    transform: rotate(-1.5deg);
  }

  .nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
