/* =========================================================================
   1. VARIABLES & FONTS
   ========================================================================= */

/* LOCAL TYPOGRAPHY */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/OpenSans-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/OpenSans-ExtraBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/RobotoCondensed-4.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/RobotoCondensed-5.ttf') format('truetype');
}

:root {
  --bg-white: #FFFFFF;
  --bg-red: #CF0511;
  --bg-red-dark: #7D030A;
  --bg-black: #000000;
  --bg-subfooter: #111322;
  --bg-body: #FFFFFF;

  --text-main: #121926;
  --text-inverse: #FFFFFF;
  --text-nav: #111322;
  --text-active: #E30613;

  --font-base: "Open Sans", sans-serif;
  --font-nav: "Roboto Condensed", sans-serif;
  --font-primary: "Open Sans", sans-serif;

  --container-px: 32px;
  --grid-gap: 64px;
}

.text-serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  color: var(--bg-red);
  font-weight: 700;
  line-height: 1.4;
}

.text-sans {
  font-family: var(--font-base);
}

/* Accessibility & SEO utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   2. BASE
   ========================================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  /* UX Critical */
}

/* =========================================================================
   3. LAYOUT
   ========================================================================= */

.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--bg-white);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  overflow-x: clip;
  overflow-y: visible;
  /* Critical for position: sticky */
}

.site-content {
  display: block;
  width: 100%;
  overflow: visible !important;
  position: relative;
  /* Parity with mural-wrapper */
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.mural-wrapper {
  background-color: var(--bg-black);
  background-image: url('./images/Base_BG.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  position: relative;
  width: 100%;
}

.hero {
  padding: 200px 80px;
}

.hero-left {
  max-width: 800px;
}

.hero-date,
.hero-text,
.hero-subtitle {
  font-size: 24px;
  color: var(--text-inverse);
  margin-top: 12px;
  margin-bottom: 0;
}

.hero-logo-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 0 24px 0;
}

.hero-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-inverse);
  max-width: 696px;
  margin-bottom: 40px;
  line-height: 24px;
}

/* =========================================================================
   4. COMPONENTS
   ========================================================================= */

/* --- APP-HEADER --- */
app-header {
  display: block;
  width: 100%;
  z-index: 9999;
  /* Absolute priority */
  position: -webkit-sticky;
  position: sticky !important;
  top: 0 !important;
  background-color: var(--bg-white);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.navbar {
  background-color: var(--bg-white);
  border-top: 12px solid var(--bg-red);
  height: 115px;
  padding: 0 70px 0 80px;
  transition: height 0.3s ease, border-top-width 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 110;
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-img {
  width: 31px;
  height: 31px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-nav);
  font-family: var(--font-nav);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 8px;
  transition: color 0.15s ease-in-out;
}

.nav-links .dot {
  color: var(--text-main);
  font-size: 24px;
  line-height: 1;
}

/* --- DROPDOWN & DOWNLOAD --- */
download-dropdown {
  display: inline-block;
}

.download-wrapper {
  position: relative;
  display: inline-block;
}

/* --- BUTTON SYSTEM (Consolidated Base) --- */
.btn-download,
.btn-ficha-outline,
.btn-ficha-red,
.btn-text-red,
.hero-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-base);
  border-radius: 0;
  border: none;
  /* Removed default 3D effects/shadows */
  box-shadow: none;
}

/* Modifiers */
.btn-download {
  background: var(--bg-white);
  color: var(--bg-black);
  font-size: 16px;
  padding: 12px 24px;
  border: 1px solid #D5D7DA;
}

.btn-text-red {
  background: none;
  border: none;
  color: var(--bg-red);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}

.btn-text-red:hover {
  opacity: 0.8;
}

.btn-download .chevron-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: #FAFAFA;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #D5D7DA;
  /* Consistency */
  padding: 8px 0;
  margin-top: 4px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #252B37;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.item-icon {
  width: 20px;
  height: 20px;
}

/* --- PUB-GRID & CARD --- */
.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 80px;
  column-gap: 32px;
  padding: 0 32px 140px 32px;
}

pub-card {
  display: block;
  height: 100%;
}

.pub-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  height: 100%;
  flex: 1 1 auto;
}

.pub-card:hover {
  opacity: 0.9;
}

.pub-cover-wrapper {
  position: relative;
  width: 100%;
}

.pub-cover {
  width: 100%;
  height: auto;
  background-color: transparent;
  display: block;
  border-radius: 0;
  border: 1px solid #D5D7DA;
}

.pub-hover-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  opacity: 1;
  transition: opacity 0.15s ease-in-out;
  pointer-events: none;
}

.pub-info {
  margin-top: 24px;
  padding-left: 16px;
  position: relative;
  flex-grow: 1;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.pub-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid #EC5861;
}

.pub-issue {
  font-size: 48px;
  font-weight: 800;
  color: var(--bg-black);
  line-height: 1.1;
  margin-bottom: 0px;
}

.mural-wrapper .pub-issue {
  color: var(--text-inverse);
}

.pub-meta {
  display: flex;
  flex-direction: column;
  color: var(--bg-black);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  gap: 0;
}

.mural-wrapper .pub-meta {
  color: var(--text-inverse);
}

.pub-meta span {
  font-size: 14px;
}

/* --- QUOTE SECTION --- */
.quote-section {
  padding: 120px 80px 160px 80px;
  background-color: var(--bg-white);
}

blockquote {
  max-width: 900px;
  padding-left: 24px;
  border-left: 4px solid var(--bg-red);
}

blockquote p {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--text-main);
}

.highlight {
  color: var(--bg-red);
  font-weight: 700;
}

cite {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 6px;
  border: 1px solid #D1D5DB;
  border-radius: 0;
  font-family: var(--font-base);
  font-style: normal;
  color: #374151;
}

/* --- APP-FOOTER --- */
app-footer {
  display: block;
  width: 100%;
  z-index: 100;
  position: relative;
}

.footer {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.footer-banner {
  width: 100%;
  display: block;
  line-height: 0;
  font-size: 0;
}

.footer-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-red-strip {
  background-color: var(--bg-red);
  height: 156px;
  display: flex;
  align-items: center;
  margin-top: -1px;
}

.footer-strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-bottom {
  background-color: var(--bg-subfooter);
  height: 120px;
  display: flex;
  align-items: center;
  color: var(--text-inverse);
  font-size: 14px;
}

.footer-bottom-content {
  padding: 0 80px;
}

.footer-bottom-content a {
  color: inherit;
  text-decoration: none;
}

.footer .nav-links a {
  color: var(--bg-white);
}

.footer .nav-links .dot {
  color: var(--bg-white);
}

/* --- TABLET/MOBILE MENU ELEMENTS --- */
.tablet-menu-overlay,
.tablet-menu-bg,
.tape-01,
.tape-02,
.tape-02-mobile,
.tape-03 {
  display: none;
}

/* =========================================================================
   5. UTILITIES & STATES
   ========================================================================= */

.text-left {
  text-align: left;
}

.nav-links a:not(.active):hover {
  color: var(--text-active);
}

.nav-links a.active {
  color: var(--text-active);
  cursor: default;
}

.footer .nav-links a:not(.active):hover {
  color: var(--bg-subfooter);
  background: transparent;
}

/* NAVBAR SCROLLED STATE */
app-header.scrolled .navbar {
  height: 80px;
  border-top-width: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

app-header.scrolled .logo-img {
  height: 36px;
}

/* MENU OPEN STATES */
app-header.is-menu-open .navbar {
  box-shadow: none !important;
}

app-header.is-menu-open .tablet-menu-overlay {
  opacity: 1;
  visibility: visible;
}

app-header.is-menu-open .tablet-menu-bg {
  opacity: 1;
  visibility: visible;
}

app-header.is-menu-open .tape-01,
app-header.is-menu-open .tape-02,
app-header.is-menu-open .tape-03,
app-header.is-menu-open .tape-02-mobile {
  opacity: 1;
  visibility: visible;
}

/* DROPDOWN OPEN STATE */
.download-wrapper.is-open button,
.download-wrapper.is-open .selector-trigger,
.download-wrapper.is-open .hero-nav-selector {
  color: var(--text-active);
}

.download-wrapper.is-open button .chevron-icon,
.download-wrapper.is-open .selector-trigger .chevron,
.download-wrapper.is-open .hero-nav-chevron {
  color: var(--text-active);
  transform: rotate(180deg);
}

.download-wrapper.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================================
   6. MEDIA QUERIES
   ========================================================================= */

/* HOVER EFFECTS (Desktop) */
@media (hover: hover) {

  .download-wrapper:hover button,
  .download-wrapper.is-open button,
  .download-wrapper:hover .selector-trigger,
  .download-wrapper.is-open .selector-trigger {
    color: var(--text-active);
  }

  .download-wrapper:hover button .chevron-icon,
  .download-wrapper.is-open button .chevron-icon,
  .download-wrapper:hover .selector-trigger .chevron,
  .download-wrapper.is-open .selector-trigger .chevron {
    color: var(--text-active);
    transform: rotate(180deg);
  }

  .download-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Disable hover open for sections that should only open on click/focus */
  .section-filters .download-wrapper:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }

  .section-filters .download-wrapper.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item:hover {
    background: #F2F2F2;
    color: var(--text-active);
  }

  .pub-hover-icon {
    opacity: 0;
  }

  .pub-card:hover .pub-hover-icon {
    opacity: 1;
  }

  .footer-bottom-content a:hover {
    text-decoration: underline;
  }
}

/* TABLET & UP BREAKPOINTS (Min-Width) */
@media (min-width: 768px) {
  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 32px 100px 32px;
  }
}

@media (min-width: 1024px) {
  .pub-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 80px 140px 80px;
  }
}

/* TABLET INTERFACE (Max-Width: 1024px) */
@media(max-width: 1024px) {
  app-header.is-menu-open {
    height: 100vh;
  }

  .navbar {
    padding: 0 32px;
    border-top-width: 8px;
    background-color: var(--bg-white);
  }

  .logo-img {
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding: 180px 32px;
  }

  .quote-section {
    padding: 120px 32px;
  }

  blockquote {
    padding-left: 24px;
  }

  .pub-hover-icon {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tablet-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-white);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .tablet-menu-bg {
    display: block;
    position: fixed;
    top: 180px;
    left: 32px;
    right: 32px;
    height: calc(100dvh - 180px - 64px);
    background-image: url('./images/Navigation_Bg_Image.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    padding: 0 32px 64px 32px;
    box-sizing: border-box;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .tablet-nav-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 40px;
    gap: 8px;
    box-sizing: border-box;
    text-align: right;
  }

  .tablet-nav-illu {
    display: block;
    width: auto;
    max-width: 100%;
    margin-bottom: 8px;
  }

  .tablet-nav-content a {
    font-family: var(--font-nav);
    font-size: 34px;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
    line-height: 1.1;
    display: block;
    transition: opacity 0.2s ease;
    text-align: right;
  }

  .tablet-nav-content a.active {
    color: var(--bg-subfooter);
  }

  .tape-01 {
    display: block;
    position: fixed;
    top: 119px;
    left: 0;
    z-index: 100;
    width: auto;
    max-width: 40%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .tape-02 {
    display: block;
    position: fixed;
    top: 131px;
    right: 0;
    z-index: 100;
    width: auto;
    max-width: 40%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .tape-03 {
    display: block;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
    max-width: 80%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .footer-strip-content {
    gap: 40px;
    padding: 0 32px;
  }

  .footer-bottom {
    height: auto;
    padding: 40px 0;
  }

  .footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 0 32px;
    text-align: left;
  }

  .footer-sep {
    display: none;
  }
}

/* MOBILE INTERFACE (Max-Width: 768px) */
@media(max-width: 768px) {
  .navbar {
    padding: 20px 32px;
    height: auto;
  }

  .hero {
    padding: 180px 32px;
  }

  .quote-section {
    padding: 120px 32px;
  }

  blockquote {
    padding-left: 16px;
  }

  blockquote p {
    font-size: 20px;
  }

  /* Mobile Navigation Adjustments */
  .tablet-menu-bg {
    left: 24px;
    right: 24px;
    top: 100px;
    height: calc(100dvh - 100px - 64px);
  }

  app-header.scrolled .tablet-menu-bg {
    top: 80px;
  }

  .tablet-nav-content {
    padding: 0 24px;
  }

  .tablet-nav-content a {
    font-size: 24px;
  }

  .tablet-nav-illu {
    width: 70px;
    height: auto;
    margin-bottom: 16px;
  }

  .tape-01 {
    top: 80px;
  }

  .tape-02 {
    display: none;
  }

  .tape-03 {
    bottom: 0;
  }

  .tape-02-mobile {
    display: block;
    position: fixed;
    top: 75px;
    /* Updated from 60px as per requirements */
    right: 0;
    z-index: 100;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .footer-red-strip {
    height: auto;
    padding: 40px 0;
  }

  .footer-strip-content {
    flex-direction: column;
    gap: 32px;
    padding: 0 32px;
    text-align: left;
    align-items: flex-start;
  }

  .footer-bottom .text-left {
    padding: 0 32px;
    text-align: left;
  }

  .articulos-header {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 24px;
    width: 100%;
  }

  .articulos-header-left,
  .articulos-header-right {
    width: 100%;
    text-align: left !important;
  }

  .author-tags-row {
    justify-content: flex-start !important;
  }
}

/* PLACEHOLDERS PARA FICHA DE NÚMERO */
.placeholder-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-nav);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
}

.hero-ficha {
  position: relative;
  height: 470px;
  background-image: url('./images/Base_BG_FIcha.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--text-inverse);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 151px 80px;
}

.hero-brand {
  display: block;
  /* Matching simple stack from home hero */
}

.hero-ficha .hero-logo-img {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 0 0 0;
  /* Zero gap to text below, matching home hero metric */
}

.hero-ficha .hero-subtitle,
.hero-ficha .hero-date {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 400;
  color: #FFFFFF;
  margin-top: 12px;
  line-height: normal;
  /* Matching home hero behavior */
  letter-spacing: -0.01em;
}

.hero-nav {
  position: absolute;
  bottom: 28px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Space between independent buttons/groups */
  z-index: 50;
  pointer-events: auto;
}

/* Independent blocks and button groups - Secondary Style */
.hero-nav-item,
.hero-nav-group {
  display: flex;
  align-items: stretch;
  background: var(--bg-white) !important;
  border: 1px solid #D5D7DA;
  /* Visible in the reference image */
  height: 40px;
  /* Reduced from 48px to 40px */
  box-shadow: none;
  border-radius: 0 !important;
  overflow: hidden;
}

.hero-nav-btn {
  display: flex;
  /* Ensure it behaves as a flex container */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--bg-black);
  font-size: 14px;
}

/* Internal divider for grouped buttons - Only if specifically asked, but keeping for clarity between grouped texts */
.hero-nav-group .hero-nav-btn:not(:last-child) {
  border-right: 1px solid #D5D7DA;
}

.hero-nav-btn:hover {
  background-color: transparent;
}

.hero-nav-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 14px;
  /* Reduced from 16px */
  font-weight: 600;
  cursor: pointer;
  color: var(--bg-black);
  background: var(--bg-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State: Match "Descargar Refractor" (Black to Red text) */
.hero-nav .hero-nav-item:hover,
.hero-nav .hero-nav-selector:hover,
.hero-nav .hero-nav-btn:hover {
  color: var(--text-active) !important;
}

/* Match Icon color to Red on hover */
.hero-nav-btn:hover .hero-nav-icon,
.hero-nav-selector:hover .hero-nav-chevron,
.issue-selector-wrapper.is-open .hero-nav-chevron {
  /* Red filter for #E30613 approx */
  filter: invert(12%) sepia(95%) saturate(7400%) hue-rotate(352deg) brightness(85%) contrast(116%);
}

.issue-selector-wrapper.is-open .hero-nav-chevron {
  transform: rotate(180deg);
}

issue-selector {
  display: block;
}

.hero-nav-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

/* Issue Selector Specific Dropdown Styles */
.issue-dropdown {
  width: 100% !important;
  min-width: unset !important;
  right: 0;
  left: 0;
}

.issue-item {
  justify-content: center;
  font-weight: 600;
  color: var(--bg-black);
  padding: 4px 0 !important;
}

.issue-item:hover {
  color: var(--text-active);
  background: #F9FAFB;
}

.hero-nav-chevron {
  width: 12px;
  /* Slightly smaller */
  height: 12px;
  filter: brightness(0);
}

/* RESPONSIVE HERO */

@media (max-width: 1024px) {
  .hero-ficha {
    padding: 150px 32px 100px 32px;
    /* Increased top padding to match index.html and prevent header overlap */
    height: auto;
    /* Allow content to dictate height if needed */
    min-height: 500px;
    background-image: url('./images/Page_Background_3.jpg');
  }

  .hero-nav {
    right: 32px;
  }
}

@media (max-width: 768px) {
  .hero-ficha {
    padding: 140px 32px 80px 32px;
    height: auto;
    min-height: 450px;
    background-image: url('./images/Page_Background_3.jpg');
    /* Updated for consistency with tablet */
  }

  .hero-logo-img {
    width: 200px !important;
  }

  .hero-year {
    font-size: 20px;
  }

  .hero-nav {
    display: none;
  }
}

/* =========================================================================
   6. SECTION FICHA
   ========================================================================= */

.section-ficha {
  position: relative;
  z-index: 10;
  margin-top: -198px;
  /* Recuperamos la superposición sobre el Hero */
  background: linear-gradient(to bottom, transparent 198px, #FAFAFA 198px);
  /* El fondo gris empieza donde termina el Hero */
  border-bottom: 1px solid #F2F4F7 !important;
  padding-bottom: 72px;
  pointer-events: none;
}

.container-ficha {
  padding: 0 80px;
  pointer-events: auto;
}

.ficha-row {
  display: flex;
  align-items: flex-end;
  /* Aligns data block with the base of the image as requested */
  gap: 40px;
}

/* Cover Image (Left side) */
.ficha-col-image {
  flex: 0 0 382px;
  /* Fixed width as requested */
}

.pub-card-ficha {
  position: relative;
  width: 100%;
  background: white;
  box-shadow: none;
  /* Shadow removed as requested */
  cursor: pointer;
}

.pub-cover-ficha {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #D5D7DA;
  border-radius: 0;
}

.pub-hover-icon-ficha {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-card-ficha:hover .pub-hover-icon-ficha {
  opacity: 1;
}

/* Ficha Info (Right side) */
.ficha-col-info {
  flex: 1;
  padding-top: 0;
  /* Padding removed to allow bottom alignment via flexbox */
}

.ficha-content-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}


.ficha-subtitle {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 400;
  color: #667085;
  margin-top: 2px;
}

.ficha-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-ficha-outline,
.btn-ficha-red {
  font-size: 14px;
  padding: 10px 20px;
  white-space: nowrap;
}

.btn-ficha-outline {
  background: var(--bg-white);
  color: var(--bg-black);
  border: 1px solid #D5D7DA;
}

/* .btn-ficha-outline uses base style from common block */

.btn-ficha-outline:hover,
.download-wrapper:hover .btn-ficha-outline,
.download-wrapper.is-open .btn-ficha-outline {
  color: var(--text-active);
  background: var(--bg-white);
}

.btn-ficha-red,
.btn-ficha-outline {
  height: 48px;
  box-sizing: border-box;
}

.btn-ficha-red {
  background: var(--bg-red);
  color: var(--text-inverse);
  border: 1px solid var(--bg-red);
}

.btn-ficha-red:disabled {
  background-color: #F2F4F7 !important;
  border-color: #D0D5DD !important;
  color: #98A2B3 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  /* Disables all mouse interactions */
}

.btn-ficha-red:disabled img,
.btn-ficha-red:disabled svg {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) invert(70%) !important;
  /* Force a visible gray tone */
}

.btn-ficha-red:not(:disabled):hover,
.download-wrapper:hover .btn-ficha-red:not(:disabled),
.download-wrapper.is-open .btn-ficha-red:not(:disabled),
.btn-ficha-red:not(:disabled):active {
  background: var(--bg-red-dark);
  border-color: var(--bg-red-dark);
  color: var(--text-inverse) !important;
}

.btn-ficha-red:not(:disabled):hover .chevron-icon {
  color: var(--text-inverse) !important;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-icon-chevron {
  margin-left: 4px;
  width: 12px;
  height: 12px;
}

/* Page Previews */
.ficha-pages-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-preview-box {
  width: 68px;
  height: 88px;
  border: 1px solid #D5D7DA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #FFFFFF;
  position: relative;
  transition: all 0.2s ease;
}

/* Border stays consistent on hover as requested */

.preview-num {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;
  color: #000000;
  line-height: 1;
}

.preview-icon {
  width: 20px;
  height: 20px;
  color: #717680;
}

.page-preview-box:hover .preview-icon,
.page-preview-box:hover .preview-num,
.page-preview-box.active .preview-icon,
.page-preview-box.active .preview-num {
  color: var(--bg-red);
}

.page-preview-box.active {
  border: 2px solid var(--bg-red);
  background: #F9FAFB;
}

.ficha-bottom-meta {
  font-family: var(--font-base);
  font-size: 14px;
  color: #667085;
  margin-top: 12px;
}

/* RESPONSIVE ADAPTATIONS */
@media (max-width: 1024px) {
  .container-ficha {
    padding: 0 32px;
  }

  .section-ficha {
    margin-top: -198px;
    background: linear-gradient(to bottom, transparent 198px, #FAFAFA 198px);
  }

  .ficha-col-image {
    flex: 0 0 382px;
  }

  .ficha-col-info {
    padding-top: 20px;
  }

  .pub-hover-icon-ficha {
    opacity: 1;
  }

  .btn-ficha-outline .btn-text {
    display: none;
  }

  .container-articulos {
    padding: 0;
  }
}

@media (max-width: 600px) {
  .ficha-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .ficha-pages-preview {
    justify-content: flex-start;
  }

  .ficha-col-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 382px;
  }

  .ficha-metadata {
    margin-left: auto;
    margin-right: auto;
  }

  .ficha-actions {
    flex-direction: column;
    width: 100%;
  }

  .section-ficha {
    margin-top: -198px;
    background: linear-gradient(to bottom, transparent 198px, #FAFAFA 198px);
  }

  .container-ficha {
    padding: 0 32px;
  }
}

/* =========================================================================
   7. SECTION ARTICULOS
   ========================================================================= */

.section-articulos {
  padding: 120px 0 64px 0;
  background-color: var(--bg-white);
  border-top: 1px solid #D5D7DA;
}

@media (max-width: 1024px) {
  .section-articulos {
    padding: 90px 32px 64px 32px;
  }
}

.container-articulos {
  padding: 0 80px;
}

.section-label {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.articulos-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 32px;
}

.articulo-card {
  padding: 32px 0;
  border-top: 1px solid #EAECF0;
  transition: transform 0.2s ease;
}

.articulo-card:first-child {
  border-top: none;
  padding-top: 0;
}

.art-meta {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-active);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.art-title {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 800;
  color: var(--bg-black);
  margin-bottom: 12px;
  line-height: normal;
}

.art-excerpt {
  font-family: var(--font-base);
  font-size: 16px;
  color: #475467;
  max-width: 800px;
  line-height: 24px;
}



.container-articulos {
  padding: 0 80px;
}

.articulos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 120px;
  margin-bottom: 32px;
}

.section-articulos .articulos-header {
  margin-top: 0;
}

.articulos-title {
  font-family: var(--font-primary);
  font-size: 32px;
  /* Matched to page-firmas */
  font-weight: 800;
  color: #101828;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.articulos-meta {
  font-size: 16px;
  color: #667085;
  margin: 0;
}

.author-tag-wrapper {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.author-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.author-tag,
.page-firmas .firma-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #D0D5DD;
  font-size: 14px;
  color: #475467;
  background: #FFFFFF;
  font-family: var(--font-base);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: default;
}

/* Elementos interactivos (pills y el tag +) */
.author-tag.is-interactive,
.page-firmas .firma-pill,
.author-tag-plus {
  cursor: pointer;
}

/* Estado Hover unificado para elementos interactivos */
.author-tag.is-interactive:hover,
.page-firmas .firma-pill:hover:not(.selected),
.author-tag-plus:hover {
  background-color: #F2F4F7;
  border-color: #D0D5DD;
  color: #101828;
}

/* Estilo específico para el signo + */
.author-tag-plus {
  position: relative;
  /* background, color, border etc ya heredados de .author-tag */
}

/* Author Tooltip */
.author-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 280px;
  background: #101828;
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.author-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #101828;
}

.author-tag-plus.is-open .author-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.author-tooltip span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.author-tooltip span:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .author-tooltip {
    right: auto;
    left: 0;
  }
  
  .author-tooltip::after {
    right: auto;
    left: 12px;
  }
}

.tag-num,
.page-firmas .firma-pill span {
  color: #98A2B3;
  font-weight: 500;
}

/* ARTICULOS CONTENT STYLES */
.pub-article {
  max-width: 800px;
  margin: 0;
  padding-top: 64px;
  padding-bottom: 64px;
}

.art-title {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 800;
  color: #101828;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.art-subtitle {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #E30613;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.art-paragraph {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 24px;
  color: #101828;
  margin-bottom: 24px;
}

.art-paragraph strong {
  font-weight: 700;
}

.art-signature {
  margin-top: 48px;
  border-top: 0;
  /* No visible border in image */
}

.art-signature p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #101828;
}

.art-signature-intro {
  font-style: italic;
  color: #667085;
}

.art-signature-name {
  font-weight: 700;
  display: block;
  margin-top: 4px;
  font-size: 18px !important;
}

.art-signature-date {
  color: #475467;
  font-size: 18px !important;
  margin-top: 4px !important;
}

.art-tag-footer {
  margin-top: 32px;
  border-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.articles-separator {
  height: 0;
}

/* ACCORDION */
.accordion-wrapper {
  width: 100%;
}

.accordion-trigger {
  width: calc(100% + 160px);
  margin-left: -80px;
  padding: 20px 80px;
  background-color: #F9FAFB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-top: 1px solid #E9EAEB;
  border-bottom: 1px solid #E9EAEB;
  transition: background-color 0.2s ease;
}

@media (max-width: 1024px) {
  .accordion-trigger {
    width: auto;
    margin-left: -32px;
    margin-right: -32px;
    padding: 20px 32px;
  }
}

.accordion-trigger:hover {
  background-color: #F2F4F7;
}

.accordion-trigger-text {
  font-family: var(--font-base);
  font-size: 16px;
  color: #344054;
  font-weight: 500;
}

.accordion-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(23%) sepia(19%) saturate(601%) hue-rotate(182deg) brightness(92%) contrast(89%);
  /* Matches #344054 approx */
}

.accordion-wrapper.is-open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 40px 0;
}

.accordion-wrapper.is-open .accordion-body {
  display: block;
}

/* =========================================================================
   8. SECTION MINIFICHA
   ========================================================================= */

.section-minificha {
  padding: 40px 0;
  background-color: #F9FAFB;
  border-top: 1px solid #E9EAEB;
  border-bottom: 1px solid #E9EAEB;
}

.container-minificha {
  padding: 0 80px;
}

.minificha-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.minificha-left {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.minificha-image-box {
  position: relative;
  width: 132px;
  flex: 0 0 132px;
  cursor: pointer;
}

.minificha-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #D5D7DA;
}

.minificha-zoom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.minificha-image-box:hover .minificha-zoom {
  opacity: 1;
}

.minificha-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.minificha-title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 800;
  color: #101828;
  margin: 0;
}

.minificha-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.minificha-right .hero-nav {
  position: static;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* RESPONSIVE MINIFICHA */
@media (max-width: 1024px) {

  .container-minificha,
  .container-articulos {
    padding: 0;
  }

  .section-minificha {
    padding: 40px 32px;
  }
}

@media (max-width: 900px) {
  .minificha-row {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .minificha-right {
    width: 100%;
  }

  .minificha-right .hero-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .minificha-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .minificha-btns {
    flex-direction: column;
    width: 100%;
  }

  .minificha-btns button,
  .minificha-btns a {
    width: 100%;
  }
}

/* =========================================================================
   10. PDF VIEWER COMPONENT
   ========================================================================= */

.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: none;
}

.pdf-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pdf-canvas-container {
  flex: 1;
  overflow-y: scroll;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background-color: #1a1a1a;
  touch-action: pan-x pan-y;
}

/* Custom Scrollbar for PDF Viewer */
.pdf-canvas-container::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.pdf-canvas-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.pdf-canvas-container::-webkit-scrollbar-thumb {
  background: #444;
  border: 3px solid #1a1a1a;
  border-radius: 10px;
}

.pdf-canvas-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.pdf-pages-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  min-width: 100%;
  width: max-content;
}

.pdf-page-wrapper {
  background-color: var(--bg-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  line-height: 0;
}

.pdf-page-wrapper canvas {
  display: block;
  max-width: none;
  height: auto;
}

/* =========================================================================
   FLOATING NAV BUTTONS (LEFT & RIGHT)
   ========================================================================= */
.pdf-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--bg-white);
  padding: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.pdf-nav-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.pdf-top-close-btn {
  position: fixed;
  top: 32px;
  right: 32px;
  background: transparent;
  border: none;
  color: var(--bg-white);
  padding: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-top-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pdf-nav-left {
  left: 24px;
}

.pdf-nav-right {
  right: 24px;
}

/* =========================================================================
   FLOATING TOOLBAR
   ========================================================================= */
.pdf-floating-toolbar {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10002;
}

.pdf-zoom-info {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  min-width: 45px;
  text-align: center;
}

.pdf-page-info {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.pdf-toolbar-divider {
  width: 1px;
  height: 24px;
  background-color: #E5E7EB;
}

.pdf-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.pdf-icon-btn:hover {
  background-color: #F3F4F6;
}

.pdf-xtra-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pdf-disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.close-btn {
  color: var(--bg-black);
}

/* =========================================================================
   RESPONSIVE PDF VIEWER
   ========================================================================= */
@media (max-width: 768px) {
  .pdf-canvas-container {
    padding: 16px 8px;
  }

  .pdf-floating-toolbar {
    width: max-content;
    bottom: 24px;
    padding: 8px 16px;
    gap: 12px;
    justify-content: center;
    border-radius: 40px;
    box-sizing: border-box;
  }

  .pdf-page-info {
    font-size: 14px;
  }

  .pdf-icon-btn {
    padding: 6px;
  }

  .pdf-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .pdf-toolbar-divider {
    height: 24px;
  }

  .pdf-xtra-tools {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 44px;
    align-items: center;
    border: 1px solid #E9EAEB;
  }

  .pdf-xtra-tools.is-open {
    display: flex;
  }

  .pdf-overflow-btn {
    display: none;
  }

  .pdf-nav-btn {
    padding: 4px;
  }

  .pdf-nav-btn svg {
    width: 24px;
    height: 24px;
  }

  .pdf-nav-left {
    left: 4px;
  }

  .pdf-nav-right {
    right: 4px;
  }
}

/* ERROR HANDLING & LOADING */
.pdf-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10001;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--bg-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pdf-error-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--bg-white);
  z-index: 10000;
  max-width: 80%;
}

.pdf-error-message {
  background: rgba(227, 6, 19, 0.1);
  border: 1px solid var(--bg-red);
  padding: 24px 32px;
  border-radius: 8px;
  font-family: var(--font-base);
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* CUSTOM TOOLTIPS (Desktop only) */
@media (hover: hover) {
  .pdf-floating-toolbar [data-tooltip] {
    position: relative;
  }

  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-base);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10010;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  [data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* Top close adjustment to show below */
  .pdf-top-close-btn[data-tooltip]::after {
    bottom: auto;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-4px);
  }

  .pdf-top-close-btn[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(0);
  }

  /* Nav buttons adjustments */
  .pdf-nav-left[data-tooltip]::after {
    left: 0;
    transform: translateY(4px);
  }

  .pdf-nav-left[data-tooltip]:hover::after {
    transform: translateY(0);
  }

  .pdf-nav-right[data-tooltip]::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
  }

  .pdf-nav-right[data-tooltip]:hover::after {
    transform: translateY(0);
  }
}

/* =========================================================================
   8. PAGE FIRMAS
   ========================================================================= */

.page-firmas .hero-firmas {
  background-image: url('./images/Base_pagina_varias.jpg');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  height: 258px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  color: var(--text-inverse);
  position: relative;
}

.page-firmas .hero-logo-img {
  width: 300px;
  height: auto;
  display: block;
  margin: 0;
}

.page-firmas .hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-inverse);
  font-family: var(--font-base);
  margin-top: 12px;
  line-height: normal;
}

.page-firmas .section-filters {
  background-color: #F9FAFB;
  height: 240px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  border-bottom: 1px solid #EAECF0;
}

.page-firmas .filters-container {
  width: 100%;
}

.page-firmas .filters-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-firmas .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-firmas .filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.page-firmas .filter-label span {
  color: #D92D20;
}

.page-firmas .search-wrapper {
  position: relative;
  width: 380px;
}

.page-firmas .search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.page-firmas .search-icon-left {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  opacity: 0.5;
  pointer-events: none;
}

.page-firmas .search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 40px;
  border: 1px solid #D0D5DD;
  border-radius: 0;
  font-family: var(--font-base);
  font-size: 16px;
  background-color: white;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.page-firmas .search-input:focus {
  border-color: var(--text-active);
}

.page-firmas .custom-dropdown-container {
  position: relative;
  display: inline-block;
}

.page-firmas .selector-trigger {
  min-width: 180px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #D0D5DD;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-base);
  transition: border-color 0.2s;
}

.page-firmas .selector-trigger:hover {
  border-color: var(--text-active);
}

.page-firmas .selector-trigger .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}


.page-firmas .search-dropdown {
  width: 100%;
  margin-top: 4px;
  max-height: 530px;
  overflow-y: auto;
}

.page-firmas .dropdown-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #252B37;
  transition: background 0.2s;
}

.page-firmas .dropdown-option:hover {
  background-color: #F9FAFB;
  color: var(--text-active);
}

.page-firmas .dropdown-option.selected {
  background-color: #F2F4F7;
}

.page-firmas .dropdown-option .option-count {
  font-size: 12px;
  color: #98A2B3;
  font-weight: 400;
}



.page-firmas .featured-firmas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.page-firmas .featured-label {
  font-size: 14px;
  color: #475467;
  margin-right: 4px;
}

.page-firmas .firma-pill.selected {
  background: #101828;
  color: #FFFFFF;
  border-color: #101828;
}

/* El hover ahora está unificado en la sección de componentes comunes */

.page-firmas .section-results {
  padding: 0;
  min-height: 0;
}

.page-firmas .articulos-title {
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 4px;
}


.page-firmas .results-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.page-firmas .results-container:has(> *) {
  padding-bottom: 80px;
}

.page-firmas .section-results.has-results {
  border-bottom: 1px solid #EAECF0;
}

.page-firmas .results-empty {
  text-align: center;
  padding: 40px 80px;
  margin-top: 120px;
  color: #667085;
  display: none;
}

@media (max-width: 1024px) {
  .page-firmas .hero-firmas {
    padding: 0 32px;
    height: 258px;
    min-height: unset;
    justify-content: center;
  }

  .page-firmas .hero-logo-img {
    width: 300px;
  }

  .page-firmas .section-filters {
    height: auto;
    padding: 68px 32px;
    /* Balanced padding to match vertical rhythm */
  }

  .page-firmas .section-results {
    padding: 30px 32px 60px 32px;
  }

  .page-firmas .articulos-title {
    font-size: 32px;
  }

  .articulos-header {
    margin-top: 60px;
  }

  .page-firmas .results-empty {
    margin-top: 60px;
  }

  .page-firmas .filters-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
  }

  .page-firmas .filter-group {
    flex: 1;
  }

  .page-firmas .search-wrapper {
    width: 100%;
  }

  .page-firmas .custom-dropdown-container {
    width: 100%;
    min-width: 160px;
  }

  .page-firmas .selector-trigger {
    width: 100%;
  }

  .page-firmas .btn-ficha-red {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .page-firmas .results-container {
    padding: 0;
  }

  .pub-article {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-firmas .hero-firmas {
    padding: 0 32px;
    height: 200px;
    background-size: cover;
  }

  .page-firmas .hero-logo-img {
    width: 200px !important;
  }

  .page-firmas .section-filters {
    height: auto;
    padding: 40px 32px;
  }

  .page-firmas .filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 0px;
    /* Hidden because tags are hidden */
  }

  .page-firmas .filter-group,
  .page-firmas .search-wrapper,
  .page-firmas .custom-dropdown-container,
  .page-firmas .selector-trigger,
  .page-firmas .btn-ficha-red {
    width: 100% !important;
    flex: none;
  }

  .page-firmas .featured-firmas {
    display: none;
  }
}

/* =========================================================================
   9. PAGE VISTAS ARTICULOS
   ========================================================================= */

.vistas-page .test-viewer {
  padding: 80px 0;
  background-color: #0c0d16;
  color: #fff;
}

.vistas-page .article-card {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--bg-red);
  padding: 40px;
  margin-bottom: 60px;
}

.vistas-page .article-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
  font-family: var(--font-nav);
  text-transform: uppercase;
}

.vistas-page .article-title {
  font-size: 32px;
  font-family: var(--font-nav);
  margin-bottom: 24px;
  color: var(--bg-red);
  text-transform: uppercase;
}

.vistas-page .article-body {
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.vistas-page .article-body strong {
  color: var(--bg-red);
}

.vistas-page .article-body blockquote {
  background: rgba(207, 5, 17, 0.1);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
}

/* =========================================================================
   9. PAGE ARTEFACTOS
   ========================================================================= */

.section-intro-artefactos {
  background-color: #F9FAFB;
  padding: 60px 0;
  border-bottom: 1px solid #D5D7DA;
}

.intro-artefactos-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 80px;
}

.intro-image {
  flex-shrink: 0;
  margin-top: 26px;
}

.ladron-img {
  display: block;
  width: 127px;
  height: 200px;
}

.intro-text {
  margin-top: -12px;
}

.intro-text-p {
  font-family: var(--font-base);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-main);
  max-width: 800px;
}

@media (max-width: 1024px) {
  .intro-artefactos-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 32px;
  }

  .intro-image,
  .intro-text {
    margin-top: 0;
  }
  .intro-text-p {
    font-size: 18px;
  }
}
.section-artefactos {
    padding-top: 120px;
    border-bottom: 1px solid #D5D7DA;
}

/* Card Artefactos Styling */
.art-category {
    font-family: var(--font-base);
    font-size: 24px;
    font-weight: 800;
    color: var(--bg-black);
    margin-bottom: 8px;
    line-height: normal;
}

.art-description {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 400;
    color: #475467;
    line-height: 1.4;
    margin: 0;
}

.section-artefactos .pub-grid {
    row-gap: 160px;
}

.footer-contact.is-copied {
  color: #FFFFFF !important;
  font-weight: bold;
  transition: all 0.2s ease;
}
