/* Páginas de la extensión de Nousfe para SIU Guaraní (siu/index.html y siu/privacidad.html).
   La letra y los colores de los portales; el oscuro, si el docente lo usa en el portal desde
   donde llegó (lo decide el script del <head> de cada página). */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fondo: #f5f7fa; --tarjeta: #ffffff; --texto: #1a2535; --suave: #5b6b80; --borde: #dde3ed;
  --enlace: #186ef2; --boton: #186ef2; --boton-hover: #0d5fd6; --azul-claro: #e8edf5; --codigo: #eef1f6;
  --verde: #2e7d52; --verde-bg: #e8f5ee; --naranja: #a8641c; --naranja-bg: #fdf3e3; --naranja-texto: #6b3f0e;
  --letra: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html[data-tema="oscuro"] {
  --fondo: #0f1520; --tarjeta: #172030; --texto: #e6ebf2; --suave: #9aa8bb; --borde: #2a3547;
  --enlace: #7fb0ea; --boton: #2f6db3; --boton-hover: #3a7cc4; --azul-claro: #1f2b3d; --codigo: #1d2838;
  --verde: #6cc596; --verde-bg: #163226; --naranja: #e6a85c; --naranja-bg: #33270f; --naranja-texto: #f0d3a8;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--letra); background: var(--fondo); color: var(--texto); line-height: 1.6;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--enlace); }
:focus-visible { outline: 2px solid #3b84f4; outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 600; }
code { background: var(--codigo); border-radius: 5px; padding: 1px 6px; font-size: 0.88em; }

/* Encabezado blanco, como el de los portales */
.cab { background: var(--tarjeta); border-bottom: 1px solid var(--borde); }
.cab .fila { max-width: 880px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 14px;
             padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.cab .logo img { height: 24px; width: auto; display: block; }
.logo-oscuro { display: none !important; }
html[data-tema="oscuro"] .logo-claro { display: none !important; }
html[data-tema="oscuro"] .logo-oscuro { display: block !important; }
.cab .sep { width: 1px; height: 22px; background: var(--borde); }
.cab .que { font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.cab .der { margin-left: auto; font-size: 0.84rem; font-weight: 500; color: var(--suave); text-decoration: none; white-space: nowrap; }
.cab .der:hover { color: var(--enlace); }
@media (max-width: 420px) { .cab .sep, .cab .que { display: none; } }

.ancho { max-width: 880px; margin: 0 auto; padding-block: 48px 72px;
         padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Arriba: qué es y el botón de instalar */
.sobre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 600;
         letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
.etiqueta { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; letter-spacing: .02em;
            background: var(--naranja-bg); color: var(--naranja); text-transform: none; }
h1 { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin-top: 10px; text-wrap: balance; }
.bajada { font-size: 1.02rem; color: var(--suave); margin-top: 12px; max-width: 640px; text-wrap: pretty; }
.acciones { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
       background: var(--boton); color: #fff; font-size: 0.92rem; font-weight: 500; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--boton-hover); }
.btn svg { width: 18px; height: 18px; }
.acciones .nota { margin: 0; }

/* Tarjetas */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 26px 28px; margin-top: 20px; }
@media (max-width: 560px) { .tarjeta { padding: 22px 20px; } h1 { font-size: 1.7rem; } }
h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.tarjeta .sub { font-size: 0.86rem; color: var(--suave); margin-top: 2px; }
.tarjeta p { font-size: 0.92rem; margin-top: 10px; }
.tarjeta > h2 + p { margin-top: 8px; }
.nota { font-size: 0.84rem; color: var(--suave); margin-top: 14px; }

/* Lo que no hace: en dos columnas, cada una con su tilde */
.limites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 18px; list-style: none; }
@media (max-width: 680px) { .limites { grid-template-columns: minmax(0, 1fr); } }
.limites li { display: flex; gap: 12px; font-size: 0.88rem; line-height: 1.55; }
.limites li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--verde-bg); color: var(--verde); margin-top: 1px; }
.limites strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }

/* Pasos numerados */
.pasos { list-style: none; counter-reset: paso; margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.pasos > li { counter-increment: paso; position: relative; padding-left: 42px; font-size: 0.92rem; line-height: 1.6; }
.pasos > li::before { content: counter(paso); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
                      background: var(--azul-claro); color: var(--enlace); font-size: 0.84rem; font-weight: 600; display: grid; place-items: center; }

/* Dónde está en Nousfe */
.donde { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .donde { grid-template-columns: minmax(0, 1fr); } }
.donde > div { background: var(--fondo); border-radius: 12px; padding: 12px 14px; font-size: 0.86rem; }
.donde b { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--suave); margin-bottom: 3px; }

/* Aviso antes de cerrar el acta */
.aviso { margin-top: 20px; border-radius: 16px; padding: 20px 24px; background: var(--naranja-bg); color: var(--naranja-texto); font-size: 0.9rem; line-height: 1.6; border-left: 4px solid var(--naranja); }
.aviso strong { color: inherit; }

/* Tablas (privacidad) */
.tabla { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { font-size: 0.72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--suave); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.tarjeta ul.lista { margin-top: 10px; padding-left: 20px; font-size: 0.92rem; }
.tarjeta ul.lista li { margin-bottom: 7px; }
.fecha { font-size: 0.86rem; color: var(--suave); margin-top: 8px; }

.pie { margin-top: 40px; text-align: center; font-size: 0.84rem; color: var(--suave); line-height: 1.7; }
/* En el celular, la tabla de privacidad en bloques: cada dato con de dónde viene y para qué, sin deslizar de costado */
@media (max-width: 560px) {
  table { min-width: 0; }
  tr:first-child { display: none; }
  tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--borde); }
  tr:last-child { border-bottom: none; }
  td { display: block; padding: 2px 0; border: 0; }
  td:first-child { font-weight: 600; }
  td:nth-child(2)::before { content: "De dónde viene: "; color: var(--suave); }
  td:nth-child(3)::before { content: "Para qué: "; color: var(--suave); }
}
