:root {
  --brand: #0C3D63;
  --accent: #FF6F61;
  --creative: #FFB703;
  --muted: #6b7280;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #1f2933;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-svg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(90deg, #0C3D63 0%, #2A9D8F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-cats a {
  color: var(--brand);
  margin-right: 1rem;
  font-weight: 600;
}
.indices-bar {
  background: #2a9d8f;
  color: #fff;
  padding: .35rem 1rem;
  font-size: .80rem
    /* Cambiado a .08rem */
}
.indices-bar .index {
  margin-right: 1.25rem
}
.hero-card {
  border-radius: 8px;
  overflow: hidden
}
.hero-card img {
  width: 100%;
  height: auto;
  display: block
}
.badge-cat {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: .25rem .6rem;
  color: #fff;
  border-radius: 4px;
  font-weight: 700
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  margin: 0
}
.ad {
  background: #f6f6f6;
  border: 1px dashed #ccc;
  padding: 1rem;
  text-align: center;
  color: #666
}
.card-sm {
  position: relative;
  overflow: hidden;
  border-radius: 8px
}
.card-sm img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block
}
.card-sm .overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  color: #fff
}
.list-box {
  border: 1px solid #eee;
  padding: 0.75rem;
  border-radius: 6px;
  background: #fff
}
footer.site-footer {
  background: #0f1724;
  color: #cbd5e1;
  padding: 2.25rem 0
}
footer.site-footer a {
  color: #fff
}
.footer-links li {
  list-style: none;
  margin-bottom: .35rem
}
@media (max-width:768px) {
  .hero-title {
    font-size: 1.4rem
  }
  .card-sm img {
    height: 140px
  }
  .brand-svg {
    width: 54px;
    height: 54px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .site-header .header-top {
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
  }
  .nav-cats {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: .25rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-cats a {
    display: inline-block;
    padding-right: .6rem;
  }
  nav.border-top>.container {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  nav.border-top>.container .text-muted.small {
    margin-top: .25rem;
  }
  .indices-bar .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 0;
  }
  .indices-bar .index {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 1rem;
  }
}
.mobile-menu {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: .6rem;
  box-shadow: 0 6px 18px rgba(15, 23, 36, 0.06);
  position: absolute;
  top: calc(100% + 8px);
  right: 1rem;
  width: calc(100% - 2rem);
  z-index: 1400;
  /* arriba del header (1300) */
  transform-origin: top right;
  transform: translateY(-6px) scaleY(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .22s ease;
}
.mobile-menu.open {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  padding: .25rem
}
@media (max-width:992px) {
  .nav-cats {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-cats a {
    display: inline-block;
    margin-right: .8rem;
  }
}
.nav-cat-item {
  scroll-snap-align: start;
  padding: .35rem .6rem;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.mobile-search {
  position: absolute;
  top: calc(100% + 8px);
  right: 1rem;
  left: 1rem;
  z-index: 1250;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 36, .08);
  transform-origin: top center;
  transform: translateY(-6px) scaleY(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .22s ease;
}
.mobile-search.open {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  pointer-events: auto
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1390;
  /* sobre el header, por debajo del menú */
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.mobile-overlay.show {
  opacity: 1;
  pointer-events: auto
}
#searchResultsPanel {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 2rem));
  max-height: calc(80vh);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, .12);
  z-index: 1410;
  /* Debe estar por encima del overlay (1390) y del menú (1400) */
  padding: .75rem;
  display: none;
}
/* Ajustes específicos para móviles: menú fijo y panel en zona visible */
@media (max-width:768px) {
  .mobile-menu {
    position: fixed !important;
    top: 56px !important;
    /* justo debajo del header */
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: calc(100% - 1rem) !important;
    max-height: calc(70vh);
    overflow: auto;
  }
  #searchResultsPanel {
    top: 10vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 2rem) !important;
  }
}
#searchResultsPanel.open {
  display: block
}
#searchResultsPanel .sr-close {
  position: absolute;
  right: .5rem;
  top: .5rem;
  border: none;
  background: transparent
}
.social-icon-facebook svg path {
  fill: #1877F2
}
.social-icon-instagram svg path {
  fill: #E1306C
}
.social-icon-x svg path {
  fill: #1DA1F2
}
.social-icon-tiktok svg path {
  fill: #000
}
 :root {
      --brand: #0C3D63;
      --accent: #FF6F61;
      --creative: #FFB703;
      --muted: #6b7280;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
      color: #1f2933;
    }

    .site-header {
      background: #fff;
      border-bottom: 1px solid #e6e6e6;
    }

    .brand-wrap {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .brand-svg {
      width: 72px;
      height: 72px;
      flex-shrink: 0;
      display: block;
    }

    .brand-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1;
      display: inline-block;
      background: linear-gradient(90deg, #0C3D63 0%, #2A9D8F 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .nav-cats a {
      color: var(--brand);
      margin-right: 1rem;
      font-weight: 600;
    }

    .indices-bar {
      background: #2a9d8f;
      color: #fff;
      padding: .35rem 1rem;
      font-size: .80rem;
    }

    .indices-bar .index {
      margin-right: 1.25rem;
    }

    .ad {
      background: #f6f6f6;
      border: 1px dashed #ccc;
      padding: 1rem;
      text-align: center;
      color: #666;
    }

    .card-sm {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
    }

    .card-sm img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }

    .card-sm .overlay {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      padding: 1rem;
      color: #fff;
    }

    .list-box {
      border: 1px solid #eee;
      padding: 0.75rem;
      border-radius: 6px;
      background: #fff;
    }

    footer.site-footer {
      background: #0f1724;
      color: #cbd5e1;
      padding: 2.25rem 0;
    }

    footer.site-footer a {
      color: #fff;
    }

    .footer-links li {
      list-style: none;
      margin-bottom: .35rem;
    }

    @media (max-width:768px) {
      .card-sm img {
        height: 140px;
      }

      .brand-svg {
        width: 54px;
        height: 54px;
      }

      .brand-name {
        font-size: 1rem;
      }

      .site-header .header-top {
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
      }

      .nav-cats {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: .25rem;
        flex: 1 1 auto;
        min-width: 0;
      }

      .nav-cats a {
        display: inline-block;
        padding-right: .6rem;
      }

      nav.border-top>.container {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
      }

      nav.border-top>.container .text-muted.small {
        margin-top: .25rem;
      }

      .indices-bar .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0;
      }

      .indices-bar .index {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-right: 1rem;
      }
    }

    .mobile-menu {
      background: #fff;
      border: 1px solid #e6e6e6;
      border-radius: 8px;
      padding: .6rem;
      box-shadow: 0 6px 18px rgba(15, 23, 36, 0.06);
      position: absolute;
      top: calc(100% + 8px);
      right: 1rem;
      width: calc(100% - 2rem);
      z-index: 1200;
      transform-origin: top right;
      transform: translateY(-6px) scaleY(.98);
      opacity: 0;
      pointer-events: none;
      transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .22s ease;
    }

    .mobile-menu.open {
      transform: translateY(0) scaleY(1);
      opacity: 1;
      pointer-events: auto;
    }

    .mobile-menu-inner {
      padding: .25rem;
    }

    @media (max-width:992px) {
      .nav-cats {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
      }

      .nav-cats a {
        display: inline-block;
        margin-right: .8rem;
      }
    }

    .nav-cat-item {
      scroll-snap-align: start;
      padding: .35rem .6rem;
      border-radius: 6px;
      background: transparent;
      color: var(--brand);
      font-weight: 600;
      white-space: nowrap;
      flex: 0 0 auto;
    }

    .social-icon-facebook svg path {
      fill: #1877F2;
    }

    .social-icon-instagram svg path {
      fill: #E1306C;
    }

    .social-icon-x svg path {
      fill: #1DA1F2;
    }

    .social-icon-tiktok svg path {
      fill: #000;
    }

    .premium-notice {
      background: #fff8e1;
      border: 1px solid #ffd54f;
      padding: 1.5rem;
      border-radius: 8px;
      margin: 2rem 0;
    }

    .share-buttons {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .share-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      text-decoration: none;
      color: #475569;
      transition: all 0.2s;
    }

    .share-btn:hover {
      transform: scale(1.1);
      background: #e2e8f0;
    }

    .share-btn.whatsapp:hover {
      background: #25D366;
      color: white;
    }

    .share-btn.instagram:hover {
      background: #E4405F;
      color: white;
    }

    .share-btn.tiktok:hover {
      background: #000;
      color: white;
    }

    .share-btn.x:hover {
      background: #1DA1F2;
      color: white;
    }

    .share-btn.facebook:hover {
      background: #1877F2;
      color: white;
    }

    .author-info {
      display: flex;
      align-items: center;
    }

    .author-image {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 10px;
    }