/* ============================================================
   CORPORACIÓN AFROCOLOMBIANA LA LLEVA
   subpages.css — Hoja de estilos exclusiva para:
   quienes.html · mision.html · proyectos.html
   galeria.html · contacto.html
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --green:       #1a6b3a;
  --green-light: #2d9b55;
  --green-dark:  #0e3d21;
  --gold:        #d4870f;
  --coral:       #e85d5d;
  --pink:        #f4a0a0;
  --cream:       #faf5e8;
  --dark:        #0d1117;
  --dark-card:   #141c27;
  --text:        #2c2c2c;
  --text-light:  #6b6b6b;
  --white:       #ffffff;
  --font:        Arial, Helvetica, sans-serif;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ============================================================
   NAV — Versión sólida para subpáginas
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
}
.nav-logo span {
  color: var(--white); font-weight: 700; font-size: 15px;
  letter-spacing: 0.3px; font-family: var(--font);
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.3px;
  font-family: var(--font); transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active {
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 2px;
}
.nav-donate {
  background: var(--coral); color: var(--white);
  border: none; padding: 9px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-donate:hover { background: #d44; transform: scale(1.04); }

/* ============================================================
   PAGE HERO — Encabezado verde para cada subpágina
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  padding: 130px 80px 68px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -220px; right: -110px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -80px; left: -60px; pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px; font-size: 13px; font-family: var(--font);
}
.page-hero-breadcrumb a {
  color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s;
}
.page-hero-breadcrumb a:hover { color: var(--white); }
.page-hero-breadcrumb span  { color: rgba(255,255,255,0.3); }
.page-hero-breadcrumb strong { color: var(--white); font-weight: 700; }
.page-hero-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 14px; font-family: var(--font);
}
.page-hero h1 {
  font-family: var(--font); font-size: clamp(36px, 6vw, 74px);
  font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
  color: var(--white); line-height: 1.05; margin-bottom: 18px;
}
.page-hero h1 span { color: #a8e6c4; }
.page-hero p {
  color: rgba(255,255,255,0.76); font-size: 16px;
  max-width: 560px; line-height: 1.65; font-family: var(--font);
}

/* ============================================================
   SECCIONES — Utilidades compartidas
   ============================================================ */
section { scroll-margin-top: 70px; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 80px 48px; }
.tag {
  display: inline-block;
  background: var(--dark); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 50px; text-transform: uppercase;
  margin-bottom: 16px; font-family: var(--font);
}
.tag.green { background: var(--green); }
.section-title {
  font-family: var(--font);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05; letter-spacing: 1px; font-weight: 900;
  text-transform: uppercase; color: var(--dark);
}
.section-title span       { color: var(--coral); font-weight: 900; }
.section-title span.green { color: var(--green-light); }
.section-desc {
  color: var(--text-light); font-size: 15px;
  max-width: 520px; line-height: 1.65; margin-top: 10px;
  font-family: var(--font);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--white);
  padding: 14px 30px; border-radius: 50px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white); padding: 36px 80px;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font); font-size: 46px; line-height: 1;
  font-weight: 900; display: block; margin-bottom: 4px; letter-spacing: -1px;
}
.stat-num.green { color: var(--green-light); }
.stat-num.gold  { color: var(--gold); }
.stat-num.coral { color: var(--coral); }
.stat-num.teal  { color: #16a085; }
.stat-label {
  font-size: 13px; color: var(--text-light);
  font-weight: 500; font-family: var(--font);
}

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
#quienes { background: var(--cream); }
.qs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.qs-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.qs-img img { width: 100%; height: 400px; object-fit: cover; display: block; }
.qs-card {
  background: var(--dark-card); border-radius: 20px;
  padding: 44px; position: relative; overflow: hidden;
}
.qs-card::before {
  content: '\201C'; font-family: var(--font);
  font-size: 160px; color: var(--gold); opacity: 0.1;
  position: absolute; top: -30px; left: 14px; line-height: 1;
  pointer-events: none;
}
.qs-card h2 {
  font-family: var(--font); color: var(--white);
  font-size: 26px; font-weight: 700; margin-bottom: 16px;
}
.qs-card p {
  color: rgba(255,255,255,0.72); line-height: 1.7;
  font-size: 15px; margin-bottom: 28px; font-family: var(--font);
}
.qs-info { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.qs-info-row {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.8); font-size: 14px; font-family: var(--font);
}
.qs-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}
.qs-btn {
  display: inline-block;
  background: var(--pink); color: var(--dark);
  padding: 11px 26px; border-radius: 50px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  font-family: var(--font); transition: transform 0.2s;
}
.qs-btn:hover { transform: scale(1.04); }

/* ============================================================
   MISIÓN / VISIÓN
   ============================================================ */
#mision { background: var(--white); }
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 48px;
}
.mv-card {
  background: #f8f8f8; border-radius: 20px; padding: 36px;
  border: 1px solid #ececec;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.mv-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.mv-icon.teal { background: linear-gradient(135deg,#0fcda0,#0e9f78); }
.mv-icon.gold { background: linear-gradient(135deg,#f5a623,#d4870f); }
.mv-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 8px; font-family: var(--font);
}
.mv-card h3 {
  font-family: var(--font); font-size: 20px; font-weight: 700;
  margin-bottom: 14px; color: var(--dark);
}
.mv-card p {
  font-size: 14px; line-height: 1.7; color: var(--text-light);
  margin-bottom: 22px; font-family: var(--font);
}
.mv-stat {
  font-family: var(--font); font-size: 40px; color: var(--dark);
  line-height: 1; font-weight: 900;
}
.mv-stat-lbl {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 20px; font-family: var(--font);
}
.mv-btn {
  display: block; text-align: center; padding: 12px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  font-family: var(--font); transition: opacity 0.2s;
}
.mv-btn.solid   { background: var(--dark); color: var(--white); }
.mv-btn.outline { background: transparent; border: 2px solid var(--dark); color: var(--dark); }
.mv-btn:hover   { opacity: 0.8; }

/* ============================================================
   PROYECTOS
   ============================================================ */
#proyectos { background: var(--cream); }
.proj-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 40px;
}
.proj-controls { display: flex; gap: 10px; }
.proj-btn-ctrl {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid #ddd;
  cursor: pointer; font-size: 16px; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
}
.proj-btn-ctrl:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.proj-badge {
  background: var(--green); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 5px 14px; border-radius: 50px; font-family: var(--font);
}
.proj-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.proj-card {
  border-radius: 16px; overflow: hidden;
  background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.proj-img { position: relative; height: 180px; overflow: hidden; }
.proj-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.proj-card:hover .proj-img img { transform: scale(1.07); }
.proj-chip {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; color: var(--dark); font-family: var(--font);
}
.proj-body { padding: 20px; }
.proj-body h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
  color: var(--dark); font-family: var(--font);
}
.proj-body p {
  font-size: 13px; color: var(--text-light);
  line-height: 1.6; margin-bottom: 16px; font-family: var(--font);
}
.proj-footer { display: flex; justify-content: space-between; align-items: center; }
.proj-participants {
  font-size: 13px; font-weight: 700; color: var(--dark); font-family: var(--font);
}
.proj-participants span {
  font-size: 11px; font-weight: 400; color: var(--text-light); display: block;
}
.proj-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dark); color: var(--white); border: none;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
}

/* ============================================================
   GALERÍA
   ============================================================ */
#galeria { background: var(--white); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 40px;
}
.gallery-item {
  border-radius: 16px; overflow: hidden;
  cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover;
  display: block; transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  color: var(--white); font-size: 13px; font-weight: 700; z-index: 1;
  opacity: 0; transform: translateY(6px); transition: all 0.3s;
  font-family: var(--font);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-row-2 {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; margin-top: 16px;
}
.gallery-row-2 .gallery-item img { height: 160px; }
/* Extended full grid */
.gallery-full {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 40px;
}
.gallery-full .gallery-item img { height: 240px; }
/* Lightbox */
.gallery-lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92); display: none;
  align-items: center; justify-content: center;
}
.gallery-lightbox-overlay.open { display: flex; }
.gallery-lightbox-overlay img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px; object-fit: contain;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 32px; color: #fff; cursor: pointer;
  background: none; border: none; line-height: 1;
}
.lb-caption {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 8px 20px; border-radius: 50px;
  font-size: 13px; font-family: var(--font);
  white-space: nowrap;
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto { background: var(--cream); }
.contact-info-bar {
  background: var(--white); border-radius: 20px;
  display: grid; grid-template-columns: repeat(4,1fr);
  padding: 32px; gap: 24px; margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.ci-item { text-align: center; }
.ci-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin: 0 auto 12px;
}
.ci-icon.green { background: #d4f5e7; }
.ci-icon.gold  { background: #fef3dc; }
.ci-icon.coral { background: #fde8e8; }
.ci-icon.teal  { background: #d4f5f0; }
.ci-item h4 {
  font-size: 14px; font-weight: 700; margin-bottom: 4px; font-family: var(--font);
}
.ci-item p { font-size: 13px; color: var(--text-light); font-family: var(--font); }
.contact-form-wrap {
  background: var(--white); border-radius: 20px; padding: 44px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contact-form-wrap h3 {
  font-family: var(--font); font-size: 22px; font-weight: 700;
  text-align: center; margin-bottom: 28px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--font);
}
.form-group input,
.form-group textarea {
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  padding: 12px 16px; font-size: 14px; font-family: var(--font);
  transition: border-color 0.2s; outline: none; resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green-light); }
.char-count {
  font-size: 11px; color: var(--text-light);
  text-align: right; font-family: var(--font);
}
.form-submit {
  width: 100%; background: #4070f4; color: var(--white);
  border: none; padding: 15px; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.15s; margin-top: 8px;
}
.form-submit:hover { background: #2d5de0; transform: translateY(-1px); }
.social-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 28px;
}
.social-row p {
  font-size: 13px; color: var(--text-light); font-family: var(--font);
}
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none; transition: background 0.2s;
}
.social-btn:hover { background: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark); color: var(--white); }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 60px; padding: 60px 80px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo  { display: flex; align-items: center; gap: 12px; }
.footer-logo img  { width: 48px; height: 48px; border-radius: 50%; }
.footer-logo span { font-size: 16px; font-weight: 700; font-family: var(--font); }
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,0.6);
  max-width: 400px; line-height: 1.65; font-family: var(--font);
}
.footer-desc {
  font-size: 14px; color: rgba(255,255,255,0.5);
  max-width: 420px; line-height: 1.65; font-family: var(--font);
}
.footer-links {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 32px; padding: 48px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fl-col h5 {
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
  color: var(--white); letter-spacing: 0.3px; font-family: var(--font);
}
.fl-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fl-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.55);
  text-decoration: none; font-family: var(--font); transition: color 0.2s;
}
.fl-col ul li a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-decoration: none; transition: background 0.2s;
}
.footer-social a:hover { background: var(--green); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 80px;
}
.footer-bottom-left { display: flex; align-items: center; gap: 24px; }
.footer-bottom img  { width: 38px; height: 38px; border-radius: 50%; }
.footer-bottom-left p { font-size: 13px; color: rgba(255,255,255,0.6); font-family: var(--font); }
.footer-bottom-right {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.5); font-family: var(--font);
}
.footer-bottom-right a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-bottom-right a:hover { color: var(--white); }
.footer-newsletter { display: flex; gap: 8px; margin-top: 16px; }
.footer-newsletter input {
  flex: 1; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 10px 16px; border-radius: 10px;
  font-size: 13px; outline: none; font-family: var(--font);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter button {
  width: 40px; height: 40px; border-radius: 10px;
  background: #4070f4; color: var(--white); border: none;
  cursor: pointer; font-size: 16px; font-family: var(--font);
  transition: background 0.2s;
}
.footer-newsletter button:hover { background: #2d5de0; }
.footer-nit {
  font-size: 12px; color: rgba(255,255,255,0.35); font-family: var(--font);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .page-hero { padding: 100px 24px 52px; }
  .section-inner { padding: 60px 24px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 28px 24px; gap: 20px; }
  .qs-grid,
  .mv-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2,1fr); }
  .contact-info-bar { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2,1fr); }
  .gallery-row-2 { grid-template-columns: repeat(2,1fr); }
  .gallery-full  { grid-template-columns: repeat(2,1fr); }
  .footer-top    { grid-template-columns: 1fr; padding: 40px 24px 28px; }
  .footer-links  { grid-template-columns: repeat(2,1fr); padding: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; padding: 20px 24px; text-align: center; }
}

/* ── BOTÓN ADMIN (nav subpages) ── */
.nav-admin {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  text-decoration: none; margin-left: 6px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav-admin:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green-light);
  transform: scale(1.08);
}
