/*! portal.css — Precompiled Tailwind utilities + custom styles for Boletín Oficial portal */
/* Generated from: portal_layout.twig, portal_sidebar.twig, public/*.twig */
/* Replaces @tailwindcss/browser@4 runtime compilation */

/* ═══════════════════════════════════════════════════════════════
   RESET (Tailwind Preflight — essential subset)
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e2e8f0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: system-ui, -apple-system, sans-serif; }
body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, [type='button'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   THEME — CSS Custom Properties (from portal_layout.twig)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --cp: oklch(68.5% 0.19 51);
  --cp-dk: oklch(62% 0.17 51);
  --cp-act: oklch(49% 0.22 35);
  --cp-lt: oklch(97% 0.05 85.7deg);
  --cbg: oklch(98.5% 0.01 70);
  --csurf: oklch(100% 0 0);
  --cmuted: oklch(96% 0.01 70);
  --ct: oklch(19.2% 0 0);
  --ct2: oklch(48.8% 0 0);
  --ct3: oklch(47% 0 0);
  --cton: oklch(100% 0 0);
  --cbrd: oklch(40% 0.01 70 / 0.18);
  --cbrd2: oklch(40% 0.01 70 / 0.30);
  --brand-color: var(--cp);
  --brand-color-hover: var(--cp-dk);
  --brand-color-soft: var(--cp-lt);

  /* Tailwind color palette (used in utilities) */
  --tw-slate-50: #f8fafc;
  --tw-slate-100: #f1f5f9;
  --tw-slate-200: #e2e8f0;
  --tw-slate-300: #cbd5e1;
  --tw-slate-400: #94a3b8;
  --tw-slate-500: #64748b;
  --tw-slate-600: #475569;
  --tw-slate-700: #334155;
  --tw-slate-800: #1e293b;
  --tw-amber-50: #fffbeb;
  --tw-amber-100: #fef3c7;
  --tw-amber-600: #d97706;
  --tw-amber-700: #b45309;
  --tw-amber-800: #92400e;
  --tw-white: #ffffff;
}

:root[data-theme="sanjuan"],
:root[data-theme="amber"] {
  --brand-color: var(--cp);
  --brand-color-hover: var(--cp-dk);
  --brand-color-soft: var(--cp-lt);
}
:root[data-theme="indigo"] {
  --brand-color: #2563b0;
  --brand-color-hover: #1a4480;
  --brand-color-soft: #eff6ff;
}
:root[data-theme="emerald"] {
  --brand-color: #059669;
  --brand-color-hover: #047857;
  --brand-color-soft: #ecfdf5;
}
:root[data-theme="rose"] {
  --brand-color: #e11d48;
  --brand-color-hover: #be123c;
  --brand-color-soft: #fff1f2;
}
:root[data-theme="slate"] {
  --brand-color: #1e293b;
  --brand-color-hover: #000000;
  --brand-color-soft: #f1f5f9;
}

/* ═══════════════════════════════════════════════════════════════
   BASE TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
html {
  background: var(--cbg);
  color: var(--ct);
}
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cbg);
  color: var(--ct);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Layout
   ═══════════════════════════════════════════════════════════════ */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.overflow-hidden { overflow: hidden; }
.min-h-full { min-height: 100%; }

.top-0 { top: 0; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Sizing
   ═══════════════════════════════════════════════════════════════ */
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Spacing
   ═══════════════════════════════════════════════════════════════ */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.ml-5 { margin-left: 1.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Typography
   ═══════════════════════════════════════════════════════════════ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.font-ubuntu { font-family: 'Ubuntu', system-ui, sans-serif; }
.font-lora { font-family: 'Lora', Georgia, serif; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.no-underline { text-decoration-line: none; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Colors (text)
   ═══════════════════════════════════════════════════════════════ */
.text-white { color: #ffffff; }
.text-slate-200 { color: var(--tw-slate-200); }
.text-slate-300 { color: var(--tw-slate-300); }
.text-slate-400 { color: var(--tw-slate-400); }
.text-slate-500 { color: var(--tw-slate-500); }
.text-slate-600 { color: var(--tw-slate-600); }
.text-slate-700 { color: var(--tw-slate-700); }
.text-slate-800 { color: var(--tw-slate-800); }
.text-amber-50 { color: #fffbeb; }
.text-amber-800 { color: var(--tw-amber-800); }
.text-brand { color: var(--brand-color); }
.text-\[\#1e2d3d\] { color: #1e2d3d; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Colors (background)
   ═══════════════════════════════════════════════════════════════ */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: var(--tw-slate-50); }
.bg-slate-100 { background-color: var(--tw-slate-100); }
.bg-amber-100 { background-color: var(--tw-amber-100); }
.bg-amber-600 { background-color: var(--tw-amber-600); }
.bg-brand { background-color: var(--brand-color); }
.bg-brand-soft { background-color: var(--brand-color-soft); }
.bg-transparent { background-color: transparent; }
.bg-\[\#1e2d3d\] { background-color: #1e2d3d; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Border
   ═══════════════════════════════════════════════════════════════ */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: var(--tw-slate-200); }
.border-l-amber-600 { border-left-color: var(--tw-amber-600); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Effects & Filters
   ═══════════════════════════════════════════════════════════════ */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-black\/10 { --tw-shadow-color: rgba(0, 0, 0, 0.1); }
.opacity-80 { opacity: 0.8; }
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }
.brightness-0.invert { filter: brightness(0) invert(1); }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Transitions
   ═══════════════════════════════════════════════════════════════ */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: ease; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: ease; transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Hover States
   ═══════════════════════════════════════════════════════════════ */
.hover\:bg-slate-50:hover { background-color: var(--tw-slate-50); }
.hover\:bg-slate-100:hover { background-color: var(--tw-slate-100); }
.hover\:bg-amber-50:hover { background-color: #fffbeb; }
.hover\:bg-brand:hover { background-color: var(--brand-color); }
.hover\:bg-brand-soft:hover { background-color: var(--brand-color-soft); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:text-brand:hover { color: var(--brand-color); }
.hover\:text-brand-dark:hover { color: var(--brand-color-hover); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:border-brand:hover { border-color: var(--brand-color); }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.hover\:underline:hover { text-decoration-line: underline; }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND UTILITIES — Group Hover
   ═══════════════════════════════════════════════════════════════ */
.group:hover .group-hover\:bg-brand { background-color: var(--brand-color); }
.group:hover .group-hover\:text-brand { color: var(--brand-color); }
.group:hover .group-hover\:text-white { color: #ffffff; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — sm (640px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:inline { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — md (768px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — lg (1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM COMPONENTS — Alpine.js
   ═══════════════════════════════════════════════════════════════ */
[x-cloak] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   CUSTOM COMPONENTS — GSJ Government Banner
   ═══════════════════════════════════════════════════════════════ */
.gsj-banner {
  background-color: #2D2D2D;
  border-bottom: 2px solid var(--brand-color);
}
.gsj-banner__bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.gsj-banner__bar-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 0;
}
@media (min-width: 640px) {
  .gsj-banner__bar-inner {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    min-height: 44px;
  }
}
.gsj-banner__flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.gsj-banner__flag strong {
  color: white;
  font-weight: 600;
}
.gsj-banner__flag-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.gsj-banner__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-color);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease;
  padding-left: calc(18px + 8px);
}
@media (min-width: 640px) {
  .gsj-banner__toggle {
    padding-left: 0;
  }
}
.gsj-banner__toggle::before {
  content: "·";
  display: none;
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}
@media (min-width: 640px) {
  .gsj-banner__toggle::before {
    display: inline-block;
  }
}
.gsj-banner__toggle:hover {
  color: var(--brand-color-hover);
}
.gsj-banner__toggle svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.gsj-banner__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.gsj-banner__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}
.gsj-banner__content.is-open {
  grid-template-rows: 1fr;
}
.gsj-banner__content > * {
  overflow: hidden;
}
.gsj-banner__content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 768px) {
  .gsj-banner__content-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.gsj-banner__guidance {
  display: flex;
  gap: 12px;
}
.gsj-banner__guidance-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  flex-shrink: 0;
}
.gsj-banner__guidance-title {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}
.gsj-banner__guidance-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.5;
}
.gsj-banner__guidance-text strong {
  color: white;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM COMPONENTS — Portal
   ═══════════════════════════════════════════════════════════════ */
.portal-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
}

.doc-card {
  border-left: 3px solid #e2e8f0;
  transition: border-color 0.15s, background 0.15s;
}
.doc-card:hover {
  border-left-color: var(--brand-color);
  background: var(--brand-color-soft);
}

.pill-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 9999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-width: 620px;
  width: 100%;
}
.pill-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 15px;
  font-family: 'Ubuntu', sans-serif;
  background: transparent;
  color: #1e293b;
}
.pill-search button {
  background: var(--brand-color);
  color: white;
  border: none;
  padding: 12px 24px;
  margin: 4px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.pill-search button:hover {
  background: var(--brand-color-hover);
}

.cal-day-pub {
  background: var(--brand-color);
  color: white !important;
  border-radius: 6px;
  font-weight: 700;
}
.cal-day-pub:hover {
  background: var(--brand-color-hover);
}
.cal-day-today {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   PLACEHOLDER color
   ═══════════════════════════════════════════════════════════════ */
.placeholder-slate-400::placeholder { color: var(--tw-slate-400); }
