/* =========================================================================
   CSS/PORTAL.CSS — Sistema de Diseño Moderno y Redondeado para nolli.
   Compartido entre landing.html, ciudades.html, arquitectos.html,
   categorias.html, guia.html, manifiesto.html y colabora.html.
   Alineado con la estética de las fichas de obra (/obra) y sitemaps.
   ========================================================================= */

:root {
  --bg: #F8F1DF;
  --bg-card: #FFFFFF;
  --bg-panel: #FFFFFF;
  --bg-raised: #F0E9D2;
  --bg-elevated: #F0E9D2;
  --bg-row-alt: rgba(20, 20, 17, 0.02);
  --fg: #141411;
  --fg-dim: #6B6B6B;
  --border: #D8D6CE;
  --border-subtle: rgba(20, 20, 17, 0.08);
  --border-strong: #141411;
  --accent: #EA560D;
  --accent-hover: #C44605;
  --accent-2: #F6A600;
  --blue: #163D62;

  /* Sistema de radios redondeados de la nueva web */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Sombras sutiles, orgánicas y elevadas */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 3px 12px rgba(234, 86, 13, 0.28);
}

/* Modo oscuro nativo */
body.dark-mode {
  --bg: #141411;
  --bg-card: #1B1B18;
  --bg-panel: #1B1B18;
  --bg-raised: #242420;
  --bg-elevated: #242420;
  --bg-row-alt: rgba(255, 255, 255, 0.03);
  --fg: #F4F1EA;
  --fg-dim: #9E9E94;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.25);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 3px 12px rgba(234, 86, 13, 0.35);
}

html, body, body.portal-body {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  touch-action: auto !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor principal de ancho máximo */
.portal-shell,
main.portal-shell {
  position: static !important;
  inset: auto !important;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
  overflow: visible !important;
  height: auto !important;
  touch-action: auto !important;
  touch-action: pan-y !important;
}

@media (max-width: 640px) {
  .portal-shell,
  main.portal-shell {
    padding: 0 16px 60px;
  }
}

/* La regla superior milimétrica queda oculta para adoptar la estética limpia de la nueva web */
.axis-ruler {
  display: none !important;
}

/* =========================================================================
   CABECERA Y NAVEGACIÓN PRINCIPAL
   ========================================================================= */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(248, 241, 223, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .portal-header {
  background: rgba(20, 20, 17, 0.94);
  border-bottom-color: var(--border);
}

.portal-brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-logo {
  font-family: 'League Spartan', sans-serif !important;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  text-transform: lowercase;
}

.brand-logo .brand-dot {
  color: var(--accent);
}

.brand-tagline {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  text-transform: lowercase;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .brand-tagline { display: none; }
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease;
}

.portal-nav-link:hover {
  color: var(--accent);
}

.portal-nav-link.active {
  color: var(--accent);
}

.portal-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

/* Botón CTA de Cabecera (Estilo nueva web con bordes redondeados) */
.portal-nav-cta {
  background: var(--accent);
  color: #FFFFFF !important;
  padding: 7px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.portal-nav-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 86, 13, 0.4);
}

/* Botón Hamburguesa Móvil */
.portal-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  line-height: 0;
  transition: all 0.15s ease;
}

.portal-menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 1040px) {
  .portal-nav-link { display: none; }
  .portal-menu-btn { display: inline-flex; }
}

@media (max-width: 640px) {
  .portal-nav-cta { display: none !important; }
  .portal-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }
  .portal-search-wrap {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* =========================================================================
   DRAWER MÓVIL ACCESIBLE REDONDEADO
   ========================================================================= */
.portal-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 17, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.portal-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.portal-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top-left-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
  box-shadow: -6px 0 30px rgba(0,0,0,0.12);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  box-sizing: border-box;
}

.portal-drawer.open {
  transform: translateX(0);
}

.portal-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.portal-drawer-close {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.portal-drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portal-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.portal-drawer-links a {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.portal-drawer-links a:hover,
.portal-drawer-links a.active {
  background: var(--bg-elevated);
  color: var(--accent);
  border-color: var(--border-subtle);
}

.portal-drawer-links a.portal-drawer-cta,
.portal-drawer-links a[href="./"] {
  margin-top: 16px;
  background: var(--accent) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--accent) !important;
  border-radius: var(--radius-sm) !important;
  font-family: 'League Spartan', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  box-shadow: var(--shadow-accent) !important;
  justify-content: center !important;
}

.portal-drawer-links a.portal-drawer-cta:hover,
.portal-drawer-links a[href="./"]:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 86, 13, 0.4) !important;
}

.portal-drawer-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg-dim);
}

/* =========================================================================
   BREADCRUMBS ARQUITECTÓNICOS
   ========================================================================= */
.portal-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
}

.portal-breadcrumbs a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.portal-breadcrumbs a:hover {
  color: var(--accent);
}

.portal-breadcrumbs .sep {
  color: var(--border);
  font-weight: 600;
}

.portal-breadcrumbs .current {
  color: var(--fg);
  font-weight: 600;
}

/* =========================================================================
   CABECERA HERO DE PÁGINA (PAGE HEADER)
   ========================================================================= */
.portal-page-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.portal-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.portal-title {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--fg);
  text-wrap: balance;
}

.portal-title span {
  color: var(--accent);
}

.portal-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 800px;
  margin: 0 0 20px;
}

/* =========================================================================
   BARRA DE BÚSQUEDA Y FILTROS EN VIVO (ESTILO REDONDEADO)
   ========================================================================= */
.portal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.portal-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.portal-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 14px 9px 38px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 86, 13, 0.15);
}

.portal-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-dim);
  pointer-events: none;
}

.portal-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  user-select: none;
}

.portal-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.portal-chip.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

/* =========================================================================
   TARJETAS Y GRIDS DE LA NUEVA WEB (CANTOS REDONDEADOS Y SOMBRAS SUAVES)
   ========================================================================= */
.portal-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.portal-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .portal-grid-3, .portal-grid-2 {
    grid-template-columns: 1fr;
  }
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-card-badge {
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--fg);
  white-space: nowrap;
}

.portal-card-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--fg);
}

.portal-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.portal-card-title a:hover {
  color: var(--accent);
}

.portal-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 18px;
  flex: 1;
}

.portal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--fg-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
}

.portal-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* =========================================================================
   BOTONES DEL SISTEMA (BORDES REDONDEADOS Y SOMBRAS ORGÁNICAS)
   ========================================================================= */
.portal-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s ease;
}

.portal-btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.portal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'League Spartan', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-accent);
  background: var(--accent);
  color: #FFFFFF !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.portal-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(234, 86, 13, 0.4);
}

.portal-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   BLOQUES DE CONTENIDO EDITORIAL (PROSE / MANIFIESTO / GUÍA)
   ========================================================================= */
.portal-prose {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
}

.portal-prose p {
  margin: 0 0 18px;
}

.portal-prose h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  color: var(--fg);
}

.portal-prose h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--fg);
}

.portal-callout {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 22px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.portal-callout strong {
  color: var(--accent);
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* =========================================================================
   FOOTER SEMÁNTICO UNIFICADO
   ========================================================================= */
.portal-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}

@media (max-width: 860px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-columns { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: 'League Spartan', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--fg);
  text-transform: lowercase;
}

.footer-brand .brand-dot {
  color: var(--accent);
}

.footer-motto {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
  max-width: 320px;
}

.footer-col-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.brand-nolli {
  font-family: 'League Spartan', sans-serif !important;
  font-weight: 800;
  font-size: 1.22em;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  display: inline-block;
  vertical-align: baseline;
}

.brand-signes {
  font-family: 'Montserrat', sans-serif !important;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: 0.04em;
}

.brand-signes-bold {
  font-weight: 800;
}

.brand-signes-thin {
  font-weight: 200;
}

/* =========================================================================
   COMPONENTES DE PÁGINA PRINCIPAL / LANDING PAGE (REDONDEADOS Y MODERNOS)
   ========================================================================= */

/* Hero Monumental con Vista Previa del Mapa */
.portal-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 960px) {
  .portal-hero {
    grid-template-columns: 1fr;
    padding: 28px 0 24px;
    gap: 32px;
  }
}

.portal-hero-title {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--fg);
  text-wrap: balance;
}

.portal-hero-title span {
  color: var(--accent);
}

.portal-hero-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 0 28px;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.portal-hero-preview {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-hero-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.portal-hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portal-hero-hud {
  background: var(--bg-card);
  color: var(--fg);
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: 'Inter', monospace;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

/* Sección Estándar */
.portal-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.portal-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.portal-section-title {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--fg);
}

.portal-section-lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 760px;
  margin: 0 0 32px;
}

/* Grilla de Estadísticas */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .portal-stats-grid { grid-template-columns: 1fr; }
}

.portal-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-stat-num {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.portal-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin: 0 0 6px;
}

.portal-stat-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 0;
}

/* Layout de Dos Columnas para Concepto / Acerca de */
.portal-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .portal-about-grid { grid-template-columns: 1fr; }
}

.portal-about-copy p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 16px;
}

.portal-about-copy strong {
  font-weight: 700;
  color: var(--fg);
}

.portal-principles-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.portal-principles-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.portal-principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-principles-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.portal-principles-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-principles-list strong {
  display: block;
  color: var(--accent);
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* Visual de Tarjeta de Funcionalidad */
.portal-feature-visual {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  overflow: hidden;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.portal-feature-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Grilla de Niveles de Relevancia */
.portal-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .portal-levels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .portal-levels-grid { grid-template-columns: 1fr; }
}

.portal-level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-level-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-level-badge {
  display: inline-block;
  font-family: 'League Spartan', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--accent);
  align-self: flex-start;
  margin-bottom: 10px;
}

.portal-level-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--fg);
}

.portal-level-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-dim);
  margin: 0;
}

/* Grilla de Obras Icónicas */
.portal-iconic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .portal-iconic-grid { grid-template-columns: 1fr; }
}

.portal-iconic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-iconic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.portal-iconic-name {
  font-family: 'League Spartan', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--fg);
}

.portal-iconic-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 4px;
}

.portal-iconic-city {
  font-size: 11.5px;
  color: var(--fg-dim);
  margin: 0;
}

/* Grilla de Chips de Categorías */
.portal-categories-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.portal-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-category-card:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}

.portal-category-card-arrow {
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

/* Acordeón FAQ */
.portal-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.portal-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.portal-faq-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: var(--bg-card);
}

.portal-faq-summary::-webkit-details-marker {
  display: none;
}

.portal-faq-summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.portal-faq-item[open] .portal-faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.portal-faq-content {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  border-top: 1px solid var(--border-subtle);
}

/* Banner CTA Final (Bordes Redondeados y Sombra Cálida) */
.portal-cta-banner {
  margin: 56px 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #FFFFFF;
  padding: 48px 36px;
  box-shadow: var(--shadow-accent);
  text-align: center;
}

.portal-cta-title {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 14px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.portal-cta-desc {
  font-size: 16px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.94);
}

.portal-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-btn-white {
  background: #FFFFFF;
  color: #141411 !important;
  font-family: 'League Spartan', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.18);
}

.portal-btn-outline-white {
  background: transparent;
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.portal-btn-outline-white:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
