/*
Theme Name: LLA Global
Description: Plantilla personalizada de LLA Global estilo portal de noticias.
Version: 2.0
Author: LLA Global
*/

    @import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,500;6..72,650;6..72,700&display=swap');

    :root {
      color-scheme: light;
      --bg: #ffffff;
      --surface: #ffffff;
      --surface-2: #f5f5f5;
      --ink: #141414;
      --muted: #5f6368;
      --line: #e3e3e3;
      --red: #cf142b;
      --red-dark: #a50f22;
      --overlay: rgba(8, 10, 12, .45);
      --shadow: 0 18px 48px rgba(10, 13, 16, .16);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    button, input { font: inherit; }
    button { color: inherit; }
    a { color: inherit; }
    img { max-width: 100%; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      height: 64px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 0 clamp(14px, 4vw, 56px);
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, .97);
      backdrop-filter: blur(10px);
    }
    .topic-button {
      justify-self: start;
      height: 38px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: transparent;
      font-size: .92rem;
      font-weight: 600;
      cursor: pointer;
    }
    .brand-mark {
      width: 44px;
      height: 44px;
      display: block;
      border-radius: 50%;
    }
    .header-actions {
      justify-self: end;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .icon-button {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 0;
      background: transparent;
      cursor: pointer;
    }
    .icon-button.menu {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      color: #fff;
      background: var(--red);
    }
    .icon-button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

    .search-band {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      border-bottom: 0 solid var(--line);
      background: var(--surface);
      transition: max-height .25s ease, opacity .2s ease, border-width .25s ease;
    }
    .search-band.open { max-height: 96px; opacity: 1; border-bottom-width: 1px; }
    .search-box {
      width: min(920px, calc(100% - 36px));
      margin: 18px auto;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 2px solid var(--ink);
    }
    .search-box input {
      width: 100%;
      border: 0;
      outline: 0;
      padding: 12px 0;
      color: var(--ink);
      background: transparent;
      font-size: 1.05rem;
    }

    main {
      width: min(1160px, calc(100% - 36px));
      margin: 0 auto;
      padding: 26px 0 56px;
    }

    .lead { margin-bottom: 8px; }
    .lead a { text-decoration: none; }
    .lead img {
      width: 100%;
      aspect-ratio: 16 / 9;
      display: block;
      object-fit: cover;
      border-radius: 3px;
      background: var(--surface-2);
    }
    .category {
      margin: 12px 0 5px;
      color: var(--red);
      font-size: .85rem;
      font-weight: 600;
    }
    h1, h2 { font-family: "Newsreader", Georgia, serif; text-wrap: balance; }
    .lead h1 {
      margin: 0 0 8px;
      font-size: clamp(1.7rem, 3.6vw, 2.6rem);
      line-height: 1.14;
      letter-spacing: -.015em;
      font-weight: 700;
    }
    .dek {
      margin: 0 0 9px;
      font-size: 1rem;
      line-height: 1.5;
      color: var(--ink);
    }
    .meta-line {
      margin: 0;
      color: var(--muted);
      font-size: .8rem;
    }
    .ultimas-head {
      margin: 30px 0 20px;
      padding-bottom: 7px;
      border-bottom: 1px solid var(--line);
      font-family: "Newsreader", Georgia, serif;
      font-size: 1.35rem;
      font-weight: 700;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px 28px;
    }
    .card { min-width: 0; }
    .card a { text-decoration: none; }
    .card img {
      width: 100%;
      aspect-ratio: 16 / 9;
      display: block;
      object-fit: cover;
      border-radius: 3px;
      background: var(--surface-2);
    }
    .card h2 {
      margin: 0 0 7px;
      font-size: 1.3rem;
      line-height: 1.18;
      letter-spacing: -.015em;
      font-weight: 700;
    }
    .archive-title {
      margin: 4px 0 22px;
      padding-bottom: 7px;
      border-bottom: 1px solid var(--line);
      font-family: "Newsreader", Georgia, serif;
      font-size: 1.6rem;
      font-weight: 700;
    }
    .empty {
      padding: 48px 12px;
      text-align: center;
      color: var(--muted);
    }

    .scrim {
      position: fixed;
      inset: 0;
      z-index: 50;
      opacity: 0;
      pointer-events: none;
      background: var(--overlay);
      transition: opacity .22s ease;
    }
    .scrim.open { opacity: 1; pointer-events: auto; }
    .drawer {
      position: fixed;
      z-index: 60;
      top: 0;
      left: 0;
      width: min(430px, 92vw);
      height: 100dvh;
      overflow-y: auto;
      background: var(--surface);
      box-shadow: var(--shadow);
      transform: translateX(-103%);
      transition: transform .28s ease;
    }
    .drawer.open { transform: translateX(0); }
    .drawer-head {
      min-height: 64px;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--line);
    }
    .drawer-head strong { font-family: "Newsreader", Georgia, serif; font-size: 1.4rem; }
    .close {
      border: 0;
      background: transparent;
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
    }
    .topic-list { margin: 0; padding: 0; list-style: none; }
    .topic-list a {
      display: block;
      padding: 15px 22px;
      border-bottom: 1px solid var(--line);
      text-decoration: none;
      font-size: 1.05rem;
      font-weight: 600;
    }
    .topic-list a:hover, .topic-list a:focus-visible { background: var(--surface-2); }
    .drawer-sub { padding: 20px 22px 26px; }
    .sub-toggle {
      width: 100%;
      min-height: 50px;
      border: 0;
      border-radius: 5px;
      color: #fff;
      background: var(--red);
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
    }
    .sub-form { display: none; margin-top: 14px; }
    .sub-form.open { display: block; }
    .sub-form p { margin: 0 0 9px; font-size: .92rem; }
    .sub-form input {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 5px;
      font-size: .98rem;
      background: #fff;
      color: var(--ink);
    }
    .sub-form button {
      width: 100%;
      margin-top: 9px;
      padding: 12px;
      border: 0;
      border-radius: 5px;
      background: var(--red);
      color: #fff;
      font-size: .98rem;
      font-weight: 600;
      cursor: pointer;
    }
    .sub-ok { color: var(--red); font-weight: 600; font-size: .92rem; margin-top: 10px; }

    .site-footer {
      border-top: 1px solid var(--line);
      padding: 34px 18px 30px;
      text-align: center;
    }
    .footer-logo {
      width: 148px;
      height: 148px;
      border-radius: 50%;
      display: block;
      margin: 0 auto 12px;
    }
    .tagline {
      font-family: "Newsreader", Georgia, serif;
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.5;
      max-width: 520px;
      margin: 0 auto;
    }
    .footer-links {
      margin-top: 20px;
      font-size: .88rem;
      color: var(--muted);
      line-height: 2;
    }
    .footer-links a { color: var(--muted); }
    .footer-copy { font-size: .82rem; color: var(--muted); margin-top: 10px; }

    .lla-single .wrap { max-width: 760px; margin: 0 auto; }
    .lla-single .category { margin-top: 4px; font-size: .92rem; }
    .lla-single h1 {
      font-size: clamp(1.8rem, 4.6vw, 2.7rem);
      line-height: 1.14;
      margin: 0 0 12px;
      font-weight: 700;
      letter-spacing: -.015em;
    }
    .lla-single .dek { font-size: 1.06rem; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
    .lla-single .byline { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
    .lla-single .byline img { width: 36px; height: 36px; border-radius: 50%; }
    .lla-single .byline .nm { font-size: .95rem; }
    .lla-single .byline .dt { color: var(--muted); font-size: .84rem; }
    .lla-single .hero { width: 100%; display: block; border-radius: 3px; margin: 0; }
    .lla-single .caption { font-size: .82rem; color: var(--muted); margin: 7px 0 18px; }
    .lla-single .body p { font-size: 1.08rem; line-height: 1.65; margin: 0 0 20px; }
    .lla-single .body img { height: auto; border-radius: 3px; }
    .lla-single .share { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
    .lla-single .share-title { font-size: .95rem; font-weight: 600; margin-bottom: 11px; }
    .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .share-row a, .share-row button {
      text-decoration: none;
      padding: 9px 15px;
      border-radius: 20px;
      font-size: .9rem;
      border: 0;
      cursor: pointer;
      color: #fff;
      font-weight: 500;
    }
    .share-x { background: #000; }
    .share-fb { background: #1877f2; }
    .share-wa { background: #25d366; }
    .share-tg { background: #229ed9; }
    .share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
    .share-mail { background: #666; }
    .share-copy { background: var(--surface-2); color: var(--ink) !important; border: 1px solid var(--line) !important; }
    .copied-msg { display: none; font-size: .86rem; color: var(--red); margin-top: 9px; font-weight: 600; }
    .brand-block { text-align: center; padding: 30px 10px 4px; }
    .brand-block img { width: 148px; height: 148px; border-radius: 50%; }
    .more-head {
      font-family: "Newsreader", Georgia, serif;
      font-size: 1.25rem;
      font-weight: 700;
      border-bottom: 1px solid var(--line);
      padding-bottom: 7px;
      margin: 26px 0 16px;
    }

    @media (max-width: 860px) {
      .topbar { height: 58px; padding: 0 12px; }
      .brand-mark { width: 40px; height: 40px; }
      main { width: calc(100% - 32px); padding-top: 18px; }
      .grid { grid-template-columns: 1fr; gap: 26px; }
      .lead h1 { font-size: 1.65rem; }
      .card h2 { font-size: 1.28rem; }
      .footer-logo, .brand-block img { width: 132px; height: 132px; }
    }
    @media (min-width: 861px) and (max-width: 1100px) {
      .grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (prefers-reduced-motion: reduce) {
      * { scroll-behavior: auto !important; transition: none !important; }
    }