/* Página /proyectos — "dossier técnico" personal de Enzo Ayala.
   Hereda color base y componentes de styles.css (marca: negro + naranja),
   pero pisa la tipografía y suma una segunda capa de acento (bronce) para
   distinguir "credencial/autoridad" del naranja de venta, más profundidad
   real vía sombras en capas, tilt 3D e ilustraciones propias de flujo. */

:root {
  --font-head: 'Newsreader', 'Iowan Old Style', 'Georgia', serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --bronze: #C9924B;
  --bronze-light: #E3B678;
  --bronze-tint: rgba(201, 146, 75, 0.16);
  --surface: #161109;
  --surface-raised: #201808;
  --shadow-deep: 0 4px 10px rgba(0,0,0,0.35), 0 24px 60px rgba(0,0,0,0.5);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
.proy-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange-light);
}

/* Header simple (sin menú de venta) */
.proy-nav__back {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
}
.proy-nav__back:hover { opacity: 1; color: var(--orange-light); }

/* Hero de título — reutiliza el canvas #particles de main.js (misma
   constelación naranja del home), que aquí funciona doblemente: ambiente
   premium y metáfora visual de un grafo de nodos (el lenguaje visual de n8n). */
.proy-hero {
  position: relative;
  padding: 96px 0 64px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,106,26,0.14), transparent 60%), var(--bg);
  text-align: center;
  overflow: hidden;
}
.proy-hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.proy-hero__inner { position: relative; }
.proy-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  max-width: 780px;
  margin: 16px auto 20px;
  text-wrap: balance;
}
.proy-hero h1 em { font-style: italic; color: var(--orange-light); font-weight: 500; }
.proy-hero__lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* Quién soy — bio corta + eslogan de autoridad */
.proy-about {
  padding: 8px 0 60px;
  text-align: center;
}
.proy-about__bio {
  max-width: 700px;
  margin: 16px auto 0;
  font-size: 1.02rem;
  color: var(--text-muted);
}
.proy-about__slogan {
  max-width: 760px;
  margin: 34px auto 0;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}
.proy-about__slogan em { font-style: italic; color: var(--orange-light); font-weight: 600; }

/* Presentación */
.proy-intro { padding: 8px 0 76px; }
.proy-intro__lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
}
.proy-availability {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--orange-light);
  font-weight: 500;
}

/* Credencial — "placa" de autoridad, acento bronce (distinto del naranja
   de venta) con un diagrama esquemático de flujo grabado al costado. */
.proy-credential {
  max-width: 820px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  background: linear-gradient(155deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-top-color: rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: var(--shadow-deep);
  text-align: left;
}
.proy-credential__diagram { flex-shrink: 0; width: 96px; height: 72px; color: var(--bronze); opacity: 0.9; }
.proy-credential__diagram svg { width: 100%; height: 100%; }
.proy-credential__label {
  display: block;
  color: var(--bronze-light);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.proy-credential__title { font-family: var(--font-head); color: var(--text); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.proy-credential__meta { color: var(--text-muted); font-size: 0.85rem; margin: 0; font-family: var(--font-mono); }
.proy-credential__meta span { color: var(--bronze-light); }

/* Nota tipo "aviso cercano" dentro de una sección (más muestras, pedir a medida) */
.proy-callout {
  max-width: 620px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 0.98rem;
  color: var(--orange-light);
  font-weight: 500;
}

/* Secciones */
.proy-section { padding: 30px 0 90px; }
.proy-section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.proy-section h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 10px 0 12px; }
.proy-section__intro { font-size: 0.98rem; color: var(--text-muted); }

/* ---- Casos reales: filas tipo "dossier", alternando texto/visual ---- */
.proy-dossier { display: flex; flex-direction: column; gap: 64px; }
.proy-case {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.proy-case--reverse .proy-case__visual { order: 2; }
.proy-case--reverse .proy-case__text { order: 1; }

.proy-case__client {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--bronze-light);
  background: var(--bronze-tint);
  border: 1px solid rgba(201,146,75,0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.proy-case__text h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 16px; }
.proy-case__text p { font-size: 0.94rem; margin-bottom: 13px; }
.proy-case__text p strong { color: var(--text); font-weight: 600; }
.proy-case__problema { color: var(--text-muted); }
.proy-case__hecho { color: var(--text); }
.proy-case__resultado {
  margin-bottom: 0;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--orange-light);
  font-size: 0.9rem;
}

.proy-case__visual { display: flex; justify-content: center; }
.proy-case__caption {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 14px;
}

/* Mockup de chat (reutiliza .phone/.bubble de styles.css, agregado de profundidad) */
.proy-case__visual .phone { box-shadow: var(--shadow-deep); }

/* Mockup de "canal" / broadcast (caso Bazar Electro JyE) */
.proy-channel {
  width: 290px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-deep);
  transform: perspective(900px) rotateY(6deg) rotateX(-2deg);
}
.proy-channel__header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.proy-channel__avatar {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #14100D; font-size: 0.9rem;
}
.proy-channel__name { font-size: 0.82rem; font-weight: 600; color: var(--text); margin: 0; }
.proy-channel__sub { font-size: 0.68rem; color: var(--text-muted); margin: 0; }
.proy-channel__post { background: var(--bg-alt); border-radius: 12px; padding: 12px; }
.proy-channel__thumb {
  width: 100%; height: 110px; border-radius: 8px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,106,26,0.35), rgba(20,16,13,0.6));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.4px;
}
.proy-channel__caption { font-size: 0.8rem; color: var(--text); margin: 0 0 4px; }
.proy-channel__price { font-family: var(--font-head); font-weight: 700; color: var(--orange-light); font-size: 0.95rem; margin: 0; }
.proy-channel__time { display: block; text-align: right; font-size: 0.65rem; color: var(--text-muted); margin-top: 8px; }

/* Pipeline esquemático (caso de prospección de email) */
.proy-pipeline {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
}
.proy-pipeline__step { display: flex; align-items: flex-start; gap: 14px; position: relative; padding-bottom: 26px; }
.proy-pipeline__step:last-child { padding-bottom: 0; }
.proy-pipeline__step::before {
  content: "";
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.proy-pipeline__step:last-child::before { display: none; }
.proy-pipeline__num {
  flex-shrink: 0;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--orange-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.proy-pipeline__step.is-final .proy-pipeline__num { background: var(--orange); border-color: var(--orange); color: #14100D; }
.proy-pipeline__label { font-size: 0.88rem; color: var(--text); padding-top: 4px; }

/* ---- Automatizaciones que puedo implementar: índice técnico, no cards ---- */
.proy-index { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.proy-index__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.proy-index__row:nth-child(odd) { border-right: 1px solid var(--border); }
.proy-index__row:hover { background: rgba(255,255,255,0.02); }
.proy-index__num { font-family: var(--font-mono); color: var(--bronze-light); font-size: 0.85rem; padding-top: 2px; }
.proy-index__row h4 { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.proy-index__row p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Cierre */
.proy-close {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: #14100D;
  position: relative;
}
.proy-close h2 { font-family: var(--font-head); color: #14100D; margin-bottom: 16px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.proy-close p { color: rgba(20,16,13,0.75); max-width: 560px; margin: 0 auto 32px; font-size: 1.08rem; }
.proy-close .btn--primary { background: #14100D; color: var(--orange-light); box-shadow: 0 20px 45px rgba(0,0,0,0.35); }
.proy-close .btn--primary:hover { background: #221b16; }

/* Responsive */
@media (max-width: 900px) {
  .proy-case, .proy-case--reverse .proy-case__visual, .proy-case--reverse .proy-case__text {
    order: initial;
  }
  .proy-case { grid-template-columns: 1fr; gap: 32px; }
  .proy-case__visual { order: -1; }
  .proy-index { grid-template-columns: 1fr; }
  .proy-index__row:nth-child(odd) { border-right: none; }
}
@media (max-width: 720px) {
  .proy-hero { padding: 76px 0 48px; }
  .proy-close { padding: 68px 0; }
  .proy-credential { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .proy-credential__diagram { margin: 0 auto; }
}
