/* Presentacion Proyecto de Presupuesto - estilos (estetica B, 19/10/2026) */
@font-face { font-family: 'Aleo'; font-weight: 700; src: url('fuentes/aleo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; src: url('fuentes/lato-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-style: italic; src: url('fuentes/lato-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; src: url('fuentes/lato-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-style: italic; src: url('fuentes/lato-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; src: url('fuentes/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: italic; src: url('fuentes/inter-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; src: url('fuentes/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; src: url('fuentes/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: italic; src: url('fuentes/inter-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 400; src: url('fuentes/archivo-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; src: url('fuentes/archivo-latin-700-normal.woff2') format('woff2'); }

:root {
  --titulo: #177cb2;
  --sub: #177cb2;
  --linea: #177cb2;
  --seccion: #e3f5ff;
  --banda: #177cb2;
  --texto: #333333;
  --azul-osc: #0e4c72;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #ffffff; overflow: hidden; }
body { font-family: 'Lato', Arial, sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid #f39200; outline-offset: 2px; }

/* escenario 1140 x 641 escalado para caber en la ventana */
#visor { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
#escenario { position: absolute; left: 50%; top: 50%; width: 1140px; height: 641px; transform-origin: 0 0; overflow: hidden; background: #9ad3f5; }
.diapo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.diapo.activa { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.fondo { position: absolute; inset: 0; background: url('img/fondo.jpg') center / cover no-repeat; }
.abs { position: absolute; }
.tarjeta { position: absolute; left: 41px; top: 35px; width: 1057px; height: 571px; background: #ffffff; border-radius: 14px; box-shadow: 0 10px 34px rgba(14, 76, 114, .22); }
.tarjeta.seccion { background: var(--seccion); }
.t { position: absolute; white-space: pre-line; }
.tit { font-family: 'Aleo', Georgia, serif; font-weight: 700; color: var(--titulo); text-align: center; line-height: 1.2; }
.sub { font-style: italic; color: var(--sub); text-align: center; }
.raya { position: absolute; height: 4px; border-radius: 2px; background: var(--linea); }
.centro { display: flex; align-items: center; justify-content: center; text-align: center; }
.vcentro { display: flex; align-items: center; }
.logo { position: absolute; }

/* navegacion */
.nav { position: fixed; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 6px; background: rgba(90, 90, 90, .75); color: #ffffff; display: flex; align-items: center; justify-content: center; z-index: 20; }
.nav svg { width: 22px; height: 22px; }
.nav[disabled] { opacity: 0; pointer-events: none; }
#ant { left: 8px; }
#sig { right: 8px; }
#pant { position: fixed; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 6px; background: rgba(90, 90, 90, .75); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 20; }
#pant svg { width: 20px; height: 20px; }

/* botones dentro de las diapositivas */
.zona { position: absolute; cursor: pointer; }
.ojo { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(14, 76, 114, .35); }
.ojo svg { width: 55%; height: 55%; }
.ico { display: inline-flex; }
.ico svg { width: 100%; height: 100%; }

/* carteles */
.velo { position: absolute; inset: 0; background: rgba(46, 59, 68, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; z-index: 10; touch-action: none; overscroll-behavior: none; }
.velo.abierto { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.cartel { position: absolute; background: #ffffff; border-radius: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.cerrar { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #222222; color: #ffffff; display: flex; align-items: center; justify-content: center; border: 1px solid #ffffff; z-index: 2; }
.cerrar svg { width: 24px; height: 24px; }
.cerrar.chico { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #000; }
.cerrar.chico svg { width: 14px; height: 14px; }
.cerrar.claro { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: #8dc8f0; border: 0; }
.cartel ul { margin: 0; padding-left: 20px; }
.cartel li { margin-bottom: 9px; }
.ctit { font-family: 'Lato', Arial, sans-serif; font-weight: 700; color: var(--titulo); font-size: 26.5px; text-align: center; line-height: 1.25; }
.ctxt { font-family: 'Lato', Arial, sans-serif; font-size: 17px; color: #333333; line-height: 1.6; }

/* graficos */
svg.graf { position: absolute; overflow: visible; }
.leyenda { position: absolute; font-family: 'Lato', Arial, sans-serif; color: #33414d; }
.leyenda span.punto { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* carrusel */
.carr img { position: absolute; object-fit: cover; transition: all .4s ease; border-radius: 10px; box-shadow: 0 6px 18px rgba(14, 76, 114, .25); }
.puntos { position: absolute; display: flex; gap: 9px; align-items: center; transform: translateX(-50%); }
.puntos button { width: 12px; height: 12px; border-radius: 50%; background: #cccccc; }
.puntos button.act { width: 16px; height: 16px; background: #177cb2; }
.flecha { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; border: 1px solid #dddddd; display: flex; align-items: center; justify-content: center; color: #333; z-index: 2; }
.flecha svg { width: 16px; height: 16px; }

/* tabla de inversiones */
.tabla { position: absolute; border-collapse: collapse; font-family: 'Lato', Arial, sans-serif; font-size: 9.2px; color: #0e4c72; }
.tabla td { border: 1px solid #d6ebf8; padding: 0 8px; height: 19.3px; text-align: right; }
.tabla tr:nth-child(odd) td { background: #ddebf7; }
.tabla tr.total td { background: #0e4c72; color: #ffffff; font-weight: 700; font-size: 16.5px; height: 26px; border-color: #0e4c72; }

/* globo del porcentaje en tortas y roscas */
svg.graf { pointer-events: none; }
svg.graf [data-tt] { pointer-events: auto; cursor: default; }
.globo-tt { position: absolute; display: none; z-index: 30; pointer-events: none; background: rgba(31, 45, 58, .92); color: #ffffff; font: 700 15px 'Lato', Arial, sans-serif; padding: 7px 11px; border-radius: 6px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.globo-tt span { font-weight: 400; }

/* tarjeta flotante clara (al pasar el cursor por un cuadro) */
.tarjeta-tt { position: absolute; display: none; z-index: 30; pointer-events: none; min-width: 300px; max-width: 360px; background: #ffffff; color: #33414d; font: 14px 'Lato', Arial, sans-serif; padding: 12px 16px 10px; border-radius: 10px; border: 1px solid #d6ebf8; box-shadow: 0 8px 28px rgba(14, 76, 114, .22); }
.tarjeta-tt .tt-tit { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #177cb2; text-transform: uppercase; margin-bottom: 8px; }
.tarjeta-tt .tt-fila { display: flex; justify-content: space-between; gap: 18px; padding: 4px 0; border-top: 1px solid #eef4f9; }
.tarjeta-tt .tt-fila:first-of-type { border-top: 0; }
.tarjeta-tt .tt-fila b { color: #0e4c72; white-space: nowrap; }
.tarjeta-tt .tt-total { border-top: 2px solid #d6ebf8; margin-top: 2px; font-weight: 700; color: #0e4c72; }
.tarjeta-tt .tt-nota { font-size: 12px; color: #5f6b78; margin-top: 6px; line-height: 1.35; }
