/* Kit web PIEF · diapositivas v2, estilo JoseSande.com (calco del modelo IPE I UT1). 16:9, 1280 × 720 px. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; }
:root {
  --azul: #2D6A8F; --osc: #2c3e50; --naranja: #f39c12; --verde: #27ae60; --morado: #8e44ad; --rojo: #e74c3c;
  --fondo: #f3f6fb; --deco: #e7edf6; --texto: #2c3e50; --gris: #6b7a89; --linea: #d6dfee;
  --clave-bg: #fff8e1; --clave-tx: #7a4d00; --verde-bg: #eaf7ef;
  --emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
@page { size: 1280px 720px; margin: 0; }
* { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html, body { margin: 0; padding: 0; background: #888; }
body { font-family: "Inter", Arial, sans-serif, "Noto Color Emoji"; color: var(--texto); }
.diapo { width: 1280px; height: 720px; position: relative; overflow: hidden; background: var(--fondo); page-break-after: always; break-after: page; margin: 0 auto 20px; }
.diapo:last-child { page-break-after: auto; break-after: auto; }
@media print { .diapo { margin: 0; } html, body { background: #fff; } }
i { font-style: normal; font-family: var(--emoji); }
strong { font-weight: 700; }
.az { color: var(--azul); }
.deco { position: absolute; right: -150px; top: -190px; width: 520px; height: 520px; border-radius: 50%; background: var(--deco); opacity: .8; }

/* Cabecera: antetítulo en versalitas azules + título grande */
/* Cabecera y cuerpo en columna: el cuerpo empieza justo debajo del título real (una, dos o más líneas). */
.diapo:not(.grad) { display: flex; flex-direction: column; padding: 54px 72px 78px; box-sizing: border-box; }
.cab { position: relative; flex: none; margin-bottom: 17px; z-index: 1; }
.ante { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.tit { margin: 0; font-size: 46px; line-height: 1.12; font-weight: 700; color: var(--texto); letter-spacing: -.01em; }
.cuerpo { position: relative; flex: 1 1 auto; min-height: 0; z-index: 1; }

/* Pie */
.pie { position: absolute; left: 72px; right: 72px; bottom: 26px; display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--gris); z-index: 2; }
.pie .sep { width: 1px; height: 20px; background: #c9d4dd; }
.pie .ud b { color: var(--azul); font-weight: 700; }
.pie .num { margin-left: auto; font-weight: 600; letter-spacing: .02em; }
.logo { font-weight: 700; font-size: 16px; color: var(--osc); letter-spacing: -.01em; }
.logo b { color: var(--azul); }
.pie.osc, .pie.osc .ud b, .pie.osc .logo { color: #fff; }
.pie.osc .ud, .pie.osc .num { color: rgba(255,255,255,.75); }
.pie.osc .sep { background: rgba(255,255,255,.35); }
.logo.blanco { color: #fff; font-size: 27px; }
.logo.blanco b { color: #9adbd5; }

/* Portada y final: degradado azul */
.grad { background: linear-gradient(135deg, #1d4560 0%, #2D6A8F 52%, #6fa3c4 100%); color: #fff; }
.grad .marca { position: absolute; left: 72px; top: 44px; display: flex; align-items: baseline; gap: 18px; }
.grad .marca > span:not(.logo) { font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #d3eeec; }
.grad .bloq { position: absolute; left: 72px; right: 72px; top: 0; bottom: 70px; display: flex; flex-direction: column; justify-content: center; }
.grad .emoji { font-family: var(--emoji); font-size: 88px; line-height: 1; margin-bottom: 18px; }
.grad .ante { color: #d3eeec; }
.grad h1 { margin: 0; font-size: 72px; line-height: 1.04; font-weight: 700; max-width: 900px; letter-spacing: -.015em; }
.grad .sub { font-size: 23px; line-height: 1.4; margin: 18px 0 0; max-width: 820px; color: #eaf7f6; }
.numgrande { position: absolute; right: 50px; bottom: 40px; font-size: 400px; font-weight: 700; line-height: .8; color: rgba(255,255,255,.12); }
.portada .bloq { padding-top: 40px; }
.final .botones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 22px; }
.final .botones div { background: #fff; color: var(--osc); border: 3px solid #4fb3ab; border-radius: 16px; text-align: center; font-weight: 700; font-size: 21px; padding: 18px 10px 20px; }
.final .botones i { display: block; font-size: 40px; margin-bottom: 8px; }
.final .mas { font-size: 19px; margin: 0; color: #eaf7f6; }
.final .mas b { color: #fff; }

/* Tarjetas con borde superior de color */
.tj { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(44,62,80,.08); border-top: 6px solid var(--azul); padding: 18px 22px; }
.tj.naranja { border-top-color: var(--naranja); } .tj.verde { border-top-color: var(--verde); } .tj.morado { border-top-color: var(--morado); } .tj.rojo { border-top-color: var(--rojo); }
.tj > i { font-size: 40px; line-height: 1; display: block; margin-bottom: 10px; }
.tj h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.tj p { margin: 0; font-size: 20px; line-height: 1.4; color: #3d4f60; }
.tj.fila { display: flex; align-items: center; gap: 20px; padding: 16px 22px; }
.tj.fila > i { margin: 0; font-size: 42px; }
.tj.fila span { font-size: 20.5px; line-height: 1.4; }
.tj.peq.fila > i { font-size: 32px; } .tj.peq.fila span { font-size: 19.5px; }
.rejilla { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 18px 22px; }
.rejilla.r2 { --cols: 2; }

/* Caja CLAVE amarilla, norma, fuente, intro */
.clave { margin-top: 18px; background: var(--clave-bg); border-left: 7px solid var(--naranja); border-radius: 10px; padding: 13px 22px; }
.clave b { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #b9770e; margin-bottom: 2px; }
.clave span { font-size: 21px; line-height: 1.4; color: var(--clave-tx); }
.norma { margin-top: 16px; background: #fff; border-left: 7px solid var(--azul); border-radius: 10px; padding: 12px 22px; box-shadow: 0 2px 10px rgba(44,62,80,.06); }
.norma b { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin-bottom: 2px; }
.norma span { font-size: 18.5px; line-height: 1.4; }
.fuente { font-size: 15px; color: var(--gris); margin: 12px 0 0; line-height: 1.4; }
.intro { font-size: 22px; line-height: 1.45; color: #4a5b6b; margin: 0 0 20px; max-width: 1060px; }
.tarjeta { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(44,62,80,.08); }
.tarjeta.texto { padding: 24px 28px; font-size: 22px; line-height: 1.5; }
.tarjeta.texto p { margin: 0 0 14px; } .tarjeta.texto p:last-child { margin: 0; }
.tarjeta.texto.peq { font-size: 20px; padding: 18px 24px; margin-top: 18px; }

/* Situación de partida */
.sit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.sit .tarjeta.texto { min-height: 440px; }
.sit .tarjeta.conimg { font-size: 19px; padding: 0 0 18px; overflow: hidden; }
.sit .tarjeta.conimg p { padding: 0 24px; margin-bottom: 10px; }
.sitimg { width: 100%; height: 190px; object-fit: cover; display: block; margin-bottom: 16px; }
.pqs { display: flex; flex-direction: column; gap: 14px; }
.pq { background: linear-gradient(90deg, hsl(calc(203 - var(--k) * 4), 70%, calc(52% + var(--k) * 5%)), hsl(calc(198 - var(--k) * 4), 62%, calc(58% + var(--k) * 5%))); color: #fff; font-weight: 600; font-size: 20px; line-height: 1.35; border-radius: 12px; padding: 14px 20px; }
.pqs.grandes .pq { font-size: 25px; padding: 20px 26px; }
.pqs.grandes .pq b { display: inline-block; width: 34px; }

/* Mapa de la unidad */
.mapa { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 18px 20px; margin-top: 50px; }
.ep { background: #fff; border-radius: 14px; border-left: 7px solid var(--azul); box-shadow: 0 2px 10px rgba(44,62,80,.08); padding: 20px 22px; display: flex; align-items: center; gap: 18px; min-height: 104px; }
.ep b { font-size: 32px; color: var(--azul); font-weight: 700; }
.ep span { font-size: 20.5px; font-weight: 700; line-height: 1.25; }

/* Pasos numerados en fila */
.pasos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 26px; }
.paso { position: relative; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(44,62,80,.08); padding: 20px 18px 22px; min-height: 250px; }
.pasos.cortos .paso { min-height: 150px; }
.paso:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 34px; color: var(--azul); font-size: 22px; font-weight: 700; }
.paso i { display: flex; width: 48px; height: 48px; border-radius: 50%; background: var(--azul); color: #fff; font-family: "Inter", sans-serif; font-weight: 700; font-size: 22px; align-items: center; justify-content: center; margin-bottom: 16px; }
.paso b { display: block; font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.paso span { display: block; font-size: 18.5px; line-height: 1.38; color: #3d4f60; }

/* Comparativa VS */
.vs { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: stretch; }
.vslab { display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #8a99a8; }
.vscol { padding: 24px 26px; min-height: 250px; }
.vscol > i { font-size: 52px; }
.vscol h3 { font-size: 27px; margin-bottom: 10px; }
.vscol p { font-size: 21px; }
.vscol ul { margin: 0; padding-left: 22px; font-size: 20.5px; line-height: 1.38; color: #3d4f60; }
.vscol li { margin-bottom: 6px; }
.dato { margin-top: 18px; display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 12px; padding: 12px 22px; box-shadow: 0 2px 10px rgba(44,62,80,.06); }
.dato b { font-size: 40px; color: var(--azul); white-space: nowrap; }
.dato span { font-size: 19px; line-height: 1.35; } .dato small { display: block; font-size: 14px; color: var(--gris); margin-top: 2px; }

/* Tabla con cabecera oscura */
.tabla { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(44,62,80,.08); }
table { border-collapse: collapse; width: 100%; font-size: 20px; line-height: 1.32; }
th { background: var(--osc); color: #fff; text-align: left; padding: 14px 16px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 12px 16px; border-bottom: 1px solid var(--linea); vertical-align: top; }
tbody tr:nth-child(odd) td { background: #f7fafc; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }

/* Pregunta para la clase */
.preg { background: linear-gradient(135deg, #fdf3dc 0%, #fffdf8 55%, #ffffff 100%); }
.preg .tit { font-size: 40px; }
.ops { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.op { display: flex; align-items: center; gap: 18px; background: #fff; border: 3px solid #e1e7ee; border-radius: 14px; padding: 14px 20px; font-size: 23px; line-height: 1.3; }
.op i { flex: 0 0 auto; display: flex; width: 44px; height: 44px; border-radius: 50%; background: var(--osc); color: #fff; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 700; font-size: 21px; }
.op.ok { border-color: var(--verde); background: var(--verde-bg); }
.expl { margin-top: 18px; background: var(--verde-bg); border-left: 7px solid var(--verde); border-radius: 10px; padding: 14px 22px; font-size: 21px; line-height: 1.4; }

/* Barras de datos */
.barras { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.barra { display: grid; grid-template-columns: 380px 1fr 120px; align-items: center; gap: 22px; }
.barra .et { font-size: 21px; line-height: 1.25; }
.barra .pista { height: 42px; background: var(--linea); border-radius: 10px; overflow: hidden; display: block; }
.barra .pista span { display: block; height: 100%; border-radius: 10px; }
.barra b { font-size: 27px; }

/* Caso resuelto */
.caso { display: grid; grid-template-columns: 330px 1fr; gap: 26px; height: 100%; }
.panel { background: var(--osc); color: #fff; border-radius: 16px; padding: 26px 24px; }
.panel > i { font-size: 62px; display: block; margin-bottom: 14px; }
.panel h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.25; }
.panel p { margin: 0; font-size: 19px; line-height: 1.45; color: #dbe6ef; }
.caso .col { display: flex; flex-direction: column; gap: 12px; }
.pp { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(44,62,80,.07); padding: 12px 18px; font-size: 19px; line-height: 1.38; }
.pp i { flex: 0 0 auto; display: flex; width: 36px; height: 36px; border-radius: 50%; background: var(--azul); color: #fff; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 700; font-size: 17px; }
.concl { background: var(--verde); color: #fff; font-weight: 700; border-radius: 12px; padding: 14px 20px; font-size: 20px; line-height: 1.35; }
.caso .tabla table { font-size: 18px; } .caso .tabla td { padding: 8px 14px; }

/* Ideas clave con checks */
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.ck { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(44,62,80,.08); padding: 16px 20px; font-size: 20.5px; line-height: 1.38; }
.ck i { flex: 0 0 auto; display: flex; width: 38px; height: 38px; border-radius: 50%; background: var(--verde); color: #fff; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 700; font-size: 20px; }
.ck.az i { background: var(--azul); }

/* Ciclo y pirámide */
.cic { display: grid; grid-template-columns: 470px 1fr; gap: 36px; align-items: center; }
.rueda { position: relative; width: 460px; height: 460px; }
.rueda::before { content: ""; position: absolute; inset: 52px; border: 5px dashed #9fd5d0; border-radius: 50%; }
.rueda .c { position: absolute; inset: 170px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; color: var(--azul); }
.rueda .n { position: absolute; width: 168px; transform: translate(-50%, -50%); background: var(--azul); color: #fff; text-align: center; font-weight: 700; font-size: 19px; padding: 12px 10px; border-radius: 999px; line-height: 1.15; box-shadow: 0 2px 8px rgba(44,62,80,.15); }
.col { display: flex; flex-direction: column; gap: 14px; }
.pir { display: grid; grid-template-columns: 600px 1fr; gap: 36px; align-items: start; }
.pir .niv { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.pir .niv div { background: var(--azul); opacity: var(--o); color: #fff; text-align: center; font-weight: 700; font-size: 21px; padding: 15px 10px; border-radius: 10px; }
.pir .niv small { font-size: 15px; color: var(--gris); font-weight: 600; }
.pir .tarjeta.texto.peq { margin-top: 0; }

/* Texto + imagen */
.ti { display: grid; grid-template-columns: 1fr 520px; gap: 30px; }
.ti .im { border-radius: 16px; overflow: hidden; height: 470px; box-shadow: 0 2px 12px rgba(44,62,80,.1); }
.ti .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lista { display: flex; flex-direction: column; gap: 12px; }
.tiw img { width: 100%; height: 260px; object-fit: contain; background: #fff; border-radius: 16px; display: block; margin-bottom: 18px; }
.tiw .dosc { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
