/*
Theme Name: El Contador Informa
Theme URI: https://elcontadorinforma.com
Author: El Contador Informa
Description: Tema de noticias para la comunidad contable de la República Dominicana. Portada tipo revista con destacado, tendencias, últimas noticias, boletín y pie institucional.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: el-contador-informa
Tags: news, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, two-columns
*/

:root {
  --navy: #0c2464;
  --navy-deep: #07183f;
  --red: #e30613;
  --red-dark: #c10510;
  --ink: #162033;
  --muted: #6d7787;
  --line: #e5e9ef;
  --soft: #f4f6f8;
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --container: 1360px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; border: 0; }

button,
input,
textarea { font-family: inherit; }

button { cursor: pointer; }

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

ul { margin: 0; padding: 0; }

h1, h2, h3, h4,
.brand__name,
.section__title,
.badge,
.btn,
.ticker__label,
.primary-menu > li > a,
.tabs__btn,
.footer__title,
.page-header h1,
.entry__title {
  font-family: var(--font-display);
}

.site { overflow-x: clip; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10000;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
}

.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

/* Top bar */
.topbar {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: #5c6778;
  font-size: 12.5px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__date { color: #3e4a5e; font-weight: 600; white-space: nowrap; }

.topbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.topbar__menu li { display: flex; align-items: center; }

.topbar__menu li + li::before {
  content: "";
  width: 1px;
  height: 12px;
  background: #d5dbe3;
  margin: 0 12px;
}

.topbar__menu a:hover { color: var(--red); }

.social-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.social-list a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.social-list a:hover { color: var(--red); }

.social-list--boxed { justify-content: center; gap: 8px; }

.social-list--boxed a {
  width: 34px;
  height: 34px;
  border: 1px solid #d7dde6;
  color: var(--navy);
}

.social-list--boxed a:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.social-list--footer { gap: 10px; margin-top: 4px; }
.social-list--footer a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
}
.social-list--footer a:hover {
  background: #fff;
  color: var(--navy);
}

/* Header */
.site-header { background: #fff; }

.header__inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(240px, .9fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px 0 14px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark { display: block; line-height: 0; }

.brand__mark svg { width: 52px; height: 52px; display: block; }

.brand__name {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand__accent { color: var(--red); }

.brand__edition {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--red);
}

.brand__tagline {
  margin: 0;
  max-width: 200px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #8b93a1;
}

.custom-logo-link { display: inline-flex; }

.custom-logo { max-height: 72px; width: auto; }

.header-ad {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px 16px 12px 34%;
  background: #eef3f8 url('assets/images/anuncio-fondo.jpg') left center/cover no-repeat;
  overflow: hidden;
}

.header-ad:hover .header-ad__go {
  background: var(--navy);
  color: #fff;
}

.header-ad__photo {
  width: 128px;
  align-self: stretch;
  flex: none;
  background: #1a3d8f url('assets/images/anuncio.jpg') center/cover no-repeat;
}

.header-ad__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--navy);
}

.header-ad__go {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  flex: none;
  transition: .2s ease;
}

.header-ad--image {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
  min-width: 0;
}

.header-ad--image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 0;
}

.icon-btn--light { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  padding: 13px 16px;
  border: 0;
  border-radius: 2px;
}

.btn:hover { background: var(--red-dark); }

/* Nav */
.main-nav {
  background: var(--navy);
  position: relative;
  z-index: 30;
}

.main-nav__inner {
  display: flex;
  align-items: stretch;
  height: 48px;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.main-nav__panel { flex: 1; min-width: 0; display: flex; align-items: stretch; }

.primary-menu {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  list-style: none;
  width: 100%;
  height: 100%;
  gap: 2px;
}

.primary-menu > li { position: relative; display: flex; align-items: stretch; }

.primary-menu > li > a {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 16px;
}

.primary-menu > li > a:hover {
  background: rgba(255, 255, 255, .08);
}

.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
  background: var(--red);
}

.primary-menu > .current-menu-item > a:hover,
.primary-menu > .current-menu-ancestor > a:hover {
  background: var(--red-dark);
}

.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  list-style: none;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(7, 24, 63, .16);
  z-index: 40;
}

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

.primary-menu .sub-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.primary-menu .sub-menu a:hover { color: var(--red); }

.main-nav .icon-btn { margin-left: auto; align-self: center; }

/* Ticker */
.ticker-wrap { background: var(--soft); border-bottom: 1px solid var(--line); }

.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
}

.ticker__label {
  flex: none;
  position: relative;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 22px 9px 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.ticker__viewport { flex: 1; min-width: 0; }

.ticker__item {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker__item[hidden] { display: none !important; }

.ticker__item:hover { color: var(--red); }

.ticker__nav { display: flex; gap: 6px; flex: none; }

.ticker__nav button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d5dbe3;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  padding: 0;
}

.ticker__nav button:hover { border-color: var(--navy); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.7fr .95fr;
  grid-template-rows: 560px;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.hero--solo { grid-template-columns: 1fr; }

.hero__feature {
  position: relative;
  height: 560px;
  min-height: 560px;
  background: var(--navy);
  overflow: hidden;
}

.hero__link {
  position: absolute;
  inset: 0;
  color: #fff;
  display: block;
}

.hero__media,
.side-card__media,
.news-card__media,
.feature__media,
.popular__media,
.footer-post__media,
.entry__figure {
  background: #d5deea;
}

.hero__media { position: absolute; inset: 0; }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 16, 46, .9) 0%, rgba(5, 16, 46, .38) 40%, rgba(5, 16, 46, .05) 68%);
}

.hero__media img,
.hero__media .ph,
.side-card__media img,
.side-card__media .ph,
.news-card__media img,
.news-card__media .ph,
.feature__media img,
.feature__media .ph,
.popular__media img,
.popular__media .ph,
.footer-post__media img,
.footer-post__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px 26px 22px;
}

.hero__title {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero__excerpt {
  margin: 10px 0 8px;
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__meta,
.meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.hero__meta span { display: inline-flex; align-items: center; gap: 5px; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
  line-height: 1;
}

.hero__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 560px;
  min-height: 0;
}

.side-card { min-height: 0; }

.side-card__link {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: inherit;
}

.side-card__media {
  position: relative;
  width: 156px;
  height: 156px;
  overflow: hidden;
  flex: none;
}

.side-card .badge {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.side-card__body { min-width: 0; padding-top: 2px; }

.side-card__title,
.news-card__title,
.feature__title,
.popular__title {
  font-weight: 800;
  color: #0c2464;
  letter-spacing: -.01em;
}

.side-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.side-card__date .icon { width: 14px; height: 14px; }

.side-card:hover .side-card__title,
.news-card:hover .news-card__title,
.feature:hover .feature__title,
.popular__item:hover .popular__title { color: var(--red); }

.side-card__date,
.news-card__date,
.feature__date,
.popular__date {
  color: var(--muted);
  font-size: 12.5px;
}

.news-card__media img,
.feature__media img,
.side-card__media img,
.hero__media img {
  transition: transform .45s ease;
}

.news-card:hover img,
.feature:hover img,
.side-card:hover img,
.hero__feature:hover img { transform: scale(1.04); }

/* Sections */
.section { margin-top: 34px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

.section__title span {
  display: inline-block;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: -1px;
}

.section__actions {
  display: flex;
  gap: 14px;
  padding-bottom: 8px;
}

.section__more {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.section__more:hover { color: var(--red); }

.side-more {
  display: block;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.side-more:hover { color: var(--red); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.news-card__link { display: block; color: inherit; }

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__title {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner {
  border: 1px solid var(--line);
  padding: 22px 18px 18px;
  text-align: center;
}

.partner__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}

.partner__logo img,
.partner__logo svg { width: 96px; height: 96px; display: block; object-fit: contain; }

.partner__name {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

.partner__text {
  margin: 0 0 16px;
  color: #5c6778;
  font-size: 13.5px;
  line-height: 1.55;
}

.latest-stack { display: flex; flex-direction: column; gap: 18px; }

.feature__link {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: center;
  color: inherit;
}

.feature__media {
  position: relative;
  min-height: 230px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.feature__kicker {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
  margin-bottom: 10px;
}

.feature__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

.feature__excerpt {
  margin: 0 0 10px;
  color: #3e4a5e;
  font-size: 15.5px;
  line-height: 1.5;
}

.feature--row .feature__title { font-size: 20px; }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tabs__nav {
  display: flex;
  gap: 18px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  margin: 0 0 4px;
  padding: 10px 12px 0;
}

.tabs__btn {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9aa3b2;
}

.tabs__btn.is-active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

.popular__item {
  display: grid;
  grid-template-columns: 26px 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f5;
  color: inherit;
}

.popular__item:last-child { border-bottom: 0; }

.popular__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.popular__media { height: 58px; overflow: hidden; }

.popular__title {
  margin: 0 0 3px;
  font-size: 13.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.layout__side .widget {
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.layout__side .wp-block-heading,
.layout__side .widget-title,
.layout__side .wp-block-search__label {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.layout__side .wp-block-heading::after,
.layout__side .widget-title::after,
.layout__side .wp-block-search__label::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  margin-bottom: -9px;
  background: var(--red);
}

.layout__side .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.layout__side .widget li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eef1f5;
}

.layout__side .widget li:last-child { border-bottom: 0; padding-bottom: 0; }

.layout__side .widget li a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.layout__side .widget li a:hover,
.layout__side .widget .current-cat > a { color: var(--red); }

.layout__side .wp-block-latest-posts__post-title {
  display: block;
}

.layout__side .wp-block-categories,
.layout__side .wp-block-archives-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}

.layout__side .wp-block-search__inside-wrapper {
  display: flex;
  border: 1px solid #d5dbe3;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
}

.layout__side .wp-block-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
}

.layout__side .wp-block-search__input:focus { outline: none; }

.layout__side .wp-block-search__button {
  flex: none;
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.layout__side .wp-block-search__button:hover { background: var(--red); }

.layout__side .no-comments {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.layout__side .widget_text {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, .88);
}

.layout__side .textwidget p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.layout__side .textwidget p:last-child { margin-bottom: 0; }

.layout__side .textwidget img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  margin: 0 0 12px;
}

.demo-banner {
  background: #fff8ec;
  border: 1px solid #f0d7a2;
  color: #6a4b12;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 14px;
}

.demo-banner a { color: var(--red); font-weight: 700; }

/* Newsletter */
.newsletter {
  background: var(--soft);
  border-top: 1px solid var(--line);
  margin-top: 42px;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.newsletter__icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid #c5ceda;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  flex: none;
}

.newsletter__copy h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
}

.newsletter__copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.newsletter__form {
  margin-left: auto;
  display: flex;
  gap: 10px;
  width: min(480px, 100%);
}

.newsletter__form input[type="email"],
.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #d5dbe3;
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
}

.newsletter__form input[type="email"] { flex: 1; }

.form-note { font-size: 13px; margin: 6px 0 0; }
.form-note--ok { color: #0d7a3f; }
.form-note--error { color: var(--red); }

/* Contact Form 7 — solicitud de colaboración */
.wpcf7 { max-width: none; }

.wpcf7-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 28px 28px 24px;
}

.wpcf7-form h3,
.wpcf7-form p:has(textarea),
.wpcf7-form p:has(input[type="file"]),
.wpcf7-form p:has(.cf7-checkbox),
.wpcf7-form p:has(.wpcf7-submit),
.wpcf7-form .wpcf7-response-output {
  grid-column: 1 / -1;
}

.wpcf7-form h3 {
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.wpcf7-form p { margin: 0; }

.wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.wpcf7-form label br { display: none; }

.wpcf7-form .wpcf7-form-control-wrap { display: block; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid #d5dbe3;
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: 4px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.wpcf7-form textarea { min-height: 140px; resize: vertical; }

.wpcf7-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 36, 100, .12);
}

.wpcf7-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed #b7c0cc;
  border-radius: 4px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 400;
}

.wpcf7-form .cf7-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.wpcf7-form .wpcf7-acceptance,
.wpcf7-form .cf7-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.wpcf7-form .wpcf7-submit {
  width: auto;
  min-width: 220px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
}

.wpcf7-form .wpcf7-submit:hover { background: var(--red-dark); }

.wpcf7-form p:has(.wpcf7-submit) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wpcf7-not-valid { border-color: var(--red) !important; background: #fff5f5 !important; }

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 600;
}

.wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 4px;
  font-size: 14px;
}

.wpcf7-form .hidden-fields-container { display: none; }

.entry-content .wpcf7-form p { margin: 0; }

.wpcf7-form .form-container,
.wpcf7-form .form-row,
.wpcf7-form .form-group,
.wpcf7-form .form-group-75,
.wpcf7-form .form-group-25,
.wpcf7-form .form-submit,
.wpcf7-form .cf7-two-columns,
.wpcf7-form .cf7-col {
  display: contents;
}

.entry-content ul:has(a[href^="tel:"]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.entry-content ul:has(a[href^="tel:"]) li { margin: 0; }

.entry-content ul:has(a[href^="tel:"]) a { text-decoration: none; font-weight: 700; }

.entry-content ul:has(a[href^="tel:"]) p { margin: 0; }

.form-container h3 { margin-top: 12px; }
.form-container h3:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .86); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr .7fr .75fr 1.25fr;
  gap: 36px;
  padding: 42px 0 28px;
}

.footer__about {
  margin: 12px 0 16px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

.footer-logo { display: inline-flex; }
.footer-logo img {
  display: block;
  width: auto;
  max-width: 280px;
  max-height: 72px;
}

.brand-wrap--footer .brand { align-items: flex-start; }
.brand-wrap--footer .brand__name {
  font-size: 18px;
  color: #fff;
  line-height: .95;
}
.brand-wrap--footer .brand__accent { color: var(--red); }
.brand-wrap--footer .brand__mark svg { width: 46px; height: 46px; }
.brand__bottom { display: flex; align-items: center; gap: 8px; }
.brand__badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .85);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  padding: 3px 4px;
}

.footer__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-menu { list-style: none; }

.footer-menu a {
  display: inline-block;
  color: rgba(255, 255, 255, .8);
  font-size: 14.5px;
  line-height: 1.9;
}

.footer-menu a:hover { color: #fff; }

.footer-post {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  color: inherit;
}

.footer-post__media {
  position: relative;
  width: 86px;
  height: 86px;
  overflow: hidden;
}

.site-footer .footer-post h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
}

.footer-post time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
}

.footer-post time .icon { width: 13px; height: 13px; }

.site-footer .footer-post:hover h3 { color: #ffd0d3; }

.footer-bottom {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 12.5px;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  color: rgba(255, 255, 255, .72);
}

.footer-legal {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

.footer-legal li { display: flex; align-items: center; }

.footer-legal li + li::before {
  content: "|";
  margin: 0 10px;
  opacity: .55;
}

.footer-legal a { color: rgba(255, 255, 255, .72); }
.footer-legal a:hover { color: #fff; }

/* Inner pages */
.page-wrap,
.single-wrap,
.list-wrap { padding: 26px 0 10px; }

.page-header { margin: 0 0 20px; }

.page-header h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.page-header p { color: var(--muted); margin: 8px 0 0; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pagination { margin: 26px 0 10px; }

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

.page-numbers {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--red); }

.entry__kicker {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.entry__title {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.entry__figure { margin: 0 0 20px; }

.entry__figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.entry-content { font-size: 18px; line-height: 1.7; color: #243044; }

.entry-content p { margin: 0 0 1.05em; }

.entry-content h2,
.entry-content h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 1.3em 0 .5em;
}

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

.entry-content ul,
.entry-content ol { margin: 0 0 1em 1.2em; }

.entry-content blockquote {
  margin: 1.3em 0;
  padding: .2em 0 .2em 16px;
  border-left: 4px solid var(--red);
  color: var(--navy);
  font-weight: 600;
}

.entry-content img { height: auto; }

.entry--page { max-width: none; width: 100%; }

.share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0;
  padding-top: 8px;
}

.share__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.share a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
}

.share a:hover { background: var(--navy); color: #fff; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 18px; }

.tag-list a {
  background: var(--soft);
  color: var(--navy);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}

.post-nav,
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 0 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.post-nav a { color: var(--navy); font-weight: 700; }
.post-nav a:hover { color: var(--red); }
.post-nav .nav-next { text-align: right; }

.related { margin-top: 10px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.comments-area { margin-top: 28px; }

.comments-title,
.comment-reply-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 20px;
}

.comment-list { list-style: none; padding: 0; }

.comment-body { border-bottom: 1px solid #eef1f5; padding: 12px 0; }

.comment-form .submit {
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.empty-state { text-align: center; padding: 54px 16px 70px; }

.empty-state__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.empty-state h1 { margin: 8px 0; color: var(--navy); }

.empty-state p { color: var(--muted); }

.empty-state .search-form {
  max-width: 520px;
  margin: 18px auto;
}

.empty-state .btn { margin-top: 8px; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.newsletter__form .btn { flex: none; }

.search-form button {
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 0 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 16, 48, .55);
  display: flex;
  justify-content: center;
  padding: 14vh 16px 16px;
}

.search-modal[hidden] { display: none; }

.search-modal__panel {
  background: #fff;
  width: min(680px, 100%);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  height: fit-content;
}

.search-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.search-modal__head strong {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ph { display: block; width: 100%; height: 100%; }
.ph--nacionales { background: linear-gradient(145deg, #0c2464, #3d6cb5); }
.ph--economia { background: linear-gradient(145deg, #0f5e62, #69c2b0); }
.ph--actualidad { background: linear-gradient(145deg, #1d4e39, #6eae84); }
.ph--contabilidad { background: linear-gradient(145deg, #243044, #7d8da3); }
.ph--opinion { background: linear-gradient(145deg, #2c245c, #8a82cc); }
.ph--impuestos { background: linear-gradient(145deg, #6d2428, #d07a7a); }
.ph--politica { background: linear-gradient(145deg, #4a3414, #c4a36b); }
.ph--sociales { background: linear-gradient(145deg, #4e1d48, #c97aad); }

.sidebar-space { margin-top: 28px; }

@media (max-width: 1100px) {
  .trending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-menu > li > a { padding: 16px 8px; font-size: 12px; }
  .feature__title { font-size: 22px; }
}

@media (max-width: 980px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "ad ad";
  }
  .brand-wrap { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .header-ad { grid-area: ad; }
  .brand__tagline { display: none; }
  .layout,
  .hero,
  .feature__link,
  .post-nav,
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .hero { grid-template-rows: auto; }
  .hero__feature { height: auto; min-height: 440px; position: relative; }
  .hero__link { position: absolute; }
  .hero__side { height: auto; display: flex; flex-direction: column; gap: 18px; }
  .side-card__link { grid-template-columns: 120px minmax(0, 1fr); }
  .side-card__media { width: 120px; height: 120px; }
  .latest-grid,
  .cards-grid,
  .related-grid,
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .post-nav .nav-next,
  .post-navigation .nav-next { text-align: left; }
  .newsletter__inner { flex-wrap: wrap; }
  .newsletter__form { margin-left: 0; width: 100%; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .main-nav__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-deep);
    padding: 6px 0 14px;
  }
  body.nav-open .main-nav__panel { display: block; }
  .primary-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; }
  .primary-menu > li > a { padding: 12px 20px; height: auto; }
  .primary-menu > .current-menu-item > a { align-self: flex-start; }
  .primary-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: 0 0 8px 12px;
  }
  .primary-menu .sub-menu a { color: rgba(255, 255, 255, .86); }
  .menu-item-has-children > a::after { display: none; }
}

@media (max-width: 760px) {
  .wpcf7-form {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .form-row,
  .form-row:has(.form-group-75),
  .cf7-two-columns,
  .entry-content ul:has(a[href^="tel:"]) { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .topbar__menu { display: none; }
  .trending-grid,
  .latest-grid,
  .cards-grid,
  .related-grid,
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .header-ad__text { font-size: 16px; }
  .hero__feature { min-height: 420px; }
  .ticker__item { font-size: 14px; }
  .feature__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .news-card__media img,
  .feature__media img,
  .side-card__media img,
  .hero__media img { transition: none; }
}

.eci-consent {
  position: fixed;
  z-index: 99990;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(12, 36, 100, .16);
}

.eci-consent-set .eci-consent { display: none; }
.eci-consent-open .eci-consent { display: flex; }
.eci-consent[hidden] { display: none !important; }

.eci-consent__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.eci-consent__text a { color: var(--navy); font-weight: 700; }

.eci-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.eci-consent__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 14px/1 var(--font-body);
  padding: 12px 16px;
  cursor: pointer;
}

.eci-consent__btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.eci-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 99991;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 24, 63, .45);
}

.eci-consent-modal[hidden] { display: none; }

.eci-consent-modal__panel {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
}

.eci-consent-modal__panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
}

.eci-consent-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}

.eci-consent-choice span { display: grid; gap: 2px; }
.eci-consent-choice strong { color: var(--ink); }
.eci-consent-choice small { color: var(--muted); }

.eci-consent-reopen {
  position: fixed;
  z-index: 99980;
  left: 16px;
  bottom: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 700 13px/1 var(--font-body);
  padding: 10px 14px;
  cursor: pointer;
}

.eci-consent-open .eci-consent-reopen { display: none; }

.eci-privacy-field {
  margin: 12px 0;
  font-size: 15px;
}

.eci-privacy-field a { color: var(--navy); font-weight: 700; }

@media (max-width: 680px) {
  .eci-consent { flex-direction: column; align-items: stretch; }
}
