* {
  box-sizing: border-box;
}

:root {
  --blue: #003f6d;
  --blue-dark: #06395d;
  --orange: #f6a21a;
  --text: #202020;
  --muted: #7f7f7f;
  --line: #d7d7d7;
  --photo: #c9c9c9;
  --ad: #2f2f2f;
  --page: #fff;
  --space-section: 40px;
  --radius-image: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page);
}

body.admin-bar .site-header {
  margin-top: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: var(--blue-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  border-bottom: 4px solid var(--orange);
}

.topbar-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px 160px 1fr auto;
  align-items: center;
  gap: 18px;
}

.menu-btn {
  width: 52px;
  height: 52px;
  border: 0;
  background: #0c3049;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  margin: 5px auto;
  display: block;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-logo {
  width: 145px;
  padding: 10px;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  color: var(--orange);
  font-size: 34px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: .9;
  font-size: 15px;
}

.brand-text strong:last-child {
  color: var(--orange);
  letter-spacing: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  font-size: 15px;
  font-weight: 700;
}

.main-menu,
.main-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li,
.main-nav .menu li {
  position: relative;
}

.main-menu .sub-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 210px;
  margin: 12px 0 0;
  padding: 8px 0;
  border-radius: 4px;
  display: none;
  list-style: none;
  background: var(--blue-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu {
  display: block;
}

.main-menu .sub-menu a {
  padding: 9px 16px;
  display: block;
  white-space: nowrap;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--orange);
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .42);
}

.socials a {
  width: 22px;
  height: 22px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--orange);
  opacity: 1;
  outline: none;
  transform: translateY(-1px);
}

.socials svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.utilitybar {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.utilitybar-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 24px;
  color: #6a6a6a;
  font-size: 13px;
}

.ticker-placeholder {
  height: 28px;
  border-radius: 6px;
  background: #e7e7e7;
}

.weather {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6d6d6d;
  font-size: 21px;
}

.weather-icon {
  font-size: 26px;
}

/* PAGE */
.page {
  padding: 24px 0 30px;
}

.ad {
  background: var(--ad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  letter-spacing: .6px;
  border-radius: 7px;
}

.banner-filled {
  background: transparent;
}

.banner-filled a,
.banner-filled .banner-image {
  width: 100%;
  height: 100%;
  display: block;
}

.banner-filled .banner-image {
  border-radius: inherit;
  object-fit: cover;
}

.ad-wide {
  width: 100%;
  aspect-ratio: 6 / 1;
  min-height: 120px;
  margin-bottom: 42px;
  font-size: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  margin-bottom: var(--space-section);
}

.hero-main {
  position: relative;
  min-height: 390px;
  background: #111;
  border-radius: var(--radius-image);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 32px rgba(6, 57, 93, .13);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .35s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-slide[hidden] {
  display: block;
  visibility: hidden;
}

.hero-link {
  height: 100%;
  display: block;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02) 35%, rgba(0, 18, 31, .86) 100%),
    linear-gradient(90deg, rgba(0, 28, 49, .28), transparent 60%);
}

.photo {
  background: linear-gradient(135deg, #c7c7c7, #b7b7b7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-image);
  overflow: hidden;
}

.photo img,
.news-card img,
.mini-news img,
.latest-item img,
.most-read-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-image);
}

.large-photo {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: cover;
  min-height: 390px;
  font-size: 24px;
  border-radius: 0;
  transition: transform .5s ease;
}

.image-placeholder {
  background: linear-gradient(135deg, #c7c7c7, #b7b7b7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-image);
}

.hero-main:hover .large-photo {
  transform: scale(1.015);
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 28px;
  max-width: min(78%, 520px);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.hero-title {
  max-width: 480px;
  display: block;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.08;
}

.hero-subtitle {
  margin-top: 7px;
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.hero-caption h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
  max-width: 480px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(3, 31, 51, .46);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: 400 27px/30px Arial, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--orange);
  color: #102c40;
  transform: scale(1.05);
  outline: none;
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.slide-dots button.active {
  width: 22px;
  border-radius: 999px;
  background: var(--orange);
}

.hero-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.mini-news {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 14px;
  align-items: stretch;
  padding-bottom: 16px;
  border-bottom: 1px solid #aaa;
}

.thumb {
  min-height: 108px;
  font-size: 16px;
}

.mini-news h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.18;
}

.mini-thumb,
.card-photo,
.latest-photo,
.mr-photo,
.shared-photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-image);
}

.mini-thumb img,
.mini-thumb .image-placeholder,
.card-photo img,
.card-photo .image-placeholder,
.latest-photo img,
.latest-photo .image-placeholder,
.mr-photo img,
.mr-photo .image-placeholder,
.shared-photo img,
.shared-photo .image-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* TITLES */
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 8px 20px;
  border-radius: 0 15px 0 0;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 3px;
  background: var(--blue);
}

/* NEWS + SIDEBAR */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  margin-bottom: var(--space-section);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
}

.news-card {
  position: relative;
  min-width: 0;
}

.tag-orange {
  background: var(--orange);
  margin-bottom: 4px;
}

.card-photo {
  aspect-ratio: 1.48 / 1;
  height: auto;
  margin-bottom: 9px;
  font-size: 23px;
}

.card-photo .image-placeholder,
.card-photo img {
  aspect-ratio: 1.48 / 1;
}

.news-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 600;
}

.sidebar-top {
  padding-top: 20px;
  display: grid;
  gap: 34px;
  align-content: start;
}

.ad-square {
  width: 100%;
  aspect-ratio: 6 / 5;
  height: auto;
  font-size: 28px;
  font-weight: 700;
}

/* LOWER */
.lower-grid {
  display: grid;
  grid-template-columns: 472px 1fr;
  gap: 28px;
  margin-bottom: var(--space-section);
}

.latest-list {
  display: grid;
  gap: 12px;
}

.latest-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #dedede;
}

.latest-photo {
  height: 104px;
  font-size: 14px;
}

.latest-item time,
.most-read-item small {
  display: block;
  font-size: 9px;
  color: #0c3049;
  margin-bottom: 2px;
}

.latest-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.08;
}

.latest-item h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.12;
}

.more-news-button {
  min-height: 44px;
  margin-top: 18px;
  padding: 11px 22px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.more-news-button:hover,
.more-news-button:focus-visible {
  background: var(--blue);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.right-lower {
  display: grid;
  gap: 28px;
  align-content: start;
}

.ad-700 {
  width: 100%;
  aspect-ratio: 700 / 415;
  height: auto;
  font-size: 26px;
}

.widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.poll-widget,
.sponsor-widget {
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  min-height: 230px;
  padding: 18px 24px;
}

.poll-widget h2 {
  color: var(--blue);
  text-align: center;
  margin: 0 0 8px;
  font-size: 26px;
  font-style: italic;
}

.poll-widget strong {
  display: block;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 9px;
}

.poll-widget label {
  display: block;
  margin: 6px 0;
  font-size: 12px;
}

.sponsor-widget {
  border-color: #2891ff;
}

.sponsor-title {
  text-align: center;
  color: #3a8ceb;
  font-weight: 800;
  margin-bottom: 12px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  font-size: 11px;
  color: #1b66c9;
}

.sponsor-grid span::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #2f88ff;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.most-read {
  margin-top: 0;
}

.most-read-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}

.most-read-item {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 9px;
  align-items: center;
}

.mr-photo {
  height: 68px;
  font-size: 13px;
}

.most-read-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

.most-read-item h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

.most-read-item time {
  margin-bottom: 3px;
  display: block;
  color: var(--blue-dark);
  font-size: 9px;
}

.most-shared {
  margin-top: 4px;
}

.shared-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shared-news-item {
  min-width: 0;
}

.shared-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 9px;
  font-size: 13px;
}

.shared-news-item time {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 700;
}

.shared-news-item h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
}

.bottom-ad {
  margin-top: 10px;
  margin-bottom: 0;
}

/* FOOTER */
.site-footer {
  background: var(--blue-dark);
  border-top: 4px solid var(--orange);
  color: #fff;
  padding: 18px 0 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-brand .brand-logo {
  width: 180px;
}

.footer-brand .brand-mark {
  font-size: 42px;
}

.footer-brand .brand-text {
  font-size: 18px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 700;
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* PÁGINAS INTERNAS */
.content-area {
  padding: 38px 0 56px;
}

.archive-header,
.search-header {
  margin-bottom: 28px;
}

.archive-title,
.search-title,
.page-title {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(26px, 4vw, 40px);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 22px;
}

.archive-card .card-photo {
  margin-bottom: 10px;
}

.archive-card h2 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.archive-card time {
  color: #6a6a6a;
  font-size: 11px;
}

.pagination {
  margin-top: 42px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 300px;
  gap: 46px;
}

.entry-header {
  margin-bottom: 26px;
}

.entry-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
}

.entry-subtitle {
  margin: 0 0 14px;
  color: #555;
  font-size: 19px;
  line-height: 1.4;
}

.entry-meta {
  color: #6a6a6a;
  font-size: 13px;
}

.entry-featured {
  margin-bottom: 26px;
}

.entry-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-image);
}

.entry-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.75;
}

.entry-content img {
  height: auto;
  border-radius: var(--radius-image);
}

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
}

.single-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
}

.not-found {
  min-height: 420px;
  text-align: center;
}

.credit {
  font-size: 10px;
}

.copyright {
  margin-top: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, .75);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: 52px 140px 1fr;
  }

  .socials {
    display: none;
  }

  .main-nav {
    gap: 20px;
    font-size: 13px;
  }

  .hero-grid,
  .content-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-top {
    grid-template-columns: 1fr 1fr;
  }

  .lower-grid {
    gap: 28px;
  }

  .ad-wide {
    margin-bottom: 30px;
  }

  .latest {
    order: 2;
  }

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

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .right-lower {
    order: 1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 20px), 1200px);
  }

  .topbar-inner {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 0 12px;
  }

  .main-nav:not(.is-open) {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-menu,
  .main-nav .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .main-menu a,
  .main-nav .menu a {
    min-height: 44px;
    padding: 12px 4px;
    display: block;
  }

  .main-menu .sub-menu {
    position: static;
    margin: 0;
    padding-left: 18px;
    display: block;
    box-shadow: none;
  }

  .utilitybar-inner {
    grid-template-columns: 1fr auto;
  }

  .ticker-placeholder {
    display: none;
  }

  .hero-grid {
    gap: 12px;
  }

  .hero-main,
  .large-photo {
    min-height: 320px;
  }

  .hero-caption {
    left: 18px;
    right: 18px;
    bottom: 76px;
    max-width: none;
  }

  .hero-controls {
    right: 14px;
    bottom: 14px;
  }

  .mini-news {
    grid-template-columns: 110px 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-top,
  .widgets-row,
  .most-read-grid,
  .shared-news-grid {
    grid-template-columns: 1fr;
  }

  .more-news-button {
    width: 100%;
  }

  .lower-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .copyright {
    text-align: center;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-sidebar {
    grid-template-columns: 1fr;
  }

  .entry-content {
    font-size: 17px;
  }
}

@media (max-width: 470px) {
  .ad-wide {
    min-height: 90px;
    font-size: 17px;
  }

  .hero-main,
  .large-photo {
    min-height: 290px;
  }

  .hero-caption h1 {
    font-size: 20px;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .latest-item,
  .most-read-item {
    grid-template-columns: 92px 1fr;
  }

  .section-title {
    font-size: 16px;
    padding: 7px 14px;
  }

  .ad-700 {
    height: 220px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
