/* ============================================
   ASPEPP — Asociación de Personas Pequeñas del Perú
   Sistema de diseño
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Paleta — derivada del logo (silueta magenta + degradado azul + estrellas doradas) */
  --pink-700: #A80E5C;
  --pink-600: #C10E68;
  --pink-500: #E6197F;
  --pink-100: #FDE7F1;
  --pink-50:  #FFF5FA;

  --blue-800: #123B6B;
  --blue-700: #1B5FA8;
  --blue-400: #6FB3E8;
  --blue-200: #C9E6FA;
  --blue-50:  #F1FAFF;

  --gold-500: #F2B400;
  --gold-100: #FFF3D2;

  --ink-900: #201E2B;
  --ink-600: #5B5A68;
  --ink-400: #8B899A;

  --gray-50:  #FAFAFB;
  --gray-100: #F2F2F5;
  --gray-200: #E6E5EC;

  --white: #FFFFFF;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(32, 30, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 95, 168, 0.14);
  --shadow-pink: 0 12px 28px rgba(230, 25, 127, 0.22);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-600); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-600);
  background: var(--pink-100);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.eyebrow.blue { color: var(--blue-700); background: var(--blue-50); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: var(--white);
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(230, 25, 127, 0.3); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-ghost {
  background: var(--blue-50);
  color: var(--blue-700);
}
.btn-ghost:hover { background: var(--blue-200); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: 46px; border-radius: 50%; }
.brand-text { font-family: var(--font-display); font-weight: 700; color: var(--pink-600); font-size: 1.05rem; line-height: 1.1; }
.brand-text span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.65rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.06em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-600);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--pink-600); background: var(--pink-100); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--pink-600); cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav-actions { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--blue-200) 55%, var(--blue-400) 100%);
  padding: 72px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.hero h1 { color: var(--ink-900); }
.hero h1 em { font-style: normal; color: var(--pink-600); }
.hero-lead { font-size: 1.08rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.1;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-arc {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 90px;
  background: var(--white);
  border-radius: 100% 100% 0 0 / 90px 90px 0 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: -46px auto 70px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.stat-card .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--pink-600); }
.stat-card .label { font-size: 0.82rem; color: var(--ink-400); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
}

/* ===== Secciones genéricas ===== */
.section { padding: 78px 0; }
.section.alt { background: var(--gray-50); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.pillar-icon.pink { background: var(--pink-100); }
.pillar-icon.blue { background: var(--blue-50); }
.pillar-icon.gold { background: var(--gold-100); }

/* ===== Franja de cita / CTA ===== */
.cta-band {
  background: radial-gradient(circle at 20% 20%, var(--pink-500), var(--pink-700) 70%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ===== Noticias / tarjetas de contenido ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.news-card .thumb { aspect-ratio: 16/10; background: var(--blue-100); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; }
.news-date { font-size: 0.78rem; font-weight: 700; color: var(--pink-600); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-800); color: rgba(255,255,255,0.82); padding: 60px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 50%; }
.footer-brand strong { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer a { display: block; padding: 6px 0; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; padding: 0; }
.social-row a:hover { background: var(--pink-500); color: var(--white); }

/* ===== Formularios ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink-900); }
.field small { color: var(--ink-400); font-weight: 500; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink-500); background: var(--white); }
textarea { resize: vertical; min-height: 100px; }

.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-top: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E6F7ED; color: #1B7A3D; }
.form-msg.err { background: #FDEAEE; color: #C1123D; }

/* ===== Página interior genérica ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero .eyebrow { background: rgba(255,255,255,0.15); color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 620px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-500); }

/* ===== Galería / Eventos ===== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-600);
}
.filter-chip.active { background: var(--pink-600); border-color: var(--pink-600); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .tag { position: absolute; bottom: 10px; left: 10px; background: rgba(32,30,43,0.7); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }

.timeline { position: relative; padding-left: 28px; border-left: 3px solid var(--pink-100); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before { content: ""; position: absolute; left: -35.5px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink-500); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--pink-100); }
.timeline-item .date { font-weight: 700; color: var(--pink-600); font-family: var(--font-display); font-size: 0.9rem; }

/* Utilidades */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }


/* ============================================
   ASPEPP — Añadido: Historia y Directorio
   (Pegar al final de css/styles.css existente)
   ============================================ */

/* ===== Historia (artículo) ===== */
.story-article { max-width: 760px; }
.story-article h3 { margin-top: 2em; color: var(--pink-600); font-size: 1.25rem; }
.story-article .lead-quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-900);
  border-left: 4px solid var(--pink-500);
  padding-left: 18px;
  margin: 0 0 28px;
}
.story-closing {
  margin-top: 34px;
  padding: 26px 30px;
  background: var(--pink-50);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--pink-700);
}
.story-closing p { color: var(--pink-700); margin-bottom: 0.6em; }
.story-closing p:last-child { margin-bottom: 0; font-weight: 700; }

/* ===== Misión / Visión ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
}
.mv-card.pink-tint { background: var(--pink-50); border-color: var(--pink-100); }
.mv-card.blue-tint { background: var(--blue-50); border-color: var(--blue-200); }
.mv-card h3 { margin-bottom: 14px; }

/* ===== Directorio ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink-500), var(--blue-700));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.team-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pink-600);
  background: var(--pink-100);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.team-name { font-weight: 700; margin-bottom: 4px; }
.team-occupation { font-size: 0.85rem; color: var(--ink-400); margin: 0; }