/*
 * SUPERAGRO INTRANET THEME — refinamiento visual sobre los componentes del CORE.
 * Paleta oficial (logo SUPERAGRO): rojo #C42708 · verde oscuro #334922 · verde hoja #6D8E23 · naranja #E88E04 · azul #2358A8 · amarillo #F3E60B.
 * Tipografía: pila de sistema profesional (Segoe UI / Roboto / Helvetica) — sin dependencias externas ni rastreo de terceros.
 */

/* Franja institucional con los colores del logo, presente en todas las pantallas. */
.sai-app .sai-topbar { border-top: 0; }
.sai-app .sai-topbar::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: linear-gradient(90deg, var(--sai-red) 0 40%, var(--sai-green-dark) 40% 65%, var(--sai-orange) 65% 82%, var(--sai-blue) 82% 100%);
}
.sai-app .sai-topbar { position: sticky; }

/* Fondo de trabajo cálido y discreto. */
.sai-app { background: #F4F5F1; }
.sai-sidebar { box-shadow: 1px 0 0 rgba(0,0,0,.02); }
.sai-sidebar__brand { background: linear-gradient(180deg, #FFFFFF 0%, #FBFBF8 100%); }
.sai-sidebar__product { position: relative; padding-left: 12px; }
.sai-sidebar__product::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--sai-red); }

/* Escala tipográfica. */
.sai-body h1, .sai-body h2, .sai-body h3 { letter-spacing: -.01em; }
.sai-content > .sai-card:first-child, .sai-content > .sai-grid:first-child { margin-top: 0; }

/* Tarjetas: elevación sutil al pasar el cursor en elementos navegables. */
a.sai-stat { transition: transform .15s ease, box-shadow .15s ease; }
a.sai-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,16,.08); }

/* Pantallas de acceso: detalle de franja en la tarjeta. */
.sai-public .sai-auth__card { position: relative; overflow: hidden; }
.sai-public .sai-auth__card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--sai-red) 0 40%, var(--sai-green-dark) 40% 65%, var(--sai-orange) 65% 82%, var(--sai-blue) 82% 100%);
}
.sai-public .sai-auth__tagline { font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* Contenido institucional (páginas de WordPress). */
.sai-entry__content { max-width: 820px; font-size: 16px; line-height: 1.7; }
.sai-entry__content img { max-width: 100%; height: auto; border-radius: 8px; }
.sai-entry__content h2, .sai-entry__content h3 { color: var(--sai-green-dark); }
.sai-entry__content table { border-collapse: collapse; width: 100%; }
.sai-entry__content td, .sai-entry__content th { border: 1px solid var(--sai-border); padding: 8px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.nav-links .page-numbers { padding: 6px 10px; border: 1px solid var(--sai-border); border-radius: 6px; background: #fff; text-decoration: none; }
.nav-links .current { background: var(--sai-green-dark); color: #fff; border-color: var(--sai-green-dark); }

/* Aviso cuando falta el plugin CORE. */
.sai-theme-missing { margin: 0; font-family: "Segoe UI", Roboto, Arial, sans-serif; background: #F5F6F2; color: #1F2328; }
.sai-missing { max-width: 520px; margin: 12vh auto; text-align: center; background: #fff; padding: 36px; border-radius: 14px; border-top: 6px solid var(--sai-red); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.sai-missing img { height: auto; }
.sai-missing h1 { color: var(--sai-green-dark); }
