/* ════════════════════════════════════════════════
   proyectos.css — Páginas de detalle de proyecto
   Alianza Sustentable
   Depende de: main.css (variables, navbar, footer)
════════════════════════════════════════════════ */

/* ── REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PAGE HERO ─────────────────────────────── */
.proj-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(8,18,36,.95) 0%, rgba(26,74,114,.88) 60%, rgba(8,18,36,.85) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&auto=format&fit=crop') center/cover no-repeat;
  overflow: hidden;
}
.proj-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(26,95,158,.25) 0%, transparent 65%);
  pointer-events: none;
}
.proj-hero-inner {
  position: relative;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 56px;
}
.proj-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.proj-hero-label i { font-size: 10px; color: #f0a500; }
.proj-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.18;
  color: #fff;
  max-width: 780px;
  margin-bottom: 20px;
}
.proj-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #f0a500, #f7c948);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proj-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 680px;
  margin-bottom: 36px;
}
.proj-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag {
  padding: 5px 14px; border-radius: 40px;
  font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(4px);
}
.hero-tag.green  { border-color: rgba(61,160,104,.5); color: #6ecf94; background: rgba(46,125,82,.15); }
.hero-tag.accent { border-color: rgba(240,165,0,.4);  color: #f7c948; background: rgba(240,165,0,.1); }

/* ── FICHA FLOTANTE ────────────────────────── */
.proj-ficha-bg { background: #f7f9fc; padding: 0 40px; }
.proj-ficha-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(8,18,36,.14);
  padding: 32px 36px;
  margin-top: -48px;
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 32px;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
.ficha-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #1e5f9e;
  margin-bottom: 5px;
}
.ficha-val {
  font-family: 'Raleway', sans-serif;
  font-size: .97rem; font-weight: 700;
  color: #1a1f2e;
  line-height: 1.3;
}

/* ── CUERPO PRINCIPAL ──────────────────────── */
.proj-body { background: #f7f9fc; }
.proj-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ── BLOQUES DE CONTENIDO ──────────────────── */
.proj-section { margin-bottom: 48px; }
.proj-section:last-child { margin-bottom: 0; }
.ps-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ps-line { width: 32px; height: 3px; background: #1e5f9e; border-radius: 2px; flex-shrink: 0; }
.ps-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #1e5f9e;
}
.proj-section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.55rem; font-weight: 800;
  color: #081224;
  margin-bottom: 16px; line-height: 1.25;
}
.proj-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: .97rem; line-height: 1.8;
  color: #4a5568;
  margin-bottom: 14px;
}
.proj-section p:last-child { margin-bottom: 0; }

/* ── NORMAS BADGES ─────────────────────────── */
.normas-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.norma-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 6px;
  background: rgba(26,74,114,.07);
  border: 1px solid rgba(26,74,114,.15);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #1a4a72;
}
.norma-badge i { font-size: 10px; color: #1e5f9e; }

/* ── METODOLOGÍA STEPS ─────────────────────── */
.meto-steps {
  display: flex; flex-direction: column;
  gap: 0; margin-top: 20px;
  position: relative;
}
.meto-steps::before {
  content: '';
  position: absolute; left: 19px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, #1e5f9e, rgba(26,74,114,.1));
}
.meto-step { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.meto-step:last-child { padding-bottom: 0; }
.ms-num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #1a4a72;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px #f7f9fc;
}
.ms-title {
  font-family: 'Raleway', sans-serif;
  font-size: .97rem; font-weight: 700;
  color: #1a1f2e; margin-bottom: 5px;
}
.ms-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; line-height: 1.7; color: #4a5568;
}

/* ── ENTREGABLES ───────────────────────────── */
.entregables-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.entregables-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: 'DM Sans', sans-serif; font-size: .93rem;
  line-height: 1.6; color: #4a5568;
}
.entregables-list li i { color: #3da068; font-size: 14px; margin-top: 3px; flex-shrink: 0; }

/* ── RESULTADOS ────────────────────────────── */
.resultados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 20px;
}
.res-card {
  background: #fff; border-radius: 10px;
  padding: 22px 20px;
  border-left: 4px solid #2e7d52;
  box-shadow: 0 4px 24px rgba(8,18,36,.10);
}
.res-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(46,125,82,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: #2e7d52; font-size: 15px;
}
.res-title {
  font-family: 'Raleway', sans-serif;
  font-size: .92rem; font-weight: 700;
  color: #1a1f2e; margin-bottom: 5px;
}
.res-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .87rem; line-height: 1.65; color: #4a5568;
}

/* ── QUOTE CALLOUT ─────────────────────────── */
.proj-quote {
  background: linear-gradient(135deg, #081224, #1a4a72);
  border-radius: 10px; padding: 32px 36px;
  margin: 48px 0; position: relative; overflow: hidden;
}
.proj-quote::before {
  content: '\201C';
  font-family: 'Raleway', sans-serif; font-size: 120px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.07);
  position: absolute; top: -10px; left: 20px; pointer-events: none;
}
.proj-quote p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,.88); font-style: italic;
  position: relative; z-index: 1; margin: 0 0 12px;
}
.proj-quote cite {
  font-family: 'DM Sans', sans-serif;
  font-size: .83rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ── SIDEBAR ───────────────────────────────── */
.proj-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 24px rgba(8,18,36,.10);
  overflow: hidden; margin-bottom: 24px;
}
.sc-head { padding: 18px 24px 14px; border-bottom: 1px solid rgba(26,74,114,.08); }
.sc-head h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .95rem; font-weight: 800; color: #081224;
}
.sc-body { padding: 20px 24px; }
.sc-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid rgba(26,74,114,.06);
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
}
.sc-row:last-child { border-bottom: none; }
.sc-key { color: #4a5568; font-weight: 500; }
.sc-val { color: #1a1f2e; font-weight: 600; text-align: right; max-width: 60%; }
.sc-svc-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #1a1f2e;
  font-family: 'DM Sans', sans-serif; font-size: .88rem; font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid rgba(26,74,114,.07);
  transition: color .2s;
}
.sc-svc-link:last-child { border-bottom: none; }
.sc-svc-link:hover { color: #1e5f9e; }
.sc-svc-link i { color: #1e5f9e; width: 16px; }

/* ── CTA SIDEBAR ───────────────────────────── */
.proj-cta {
  background: linear-gradient(135deg, #081224 0%, #1a4a72 60%, #0f3460 100%);
  border-radius: 10px; padding: 36px 28px; text-align: center;
}
.proj-cta h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  margin-bottom: 10px; line-height: 1.25;
}
.proj-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem; color: rgba(255,255,255,.72);
  margin-bottom: 24px; line-height: 1.7;
}
.cta-btns-proj { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ── NAV ENTRE PROYECTOS ───────────────────── */
.proj-nav-bar {
  background: #fff;
  border-top: 1px solid rgba(26,74,114,.1);
  padding: 24px 0;
}
.proj-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.pnav-link {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 600;
  color: #1a4a72; text-decoration: none;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid rgba(26,74,114,.15);
  transition: all .2s;
}
.pnav-link:hover { background: #1a4a72; color: #fff; border-color: #1a4a72; }
.pnav-link i { font-size: 11px; }
.pnav-center { font-family: 'DM Sans', sans-serif; font-size: .85rem; color: #4a5568; }
.pnav-center a { color: #1a4a72; font-weight: 600; text-decoration: none; }
.pnav-center a:hover { text-decoration: underline; }

/* ── BREADCRUMB PROYECTO ───────────────────── */
.proj-breadcrumb { margin-bottom: 20px; }
.proj-breadcrumb a {
  color: rgba(255,255,255,.5); text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
}
.proj-breadcrumb a:hover { color: rgba(255,255,255,.85); }
.proj-breadcrumb span { color: rgba(255,255,255,.3); margin: 0 8px; font-size: 10px; }
.proj-breadcrumb .bc-cur { color: rgba(255,255,255,.75); font-family: 'DM Sans', sans-serif; font-size: 12px; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .proj-layout { grid-template-columns: 1fr; }
  .proj-sidebar { position: static; }
}
@media (max-width: 640px) {
  .proj-hero-inner { padding: 100px 20px 48px; }
  .proj-ficha-bg { padding: 0 16px; }
  .proj-ficha-wrap { padding: 24px 20px; gap: 18px; }
  .proj-quote { padding: 24px 20px; }
  .proj-cta { padding: 28px 20px; }
  .proj-nav-inner { padding: 0 16px; }
}
