/* ============================================================
   WALLACE INTELIGENCIA GRÁFICA® — Tema personalizado Grav CMS
   Archivo: /user/themes/quark/css/custom.css
   ============================================================ */

/* ── Fuente Roboto ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body, 
h1, h2, h3, h4, h5, h6,
p, a, li, span, div {
  font-family: 'Roboto', sans-serif !important;
}

:root {
  --wallace-blue:       #2255CC;
  --wallace-blue-dark:  #1A44BB;
  --wallace-blue-light: #EEF2FB;
  --wallace-border:     #DDE4F0;
  --wallace-text:       #222222;
  --wallace-muted:      #555555;
  --wallace-white:      #FFFFFF;
}

/* ── Header fijo ─────────────────────────────────────────── */
#header {
  background: var(--wallace-white) !important;
  border-bottom: 2px solid var(--wallace-border) !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

#header nav a {
  color: var(--wallace-blue) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#header nav a:hover,
#header nav a.active {
  color: var(--wallace-blue) !important;
  text-decoration: none;
}


/* ── Logo más grande ─────────────────────────────────────── */
#header .logo img,
#header .navbar-brand img {
  height: 50px !important;
  width: auto !important;
}

/* ── Logo comprimido al hacer scroll ─────────────────────── */
#header.scrolled .logo img,
#header.sticky .logo img,
#header.shrink .logo img {
  height: 45px !important;
  width: auto !important;
}

/* ── Altura del header al hacer scroll ───────────────────── */
body.header-fixed.header-animated #header.scrolled {
  height: 3.2rem !important;
  transition: height 0.3s ease;
}
/* ── Padding interno navbar scrolleado ───────────────────── */
body.header-fixed.header-animated #header.scrolled .navbar {
  padding-top: 7px !important;
  padding-bottom: 8px !important;
}

/* ── Ampliar ancho del contenedor ────────────────────────── */
.section.blog-listing .container {
  max-width: 1200px !important;
  width: 95% !important;
  padding: 24px 20px !important;
}

.bricklayer {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}


/* ── Empujar el contenido debajo del header fijo ─────────── */
#body-wrapper,
body > .hero,
.blog-listing {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Compensa la altura del header fijo (~90px) */
body {
  padding-top: 90px !important;
}

/* ── Eliminar cualquier barra/hero extra ─────────────────── */
.hero-unit,
.page-header-image,
section.hero,
#hero {
  display: none !important;
}

/* ── Grilla bricklayer → 3 columnas ─────────────────────── */
.bricklayer {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  column-count: unset !important;
  width: 100% !important;
}

.bricklayer-column-sizer {
  display: none !important;
}

.bricklayer-column {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

@media (max-width: 900px) {
  .bricklayer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 580px) {
  .bricklayer {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tarjeta individual ─────────────────────────────────── */
.card {
  background: var(--wallace-white) !important;
  border: 1px solid var(--wallace-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0 !important;
  height: 100%;
}

.card:hover {
  border-color: var(--wallace-blue) !important;
  box-shadow: 0 4px 16px rgba(34, 85, 204, 0.10) !important;
}

.card-image {
  width: 100%;
  overflow: hidden;
  max-height: 180px;
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-header {
  padding: 14px 16px 4px !important;
  background: transparent !important;
  border-bottom: none !important;
}

.card-subtitle,
.blog-date {
  font-size: 11px !important;
  color: #AAAAAA !important;
}

.card-title {
  padding: 4px 16px 8px !important;
}

.card-title h5,
.card-title .p-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: var(--wallace-text) !important;
  margin: 0 !important;
}

.card-title h5 a,
.card-title .u-url {
  color: var(--wallace-text) !important;
  text-decoration: none !important;
}

.card-title h5 a:hover,
.card-title .u-url:hover {
  color: var(--wallace-blue) !important;
}

.card-body {
  padding: 0 16px 14px !important;
  flex: 1;
}

.card-body p {
  font-size: 12.5px !important;
  color: var(--wallace-muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.card-footer {
  padding: 10px 16px 14px !important;
  border-top: 1px solid var(--wallace-border) !important;
  background: transparent !important;
  margin-top: auto;
}

.card-footer a {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--wallace-blue) !important;
  text-decoration: none !important;
}

/* ── Artículo individual ─────────────────────────────────── */
article.item h1 {
  color: var(--wallace-blue) !important;
  font-size: 28px;
  font-weight: 700;
}

article.item img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

/* ── Botones ─────────────────────────────────────────────── */
.button, .btn, a.button {
  background: var(--wallace-blue) !important;
  color: var(--wallace-white) !important;
  border: 2px solid var(--wallace-blue) !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button:hover, .btn:hover, a.button:hover {
  background: var(--wallace-blue-dark) !important;
  border-color: var(--wallace-blue-dark) !important;
  color: var(--wallace-white) !important;
  text-decoration: none !important;
}


/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar-block {
  background: var(--wallace-white);
  border: 1px solid var(--wallace-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  color: var(--wallace-blue) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--wallace-blue);
  padding-bottom: 8px;
  margin-bottom: 14px !important;
}

.sidebar-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-list li {
  border-bottom: 1px solid var(--wallace-border);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-link {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px !important;
  color: var(--wallace-muted) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.sidebar-link:hover {
  color: var(--wallace-blue) !important;
  text-decoration: none !important;
}

.sidebar-count {
  background: var(--wallace-blue-light);
  color: var(--wallace-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Artículo individual ─────────────────────────────────── */

.item-featured-image {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
}

.item-featured-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}

.item-hero {
  background: linear-gradient(135deg, #1A44BB 0%, #2255CC 60%, #3A6EE8 100%);
  padding: 28px 0 32px;
  margin-bottom: 0;
}

.item-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.item-title {
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  border: none !important;
}

.item-meta-bar {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.item-meta-bar time {
  color: rgba(255,255,255,0.75) !important;
}

.item-meta-bar .item-category a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
  text-decoration: none;
}

.item-meta-bar .item-category a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.item-content {
  padding: 32px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  max-width: 820px;
}

.item-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

/* ── Navegación entre artículos ──────────────────────────── */
.item-pagination {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--wallace-border);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.item-pagination a {
  background: var(--wallace-blue) !important;
  color: #fff !important;
  border: 2px solid var(--wallace-blue) !important;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.item-pagination a:hover {
  background: var(--wallace-blue-dark) !important;
}

/* ── Footer 3 columnas ───────────────────────────────────── */
#footer {
  background: #f2f2f2 !important;
  border-top: 3px solid #2255CC !important;
  padding: 10px 0 0 !important;
  color: #555 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 32px;
}

.footer-title {
  color: #666 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
    text-align: left !important;
}

.footer-brand {
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
    text-align: left !important;
}

.footer-gap {
  margin-top: 12px !important;
}

.footer-col p {
  font-size: 13px;
  color: #555;
  margin: 2px 0;
}

.footer-col a {
  color: #555 !important;
  font-size: 14px;
  text-decoration: none;
}

.footer-col a:hover {
  color: #2255CC !important;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
    text-align: left !important;
}

.footer-links li {
  padding: 1px 0;
  border-bottom: 1px solid #DDE4F0;
  font-size: 13px;
}

.footer-links li:last-child {
  border-bottom: none;
}

.footer-social li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

/* ── Footer bottom azul ──────────────────────────────────── */
.footer-bottom {
  background: #3e53a4;
  width: 100%;
  padding: 14px 0 !important;
  margin: 0 !important;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5) !important;
  margin: 0 !important;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7) !important;
}

.footer-bottom a:hover {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Sidebar margen top en mobile ────────────────────────── */
@media (max-width: 840px) {
  #sidebar {
    margin-top: 24px !important;
  }
}