/*
 * inner-pages.css — UCB Industrial
 * Estilos compartidos para todas las páginas interiores.
 * Se carga automáticamente en cada plantilla.
 */

/* ── HERO INTERIOR ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #071428 0%, #1a3a5c 55%, #1e5fa8 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.inner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}
.page-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}
.page-hero > div > p,
.page-hero p.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: rgba(255,255,255,0.55); }

/* ── SECCIONES ─────────────────────────────────────── */
.section-padding { padding: 72px 0; }
.bg-light { background: #f8fafc; }
.bg-blue-dark { background: #071428; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header.left { text-align: left; }
.section-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a3a5c;
  margin: 0 0 14px;
  line-height: 1.25;
}
.section-desc {
  font-size: 1rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-header.left .section-desc { margin: 0; }

/* ── GRIDS ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ── TARJETAS ─────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}
.card-icon { font-size: 2.2rem; margin-bottom: 14px; line-height: 1; }
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 10px;
}
.card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.card-accent {
  border-left: 4px solid #2563eb;
  padding-left: 20px;
}
.card-dark {
  background: #1a3a5c;
  border-color: #1a3a5c;
  color: #fff;
}
.card-dark h3 { color: #fff; }
.card-dark p  { color: rgba(255,255,255,0.78); }

/* ── BOTONES ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary   { background: #1a3a5c; color: #fff;     border-color: #1a3a5c; }
.btn-primary:hover { background: #2563eb; border-color: #2563eb; }
.btn-secondary { background: transparent; color: #1a3a5c; border-color: #1a3a5c; }
.btn-secondary:hover { background: #1a3a5c; color: #fff; }
.btn-white     { background: #fff; color: #1a3a5c; border-color: #fff; }
.btn-white:hover { background: #e0f2fe; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-whatsapp  { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1da851; }
.btn-group     { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CTA BANNER ─────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── DIVISOR CON ÍCONO ───────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  color: #cbd5e1;
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

/* ── PASOS / TIMELINE ────────────────────────────── */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 36px;
}
.step-item:last-child { padding-bottom: 0; }
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a3a5c;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 10px 0 6px;
}
.step-body p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ── BADGE / CHIPS ───────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #fff7ed; color: #c2410c; }

/* ── INFO CARD CON ÍCONO ─────────────────────────── */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-body strong { display: block; font-size: 0.85rem; font-weight: 700; color: #1a3a5c; margin-bottom: 2px; }
.info-body span   { font-size: 0.85rem; color: #64748b; }

/* ── NOTICIAS / POSTS ────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.post-thumb {
  height: 200px;
  background: #e2e8f0 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.post-date  { font-size: 0.76rem; color: #94a3b8; }
.post-cat   { font-size: 0.7rem; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.post-title { font-size: 1rem; font-weight: 700; color: #1a3a5c; margin: 0 0 8px; line-height: 1.4; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: #2563eb; }
.post-excerpt { font-size: 0.86rem; color: #64748b; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.post-link { font-size: 0.84rem; font-weight: 700; color: #2563eb; text-decoration: none; margin-top: auto; }
.post-link:hover { text-decoration: underline; }
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #1a3a5c;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.page-numbers.current,
.page-numbers:hover { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }

/* ── SINGLE POST ─────────────────────────────────── */
.single-wrap { max-width: 800px; margin: 0 auto; }
.single-content { font-size: 1rem; line-height: 1.8; color: #374151; }
.single-content h2 { font-size: 1.5rem; font-weight: 700; color: #1a3a5c; margin: 32px 0 14px; }
.single-content h3 { font-size: 1.2rem; font-weight: 700; color: #1a3a5c; margin: 24px 0 10px; }
.single-content p  { margin: 0 0 18px; }
.single-content img { max-width: 100%; border-radius: 10px; margin: 20px 0; }
.single-content a  { color: #2563eb; }
.single-content blockquote {
  border-left: 4px solid #2563eb;
  background: #f0f7ff;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #1e3a5f;
  font-style: italic;
}
.post-featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}

/* ── MALLA CURRICULAR ────────────────────────────── */
.semester-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.semester-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,48,135,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.semester-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,48,135,0.12);
}
.semester-header {
  background: #1a3a5c;
  color: #fff;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.semester-body { padding: 12px 14px; }
.semester-body ul { list-style: none; padding: 0; margin: 0; }
.semester-body li {
  padding: 5px 0;
  font-size: 0.79rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}
.semester-body li:last-child { border-bottom: none; }
.semester-body li::before { content: '▸'; color: #2563eb; font-size: 0.65rem; flex-shrink: 0; margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a3a5c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
}
.faq-q:hover { background: #f8fafc; }
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 400; flex-shrink: 0; color: #2563eb; }
.faq-item.open .faq-q { background: #f0f7ff; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}
.faq-item.open .faq-a { display: block; }

/* ── TABLA COSTOS ────────────────────────────────── */
.cost-table { width: 100%; border-collapse: collapse; }
.cost-table th {
  background: #1a3a5c;
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  text-align: left;
  font-weight: 700;
}
.cost-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #e2e8f0;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: #f8fafc; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4   { grid-template-columns: repeat(2, 1fr); }
  .grid-3   { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .semester-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-2   { grid-template-columns: 1fr; }
  .grid-3   { grid-template-columns: 1fr; }
  .inner-wrap { padding: 0 20px; }
  .page-hero { padding: 56px 0 44px; }
  .section-padding { padding: 52px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .semester-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4   { grid-template-columns: 1fr; }
  .btn-lg   { padding: 12px 22px; font-size: 0.9rem; }
  .cta-btns { flex-direction: column; align-items: center; }
}
