/* =========================================
   CSS NUEVO PARA LAS 4 SECCIONES DEL INDEX (2026)
   ========================================= */
:root {
  --rojo-utp: #8b0000;
  --azul-edu: #1e3a8a;
  --verde-edu: #10b981;
  --gris-fondo: #f8fafc;
  --texto-oscuro: #1e293b;
}

/* Reset local para las secciones */
.edu-section * { box-sizing: border-box; font-family: 'Inter', sans-serif; }
.edu-section { background-color: #ffffff; }

/* --- Píldoras --- */
.pildoras-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
  width: 100%; margin-bottom: 40px;
}
.pildora {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff; border: 1px solid #e2e8f0;
  padding: 15px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--texto-oscuro);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.pildora::before {
  content: "✓"; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
  background: #eff6ff; color: var(--azul-edu);
  border-radius: 50%; font-size: 12px; font-weight: 900;
}
.pildora.verde::before { background: #ecfdf5; color: var(--verde-edu); }

/* --- Botones (con especificidad alta para ganar al CSS del sitio) --- */
.edu-section a.btn-utp,
.edu-section a.btn-utp:link,
.edu-section a.btn-utp:visited {
  display: inline-block; background-color: var(--rojo-utp) !important; color: #ffffff !important;
  padding: 16px 40px; font-size: 16px; font-weight: 700; text-decoration: none !important;
  border-radius: 4px; transition: background 0.3s; text-align: center; border: 0;
}
.edu-section a.btn-utp:hover { background-color: #5c0000 !important; color: #ffffff !important; }
.edu-section a.btn-utp.azul,
.edu-section a.btn-utp.azul:link,
.edu-section a.btn-utp.azul:visited { background-color: var(--azul-edu) !important; color: #ffffff !important; }
.edu-section a.btn-utp.azul:hover { background-color: #152c6b !important; color: #ffffff !important; }
.edu-section a.btn-utp.verde,
.edu-section a.btn-utp.verde:link,
.edu-section a.btn-utp.verde:visited { background-color: var(--verde-edu) !important; color: #ffffff !important; }
.edu-section a.btn-utp.verde:hover { background-color: #0d9668 !important; color: #ffffff !important; }
.edu-section a.btn-utp.blanco,
.edu-section a.btn-utp.blanco:link,
.edu-section a.btn-utp.blanco:visited { background-color: #ffffff !important; color: var(--azul-edu) !important; }
.edu-section a.btn-utp.blanco:hover { background-color: #e2e8f0 !important; color: var(--azul-edu) !important; }

/* --- 1. TESIS (Estilo UTP) --- */
.seccion-utp {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 600px; border-bottom: 1px solid #e2e8f0;
}
.bloque-foto {
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden;
}
.bloque-foto::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 1;
}
.video-fondo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.texto-foto { position: relative; z-index: 2; padding: 60px 60px 30px 60px; color: #ffffff; }
.texto-foto h2 { font-size: 46px; line-height: 1.1; font-weight: 800; margin-bottom: 15px; color: #fff; }
.texto-foto p { font-size: 20px; font-weight: 600; color: #e2e8f0; }

.franja-color {
  position: relative; z-index: 2; padding: 20px 60px;
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  font-size: 14px; font-weight: 700; color: #ffffff;
}
.franja-color.azul { background-color: var(--azul-edu); }
.franja-color span { display: flex; align-items: center; gap: 8px; }
.franja-color span::before { content: "•"; font-size: 20px; }

.bloque-info {
  padding: 60px 80px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
}
.bloque-info h3 { font-size: 34px; line-height: 1.2; color: var(--texto-oscuro); margin-bottom: 15px; font-weight: 800; }
.bloque-info > p { font-size: 16px; color: #64748b; margin-bottom: 40px; line-height: 1.6; }

/* --- 2. CURSOS (Centrada) --- */
.seccion-centrada {
  position: relative; min-height: 600px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.seccion-centrada::before { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.75); }
.contenido-centrado { position: relative; z-index: 2; max-width: 800px; }
.contenido-centrado h2 { font-size: 52px; color: #ffffff; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.contenido-centrado p { font-size: 20px; color: #e2e8f0; margin-bottom: 40px; }
.pildoras-horizontal { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; }
.pildora-borde {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff; padding: 12px 24px; border-radius: 50px;
  font-size: 15px; font-weight: 600; backdrop-filter: blur(5px);
}

/* --- 3. LETRUDO (texto + vista previa del producto) --- */
.seccion-letrudo { background-color: #0a3245; padding: 90px 5%; color: #ffffff; }
.letrudo-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.letrudo-tag {
  display: inline-block; background: rgba(16,185,129,0.15); color: #6ee7b7;
  border: 1px solid rgba(110,231,183,0.4); border-radius: 50px;
  padding: 6px 16px; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
}
.letrudo-texto h2 { font-size: 42px; line-height: 1.1; font-weight: 800; color: #ffffff; margin-bottom: 15px; }
.letrudo-texto > p { font-size: 18px; color: #cbd5e1; line-height: 1.6; margin-bottom: 30px; }
.letrudo-texto .pildoras-grid { margin-bottom: 30px; }
.letrudo-nota { display: block; margin-top: 14px; font-size: 14px; color: #94a3b8; }

.letrudo-demo {
  background: #ffffff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.demo-barra {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; padding: 12px 16px; border-bottom: 1px solid #e2e8f0;
}
.demo-punto { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 12px; }
.demo-tab {
  font-size: 12px; font-weight: 600; color: #64748b;
  padding: 5px 12px; border-radius: 50px; background: transparent;
}
.demo-tab.activo { background: #0a3245; color: #ffffff; }
.demo-cuerpo { display: grid; grid-template-columns: 1fr 1fr; }
.demo-panel { padding: 22px; }
.demo-panel + .demo-panel { border-left: 1px solid #e2e8f0; background: #f0fdf4; }
.demo-etiqueta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: #64748b; margin-bottom: 12px;
}
.demo-panel + .demo-panel .demo-etiqueta { color: #047857; }
.demo-etiqueta svg { width: 16px; height: 16px; flex-shrink: 0; }
.demo-texto { font-size: 14px; line-height: 1.7; color: var(--texto-oscuro); margin: 0; }
.demo-marca { background: #fee2e2; border-radius: 3px; padding: 0 2px; }
.demo-ok { background: #bbf7d0; border-radius: 3px; padding: 0 2px; }
.demo-pie {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 14px 22px; background: #f8fafc; border-top: 1px solid #e2e8f0;
  font-size: 13px; font-weight: 600; color: #475569;
}
.demo-pie span { display: flex; align-items: center; gap: 6px; }
.demo-pie svg { width: 16px; height: 16px; color: var(--verde-edu); }

/* --- 4. LEGAL (Bloque Sólido) --- */
.seccion-legal {
  background-color: var(--azul-edu);
  padding: 100px 5%;
  display: flex; align-items: center; justify-content: center;
  gap: 60px; color: #ffffff;
}
.legal-imagen-circular {
  width: 350px; height: 350px; border-radius: 50%; overflow: hidden;
  border: 10px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.legal-imagen-circular img { width: 100%; height: 100%; object-fit: cover; }
.legal-texto { max-width: 550px; }
.legal-texto h2 { font-size: 46px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.legal-texto p { font-size: 18px; color: #cbd5e1; margin-bottom: 30px; line-height: 1.6; }
.legal-lista { list-style: none; margin-bottom: 40px; padding: 0; }
.legal-lista li { margin-bottom: 15px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.legal-lista li::before { content: "✓"; color: #60a5fa; font-weight: bold; font-size: 18px; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .seccion-utp { grid-template-columns: 1fr; }
  .bloque-foto { min-height: 400px; }
  .bloque-info { padding: 40px 20px; }
  .letrudo-wrap { grid-template-columns: 1fr; gap: 40px; }
  .letrudo-texto h2 { font-size: 34px; }
  .demo-cuerpo { grid-template-columns: 1fr; }
  .demo-panel + .demo-panel { border-left: 0; border-top: 1px solid #e2e8f0; }
  .seccion-legal { flex-direction: column; text-align: center; padding: 60px 20px; }
  .legal-imagen-circular { width: 250px; height: 250px; }
}