/* ==============================
   Variables de color y tipografía
   ============================== */
:root {
  --color-bg: #f8f8f8;               /* Blanco suave */
  --color-silver: #e0e0e0;           /* Plateado claro */
  --color-green-dark: #2e7d32;       /* Verde intenso */
  --color-green-light: #81c784;      /* Verde suave */
  --color-gold: #d4af37;             /* Dorado elegante */
  --color-text: #333;                /* Texto principal */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --font-title: 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ==============================
   Reset básico
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.page {
  /* Imagen de fondo con filtro dorado suave */
  background: 
    linear-gradient(rgba(212,175,55,0.15), rgba(212,175,55,0.15)), 
    url('https://tse2.mm.bing.net/th/id/OIP.7cyy_kX-EQEygeIEchN96QHaFN?rs=1&pid=ImgDetMain&o=7&rm=3') center/cover fixed;
  color: var(--color-text);
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}


/* ==============================
   Contenedor general
   ============================== */
.container {
  width: min(95%, 1200px);
  margin: 0 auto;
  padding: 1rem;
}

/* ==============================
   Encabezado con fondo difuso
   ============================== */
.site-header {
  position: relative;
  text-align: center;
  padding: 3rem 1rem;
  color: #fff;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: url('https://www.crecimientoinclusivo.org/wp-content/uploads/2021/11/negocios-inclusivos-oepci.jpg') center/cover no-repeat;
  filter: blur(4px) brightness(0.7);
  z-index: -1;
}

.header-content {
  position: relative;
}

.site-title {
  font-size: 3rem;
  color: var(--color-gold);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-family: var(--font-title);
  margin-bottom: 0.5rem;
}

.site-subtitle {
  font-size: 1.8rem;
  color: var(--color-green-light);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.project-meta {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #eee;
}

.project-credit {
  margin: 1rem auto;
  max-width: 600px;
  color: #f0f0f0;
  font-weight: 500;
  background: rgba(46, 125, 50, 0.35);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

/* ==============================
   Índice / navegación
   ============================== */
.page-nav {
  margin-top: 2rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.nav-link {
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-light));
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.nav-link:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-green-dark));
  transform: translateY(-2px);
}

/* ==============================
   Secciones principales
   ============================== */
.section-card {
  background: #fff;
  margin: 2rem 0;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 8px solid var(--color-green-dark);
  transition: transform 0.2s ease;
}

.section-card:hover {
  transform: translateY(-4px);
}

.section-header h3 {
  font-size: 1.8rem;
  color: var(--color-green-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-body {
  display: grid;
  gap: 1.5rem;
}

/* Texto dentro de las secciones */
.text-block p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ==============================
   Subcards (subsecciones)
   ============================== */
.subcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.subcard {
  background: linear-gradient(180deg, var(--color-silver) 0%, #fff 100%);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-silver);
  transition: transform 0.2s ease;
}

.subcard:hover {
  transform: translateY(-3px);
}

.subcard h4 {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-green-dark);
  margin-bottom: 0.5rem;
}

.subcard p,
.subcard ul {
  text-align: justify;
  font-size: 0.95rem;
}

.subcard ul {
  padding-left: 1.2rem;
   text-align: justify;
  list-style: disc;
}

/* ==============================
   Espacio para imágenes
   ============================== */
.image-placeholder {
  background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-silver) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1rem;
}

.image-placeholder img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  background: var(--color-green-dark);
  color: #fff;
  border-top: 4px solid var(--color-gold);
}

.footer-credit {
  margin-top: 0.5rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ==============================
   Responsividad
   ============================== */
@media (max-width: 768px) {
  .site-title { font-size: 2.2rem; }
  .site-subtitle { font-size: 1.4rem; }
  .section-header h3 { font-size: 1.5rem; }
}
