/* ═══════════════════════════════════════════════════════════════
   POLINAL — Páginas de Programa (programa.css)
   Usa Lucide icons + diseño consistente con la landing
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: .65rem 0;
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary-light); text-decoration: underline; }
.breadcrumb span { margin: 0 .4rem; opacity: .35; }

/* ── Program Hero ─────────────────────────────────────────────── */
.prog-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--prog-color, var(--primary)) 100%);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.prog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,.12) 0%, transparent 50%);
}

.prog-hero-inner { position: relative; z-index: 1; }

.prog-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.95);
}
.prog-chip svg { width: 14px; height: 14px; }

.prog-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  color: #fff;
}

.prog-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.prog-stat {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
}
.prog-stat svg { width: 16px; height: 16px; opacity: .8; }

.prog-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  transition: color .2s;
}
.prog-back svg { width: 16px; height: 16px; }
.prog-back:hover { color: #fff; }

/* ── Layout ───────────────────────────────────────────────────── */
.prog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0 5rem;
}

/* ── Sections ─────────────────────────────────────────────────── */
.prog-section { margin-bottom: 2.75rem; }

.prog-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--prog-color, var(--primary));
}
.prog-section-title svg {
  width: 22px; height: 22px;
  color: var(--prog-color, var(--primary));
  flex-shrink: 0;
}

.prog-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-700);
}

/* ── Feature grid (reemplaza emoji lists) ─────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .85rem;
}

.feat-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feat-card:hover {
  border-color: color-mix(in srgb, var(--prog-color, var(--primary)) 40%, transparent);
  background: color-mix(in srgb, var(--prog-color, var(--primary)) 3%, white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feat-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--prog-color, var(--primary)) 10%, white);
  border-radius: var(--radius);
  color: var(--prog-color, var(--primary));
  flex-shrink: 0;
}
.feat-icon svg { width: 18px; height: 18px; }

.feat-text {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.5;
  padding-top: .2rem;
}

/* ── Workplace grid ───────────────────────────────────────────── */
.workplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .75rem;
}

.workplace-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.workplace-chip:hover {
  border-color: var(--prog-color, var(--primary));
  background: color-mix(in srgb, var(--prog-color, var(--primary)) 4%, white);
  transform: translateX(3px);
}
.wc-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--prog-color, var(--primary)) 10%, white);
  border-radius: var(--radius);
  color: var(--prog-color, var(--primary));
  flex-shrink: 0;
}
.wc-icon svg { width: 16px; height: 16px; }

/* ── Modality cards ───────────────────────────────────────────── */
.modality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.modality-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}
.modality-card:hover {
  border-color: var(--prog-color, var(--primary));
  box-shadow: var(--shadow-sm);
}

.modality-card .mc-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--prog-color, var(--primary)) 10%, white);
  border-radius: var(--radius-lg);
  margin: 0 auto .85rem;
  color: var(--prog-color, var(--primary));
}
.modality-card .mc-icon-wrap svg { width: 24px; height: 24px; }
.modality-card h4 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: .35rem; }
.modality-card p  { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.prog-sidebar { position: sticky; top: calc(var(--nav-height) + 1.5rem); }

.prog-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--prog-color, var(--primary)));
  padding: 1.75rem 1.5rem;
  color: #fff;
  text-align: center;
}
.sidebar-header h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.sidebar-header p  { font-size: .78rem; opacity: .75; }

.sidebar-body { padding: 1.25rem 1.5rem; }

.sidebar-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-row:last-child { border-bottom: none; }

.sidebar-row-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  flex-shrink: 0;
  margin-top: .1rem;
}
.sidebar-row-icon svg { width: 15px; height: 15px; }

.sr-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.sr-val   { font-size: .9rem; font-weight: 700; color: var(--gray-800); margin-top: .1rem; }
.sr-sub   { font-size: .75rem; font-weight: 400; color: var(--text-muted); }

.sidebar-cta {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ── Gallery ──────────────────────────────────────────────────── */
.prog-gallery { margin-bottom: 2.5rem; }

.gallery-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: .65rem;
  aspect-ratio: 16/9;
  cursor: zoom-in;
}
.gallery-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-hero:hover img { transform: scale(1.03); }

.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumb {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  background: var(--gray-100);
  max-width: 120px;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--prog-color, var(--primary)); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
.lightbox img  { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.1); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; border: none;
  font-family: inherit;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-close svg { width: 20px; height: 20px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prog-layout { grid-template-columns: 1fr; }
  .prog-sidebar { position: static; }
}
@media (max-width: 640px) {
  .modality-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .workplace-grid { grid-template-columns: 1fr 1fr; }
  .prog-title { font-size: 1.6rem; }
}
