/* ============================================================
   articulos.css — Blog Dentexis
   Estilos comunes para todos los artículos del blog.
   Cada artículo define sus variables de color en un <style>
   inline mínimo dentro de la página.
   ============================================================ */

/* --- Reset y base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--texto, #2c2c2c); background: #fff; line-height: 1.7; font-size: 16px; }

/* --- Layout --- */

/* --- Hero --- */
header.hero { background: var(--hero-bg, #1a2e4a); color: #fff; padding: 56px 24px 48px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--eyebrow-color, #80b8f0); margin-bottom: 16px; display: block; }
header.hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.meta { font-size: 13px; color: var(--meta-color, #a0b8d0); display: flex; gap: 20px; flex-wrap: wrap; }

/* --- Cuerpo --- */
.cuerpo { padding: 48px 0 64px; }
.cuerpo h2 {  display: inline-block;
    padding: 8px 18px;
    background: #f3f6fb;
    color: #1e40af;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px; }
.cuerpo h3 { font-size: 18px; font-weight: 700; color: var(--titulo-color, #1a2e4a); margin: 28px 0 12px; }
.cuerpo p { margin-bottom: 18px; }
.cuerpo ul, .cuerpo ol { margin: 0 0 18px 24px; }
.cuerpo li { margin-bottom: 8px; }
.intro { font-size: 17px; margin-bottom: 32px; line-height: 1.8; }

/* --- Tablas --- */
.tabla { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.tabla th { background: var(--hero-bg, #1a2e4a); color: #fff; padding: 11px 14px; text-align: left; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--borde, #d0dcea); }
.tabla tr:nth-child(even) td { background: #f6f7f8; }

/* --- Alertas / notas --- */
.alerta, .nota, .exito, .nota-amarilla {
  padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 28px 0; 
}
.alerta { background: var(--alerta-bg, #fdf0f0); border-color: var(--alerta-borde, #c0392b); }
.nota { background: var(--nota-bg, #eef4fd); border-color: var(--acento, #0057a8); }
.exito { background: #eaf5ef; border-color: #1e7e4e; }
.nota-amarilla { background: #fffbea; border-color: #d4a017; }
.alerta strong, .nota strong, .exito strong, .nota-amarilla strong { display: block; margin-bottom: 6px; }

/* --- Checklist --- */
.checklist { list-style: none; margin-left: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; line-height: 1.5; }
.checklist li::before { content: "☐"; position: absolute; left: 0; font-size: 17px; line-height: 1.3; }
.checklist li.ok::before { content: "✓"; color: #1e7e4e; font-weight: 800; font-size: 15px; }
.checklist.ticks li::before { content: "✓"; color: #1e7e4e; font-weight: 800; font-size: 15px; }

/* --- Flujo de pasos --- */
.flujo { background: #f6f7f8; border-radius: 10px; padding: 24px; margin: 28px 0; }
.flujo-paso { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.flujo-paso:last-child { margin-bottom: 0; }
.flujo-num { background: var(--acento, #0057a8); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }

/* --- Grids de 2 columnas --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- Tarjetas genéricas --- */
.tarjeta { border-radius: 10px; padding: 20px; border: 1px solid var(--borde, #d0dcea); }
.tarjeta h3, .tarjeta h4 { margin-top: 0; }

/* --- Tarjetas comparativas (verde/rojo) --- */
.tarjeta-ok { border: 2px solid #1e7e4e; background: #eaf5ef; }
.tarjeta-no { border: 2px solid #c0392b; background: #fdf0f0; }

/* --- Badges --- */
.badge { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; color: #fff; display: inline-block; }
.badge-verde { background: #1e7e4e; }
.badge-rojo { background: #c0392b; }
.badge-azul { background: #0057a8; }
.badge-morado { background: #5b21b6; }
.badge-naranja { background: #c0560a; }
.badge-gris { background: #999; }

/* --- Comparativa papel/digital (art 19) --- */
.comparativa { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde, #d0dcea); }
@media (max-width: 600px) { .comparativa { grid-template-columns: 1fr; } }
.col-header { padding: 16px 20px; font-weight: 800; font-size: 16px; text-align: center; }
.col-body { padding: 16px 20px; }
.col-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; font-size: 14px; }
.col-item:last-child { margin-bottom: 0; }
.ico-ok { color: #1e7e4e; font-weight: 800; flex-shrink: 0; }
.ico-no { color: #c0392b; font-weight: 800; flex-shrink: 0; }

/* --- Bloque resumen oscuro (art 18) --- */
.resumen { background: #111827; color: #fff; border-radius: 10px; padding: 32px; margin: 40px 0; }
.resumen h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #fff; border: none; padding: 0; }
.resumen-item { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 16px; }
.resumen-item h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: #a0c0e0; }

/* --- Número grande destacado (art 09) --- */
.destacado { background: var(--fondo-suave, #f6f7f8); border: 2px solid var(--acento, #0057a8); border-radius: 10px; padding: 28px; margin: 28px 0; text-align: center; }
.numero-grande { font-size: 72px; font-weight: 900; color: var(--acento, #0057a8); line-height: 1; }
.texto-grande{ font-size: 30px; font-weight: 300; color: var(--acento, #0057a8); line-height: 1; }
/* --- Cláusulas (art 12) --- */
.clausulas { background: #f6f7f8; border-radius: 10px; padding: 24px; margin: 28px 0; }
.clausula { border-bottom: 1px solid var(--borde, #d0dcea); padding: 16px 0; }
.clausula:first-child { padding-top: 0; }
.clausula:last-child { border-bottom: none; padding-bottom: 0; }
.clausula strong { display: block; margin-bottom: 6px; }

/* --- Preguntas evaluación (art 20) --- */
.preguntas { background: #f6f7f8; border-radius: 10px; padding: 24px; margin: 28px 0; }
.pregunta { border-bottom: 1px solid var(--borde, #d0dcea); padding: 14px 0; }
.pregunta:first-child { padding-top: 0; }
.pregunta:last-child { border-bottom: none; padding-bottom: 0; }
.pregunta strong { display: block; margin-bottom: 6px; }

/* --- Módulos con badge (art 20) --- */
.modulo { background: var(--fondo-suave, #eef4fd); border: 1px solid var(--borde, #d0dcea); border-radius: 10px; padding: 22px; margin: 16px 0; }
.modulo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modulo h3 { margin: 0; }
.modulo ul { margin-bottom: 0; }

/* --- Área de verificación ACESS (art 17) --- */
.area { background: #f6f7f8; border-radius: 10px; padding: 20px 24px; margin: 20px 0;  }
.area h3 { margin-top: 0; }
.area .checklist li::before { content: "→"; color: var(--acento, #0057a8); font-weight: 700; font-size: 15px; }

/* --- Resaltado / nota inline --- */
.resaltado { background: var(--fondo-suave, #eef4fd); padding: 20px 24px; border-radius: 8px; margin: 24px 0; }

/* --- Decisión (art 07) --- */
.decision { background: #f6f7f8; border-radius: 10px; padding: 28px; margin: 28px 0; }
.decision h3 { margin-top: 0; }

/* --- CTA final --- */
.cta { background: var(--fondo-suave, #eef4fd); border: 1px solid var(--borde, #d0dcea); border-radius: 10px; padding: 32px; margin: 40px 0; text-align: center; }
.cta h3 { margin-bottom: 16px; font-size: 22px; }
.cta p { margin-bottom: 20px; font-size: 17px; }
.cta-boton { display: inline-block; background: var(--hero-bg, #1a2e4a); color: #fff; padding: 14px 32px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; }
.cta-boton:hover { opacity: 0.9; }

/* --- Utilidades --- */
.si { color: #1e7e4e; font-weight: 700; }
.no { color: #c0392b; font-weight: 700; }
.porcentaje { font-weight: 800; color: var(--acento, #c0392b); }