/* Importar fuentes (si no lo haces ya en tu HTML con <link>) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&family=Source+Code+Pro:wght@400;500;600&display=swap');

/* Reseteo básico y configuración de box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables CSS */
:root {
  --vista-blue: #82a1d2;
  --vista-blue-button-hover: #355792;
  --alabaster: #e0e4db;
  --penn-blue: #001f54;
  --penn-blue-darker: #001338;
  --mexican-pink: #dc0073;
  --mexican-pink-hover: #c50065;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --color-bg-sidebar-dark-accent: #203a4c;
  --color-bg-dark: var(--penn-blue);
  --color-bg-light: var(--alabaster);
  --color-bg-card: #ffffff;
  --color-bg-sidebar-box: var(--color-bg-sidebar-dark-accent);
  --color-bg-blockquote: var(--gray-100);
  --color-bg-code-inline: var(--gray-200);
  --color-bg-code-block: var(--gray-800);
  --color-bg-input-dark: #002b70;
  --color-bg-placeholder: var(--gray-200);
  --color-primary-action: var(--vista-blue);
  --color-primary-action-hover: #698ab9;
  --color-primary-action-active: var(--penn-blue-darker);
  --color-accent-highlight: var(--mexican-pink);
  --color-accent-highlight-hover: var(--mexican-pink-hover);
  --color-text-on-dark: var(--gray-200);
  --color-text-header: var(--penn-blue);
  --color-text-body: var(--gray-800);
  --color-text-muted: var(--gray-600);
  --color-text-muted-on-dark: var(--gray-500); /* Variable para texto muted sobre fondos oscuros */
  --color-text-button: #ffffff;
  --color-text-link: var(--penn-blue); /* Enlaces ahora usan penn-blue */
  --color-text-link-hover: var(--penn-blue-darker); /* Hover de enlaces un poco más oscuro */
  --color-text-code-block: var(--gray-300);
  --color-text-placeholder-on-dark: var(--gray-500);
  --color-text-placeholder-content: var(--gray-500);
  --color-text-on-sidebar-dark: var(--gray-100);
  --color-text-muted-on-sidebar-dark: var(--gray-400);
  --color-text-link-on-sidebar-dark: var(--gray-100); /* Enlaces en sidebar ahora usan --gray-100 */
  --color-text-link-hover-on-sidebar-dark: var(--gray-200); /* Hover de enlaces en sidebar un poco más brillante que el normal */
  --color-border-accent-on-sidebar-dark: var(--vista-blue);
  --color-border-light: var(--gray-300);
  --color-border-medium: var(--gray-400);
  --color-border-dark: var(--gray-500);
  --color-border-input-dark-focus: var(--mexican-pink);
  --font-main: 'Inter', sans-serif;
  --font-headings: 'Poppins', sans-serif;
  --font-monospace: 'Source Code Pro', monospace;
  --base-font-size: 16px;
  --line-height-body: 1.75;
  --line-height-content: 1.8;
  --shadow-soft: 0 2px 5px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 2px 8px rgba(0, 0, 0, 0.15);
  --border-radius-small: 4px;
  --border-radius-medium: 6px;
  --border-radius-large: 8px;
  --border-radius-pills: 16px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 0.15s ease-out;
  --footer-particle-size: 3px;
  --footer-particle-color: rgba(255, 255, 255, 0.15);
  --footer-particle-duration: 30s;
}

/* Animaciones */
@keyframes headerWave { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes particleMove { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

/* ==========================================================================
   BODY - SECCIÓN MODIFICADA
   ========================================================================== */
body {
  font-family: var(--font-main);
  font-size: var(--base-font-size);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  
  background-image: 
    url('/static/fondo-web-gris-claro-VE.png'),
    radial-gradient(at 50% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 70%),
    radial-gradient(at 0% 100%, rgba(0, 19, 56, 0.05) 0%, transparent 50%);
  
  background-repeat: repeat;
}
/* ==========================================================================
   FIN DE LA SECCIÓN MODIFICADA
   ========================================================================== */


.container {
  width: 95%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
header {
  background: linear-gradient(90deg, var(--penn-blue) 0%, var(--penn-blue-darker) 50%, var(--penn-blue) 100%);
  background-size: 200% 200%;
  animation: headerWave 15s ease infinite;
  color: var(--color-text-on-dark);
  padding: 0.6rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-strong);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo a { font-size: 1.75rem; font-weight: 700; color: var(--color-text-on-dark); text-decoration: none; transition: opacity 0.2s ease-in-out, transform 0.2s ease-out;}
header .logo a:hover { opacity: 0.85; transform: scale(1.02); }
.header-right-group { display: flex; align-items: center; }
header nav { margin-right: 1.5rem; }
header nav ul { list-style: none; padding-left: 0; margin-bottom: 0; }
header nav ul li { display: inline; margin-left: 1.25rem; }
header nav ul li:first-child { margin-left: 0; }
header nav ul li a { font-size: 0.9rem; font-weight: 500; color: var(--color-text-on-dark); text-decoration: none; position: relative; transition: color var(--transition-smooth); padding: 0.2rem 0; }
header nav ul li a::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 0; height: 2px; background-color: var(--vista-blue); transition: width 0.3s ease-out, left 0.3s ease-out; }
header nav ul li a:hover { color: var(--vista-blue); }
header nav ul li a:hover::after { width: 100%; left: 0; }
header nav ul li a.active::after { width: 100%; left: 0; background-color: var(--mexican-pink); }
.button { font-size: 0.9rem; font-weight: 600; padding: 0.55rem 1.1rem; border-radius: var(--border-radius-medium); text-decoration: none; border: none; cursor: pointer; transition: var(--transition-smooth); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.button:hover { filter: brightness(110%); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.button:active { transform: translateY(1px); filter: brightness(100%); box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset; }
.button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--vista-blue), 0 0 0 5px rgba(130,161,210,0.5); }
header .subscribe-button .button { background: var(--color-accent-highlight); color: var(--color-text-button); font-weight: 500; }
header .subscribe-button .button:hover { background: var(--color-accent-highlight-hover); filter: brightness(105%); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* --- Category Bar --- */
.category-bar {
  background-color: transparent;
  margin-top: 1.5625rem;
  margin-bottom: 1.875rem;
  padding: 0.25rem 0;
}
.category-bar .container-categorias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.category-button {
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-block;
  background-color: var(--penn-blue);
  color: var(--color-text-button);
  border: 1px solid var(--penn-blue);
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-pills);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--transition-smooth), color var(--transition-smooth), transform var(--transition-transform), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  flex-grow: 0; flex-shrink: 0; flex-basis: auto;
  min-width: 100px;
}
.category-button:hover {
  background-color: var(--vista-blue-button-hover);
  border-color: var(--vista-blue-button-hover);
  color: var(--color-text-button);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-medium);
}
.category-button:active {
  transform: translateY(0px) scale(1);
  background-color: var(--penn-blue-darker);
  border-color: var(--penn-blue-darker);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
.category-button:focus-visible {
  outline: none;
  background-color: var(--vista-blue-button-hover);
  border-color: var(--vista-blue-button-hover);
  box-shadow: 0 0 0 3px var(--vista-blue-button-hover), 0 0 0 5px rgba(53, 87, 146, 0.5);
}

main.container {
  padding-bottom: 1.875rem;
  padding-top: 80px; 
}

.homepage-layout { display: flex; gap: 1.5625rem; }
.main-column { flex: 3.3; min-width: 0; }
.sidebar-column { flex: 1.2; display: flex; flex-direction: column; gap: 1.5625rem; margin-top: 1.5625rem; min-width: 0; }
.sidebar-destacados-box { background-color: var(--color-bg-sidebar-box); padding: 1.25rem; border-radius: var(--border-radius-large); box-shadow: inset 0 0 10px rgba(0,0,0,0.25), 0 4px 10px rgba(0,0,0,0.3); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); color: var(--color-text-header); line-height: 1.25; letter-spacing: -0.03em; }
h1, h2, h3 { font-family: var(--font-headings); }
h2 { font-size: 1.625rem; font-weight: 700; margin-bottom: 1.5625rem; }
.sidebar-destacados-box h3 { font-family: var(--font-headings); font-size: 1.125rem; font-weight: 600; color: var(--color-text-on-sidebar-dark); text-align: center; letter-spacing: 0.05em; position: relative; padding-bottom: 0.6rem; margin-bottom: 1.35rem; }
.sidebar-destacados-box h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background-color: var(--mexican-pink); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5625rem; }
.article-card { background: var(--color-bg-card); border: 1px solid var(--color-border-light); padding: 1.25rem; display: flex; flex-direction: column; border-radius: var(--border-radius-large); box-shadow: var(--shadow-soft); transition: transform var(--transition-smooth), box-shadow var(--transition-smooth); overflow: hidden; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium), 0 8px 16px rgba(0,0,0,0.12); }
.article-card-image { display: block; width: 100%; height: 160px; object-fit: cover; margin-bottom: 1.125rem; border-radius: var(--border-radius-medium); transition: transform 0.3s ease-out, filter 0.3s ease-out; }
.article-card:hover .article-card-image { transform: scale(1.05); filter: brightness(0.9); }
.article-image-placeholder { height: 160px; background-color: var(--color-bg-placeholder); margin-bottom: 1.125rem; color: var(--color-text-placeholder-content); border-radius: var(--border-radius-medium); display: flex; align-items: center; justify-content: center; font-style: italic; overflow: hidden; position: relative; z-index: 1; }
.article-image-placeholder::before { content: 'IMAGEN PRÓXIMAMENTE'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: .9em; color: var(--gray-500); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.article-card h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: .625rem; }
.article-card h3 a { text-decoration: none; color: var(--color-text-header); transition: color var(--transition-smooth); }
.article-card h3 a:hover { color: var(--color-primary-action-hover); }
.article-card p.meta { font-size: .75rem; font-weight: 400; color: var(--color-text-muted); margin-bottom: .75rem; }
.article-card p { font-size: .9375rem; font-weight: 400; flex-grow: 1; line-height: 1.65; color: var(--color-text-body); }
.destacados-list { list-style: none; padding-left: 0; }
.destacados-list li { margin-bottom: 1.5rem; border-bottom: 1px solid var(--gray-700); padding-bottom: 1.5rem; position: relative; overflow: hidden; }
.destacados-list li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.destacado-item-link::before { content: ''; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background-color: var(--color-border-accent-on-sidebar-dark); transform: scaleY(0); transform-origin: center; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.destacado-item-link:hover::before { transform: scaleY(1); }
.destacado-item-link { display: block; text-decoration: none; padding-left: .75rem; margin-left: -.75rem; position: relative; transition: background-color .2s ease; }
.destacado-item-link:hover { background-color: rgba(0,0,0,.1); }
.destacado-item-link:hover .destacado-item-title { color: var(--color-text-link-hover-on-sidebar-dark); }
.destacado-item-link .destacado-item-image { transition: opacity var(--transition-smooth); }
.destacado-item-link:hover .destacado-item-image { opacity: .88; }
.destacado-item-image { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: var(--border-radius-medium); margin-bottom: .625rem; }
.destacado-image-placeholder { height: 120px; background: var(--gray-600); color: var(--gray-300); border-radius: var(--border-radius-medium); margin-bottom: .625rem; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-style: italic; background-image: radial-gradient(var(--gray-700) 10%,transparent 11%); background-size: 6px 6px; text-transform: uppercase; font-weight: 500; }
.destacado-item-title {
  font-family: var(--font-main);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-link-on-sidebar-dark);
  transition: color var(--transition-smooth);
}
.sidebar-column .ad-placeholder { font-size: .75rem; font-weight: 400; background: var(--color-bg-placeholder); padding: 1.25rem; text-align: center; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--color-border-medium); border-radius: var(--border-radius-large); color: var(--color-text-placeholder-content); background-image: repeating-linear-gradient(45deg,var(--gray-200) 0,var(--gray-200) 10px,var(--gray-300) 10px,var(--gray-300) 20px); background-size: 20px 20px; animation: particleMove 30s linear infinite; }
.sidebar-column .ad-placeholder::before { content: 'PUBLICIDAD'; font-weight: 700; font-size: 1.1em; margin-bottom: .5em; color: var(--gray-700); }
.sidebar-column .ad-placeholder span { font-size: .9em; color: var(--gray-600); }
.footer-section { margin-top: 0; }
.footer-subscribe-section { background: var(--color-bg-dark); color: var(--color-text-on-dark); padding: 2.5rem 0; text-align: center; position: relative; overflow: hidden; }
.footer-subscribe-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 80%,var(--footer-particle-color) var(--footer-particle-size),transparent calc(var(--footer-particle-size)*2)),radial-gradient(circle at 80% 20%,var(--footer-particle-color) var(--footer-particle-size),transparent calc(var(--footer-particle-size)*2)); background-size: 300% 300%; animation: particleMove var(--footer-particle-duration) linear infinite alternate; z-index: 0; }
.footer-subscribe-section h3 { font-family: var(--font-headings); font-size: 1.375rem; font-weight: 600; color: var(--color-text-on-dark); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.subscribe-form { display: flex; justify-content: center; align-items: stretch; gap: 0; flex-wrap: nowrap; position: relative; z-index: 1; max-width: 450px; margin-left: auto; margin-right: auto; background-color: var(--color-bg-input-dark); border: 1px solid var(--vista-blue); border-radius: var(--border-radius-medium); overflow: hidden; }
.subscribe-form:focus-within { border-color: var(--color-border-input-dark-focus); box-shadow: 0 0 0 3px rgba(220,0,115,.25); }
.subscribe-form input[type=email] { font-size: .9375rem; font-weight: 400; padding: .85rem 1rem; border: none; border-radius: 0; flex-grow: 1; width: auto; background-color: transparent; color: var(--color-text-on-dark); outline: none; box-sizing: border-box; }
.subscribe-form input[type=email]::placeholder { color: var(--color-text-placeholder-on-dark); font-weight: 400; }
.subscribe-form button.button { font-weight: 600; text-transform: uppercase; font-size: .8125rem; background: var(--mexican-pink); color: var(--color-text-button); border: none; border-left: 1px solid var(--vista-blue); padding: .6rem 1.1rem; border-radius: 0; cursor: pointer; transition: background-color var(--transition-smooth),transform .15s ease-out; box-shadow: none; white-space: nowrap; flex-shrink: 0; }
.subscribe-form button.button:hover { background: var(--mexican-pink-hover); filter: none; box-shadow: none; }
.subscribe-form button.button:active { transform: scale(.98); filter: none; box-shadow: none; }
.subscribe-form button.button:focus-visible { outline: 2px solid var(--alabaster); outline-offset: -2px; box-shadow: none; }
.footer-contact-strip { background-color: var(--color-bg-card); color: var(--color-text-header); padding: 2rem 0; text-align: center; }
.footer-contact-strip p { font-size: .9375rem; font-weight: 400; margin: 0; display: flex; justify-content: center; align-items: center; gap: .625rem; flex-wrap: wrap; }
.footer-contact-strip p strong { display: flex; align-items: center; gap: .4em; }
.footer-contact-link { font-weight: 600; color: var(--color-text-header); background-color: transparent; text-decoration: none; padding: .2em .4em; border-radius: var(--border-radius-small); border: none; transition: color var(--transition-smooth),text-decoration-color var(--transition-smooth),background-color var(--transition-smooth); }
.footer-contact-link:hover { color: var(--color-text-link-hover); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.footer-contact-link:active { color: var(--penn-blue-darker); transform: none; }
.footer-contact-link:focus-visible { outline: 2px solid var(--vista-blue); outline-offset: 2px; background-color: transparent; color: var(--vista-blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.footer-bottom-section {
  background: var(--color-bg-dark);
  color: var(--color-text-muted-on-dark);
  padding: 2rem 0;
  text-align: center;
  font-size: .8125rem;
  font-weight: 400;
}
.footer-bottom-section p { margin-bottom: .7rem; }
.footer-links a {
  color: var(--color-text-muted-on-dark);
  text-decoration: none;
  margin: 0 .625rem;
  transition: color var(--transition-smooth);
  font-weight: 400;
}
.footer-links a:hover { color: var(--vista-blue); }
.blog-post-full { background-color: var(--color-bg-card); padding: 1.875rem; border-radius: var(--border-radius-large); box-shadow: var(--shadow-soft); margin-bottom: 1.875rem; }
.blog-post-full h1 { font-family: var(--font-headings); font-size: 1.875rem; font-weight: 700; color: var(--color-text-header); margin-bottom: .75rem; line-height: 1.2; }
.blog-post-full .meta { font-size: .875rem; color: var(--color-text-muted); margin-bottom: 1.875rem; border-bottom: 1px solid var(--color-border-light); padding-bottom: 1.125rem; }
.blog-post-full .meta .category-link-inline {
  color: var(--color-text-link);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-smooth),text-decoration-color var(--transition-smooth);
}
.blog-post-full .meta .category-link-inline:hover {
  text-decoration-color: var(--color-text-link-hover);
  color: var(--color-text-link-hover);
}
.featured-image-container { margin-bottom: 1.875rem; text-align: center; }
.featured-image {
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-large);
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-medium);
}
.content-body {
  font-size: var(--base-font-size);
  line-height: var(--line-height-content);
  color: var(--color-text-body);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}
.content-body p { margin-bottom: 1.2em; }
.content-body h2,.content-body h3,.content-body h4 { margin-top: 1.8em; margin-bottom: .8em; color: var(--color-text-header); line-height: 1.3; }
.content-body h2 { font-family: var(--font-headings); font-size: 1.8em; font-weight: 600; }
.content-body h3 { font-family: var(--font-headings); font-size: 1.5em; font-weight: 600; }
.content-body h4 { font-size: 1.2em; font-weight: 600; }
.content-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-soft);
}
.content-body ul,.content-body ol { margin-bottom: 1.2em; padding-left: 2.5em; }
.content-body li { margin-bottom: .5em; }
.content-body blockquote { margin: 1.5em 0; padding: 1.2em 1.8em; border-left: 5px solid var(--mexican-pink); background-color: var(--gray-100); color: var(--color-text-body); font-style: italic; border-radius: var(--border-radius-medium); font-size: 1.05em; line-height: 1.6; box-shadow: inset 0 0 8px rgba(0,0,0,.05); }
.content-body code { font-family: var(--font-monospace); background-color: var(--color-bg-code-inline); padding: .2em .45em; border-radius: var(--border-radius-small); font-size: .88em; color: var(--color-text-header); }
.content-body pre { font-family: var(--font-monospace); background-color: var(--color-bg-code-block); color: var(--color-text-code-block); padding: 1.2em; border-radius: var(--border-radius-medium); overflow-x: auto; margin-bottom: 1.5em; font-size: .88em; box-shadow: inset 0 1px 3px rgba(0,0,0,.3); position: relative; }
.content-body pre code { background-color: transparent; padding: 0; border-radius: 0; color: inherit; }
.content-body pre::after { content: 'Copiar'; position: absolute; top: .75em; right: .75em; background-color: rgba(255,255,255,.1); color: var(--gray-300); padding: .3em .6em; border-radius: var(--border-radius-small); font-size: .75em; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.content-body pre:hover::after { opacity: 1; }
.tags-section { margin-top: 2.1875rem; padding-top: 1.5625rem; border-top: 1px solid var(--color-border-light); font-size: .9rem; }
.tags-section strong { margin-right: .625rem; font-weight: 500; color: var(--color-text-header); }
.tag-link {
  display: inline-block;
  background-color: var(--color-bg-light);
  color: var(--color-text-link);
  padding: .375rem .75rem;
  border-radius: var(--border-radius-pills);
  text-decoration: none;
  margin-right: .5rem;
  margin-bottom: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  border: 1px solid var(--color-text-link);
  transition: background-color var(--transition-smooth),color var(--transition-smooth),border-color var(--transition-smooth),transform .15s ease-out,box-shadow var(--transition-smooth);
}
.tag-link:hover {
  background-color: var(--color-text-link-hover);
  color: var(--color-text-button);
  border-color: var(--color-text-link-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.tag-link:focus-visible {
  outline: none;
  background-color: var(--color-text-link-hover);
  color: var(--color-text-button);
  border-color: var(--color-text-link-hover);
  box-shadow: 0 0 0 3px var(--color-text-link-hover), 0 0 0 5px rgba(0, 19, 56, 0.5);
}
.page-header {
  text-align: center;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1.5px solid var(--mexican-pink);
}
.page-header h1 {
  font-family: var(--font-headings);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--penn-blue);
  margin-bottom: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.pagination .page-item {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  margin: 0 0.1rem;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--border-radius-small);
  text-decoration: none;
  color: var(--penn-blue);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth);
  min-width: 38px;
  text-align: center;
}
.pagination .page-item:hover {
  background-color: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--penn-blue-darker);
}
.pagination .page-item.active {
  background-color: var(--penn-blue);
  border-color: var(--penn-blue);
  color: var(--color-text-button);
  font-weight: 700;
  cursor: default;
}
.pagination .page-item.active:hover {
  background-color: var(--penn-blue);
  border-color: var(--penn-blue);
  color: var(--color-text-button);
}
.pagination .page-item.ellipsis,
.pagination .page-item-spacer {
  border: none;
  padding: 0.5rem 0.25rem;
  color: var(--color-text-muted);
  cursor: default;
}
.pagination .page-item.ellipsis:hover,
.pagination .page-item-spacer:hover {
  background-color: transparent;
}
.pagination .page-item-prev,
.pagination .page-item-next {
  font-weight: 700;
}
.pagination.pagination-large .page-item {
  font-size: 1.1rem; 
  padding: 0.7rem 1.1rem;
  min-width: 44px;
}
.pagination.pagination-large .page-item-prev,
.pagination.pagination-large .page-item-next {
  font-size: 1.3rem;
}

.logo-img {
  height: 3rem;
  width: auto;
  display: block;
}

.logo a.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-title {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-on-dark);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 1.3px;
}

.hamburger-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}
.hamburger-menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text-on-dark);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}
.mobile-menu-separator,
.mobile-menu-categories {
  display: none;
}
header nav ul.main-menu-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
header nav ul.main-menu-links li {
    display: inline;
    margin-left: 1.25rem;
}
header nav ul.main-menu-links li:first-child {
    margin-left: 0;
}
header nav ul.main-menu-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-on-dark);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-smooth);
    padding: 0.2rem 0;
}
header nav ul.main-menu-links li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--vista-blue);
    transition: width 0.3s ease-out, left 0.3s ease-out;
}
header nav ul.main-menu-links li a:hover {
    color: var(--vista-blue);
}
header nav ul.main-menu-links li a:hover::after {
    width: 100%;
    left: 0;
}
header nav ul.main-menu-links li a.active::after {
    width: 100%;
    left: 0;
    background-color: var(--mexican-pink);
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 992px) {
  .container { width: 95%; padding: 0 15px; }
  .homepage-layout { flex-direction: column; }
  .main-column, .sidebar-column { flex: 1 1 100%; width: 100%; min-width: 0; }
  .sidebar-column { margin-top: 1.5rem; border-top: 1px solid var(--color-border-medium); padding-top: 1.5625rem; }

  header .container {
    flex-direction: row; 
    align-items: center;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  header .logo { margin-bottom: 0; }
  .header-right-group {
    display: flex; flex-direction: row; 
    align-items: center;
    gap: 0.6rem;
    width: auto; margin-top: 0;
  }
  header nav { margin-right: 0; width: auto; }
  header nav ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.6rem; padding-left: 0; }
  header nav ul li { margin-left: 0; }

  .subscribe-form { flex-wrap: wrap; }
  .subscribe-form input[type='email']{ min-width: 180px; }
  .subscribe-form button.button { flex-grow: 1; border-left: none; margin-top: 0.5rem; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  main.container {
    padding-top: 70px;
  }
 
  header .container {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  header .logo {
    padding-left: 0;
    flex-grow: 0; 
  }
  .header-right-group {
    padding-right: 0;
    margin-left: auto; 
    flex-direction: row;
    gap: 0.5rem;
  }

  header { padding: 0.3rem 0; }
  header .logo a { font-size: 1.5rem; }
  header .subscribe-button .button {
    font-size: 0.8rem; padding: 0.4rem 0.8rem; white-space: nowrap;
  }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }
  .article-card h3 { font-size: 1.0625rem; }
  .sidebar-destacados-box h3 { font-size: 1.05rem; letter-spacing: 0.04em; }
  .sidebar-destacados-box h3::after { width: 100%; left: 0; }
  .article-card-image, .article-image-placeholder { height: 140px; }
  .destacado-item-image, .destacado-image-placeholder { height: 100px; }
  .footer-subscribe-section h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .container { width: auto; padding: 0 10px; }
  main.container {
    padding-top: 60px;
  }
  .category-bar {
    display: block; visibility: visible; opacity: 1;
    margin-top: 0.75rem; margin-bottom: 1rem;
  }
  .category-bar .container-categorias { gap: 1rem; }
  .category-button { font-size: 0.75rem; padding: 0.3rem 0.8rem; min-width: 80px; }
  header { padding: 0.1rem 0; }

  header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header .logo {
    padding-left: 0;
  }
  .header-right-group {
    padding-right: 0;
    gap: 0.2rem; 
  }

  header .logo {
    flex-grow: 0;
  }
  header .logo a { font-size: 1.3rem; }
  .header-right-group {
     display: flex; align-items: center;
     flex-shrink: 0; margin-left: auto;
  }
  header .subscribe-button .button {
    padding: 0.35rem 0.7rem; font-size: 0.75rem; white-space: nowrap;
  }
  .button { font-size: 0.8125rem; padding: 0.4rem 0.8rem; }
  .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .article-card { padding: 1rem; }
  .article-card-image, .article-image-placeholder { height: 120px; }
  .blog-post-full { padding: 1rem; }
  .blog-post-full h1 { font-size: 1.4rem; }
  .blog-post-full .meta { font-size: 0.8rem; }
  .content-body h2 { font-size: 1.4em; }
  .content-body h3 { font-size: 1.15em; }
  .content-body h4 { font-size: 1em; }
  .sidebar-destacados-box h3 { font-size: 0.95rem; letter-spacing: 0.02em; }
  .sidebar-destacados-box h3::after { width: 100%; left: 0; }
  .subscribe-form { flex-direction: column; background-color: transparent; border: none; overflow: visible; gap: 0.5rem; }
  .subscribe-form:focus-within { box-shadow: none; }
  .subscribe-form input[type='email'] { width: 100%; background-color: var(--color-bg-input-dark); border: 1px solid var(--vista-blue); border-radius: var(--border-radius-medium); padding: 0.75rem 0.9rem; }
  .subscribe-form input[type='email']:focus { border-color: var(--color-border-input-dark-focus); box-shadow: 0 0 0 3px rgba(220,0,115,.25), 0 0 0 5px rgba(220,0,115,.15); }
  .subscribe-form button.button { width: 100%; border-radius: var(--border-radius-medium); border-left: none; margin-top: 0; }
  .subscribe-form button.button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--vista-blue), 0 0 0 5px rgba(130,161,210,.5); }
}

@media (max-width: 480px) {
  .logo-img {
    height: 2.2rem;
  }
  .site-title {
    display: inline;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 500;
  }
  .logo a.logo-link {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  
  .hamburger-menu-button {
    display: block;
    order: 1; 
  }
  header nav { 
    display: none; 
  }
  
  .header-right-group nav#main-nav.is-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 19, 56, 0.98);
    backdrop-filter: blur(5px);
    z-index: 1005;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 5vh; 
    overflow-y: auto; 
  }
  
  .header-right-group nav#main-nav.is-open ul {
    flex-direction: column;
    text-align: center;
    padding: 0;
    width: 100%;
  }
  
  .header-right-group nav#main-nav.is-open ul.main-menu-links li {
    margin: 1.2rem 0;
  }
  
  .header-right-group nav#main-nav.is-open ul.main-menu-links li a {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 600;
    color: var(--alabaster);
    text-decoration: none;
  }
  
  .header-right-group nav#main-nav.is-open .mobile-menu-separator,
  .header-right-group nav#main-nav.is-open .mobile-menu-categories {
    display: block;
  }
  
  .header-right-group nav#main-nav.is-open .mobile-menu-separator {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mexican-pink);
    width: 60%;
    max-width: 200px;
  }
  
  .header-right-group nav#main-nav.is-open .mobile-menu-separator h4 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--vista-blue);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
  }

  .header-right-group nav#main-nav.is-open .mobile-menu-categories {
    margin-top: 1rem;
  }
  
  .header-right-group nav#main-nav.is-open .mobile-menu-categories li {
    display: block; 
    margin: 0.8rem 0;
  }
  
  .header-right-group nav#main-nav.is-open .mobile-menu-categories li a {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--alabaster);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
  }
  
  .header-right-group nav#main-nav.is-open .mobile-menu-categories li a:hover {
    opacity: 1;
    color: var(--vista-blue);
  }
}