/* =========================================================
   pozo.css · la portada como un pozo (2026-11-12)
   1. Dibujo técnico del hero  2. Marcas de profundidad por sección
   3. Un solo trazo para el medidor, la trayectoria y los logros
   Va después de styles.css y home.css; solo afecta a la portada.
   ========================================================= */

/* ---------- 1. Dibujo técnico del hero ---------- */
.hero-dibujo { display: none; margin: 0; }
.home-page[data-hero="dibujo"] .hero-dibujo { display: block; }
/* Solo el carrusel del hero: la sección Software usa el mismo marco (.hero-photo-frame) y debe verse */
.home-page[data-hero="dibujo"] #heroCarousel { display: none; }

.hero-dibujo {
  width: 100%; aspect-ratio: 4 / 3;
  background: #111a2c; border: 1px solid #2a3549; border-radius: var(--radius-md);
  box-shadow: 0 16px 48px -24px #020713; overflow: hidden;
}
.hero-dibujo svg { display: block; width: 100%; height: 100%; }
.pz-grid { stroke: rgba(150, 175, 215, 0.12); stroke-width: 1; }
.pz-grid-minor { stroke-dasharray: 2 6; }
.pz-axis, .pz-label, .pz-cap {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.pz-axis { font-size: 12px; fill: var(--text-muted); }
.pz-cap { font-size: 11.5px; letter-spacing: 0.04em; fill: var(--text-muted); }
.pz-label { font-size: 13px; fill: var(--text-secondary); }
/* En celular el dibujo mide ~330 px: quedan la escala, el corte, el KOP y el objetivo */
@media (max-width: 680px) {
  .pz-cap, .pz-lead, .pz-label { display: none; }
  .pz-label-target, .pz-label-cut { display: inline; font-size: 22px; }
  .pz-axis { font-size: 16px; transform: translateX(10px); }
}
.pz-label-soft { fill: var(--text-muted); font-style: italic; }
.pz-label-target { fill: var(--accent); }
.pz-label-cut { fill: var(--accent); }
.pz-lead { stroke: rgba(150, 175, 215, 0.3); stroke-width: 1; }
.pz-rig path { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; stroke-linejoin: round; }
.pz-csg line { stroke: rgba(200, 215, 235, 0.55); stroke-width: 1.5; }
.pz-shoe { fill: rgba(200, 215, 235, 0.55); }
.pz-shoe-path { fill: var(--accent); }
.pz-cut { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pz-track { fill: none; stroke: rgba(34, 195, 190, 0.18); stroke-width: 6; stroke-linecap: round; }
.pz-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.pz-kop { fill: var(--bg-primary); stroke: var(--accent); stroke-width: 2; }
.pz-target circle { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0.45; }
.pz-target circle + circle { opacity: 0.7; }
.pz-target .pz-target-core { fill: var(--accent); stroke: none; opacity: 1; }

/* La trayectoria se traza una vez al cargar (decorativo; el dibujo está completo sin esto) */
@media (prefers-reduced-motion: no-preference) {
  .pz-path { stroke-dasharray: 100; stroke-dashoffset: 0; animation: pz-trazo 1.2s var(--ease-out) 0.15s both; }
  @keyframes pz-trazo { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
}

/* ---------- 2. Marcas de profundidad por sección (pozo.js) ---------- */
/* La raya de acento bajo el título pasa a ser una marca de profundidad: "── MD 1,240 m" */
.home-page .section-header.pz-has-md .section-title::after { display: none; }
.pz-md {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-1) 0 var(--space-4);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1;
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.pz-md::before { content: ''; width: 40px; height: 2px; background: var(--accent); flex: none; }
.pz-md b { font-weight: 600; color: var(--text-secondary); }

/* ---------- 3. Un solo trazo: medidor lateral, trayectoria y logros ---------- */
/* Base: carril de 3 px con marcas cada 12 px (como una regla de profundidad); avance en acento sólido */
.home-page .dm-track,
.home-page .timeline::before,
.home-page .well-track::before {
  background: repeating-linear-gradient(180deg, rgba(150, 175, 215, 0.34) 0 1px, transparent 1px 12px);
}
.home-page .timeline::before { width: 3px; }
.home-page .well-track::before { width: 3px; }
.home-page .well-track::after { width: 3px; }
.home-page .dm-fill { background: var(--accent); }
.home-page .dm-bit { background: var(--accent); box-shadow: 0 0 0 3px var(--bg-primary); }
.home-page .dm-val { color: var(--accent); }
/* Puntos de la trayectoria: misma "estación" que los logros */
.home-page .timeline-item::before { background: var(--bg-primary); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg-primary); }
