/*
Theme Name: Alerta Panguipulli Next
Theme URI: https://alertapanguipulli.cl
Author: DCPanguipulli
Description: Tema moderno de noticias para Alerta Panguipulli, con portada editorial, clima, publicidad, widgets, formulario ciudadano y diseno responsive.
Version: 9.6.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: alerta-panguipulli
Tags: news, blog, custom-logo, featured-images, grid-layout, right-sidebar
*/

:root {
  --ap-ink: #111318;
  --ap-ink-2: #252932;
  --ap-muted: #666d7a;
  --ap-paper: #f5f6f8;
  --ap-panel: #ffffff;
  --ap-line: #dcdee3;
  --ap-red: #d7192a;
  --ap-red-dark: #9f1020;
  --ap-teal: #08767f;
  --ap-green: #12845e;
  --ap-gold: #c48b16;
  --ap-radius: 8px;
  --ap-shadow: 0 14px 34px rgba(17, 19, 24, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ap-paper);
  color: var(--ap-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a:hover,
a:focus {
  color: var(--ap-red);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  background: var(--ap-panel);
  border: 2px solid var(--ap-teal);
  border-radius: var(--ap-radius);
}

.ap-site-header {
  position: relative;
  z-index: 50;
  background: rgba(245, 246, 248, 0.96);
  border-bottom: 1px solid var(--ap-line);
  backdrop-filter: blur(16px);
}

.ap-breaking {
  background: var(--ap-ink);
  color: #ffffff;
  font-size: 0.86rem;
}

.ap-breaking-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 38px;
}

.ap-breaking-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: var(--ap-red);
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-breaking-track {
  min-width: 0;
  overflow: hidden;
  color: #f0f2f5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-breaking-time {
  color: #cfd4dc;
  font-weight: 700;
}

.ap-masthead {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(260px, 460px) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.ap-logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

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

.ap-logo-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: var(--ap-red);
  color: #ffffff;
  border-radius: var(--ap-radius);
  font-weight: 900;
  line-height: 1;
}

.ap-logo-text {
  display: grid;
  min-width: 0;
}

.ap-logo-text strong {
  color: var(--ap-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.95;
}

.ap-logo-text span {
  margin-top: 4px;
  color: var(--ap-muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ap-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-width: 0;
  overflow: hidden;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
}

.ap-search input {
  min-width: 0;
  border: 0;
  padding: 11px 12px;
  background: transparent;
  color: var(--ap-ink);
}

.ap-search input:focus {
  outline: 2px solid var(--ap-teal);
  outline-offset: -2px;
}

.ap-search button {
  position: relative;
  border: 0;
  border-left: 1px solid var(--ap-line);
  background: var(--ap-panel);
  color: var(--ap-ink);
}

.ap-search button::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.ap-search button::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 25px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.ap-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ap-action-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--ap-radius);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.ap-action-whatsapp {
  background: var(--ap-green);
}

.ap-action-submit {
  background: var(--ap-red);
}

.ap-menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: var(--ap-panel);
  color: var(--ap-ink);
}

.ap-menu-toggle span:first-child,
.ap-menu-toggle::before,
.ap-menu-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ap-menu-toggle span:first-child {
  top: 20px;
}

.ap-menu-toggle::before {
  top: 13px;
}

.ap-menu-toggle::after {
  top: 27px;
}

.ap-menu-toggle.is-open span:first-child {
  opacity: 0;
}

.ap-menu-toggle.is-open::before {
  transform: translateY(7px) rotate(45deg);
}

.ap-menu-toggle.is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

.ap-nav {
  border-top: 1px solid var(--ap-line);
}

.ap-menu,
.ap-menu-list {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.ap-menu-list {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ap-menu-list li {
  list-style: none;
}

.ap-menu > a,
.ap-menu-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 11px;
  border-radius: var(--ap-radius);
  color: var(--ap-ink-2);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.ap-menu > a:hover,
.ap-menu-list a:hover,
.ap-menu .current-menu-item > a,
.ap-menu .current_page_item > a {
  background: var(--ap-red);
  color: #ffffff;
}

.ap-ad-top {
  margin-top: 18px;
}

.ap-ad-box {
  display: grid;
  min-height: 84px;
  place-items: center;
  padding: 12px;
  background: #fff8ec;
  border: 1px dashed var(--ap-gold);
  border-radius: var(--ap-radius);
  color: #81550b;
  font-weight: 900;
  text-align: center;
}

.ap-ad-box-small {
  min-height: 130px;
}

.ap-main {
  padding: 24px 0 56px;
}

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

.ap-feed {
  min-width: 0;
}

.ap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.ap-lead-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--ap-ink);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
}

.ap-lead-media,
.ap-lead-media img {
  width: 100%;
  height: 100%;
}

.ap-lead-media img {
  object-fit: cover;
}

.ap-lead-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.10), rgba(17, 19, 24, 0.84));
  pointer-events: none;
}

.ap-lead-content {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 26px;
  left: 26px;
  color: #ffffff;
}

.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ap-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-kicker a {
  color: inherit;
}

.ap-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.ap-lead-content .ap-kicker {
  color: #ff6672;
}

.ap-lead-content h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1.02;
}

.ap-lead-content h1 a:hover,
.ap-lead-content h1 a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.ap-lead-content p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #ecedf0;
  font-size: 1.05rem;
}

.ap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--ap-muted);
  font-size: 0.86rem;
}

.ap-lead-content .ap-meta {
  color: #d8dce2;
}

.ap-top-stack {
  display: grid;
  gap: 12px;
}

.ap-side-story,
.ap-card,
.ap-list-card,
.ap-widget,
.ap-empty {
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
}

.ap-side-story {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.ap-side-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ap-ink-2);
  border-radius: calc(var(--ap-radius) - 2px);
}

.ap-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-side-story h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.18;
}

.ap-section {
  margin-top: 30px;
}

.ap-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ap-ink);
}

.ap-section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.ap-section-head a {
  color: var(--ap-red);
  font-weight: 900;
}

.ap-section-live {
  padding: 18px;
  background: var(--ap-ink);
  border-radius: var(--ap-radius);
  color: #ffffff;
}

.ap-section-live .ap-section-head {
  border-color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.ap-section-live .ap-section-head a {
  color: #ffffff;
}

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

.ap-live-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--ap-radius);
}

.ap-live-item span {
  color: #ff6672;
  font-size: 0.82rem;
  font-weight: 900;
}

.ap-live-item h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

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

.ap-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ap-card:hover {
  border-color: #f3a4ac;
  box-shadow: var(--ap-shadow);
  transform: translateY(-3px);
}

.ap-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ap-ink-2);
}

.ap-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-card-body {
  padding: 14px;
}

.ap-card h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1.17;
}

.ap-card p {
  margin: 9px 0 0;
  color: var(--ap-muted);
  font-size: 0.92rem;
}

.ap-card-compact h3 {
  font-size: 1.08rem;
}

.ap-sidebar {
  position: static;
  display: grid;
  gap: 16px;
}

.ap-widget {
  padding: 18px;
}

.ap-widget-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ap-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.ap-weather {
  padding: 18px;
  background: linear-gradient(135deg, var(--ap-teal), #0e2430 65%, var(--ap-ink));
  border-radius: var(--ap-radius);
  color: #ffffff;
}

.ap-weather-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ap-weather-city {
  font-weight: 900;
}

.ap-weather-head small {
  color: #d6eef1;
}

.ap-weather-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3c553;
  box-shadow: 0 0 0 8px rgba(243, 197, 83, 0.16);
}

.ap-weather-temp {
  margin-top: 18px;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.ap-weather-desc {
  margin-top: 4px;
  color: #edf8f9;
  font-weight: 800;
}

.ap-weather-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.ap-weather-item {
  padding: 9px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--ap-radius);
  font-size: 0.76rem;
  text-align: center;
}

.ap-weather-item b {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
}

.ap-ranked-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: ranked;
}

.ap-ranked-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  counter-increment: ranked;
}

.ap-ranked-list li::before {
  content: counter(ranked);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ap-ink);
  border-radius: var(--ap-radius);
  color: #ffffff;
  font-weight: 900;
}

.ap-ranked-list a,
.ap-ranked-list li {
  font-weight: 800;
  line-height: 1.25;
}

.ap-social-list {
  display: grid;
  gap: 8px;
}

.ap-social-list a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #f0f2f5;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  font-weight: 900;
}

.ap-archive-head,
.ap-article {
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
}

.ap-archive-head {
  padding: 24px;
  margin-bottom: 18px;
}

.ap-archive-head h1,
.ap-article-head h1 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.04;
}

.ap-archive-description {
  max-width: 760px;
  margin-top: 12px;
  color: var(--ap-muted);
}

.ap-list {
  display: grid;
  gap: 16px;
}

.ap-list-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
}

.ap-list-media {
  overflow: hidden;
  min-height: 190px;
  background: var(--ap-ink-2);
}

.ap-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-list-body {
  padding: 18px;
}

.ap-list-body h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.ap-list-body p {
  margin: 10px 0 0;
  color: var(--ap-muted);
}

.ap-empty {
  padding: 28px;
}

.ap-empty h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.ap-article {
  overflow: hidden;
}

.ap-article-head {
  padding: 28px 28px 18px;
}

.ap-article-media {
  margin: 0;
  background: var(--ap-ink-2);
}

.ap-article-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.ap-entry-content {
  padding: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.78;
}

.ap-entry-content p,
.ap-entry-content ul,
.ap-entry-content ol,
.ap-entry-content blockquote,
.ap-entry-content figure {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.ap-entry-content h2,
.ap-entry-content h3 {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.18;
  margin-top: 1.5em;
}

.ap-entry-content a {
  color: var(--ap-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-entry-content blockquote {
  padding-left: 18px;
  border-left: 4px solid var(--ap-red);
  color: var(--ap-ink-2);
  font-size: 1.25rem;
}

.ap-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
}

.ap-form label {
  font-weight: 900;
}

.ap-form input,
.ap-form textarea,
.ap-form select {
  width: 100%;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
}

.ap-form textarea {
  min-height: 150px;
}

.ap-form input:focus,
.ap-form textarea:focus,
.ap-form select:focus {
  border-color: var(--ap-teal);
  outline: 2px solid rgba(8, 118, 127, 0.22);
}

.ap-form button,
.wp-block-search__button,
input[type="submit"] {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: var(--ap-radius);
  background: var(--ap-red);
  color: #ffffff;
  font-weight: 900;
}

.ap-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #e8f7ef;
  border: 1px solid #badfcb;
  border-radius: var(--ap-radius);
  color: #0f6d45;
  font-weight: 800;
}

.ap-alert-error {
  background: #fff0f1;
  border-color: #f2b8bf;
  color: #9f1020;
}

.nav-links,
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 22px;
}

.nav-links a,
.page-numbers {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  font-weight: 900;
}

.page-numbers.current {
  background: var(--ap-ink);
  color: #ffffff;
}

.ap-footer {
  background: var(--ap-ink);
  color: #ffffff;
  padding: 34px 0 20px;
}

.ap-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
}

.ap-footer h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.ap-footer p {
  margin: 0;
  color: #cdd2db;
}

.ap-footer a {
  color: #ffffff;
}

.ap-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #cdd2db;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .ap-masthead {
    grid-template-columns: 1fr auto;
  }

  .ap-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .ap-main-grid,
  .ap-hero {
    grid-template-columns: 1fr;
  }

  .ap-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ap-breaking-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ap-breaking-time {
    display: none;
  }

  .ap-masthead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ap-actions {
    display: none;
  }

  .ap-menu-toggle {
    display: block;
  }

  .ap-nav {
    display: none;
  }

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

  .ap-menu,
  .ap-menu-list {
    display: grid;
    gap: 4px;
    padding: 10px 0;
  }

  .ap-menu > a,
  .ap-menu-list a {
    min-height: 42px;
    border-bottom: 1px solid var(--ap-line);
    border-radius: 0;
  }

  .ap-lead-card {
    min-height: 440px;
  }

  .ap-lead-content h1 {
    font-size: 2.35rem;
  }

  .ap-card-grid,
  .ap-live-grid,
  .ap-sidebar,
  .ap-footer-grid {
    grid-template-columns: 1fr;
  }

  .ap-list-card {
    grid-template-columns: 1fr;
  }

  .ap-list-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .ap-archive-head h1,
  .ap-article-head h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 520px) {
  .ap-container {
    width: min(100% - 24px, 1220px);
  }

  .ap-logo-text strong {
    font-size: 1.65rem;
  }

  .ap-logo-mark {
    width: 48px;
    height: 48px;
  }

  .ap-lead-card {
    min-height: 390px;
  }

  .ap-lead-content {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .ap-lead-content h1 {
    font-size: 1.9rem;
  }

  .ap-side-story {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .ap-section-head {
    display: grid;
    gap: 8px;
  }

  .ap-section-head h2 {
    font-size: 1.7rem;
  }

  .ap-entry-content,
  .ap-article-head,
  .ap-archive-head {
    padding: 20px;
  }
}

/* V8.1: portada mas moderna con slider editorial */
body {
  background:
    radial-gradient(circle at 12% -8%, rgba(215, 25, 42, 0.16), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(8, 118, 127, 0.14), transparent 30%),
    #f4f6f8;
}

.ap-site-header {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(17, 19, 24, 0.07);
}

.ap-breaking {
  background: linear-gradient(90deg, #121318, #5f111b 45%, #d7192a);
}

.ap-logo-mark {
  background: linear-gradient(135deg, #d7192a, #7d0c18);
  box-shadow: 0 16px 36px rgba(215, 25, 42, 0.28);
}

.ap-action-link,
.ap-search,
.ap-ad-box,
.ap-card,
.ap-list-card,
.ap-widget,
.ap-archive-head,
.ap-article,
.ap-empty {
  border-radius: 16px;
}

.ap-modern-hero {
  position: relative;
}

.ap-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 222, 227, 0.88);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(17, 19, 24, 0.14);
  backdrop-filter: blur(18px);
}

.ap-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111318;
  border-radius: 18px;
  isolation: isolate;
}

.ap-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 760ms ease;
}

.ap-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.ap-slide-media,
.ap-slide-media img {
  width: 100%;
  height: 100%;
}

.ap-slide-media img {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.ap-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.92), rgba(17, 19, 24, 0.50) 46%, rgba(17, 19, 24, 0.06)),
    linear-gradient(0deg, rgba(17, 19, 24, 0.72), transparent 54%);
  pointer-events: none;
}

.ap-slide-content {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
  max-width: 780px;
  padding-right: 72px;
  color: #ffffff;
}

.ap-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  background: rgba(215, 25, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-pill a {
  color: inherit;
}

.ap-slide-content h1 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.98;
  text-wrap: balance;
}

.ap-slide-content h1 a,
.ap-slide-content h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: break-word;
}

.ap-slide-content h1 a:hover,
.ap-slide-content h1 a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.ap-slide-content p {
  max-width: 650px;
  margin: 16px 0 0;
  color: #edf0f4;
  font-size: 1.08rem;
}

.ap-slide-content .ap-meta {
  color: #d9dee7;
}

.ap-slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.58);
  color: #ffffff;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.ap-slider-arrow::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.ap-slider-prev {
  left: 18px;
}

.ap-slider-prev::before {
  left: 17px;
  transform: rotate(-45deg);
}

.ap-slider-next {
  right: 18px;
}

.ap-slider-next::before {
  right: 17px;
  transform: rotate(135deg);
}

.ap-slider-arrow:hover,
.ap-slider-arrow:focus {
  background: var(--ap-red);
  outline: none;
}

.ap-slider-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ap-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 160ms ease, background 160ms ease;
}

.ap-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.ap-hero-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 620px;
  padding: 18px;
  background:
    linear-gradient(180deg, #141821, #202632),
    #141821;
  border-radius: 18px;
  color: #ffffff;
}

.ap-panel-label {
  width: fit-content;
  padding: 5px 8px;
  background: rgba(215, 25, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ff7b86;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-hero-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.04;
}

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

.ap-panel-story {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-panel-media {
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  background: #0e1118;
  border-radius: 12px;
}

.ap-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-panel-story span {
  color: #ff7b86;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-panel-story h3 {
  margin: 5px 0 0;
  font-size: 0.98rem;
  line-height: 1.18;
}

.ap-panel-story a:hover,
.ap-panel-story a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.ap-section-live {
  background:
    radial-gradient(circle at 100% 0, rgba(215, 25, 42, 0.22), transparent 32%),
    linear-gradient(135deg, #111318, #202632);
  border-radius: 20px;
}

.ap-instant-section {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 222, 227, 0.88);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.08);
}

.ap-instant-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.ap-instant-head span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  background: #111318;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-instant-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.04;
}

.ap-instant-head p {
  max-width: 360px;
  margin: 0;
  color: var(--ap-muted);
  font-weight: 700;
  text-align: right;
}

.ap-story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 148px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.ap-story-card {
  scroll-snap-align: start;
}

.ap-story-card a {
  display: grid;
  gap: 8px;
  color: var(--ap-ink);
}

.ap-story-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  padding: 3px;
  background: linear-gradient(145deg, #d7192a, #ffb000 48%, #08767f);
  border-radius: 18px;
}

.ap-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 15px;
}

.ap-story-kicker {
  color: var(--ap-red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-story-card strong {
  display: -webkit-box;
  min-height: 42px;
  color: var(--ap-ink);
  font-size: 0.88rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ap-channel-card {
  padding: 20px;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 255, 255, 0.20), transparent 30%),
    linear-gradient(145deg, #12845e, #0f3f35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(18, 132, 94, 0.22);
}

.ap-channel-card span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-channel-card h3 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.05;
}

.ap-channel-card p {
  margin: 10px 0 0;
  color: #e7fff4;
}

.ap-channel-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 14px;
  padding: 0 12px;
  background: #ffffff;
  border-radius: 999px;
  color: #0f5f45;
  font-weight: 900;
}

.ap-premium-news {
  display: grid;
  gap: 11px;
}

.ap-premium-news article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ap-line);
}

.ap-premium-news article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ap-premium-news time {
  color: var(--ap-red);
  font-size: 0.76rem;
  font-weight: 900;
}

.ap-premium-news a,
.ap-premium-news span {
  font-weight: 800;
  line-height: 1.22;
}

.ap-premium-ad {
  display: grid;
  min-height: 170px;
  overflow: hidden;
  place-items: center;
  padding: 14px;
  background: linear-gradient(145deg, #fff7e8, #ffffff);
  border: 1px dashed var(--ap-gold);
  border-radius: 18px;
  color: #81550b;
  font-weight: 900;
  text-align: center;
}

.ap-premium-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-card {
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.06);
}

.ap-card-media,
.ap-side-media,
.ap-list-media {
  background: #151922;
}

@media (max-width: 1080px) {
  .ap-hero-shell {
    grid-template-columns: 1fr;
  }

  .ap-slider,
  .ap-hero-panel {
    min-height: 500px;
  }

  .ap-hero-panel {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .ap-slider {
    min-height: 470px;
  }

  .ap-slide-content h1 {
    font-size: 2.7rem;
  }

  .ap-slide::after {
    background: linear-gradient(0deg, rgba(17, 19, 24, 0.88), rgba(17, 19, 24, 0.20));
  }
}

@media (max-width: 520px) {
  .ap-hero-shell {
    padding: 8px;
    border-radius: 18px;
  }

  .ap-slider {
    min-height: 430px;
    border-radius: 14px;
  }

  .ap-slide-content {
    left: 18px;
    right: 18px;
    bottom: 48px;
    padding-right: 0;
  }

  .ap-slide-content h1 {
    font-size: 2rem;
  }

  .ap-slide-content p {
    font-size: 0.96rem;
  }

  .ap-slider-arrow {
    display: none;
  }

  .ap-slider-dots {
    right: 18px;
    bottom: 18px;
  }

  .ap-hero-panel {
    border-radius: 14px;
  }

  .ap-instant-head {
    display: grid;
    gap: 8px;
  }

  .ap-instant-head p {
    text-align: left;
  }

  .ap-story-rail {
    grid-auto-columns: minmax(120px, 134px);
  }
}

/* V8.3: slider ancho, historia unica, publicidad editable y lectura social */
.ap-hero-shell {
  grid-template-columns: 1fr;
  padding: 10px;
}

.ap-slider {
  min-height: 700px;
}

.ap-slide-content {
  left: 42px;
  right: 42px;
  bottom: 42px;
  max-width: 860px;
  padding-right: 92px;
}

.ap-slide-content h1 {
  font-size: 4.25rem;
}

.ap-ad-slot-wrap {
  margin-top: 18px;
}

.ap-ad-slot-wrap-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.ap-ad-slot-wrap-below_slider {
  width: 100%;
  margin: 18px 0 0;
}

.ap-ad-slot {
  display: grid;
  position: relative;
  min-height: 136px;
  overflow: hidden;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: linear-gradient(135deg, #fff4de, #ffffff 48%, #e8f8fa);
  border: 1px solid rgba(196, 139, 22, 0.42);
  border-radius: 18px;
  color: #5f3c08;
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.08);
}

.ap-ad-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 24, 0.68), rgba(17, 19, 24, 0.18), rgba(17, 19, 24, 0.03));
  opacity: 0;
  pointer-events: none;
}

.ap-ad-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-ad-slot.has-image {
  min-height: 150px;
  color: #ffffff;
}

.ap-ad-slot.has-image::after {
  opacity: 1;
}

.ap-ad-slot-label,
.ap-ad-slot strong {
  position: relative;
  z-index: 2;
}

.ap-ad-slot-label {
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  background: rgba(17, 19, 24, 0.82);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-ad-slot strong {
  max-width: 660px;
  font-size: 1.55rem;
  line-height: 1.08;
}

.ap-instant-section {
  padding: 18px;
}

.ap-instant-story {
  display: block;
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: #ffffff;
  isolation: isolate;
}

.ap-instant-story::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 24px;
  left: 24px;
  height: 4px;
  background: linear-gradient(90deg, #ffffff 0 58%, rgba(255, 255, 255, 0.38) 58% 100%);
  border-radius: 999px;
}

.ap-instant-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.ap-instant-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.16), rgba(17, 19, 24, 0.88)),
    linear-gradient(90deg, rgba(215, 25, 42, 0.46), transparent 42%);
}

.ap-instant-ring {
  position: absolute;
  z-index: 3;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.70);
  border-radius: 18px;
  pointer-events: none;
}

.ap-instant-live {
  position: absolute;
  z-index: 5;
  top: 34px;
  left: 30px;
  min-height: 32px;
  padding: 6px 12px;
  background: #d7192a;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-instant-content {
  display: grid;
  position: absolute;
  z-index: 5;
  right: 34px;
  bottom: 34px;
  left: 34px;
  max-width: 760px;
  gap: 12px;
}

.ap-instant-content strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  line-height: 1.02;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: break-word;
}

.ap-instant-content span {
  display: -webkit-box;
  max-width: 640px;
  overflow: hidden;
  color: #f4f6f8;
  font-size: 1.08rem;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ap-instant-content em {
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 999px;
  color: #111318;
  font-style: normal;
  font-weight: 900;
}

.ap-reactions {
  margin: 0 28px 28px;
  padding: 18px;
  background: #f7f8fa;
  border: 1px solid var(--ap-line);
  border-radius: 16px;
}

.ap-reactions-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ap-reactions-head span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.ap-reactions-head p {
  margin: 0;
  color: var(--ap-muted);
  font-weight: 700;
}

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

.ap-reaction-button {
  display: grid;
  min-height: 104px;
  place-items: center;
  gap: 5px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  color: var(--ap-ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ap-reaction-button:hover,
.ap-reaction-button:focus,
.ap-reaction-button.is-selected {
  border-color: rgba(215, 25, 42, 0.52);
  box-shadow: 0 12px 28px rgba(215, 25, 42, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.ap-reaction-emoji {
  font-size: 2rem;
  line-height: 1;
}

.ap-reaction-label {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-reaction-button b {
  color: var(--ap-red);
  font-size: 0.92rem;
}

.ap-comments {
  margin-top: 20px;
  padding: 22px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 16px;
}

.ap-comments-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ap-ink);
}

.ap-comments-head span {
  color: var(--ap-red);
  font-weight: 900;
  text-transform: uppercase;
}

.ap-comments-head h2,
.comment-reply-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.05;
}

.ap-comment-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.ap-comment-list .comment-body {
  padding: 14px;
  background: #f5f6f8;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
}

.ap-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.ap-comment-list .avatar {
  border-radius: 50%;
}

.ap-comment-list .comment-meta {
  margin-top: 6px;
  color: var(--ap-muted);
  font-size: 0.84rem;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--ap-line);
  border-radius: 12px;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.ap-comment-note {
  padding: 10px 12px;
  background: #eaf7f8;
  border: 1px solid #bde1e5;
  border-radius: 12px;
  color: #075c63;
  font-weight: 800;
}

.ap-weather {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(145deg, #071318, #0b3d48 52%, #171318);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(8, 118, 127, 0.18);
}

.ap-weather::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.50), transparent);
  pointer-events: none;
}

.ap-weather-head {
  position: relative;
  z-index: 1;
}

.ap-weather-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.ap-weather-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #f3c553;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(243, 197, 83, 0.82);
}

.ap-weather-core {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.ap-weather-temp {
  margin-top: 0;
  font-size: 3.8rem;
}

.ap-weather-chip {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d8f7fa;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-weather-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-weather-item {
  min-height: 58px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.09);
  text-align: left;
}

.ap-weather-item b {
  font-size: 0.98rem;
}

@media (max-width: 1080px) {
  .ap-slider {
    min-height: 580px;
  }

  .ap-instant-story {
    min-height: 560px;
  }

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

@media (max-width: 820px) {
  .ap-slide-content {
    left: 24px;
    right: 24px;
    bottom: 52px;
    padding-right: 0;
  }

  .ap-slide-content h1 {
    font-size: 2.75rem;
  }

  .ap-instant-story {
    min-height: 520px;
  }

  .ap-instant-content strong {
    font-size: 2.35rem;
  }

  .ap-ad-slot strong {
    font-size: 1.25rem;
  }

  .ap-reactions-head,
  .ap-comments-head {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .ap-slider {
    min-height: 450px;
  }

  .ap-slide-content h1 {
    font-size: 2.05rem;
  }

  .ap-instant-section {
    padding: 10px;
  }

  .ap-instant-story {
    min-height: 460px;
    border-radius: 16px;
  }

  .ap-instant-ring {
    inset: 9px;
    border-radius: 13px;
  }

  .ap-instant-live {
    top: 30px;
    left: 20px;
  }

  .ap-instant-content {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .ap-instant-content strong {
    font-size: 1.9rem;
  }

  .ap-reactions {
    margin: 0 16px 20px;
    padding: 14px;
  }

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

  .ap-comments {
    padding: 16px;
  }

  .ap-weather-core,
  .ap-weather-grid {
    grid-template-columns: 1fr;
  }
}

/* V9: diseño tech editorial, popup urgente y fondo premium */
:root {
  --ap-ink: #090b10;
  --ap-ink-2: #171b24;
  --ap-muted: #68717f;
  --ap-paper: #eef3f7;
  --ap-panel: rgba(255, 255, 255, 0.90);
  --ap-line: rgba(116, 129, 149, 0.26);
  --ap-red: #e01831;
  --ap-red-dark: #9b1022;
  --ap-teal: #00a9b8;
  --ap-green: #10a66f;
  --ap-gold: #d79a1d;
  --ap-radius: 14px;
  --ap-shadow: 0 24px 60px rgba(9, 11, 16, 0.14);
}

html.ap-popup-open {
  overflow: hidden;
}

body {
  background:
    linear-gradient(118deg, rgba(0, 169, 184, 0.16), transparent 28%),
    linear-gradient(300deg, rgba(224, 24, 49, 0.13), transparent 30%),
    repeating-linear-gradient(90deg, rgba(9, 11, 16, 0.042) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(9, 11, 16, 0.035) 0 1px, transparent 1px 44px),
    #eef3f7;
  color: #111722;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.20) 32%, rgba(238, 243, 247, 0.82)),
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.38) 18% 18.5%, transparent 18.5% 100%);
  pointer-events: none;
}

.ap-container {
  width: min(1280px, calc(100% - 34px));
}

.ap-site-header {
  background: rgba(247, 250, 252, 0.84);
  border-bottom: 1px solid rgba(116, 129, 149, 0.22);
  box-shadow: 0 18px 60px rgba(9, 11, 16, 0.08);
}

.ap-breaking {
  background:
    linear-gradient(90deg, #090b10, #1a2230 35%, #741224 68%, #e01831);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.ap-breaking-label {
  background: #ffffff;
  color: #be142a;
}

.ap-masthead {
  grid-template-columns: minmax(240px, auto) minmax(280px, 500px) auto;
  padding: 20px 0;
}

.ap-logo-mark {
  background:
    linear-gradient(135deg, #e01831, #801023 52%, #00a9b8);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(224, 24, 49, 0.28);
}

.ap-logo-text strong {
  color: #0c111a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.05rem;
  line-height: 1;
}

.ap-logo-text span {
  color: #606b79;
}

.ap-search,
.ap-action-link,
.ap-menu-toggle {
  border-radius: 999px;
}

.ap-search {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(116, 129, 149, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.ap-action-whatsapp {
  background: linear-gradient(135deg, #10a66f, #087c72);
  box-shadow: 0 14px 34px rgba(16, 166, 111, 0.22);
}

.ap-nav {
  border-top: 1px solid rgba(116, 129, 149, 0.20);
}

.ap-menu,
.ap-menu-list {
  min-height: 54px;
}

.ap-menu > a,
.ap-menu-list a {
  border: 1px solid transparent;
  border-radius: 999px;
}

.ap-menu > a:hover,
.ap-menu-list a:hover,
.ap-menu .current-menu-item > a,
.ap-menu .current_page_item > a {
  background: #101722;
  border-color: rgba(0, 169, 184, 0.34);
  color: #ffffff;
}

.ap-ad-box,
.ap-card,
.ap-list-card,
.ap-widget,
.ap-archive-head,
.ap-article,
.ap-empty,
.ap-comments,
.ap-reactions,
.ap-instant-section,
.ap-hero-shell {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(116, 129, 149, 0.22);
  box-shadow: 0 22px 58px rgba(9, 11, 16, 0.10);
  backdrop-filter: blur(18px);
}

.ap-main {
  padding-top: 28px;
}

.ap-main-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.ap-hero-shell {
  padding: 12px;
  border-radius: 28px;
}

.ap-slider {
  min-height: 730px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ap-slide::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.ap-slide::after {
  background:
    linear-gradient(90deg, rgba(6, 9, 14, 0.94), rgba(6, 9, 14, 0.58) 48%, rgba(6, 9, 14, 0.10)),
    linear-gradient(0deg, rgba(6, 9, 14, 0.78), transparent 58%);
}

.ap-slide-content {
  z-index: 3;
  left: 50px;
  right: 50px;
  bottom: 50px;
  max-width: 900px;
}

.ap-pill {
  background: linear-gradient(135deg, #e01831, #ff6940);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 34px rgba(224, 24, 49, 0.28);
}

.ap-slide-content h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: 1;
}

.ap-slider-arrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.ap-dot.is-active {
  background: #00d6e6;
}

.ap-section-head {
  border-bottom: 1px solid rgba(9, 11, 16, 0.18);
}

.ap-section-head h2,
.ap-instant-head h2,
.ap-widget-title,
.ap-archive-head h1,
.ap-article-head h1,
.ap-comments-head h2,
.comment-reply-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.ap-section-head h2 {
  position: relative;
  padding-left: 14px;
}

.ap-section-head h2::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 4px;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #e01831, #00a9b8);
  border-radius: 999px;
}

.ap-card {
  border-radius: 18px;
}

.ap-card:hover {
  border-color: rgba(0, 169, 184, 0.36);
  box-shadow: 0 24px 58px rgba(9, 11, 16, 0.16);
  transform: translateY(-4px);
}

.ap-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.ap-card-media {
  position: relative;
}

.ap-card-media::after,
.ap-list-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(9, 11, 16, 0.24));
  pointer-events: none;
}

.ap-kicker {
  color: #be142a;
}

.ap-sidebar {
  gap: 18px;
}

.ap-widget {
  border-radius: 20px;
}

.ap-widget-title {
  border-bottom-color: rgba(116, 129, 149, 0.22);
}

.ap-weather {
  background:
    linear-gradient(145deg, rgba(5, 12, 18, 0.98), rgba(7, 78, 89, 0.96) 52%, rgba(40, 15, 31, 0.98)),
    #081016;
  border-color: rgba(0, 214, 230, 0.24);
}

.ap-channel-card {
  background:
    linear-gradient(145deg, #0a1413, #087c72 54%, #10a66f);
  border-color: rgba(255, 255, 255, 0.18);
}

.ap-premium-news article {
  border-bottom-color: rgba(116, 129, 149, 0.18);
}

.ap-social-list a {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(116, 129, 149, 0.22);
}

.ap-ad-slot {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(224, 247, 250, 0.86) 48%, rgba(255, 243, 219, 0.90));
  border-color: rgba(0, 169, 184, 0.24);
  box-shadow: 0 20px 50px rgba(9, 11, 16, 0.10);
}

.ap-ad-slot-label {
  background: #101722;
}

.ap-instant-section {
  border-radius: 28px;
}

.ap-instant-head span {
  background: linear-gradient(135deg, #101722, #00a9b8);
}

.ap-instant-story {
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ap-instant-gradient {
  background:
    linear-gradient(180deg, rgba(9, 11, 16, 0.10), rgba(9, 11, 16, 0.90)),
    linear-gradient(100deg, rgba(0, 169, 184, 0.54), rgba(224, 24, 49, 0.18) 48%, transparent 70%);
}

.ap-instant-live {
  background: linear-gradient(135deg, #e01831, #ff6c35);
}

.ap-instant-content strong {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.ap-instant-content em {
  background: #00d6e6;
  color: #071016;
}

.ap-reaction-button {
  border-color: rgba(116, 129, 149, 0.22);
}

.ap-reaction-button:hover,
.ap-reaction-button:focus,
.ap-reaction-button.is-selected {
  border-color: rgba(0, 169, 184, 0.48);
  box-shadow: 0 14px 34px rgba(0, 169, 184, 0.16);
}

.ap-footer {
  background:
    linear-gradient(135deg, #080b10, #101722 58%, #25101b);
  border-top: 1px solid rgba(0, 169, 184, 0.16);
}

.ap-urgent-popup {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.ap-urgent-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.ap-urgent-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6, 9, 14, 0.88), rgba(20, 8, 16, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 46px);
  backdrop-filter: blur(12px);
}

.ap-urgent-dialog {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  width: min(860px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.ap-urgent-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #e01831, #ff9b2e, #00d6e6);
}

.ap-urgent-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.86);
  color: #ffffff;
}

.ap-urgent-close::before,
.ap-urgent-close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.ap-urgent-close::before {
  transform: rotate(45deg);
}

.ap-urgent-close::after {
  transform: rotate(-45deg);
}

.ap-urgent-media {
  display: block;
  min-height: 420px;
  background: #111722;
}

.ap-urgent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-urgent-content {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
}

.ap-urgent-label {
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  background: #e01831;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-urgent-content h2 {
  margin: 0;
  color: #e01831;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-urgent-content h3 {
  margin: 0;
  color: #090b10;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.02;
}

.ap-urgent-content p {
  margin: 0;
  color: #485261;
  font-size: 1.02rem;
  font-weight: 700;
}

.ap-urgent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #68717f;
  font-size: 0.86rem;
  font-weight: 800;
}

.ap-urgent-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 16px;
  background: linear-gradient(135deg, #e01831, #ff6c35);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(224, 24, 49, 0.24);
}

.ap-urgent-button:hover,
.ap-urgent-button:focus {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .ap-slider {
    min-height: 600px;
  }

  .ap-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .ap-container {
    width: min(100% - 24px, 1280px);
  }

  .ap-slide-content {
    left: 24px;
    right: 24px;
    bottom: 54px;
  }

  .ap-slide-content h1 {
    font-size: 2.55rem;
  }

  .ap-urgent-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }

  .ap-urgent-media {
    min-height: 240px;
  }

  .ap-urgent-content {
    padding: 24px;
  }

  .ap-urgent-content h3 {
    font-size: 1.85rem;
  }
}

@media (max-width: 520px) {
  .ap-slider {
    min-height: 470px;
  }

  .ap-slide-content h1 {
    font-size: 2rem;
  }

  .ap-slide-content p {
    display: none;
  }

  .ap-urgent-popup {
    padding: 12px;
  }

  .ap-urgent-content {
    padding: 20px;
  }
}

/* V9.2: portada mas compacta */
.ap-slider {
  min-height: 560px;
}

.ap-slide-content {
  bottom: 38px;
}

.ap-slide-content h1 {
  font-size: 3.45rem;
}

@media (max-width: 1080px) {
  .ap-slider {
    min-height: 500px;
  }
}

@media (max-width: 820px) {
  .ap-slider {
    min-height: 430px;
  }

  .ap-slide-content h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 520px) {
  .ap-slider {
    min-height: 380px;
  }

  .ap-slide-content {
    bottom: 44px;
  }
}

/* V9.3: header premium y menu con mas presencia */
.ap-site-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 248, 0.92)),
    repeating-linear-gradient(90deg, rgba(0, 169, 184, 0.055) 0 1px, transparent 1px 42px);
  border-bottom: 0;
  box-shadow: 0 24px 70px rgba(9, 11, 16, 0.13);
}

.ap-site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #e01831, #ff9b2e, #00d6e6, #101722);
}

.ap-site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 38px 0 54px;
  background:
    linear-gradient(115deg, transparent 0 72%, rgba(0, 169, 184, 0.12) 72% 73%, transparent 73% 100%),
    linear-gradient(155deg, transparent 0 18%, rgba(224, 24, 49, 0.10) 18% 18.8%, transparent 18.8% 100%);
  pointer-events: none;
}

.ap-site-header > * {
  position: relative;
  z-index: 1;
}

.ap-breaking {
  background:
    linear-gradient(90deg, #070a0f, #101722 44%, #31111d 74%, #e01831);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}

.ap-breaking-inner {
  min-height: 42px;
}

.ap-breaking-label {
  position: relative;
  gap: 7px;
  min-height: 27px;
  padding: 0 11px;
  background: #ffffff;
  border-radius: 999px;
  color: #be142a;
  box-shadow: 0 10px 24px rgba(224, 24, 49, 0.20);
}

.ap-breaking-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #e01831;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(224, 24, 49, 0.16);
}

.ap-masthead {
  grid-template-columns: minmax(290px, 1fr) minmax(300px, 520px) auto;
  gap: 22px;
  padding: 22px 0;
}

.ap-logo {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px 10px 10px;
  background:
    linear-gradient(135deg, #090d14, #141d29 56%, #172d36);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: #ffffff;
  box-shadow: 0 20px 52px rgba(9, 11, 16, 0.20);
}

.ap-logo:hover,
.ap-logo:focus {
  color: #ffffff;
}

.ap-logo-mark {
  width: 64px;
  height: 64px;
  background:
    linear-gradient(135deg, #e01831, #841126 54%, #00a9b8);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 36px rgba(224, 24, 49, 0.26);
}

.custom-logo {
  max-height: 82px;
}

.ap-logo-text strong {
  color: #ffffff;
  font-size: 2.18rem;
}

.ap-logo-text span {
  color: #b9d4dc;
}

.ap-search {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 169, 184, 0.20);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(9, 11, 16, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.ap-search input {
  padding-left: 18px;
  color: #101722;
  font-weight: 800;
}

.ap-search button {
  width: 50px;
  background: linear-gradient(135deg, #101722, #0d5260);
  color: #ffffff;
  border-left: 0;
}

.ap-search button::before {
  top: 15px;
  left: 15px;
}

.ap-search button::after {
  top: 30px;
  left: 28px;
}

.ap-actions {
  gap: 10px;
}

.ap-action-link {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(16, 166, 111, 0.24);
}

.ap-action-whatsapp {
  background:
    linear-gradient(135deg, #0fa66f, #087c72 58%, #101722);
}

.ap-nav {
  padding: 9px 0 11px;
  background:
    linear-gradient(90deg, #070a0f, #101722 46%, #182637);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ap-nav::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, transparent, rgba(0, 214, 230, 0.72), rgba(224, 24, 49, 0.54), transparent);
}

.ap-menu,
.ap-menu-list {
  min-height: 48px;
  gap: 8px;
  padding: 0;
}

.ap-menu {
  overflow-x: auto;
  scrollbar-width: thin;
}

.ap-menu-list {
  width: auto;
}

.ap-menu > a,
.ap-menu-list a {
  position: relative;
  min-height: 42px;
  padding: 0 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #f5f9fc;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ap-menu > a::before,
.ap-menu-list a::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #00d6e6;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 214, 230, 0.76);
  opacity: 0.72;
}

.ap-menu > a::after,
.ap-menu-list a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 30px;
  height: 2px;
  background: linear-gradient(90deg, #e01831, #00d6e6);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ap-menu > a:hover,
.ap-menu-list a:hover,
.ap-menu .current-menu-item > a,
.ap-menu .current_page_item > a {
  background: linear-gradient(135deg, #e01831, #a9132d 54%, #0d5260);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(224, 24, 49, 0.22);
}

.ap-menu > a:hover::after,
.ap-menu-list a:hover::after,
.ap-menu .current-menu-item > a::after,
.ap-menu .current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.ap-menu-toggle {
  background: #101722;
  border-color: rgba(0, 169, 184, 0.28);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(9, 11, 16, 0.18);
}

@media (max-width: 1080px) {
  .ap-masthead {
    grid-template-columns: 1fr auto;
  }

  .ap-logo {
    width: auto;
  }

  .ap-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .ap-site-header {
    overflow: visible;
  }

  .ap-logo {
    padding: 8px 10px 8px 8px;
    border-radius: 18px;
  }

  .ap-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .ap-logo-text strong {
    font-size: 1.58rem;
  }

  .ap-nav {
    padding: 8px 0;
  }

  .ap-menu,
  .ap-menu-list {
    gap: 7px;
    padding: 8px 0;
  }

  .ap-menu > a,
  .ap-menu-list a {
    min-height: 44px;
    border-bottom: 0;
    border-radius: 999px;
  }
}

@media (max-width: 520px) {
  .ap-breaking-label {
    min-height: 24px;
    padding: 0 8px;
  }

  .ap-logo-text span {
    font-size: 0.72rem;
  }

  .ap-search {
    min-height: 46px;
  }
}

/* V9.4: logo oficial sin deformacion y FX suave */
.ap-logo-image-link {
  display: inline-grid;
  position: relative;
  width: min(430px, 100%);
  min-width: 260px;
  min-height: 88px;
  align-items: center;
  padding: 12px 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 250, 0.88)),
    linear-gradient(135deg, rgba(224, 24, 49, 0.10), rgba(0, 169, 184, 0.10));
  border: 1px solid rgba(0, 169, 184, 0.20);
  border-radius: 22px;
  box-shadow: 0 20px 54px rgba(9, 11, 16, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  isolation: isolate;
}

.ap-logo-image-link::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -60% -20%;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.76) 48%, transparent 58%);
  opacity: 0.72;
  transform: translateX(-62%);
  animation: apLogoShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.ap-logo-image-link::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 14px;
  bottom: 10px;
  left: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224, 24, 49, 0.56), rgba(0, 214, 230, 0.70), transparent);
  border-radius: 999px;
  opacity: 0.82;
}

.ap-logo-fx {
  position: absolute;
  z-index: 0;
  inset: 10px;
  background:
    radial-gradient(circle at 18% 42%, rgba(224, 24, 49, 0.18), transparent 30%),
    radial-gradient(circle at 86% 56%, rgba(0, 169, 184, 0.20), transparent 32%);
  border-radius: 18px;
  filter: blur(2px);
  pointer-events: none;
}

.ap-logo-image-link .custom-logo,
.ap-theme-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 18px rgba(9, 11, 16, 0.16));
  animation: apLogoFloat 5.6s ease-in-out infinite;
}

.ap-logo-image-link:hover .custom-logo,
.ap-logo-image-link:focus .custom-logo {
  filter: drop-shadow(0 12px 22px rgba(224, 24, 49, 0.22));
}

@keyframes apLogoShine {
  0%,
  46% {
    transform: translateX(-62%);
  }

  72%,
  100% {
    transform: translateX(62%);
  }
}

@keyframes apLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-logo-image-link::before,
  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .ap-logo-image-link {
    width: min(390px, 100%);
  }

  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    max-width: 350px;
  }
}

@media (max-width: 820px) {
  .ap-logo-image-link {
    min-width: 0;
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    max-width: 300px;
    max-height: 64px;
  }
}

@media (max-width: 520px) {
  .ap-logo-image-link {
    width: min(260px, 100%);
    min-height: 62px;
    padding: 8px 10px;
  }

  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    max-width: 238px;
    max-height: 52px;
  }
}

/* V9.5: header profesional y logo limpio */
.ap-site-header {
  overflow: visible;
  background: #ffffff;
  border-bottom: 1px solid #dfe6ee;
  box-shadow: 0 12px 34px rgba(9, 11, 16, 0.10);
}

.ap-site-header::after {
  display: none;
}

.ap-site-header::before {
  height: 3px;
  background: linear-gradient(90deg, #e01831, #e01831 38%, #0d5260 38%, #0d5260 100%);
}

.ap-breaking {
  background: #09111d;
}

.ap-breaking-inner {
  min-height: 40px;
}

.ap-breaking-label {
  background: #e01831;
  color: #ffffff;
  box-shadow: none;
}

.ap-breaking-label::before {
  background: #ffffff;
  box-shadow: none;
}

.ap-masthead {
  grid-template-columns: minmax(240px, 370px) minmax(280px, 1fr) auto;
  gap: 28px;
  padding: 18px 0;
}

.ap-logo-image-link {
  display: inline-flex;
  width: min(360px, 100%);
  min-width: 220px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: auto;
}

.ap-logo-image-link::before,
.ap-logo-image-link::after,
.ap-logo-fx {
  display: none;
}

.ap-logo-image-link .custom-logo,
.ap-theme-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
  filter: none;
  animation: none;
}

.ap-logo-image-link:hover .custom-logo,
.ap-logo-image-link:focus .custom-logo {
  filter: none;
}

.ap-search {
  min-height: 48px;
  background: #f8fafc;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  box-shadow: none;
}

.ap-search input {
  padding-left: 16px;
  color: #172033;
  font-weight: 800;
}

.ap-search button {
  width: 54px;
  background: #0d5260;
  border-radius: 0 8px 8px 0;
}

.ap-action-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  box-shadow: none;
}

.ap-action-whatsapp {
  background: linear-gradient(135deg, #0b9369, #064a52);
}

.ap-nav {
  padding: 0;
  background: #0b1320;
  border-top: 1px solid #e6edf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ap-nav::before {
  display: none;
}

.ap-menu,
.ap-menu-list {
  min-height: 52px;
  gap: 0;
  padding: 0;
}

.ap-menu-list {
  width: 100%;
}

.ap-menu > a,
.ap-menu-list a {
  min-height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  color: #eef5fb;
  font-size: 0.9rem;
  box-shadow: none;
}

.ap-menu > a::before,
.ap-menu-list a::before {
  display: none;
}

.ap-menu > a::after,
.ap-menu-list a::after {
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: #e01831;
}

.ap-menu > a:hover,
.ap-menu-list a:hover,
.ap-menu .current-menu-item > a,
.ap-menu .current_page_item > a {
  background: #111d2e;
  color: #ffffff;
  box-shadow: inset 0 -3px 0 #e01831;
}

.ap-menu-toggle {
  background: #0b1320;
  border-color: #0b1320;
  border-radius: 8px;
}

.ap-ad-box {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px dashed #b7c5d4;
  border-radius: 8px;
}

.ap-ad-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-ad-box.has-image {
  color: #ffffff;
  border-style: solid;
}

.ap-ad-box.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 29, 0.58), rgba(9, 17, 29, 0.10));
}

.ap-ad-box span {
  position: relative;
  z-index: 1;
}

@media (max-width: 1080px) {
  .ap-masthead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ap-logo-image-link {
    width: min(340px, 100%);
  }

  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    max-width: 340px;
    max-height: 72px;
  }
}

@media (max-width: 820px) {
  .ap-masthead {
    gap: 14px;
  }

  .ap-logo-image-link {
    width: min(280px, 100%);
  }

  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    max-width: 280px;
    max-height: 58px;
  }

  .ap-nav {
    padding: 8px 0;
  }

  .ap-menu,
  .ap-menu-list {
    gap: 6px;
  }

  .ap-menu > a,
  .ap-menu-list a {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .ap-logo-image-link {
    width: min(226px, 100%);
  }

  .ap-logo-image-link .custom-logo,
  .ap-theme-logo {
    max-width: 226px;
    max-height: 48px;
  }
}

/* V9.6: eventos bajo slider y footer premium */
.ap-events-strip {
  margin: 22px 0 24px;
  padding: 18px;
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(215, 25, 42, 0.10), transparent 28%),
    linear-gradient(145deg, #07111e 0%, #0c1828 52%, #101827 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  border-right: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(5, 15, 28, 0.16);
}

.ap-events-head h2,
.ap-footer h2 {
  position: relative;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
}

.ap-events-head h2::after,
.ap-footer h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 8px;
  background: var(--ap-red);
  border-radius: 3px;
}

.ap-events-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ap-event-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-height: 92px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ap-event-date {
  align-self: start;
  overflow: hidden;
  min-height: 66px;
  color: #ffffff;
  text-align: center;
  background: #101624;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ap-event-date span,
.ap-event-date strong {
  display: block;
}

.ap-event-date span {
  padding: 5px 4px;
  font-size: 12px;
  font-weight: 800;
  background: var(--ap-red);
}

.ap-event-date strong {
  padding: 7px 4px 9px;
  font-size: 27px;
  line-height: 1;
}

.ap-event-body {
  min-width: 0;
}

.ap-event-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ap-event-body p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0;
  color: #b8c1ce;
  font-size: 12px;
  line-height: 1.25;
}

.ap-event-body .dashicons {
  width: 14px;
  height: 14px;
  color: #c8d2df;
  font-size: 14px;
}

.ap-events-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(360px, 100%);
  min-height: 48px;
  margin-top: 14px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ap-events-more:hover,
.ap-events-more:focus {
  color: #ffffff;
  background: rgba(215, 25, 42, 0.18);
  border-color: rgba(215, 25, 42, 0.55);
}

.ap-footer-premium {
  margin-top: 0;
  overflow: hidden;
  color: #dbe3ee;
  background: #07111e;
  border-top: 3px solid var(--ap-red);
}

.ap-footer-main {
  position: relative;
  padding: 34px 0 22px;
  background:
    linear-gradient(135deg, rgba(215, 25, 42, 0.10), transparent 23%),
    linear-gradient(155deg, #081422 0%, #0b1624 48%, #07111e 100%);
}

.ap-footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
}

.ap-footer-premium-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.72fr 1.08fr 1.12fr 0.95fr;
  gap: 26px;
}

.ap-footer-brand,
.ap-footer-column {
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-footer-utilities {
  padding-right: 0;
  border-right: 0;
}

.ap-footer-logo {
  display: inline-flex;
  width: min(315px, 100%);
  margin-bottom: 10px;
}

.ap-footer-logo img,
.ap-footer-logo .custom-logo {
  width: 100%;
  max-width: 315px;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}

.ap-footer-tagline {
  margin: 0 0 20px;
  color: #cad4df;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ap-footer-description {
  margin: 0 0 20px;
  color: #d6dee9;
  font-size: 15px;
  line-height: 1.55;
}

.ap-footer-cta-list {
  display: grid;
  gap: 9px;
}

.ap-footer-cta {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.ap-footer-cta:hover,
.ap-footer-cta:focus {
  color: #ffffff;
  filter: brightness(1.08);
}

.ap-footer-cta .dashicons {
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  width: 30px;
  height: 30px;
  font-size: 30px;
}

.ap-footer-cta strong,
.ap-footer-cta small {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

.ap-footer-cta strong {
  font-size: 14px;
}

.ap-footer-cta small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.ap-footer-cta-whatsapp {
  background: linear-gradient(135deg, #119455, #08743f);
}

.ap-footer-cta-send {
  background: linear-gradient(135deg, #183b83, #11265e);
}

.ap-footer-cta-ad {
  background: linear-gradient(135deg, #d7192a, #9d101e);
}

.ap-footer-menu-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-footer-menu-list a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #c8d1de;
  font-size: 15px;
}

.ap-footer-menu-list a:hover,
.ap-footer-menu-list a:focus {
  color: #ffffff;
}

.ap-footer-menu-list .dashicons {
  width: 20px;
  height: 20px;
  color: #95a2b2;
  font-size: 20px;
}

.ap-footer-menu-list:not(.ap-footer-menu-fallback) a::before {
  content: "";
  width: 7px;
  height: 7px;
  background: rgba(215, 25, 42, 0.86);
  border-radius: 7px;
}

.ap-footer-news-list {
  display: grid;
  gap: 14px;
}

.ap-footer-news-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
}

.ap-footer-news-thumb {
  overflow: hidden;
  aspect-ratio: 1.35 / 1;
  background: #111927;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
}

.ap-footer-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-footer-news-item h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ap-footer-news-item p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #aab5c3;
  font-size: 12px;
}

.ap-footer-news-item .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

.ap-footer-dot {
  color: rgba(255, 255, 255, 0.28);
}

.ap-footer-outline-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 14px;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(215, 25, 42, 0.78);
  border-radius: 8px;
}

.ap-footer-outline-link:hover,
.ap-footer-outline-link:focus {
  color: #ffffff;
  background: rgba(215, 25, 42, 0.16);
}

.ap-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.ap-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.ap-social-button:hover,
.ap-social-button:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

.ap-social-facebook {
  background: #1877f2;
}

.ap-social-instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 48%, #6228d7);
}

.ap-social-tiktok,
.ap-social-x {
  background: #05070b;
}

.ap-social-youtube {
  background: #ff0000;
}

.ap-social-whatsapp {
  background: #18a957;
}

.ap-footer-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
  padding: 17px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.ap-footer-channel strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
}

.ap-footer-channel p {
  margin: 0;
  color: #b4bfcc;
  font-size: 13px;
  line-height: 1.35;
}

.ap-footer-channel img,
.ap-footer-qr-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 4px;
}

.ap-footer-channel img {
  object-fit: cover;
  background: #ffffff;
}

.ap-footer-qr-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a1320;
  font-size: 20px;
  font-weight: 900;
  background:
    linear-gradient(90deg, #0a1320 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#0a1320 10px, transparent 10px) 0 0 / 20px 20px,
    #ffffff;
  border: 6px solid #ffffff;
}

.ap-footer-newsletter {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
}

.ap-footer-newsletter label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ap-footer-newsletter p {
  margin: 8px 0 12px;
  color: #b4bfcc;
  font-size: 13px;
}

.ap-footer-newsletter div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  overflow: hidden;
  min-height: 42px;
  background: #0b1421;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ap-footer-newsletter input {
  min-width: 0;
  padding: 0 12px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.ap-footer-newsletter button {
  color: #ffffff;
  background: var(--ap-red);
  border: 0;
}

.ap-footer-utilities ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-footer-utilities li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 39px;
  color: #cbd4df;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ap-footer-utilities strong {
  color: #ffffff;
}

.ap-footer-utilities a {
  color: #ff3448;
  font-weight: 900;
}

.ap-footer-strip {
  color: #dce4ef;
  background: #07101b;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ap-footer-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.05fr;
  gap: 22px;
  align-items: center;
  min-height: 86px;
}

.ap-footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.ap-footer-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-footer-stat:first-child {
  padding-left: 0;
}

.ap-footer-stat .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: #ffcf35;
  font-size: 20px;
  background: rgba(255, 207, 53, 0.08);
  border: 2px solid #ffcf35;
  border-radius: 8px;
}

.ap-stat-dot {
  width: 12px;
  height: 12px;
  background: #1dbb64;
  border-radius: 12px;
  box-shadow: 0 0 0 6px rgba(29, 187, 100, 0.10);
}

.ap-footer-stat p {
  margin: 0;
  color: #bec8d5;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.ap-footer-stat strong {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.ap-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.ap-footer-legal a {
  padding: 4px 16px;
  color: #c5ceda;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.20);
}

.ap-footer-legal a:last-child {
  border-right: 0;
}

.ap-footer-legal a:hover,
.ap-footer-legal a:focus {
  color: #ffffff;
}

.ap-footer-credit {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #c7d0dc;
  font-size: 13px;
}

.ap-footer-credit strong {
  color: #ffffff;
}

.ap-footer-heart {
  color: var(--ap-red);
  font-size: 17px;
}

@media (max-width: 1180px) {
  .ap-footer-premium-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .ap-footer-social {
    border-right: 0;
  }

  .ap-footer-utilities {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: 0;
  }

  .ap-footer-utilities ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 16px;
  }

  .ap-footer-strip-grid {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .ap-footer-credit {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .ap-events-row {
    grid-template-columns: 1fr;
  }

  .ap-footer-premium-grid {
    grid-template-columns: 1fr;
  }

  .ap-footer-brand,
  .ap-footer-column {
    padding-right: 0;
    padding-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ap-footer-utilities {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ap-footer-utilities ul {
    grid-template-columns: 1fr;
  }

  .ap-footer-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ap-footer-stat {
    min-height: 54px;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ap-footer-stat:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .ap-events-strip {
    padding: 14px;
  }

  .ap-event-card {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 10px;
  }

  .ap-footer-main {
    padding-top: 28px;
  }

  .ap-footer-news-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .ap-footer-channel {
    grid-template-columns: 1fr;
  }

  .ap-footer-strip-grid {
    min-height: 0;
  }

  .ap-footer-legal {
    display: grid;
    justify-content: stretch;
    text-align: center;
  }

  .ap-footer-legal a {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Ajustes solicitados: eventos claros + footer integrado al tema */
.ap-events-strip {
  color: var(--ap-ink, #101827);
  background:
    linear-gradient(135deg, rgba(215, 25, 42, 0.055), transparent 34%),
    #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-left: 5px solid var(--ap-red, #d7192a);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}
.ap-events-head h2 { color: var(--ap-ink, #101827); }
.ap-event-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}
.ap-event-date {
  color: var(--ap-ink, #101827);
  background: #f5f7fb;
  border: 1px solid rgba(17, 24, 39, 0.10);
}
.ap-event-date span { color: #ffffff; background: var(--ap-red, #d7192a); }
.ap-event-body h3, .ap-event-body h3 a { color: var(--ap-ink, #101827); }
.ap-event-body p { color: #5f6b7a; }
.ap-event-body .dashicons { color: var(--ap-red, #d7192a); }
.ap-events-more {
  color: var(--ap-red, #d7192a);
  background: #ffffff;
  border: 1px solid rgba(215, 25, 42, 0.28);
  box-shadow: 0 8px 18px rgba(215, 25, 42, 0.08);
}
.ap-events-more:hover,
.ap-events-more:focus {
  color: #ffffff;
  background: var(--ap-red, #d7192a);
  border-color: var(--ap-red, #d7192a);
}

.ap-footer-premium {
  color: #303846;
  background: #f5f7fb;
  border-top: 4px solid var(--ap-red, #d7192a);
}
.ap-footer-main {
  padding: 38px 0 26px;
  background:
    linear-gradient(135deg, rgba(215, 25, 42, 0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}
.ap-footer-main::before { display: none; }
.ap-footer-premium-grid {
  grid-template-columns: 1.28fr 0.82fr 1.1fr 1.08fr 0.95fr;
  gap: 20px;
}
.ap-footer-brand,
.ap-footer-column {
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}
.ap-footer h2 { color: var(--ap-ink, #101827); }
.ap-footer h2::after { background: var(--ap-red, #d7192a); }
.ap-footer-tagline { color: var(--ap-red, #d7192a); }
.ap-footer-description,
.ap-footer-menu-list a,
.ap-footer-news-item p,
.ap-footer-channel p,
.ap-footer-utilities li { color: #5f6b7a; }
.ap-footer-menu-list a:hover,
.ap-footer-menu-list a:focus,
.ap-footer-news-item h3,
.ap-footer-news-item h3 a,
.ap-footer-channel strong,
.ap-footer-utilities strong { color: var(--ap-ink, #101827); }
.ap-footer-menu-list .dashicons,
.ap-footer-menu-list:not(.ap-footer-menu-fallback) a::before { color: var(--ap-red, #d7192a); background: var(--ap-red, #d7192a); }
.ap-footer-news-thumb { background: #eef2f7; border-color: rgba(17, 24, 39, 0.08); }
.ap-footer-outline-link {
  color: var(--ap-red, #d7192a);
  border-color: rgba(215, 25, 42, 0.34);
}
.ap-footer-outline-link:hover,
.ap-footer-outline-link:focus { color: #ffffff; background: var(--ap-red, #d7192a); }
.ap-footer-channel {
  padding: 14px;
  background: #f7f9fd;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
}
.ap-footer-newsletter { display: none !important; }
.ap-footer-utilities li { border-bottom-color: rgba(17, 24, 39, 0.08); }
.ap-footer-utilities a { color: var(--ap-red, #d7192a); }
.ap-footer-strip {
  color: #303846;
  background: #ffffff;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}
.ap-footer-strip-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: auto;
  padding: 18px 0;
}
.ap-footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ap-footer-stat {
  min-height: 72px;
  padding: 12px 14px;
  background: #f6f8fc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
}
.ap-footer-stat:first-child { padding-left: 14px; }
.ap-footer-stat p { color: #5f6b7a; }
.ap-footer-stat strong { color: var(--ap-ink, #101827); font-weight: 800; }
.ap-footer-legal { justify-content: center; gap: 10px; }
.ap-footer-legal a {
  padding: 7px 12px;
  color: #5f6b7a;
  background: #f6f8fc;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
}
.ap-footer-credit {
  justify-items: center;
  text-align: center;
  color: #5f6b7a;
}
.ap-footer-credit strong { color: var(--ap-ink, #101827); }

@media (max-width: 1180px) {
  .ap-footer-premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-footer-utilities { grid-column: auto; }
}
@media (max-width: 860px) {
  .ap-footer-premium-grid,
  .ap-footer-stats { grid-template-columns: 1fr; }
  .ap-footer-brand,
  .ap-footer-column {
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
  }
}

/* Ajuste solicitado: barra informativa integrada al template + footer mas separado */
.ap-info-bar {
  position: relative;
  z-index: 20;
  color: #1f2937;
  background:
    linear-gradient(90deg, rgba(215, 25, 42, 0.10), rgba(255,255,255,0) 22%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.055);
}

.ap-info-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ap-red), #ff7a45);
}

.ap-info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding-top: 9px;
  padding-bottom: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ap-info-label {
  display: none !important;
}

.ap-info-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ap-info-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 25, 42, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.ap-info-pill strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.ap-info-pill small {
  position: relative;
  margin-left: 3px;
  padding-left: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.ap-info-pill small::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(100, 116, 139, 0.8);
}

.ap-info-pill .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--ap-red), #ff6948);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(215, 25, 42, 0.22);
}

.ap-info-pharmacy {
  padding: 7px 15px 7px 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
  border-color: rgba(215, 25, 42, 0.18);
}

.ap-info-pharmacy img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06);
}

.ap-pharmacy-prefix {
  color: #991b1b;
  font-weight: 950;
}

.ap-info-emergency {
  color: #7f1d1d;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  border-color: rgba(215, 25, 42, 0.20);
}

.ap-footer-premium {
  background: #162235;
  border-top-color: rgba(215, 25, 42, 0.85);
}

.ap-footer-main {
  background:
    linear-gradient(135deg, rgba(215, 25, 42, 0.08), transparent 24%),
    linear-gradient(155deg, #202d41 0%, #172437 48%, #132033 100%);
}

.ap-footer-brand,
.ap-footer-column {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.13);
}

.ap-footer-strip {
  background: #101a2a;
}

@media (max-width: 860px) {
  .ap-info-bar-inner {
    align-items: stretch;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ap-info-pill {
    min-height: 44px;
  }
}


/* Ajuste final: barra tipo ultimo minuto sin emergencias + footer rojo oscuro */
.ap-info-bar {
  position: relative;
  z-index: 20;
  color: #ffffff;
  background: linear-gradient(90deg, #8f111d 0%, #c8192f 44%, #7f0f1a 100%) !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow: 0 10px 24px rgba(127, 15, 26, 0.22) !important;
  overflow: hidden;
}
.ap-info-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0 !important;
  background: transparent !important;
}
.ap-info-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), transparent 22%, rgba(255,255,255,0.08));
  pointer-events: none;
}
.ap-info-bar-inner {
  position: relative;
  z-index: 2;
  min-height: 46px !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.ap-info-bar-inner::before {
  content: "SERVICIO LOCAL";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  color: #9f1239;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(0,0,0,.12);
}
.ap-info-pill {
  min-height: 32px !important;
  padding: 5px 11px !important;
  color: rgba(255,255,255,.92) !important;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: none !important;
  border-radius: 999px !important;
}
.ap-info-pill:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.34) !important;
}
.ap-info-pill span,
.ap-info-pill small,
.ap-info-pill strong {
  color: #ffffff !important;
}
.ap-info-pill strong {
  font-size: 12.5px !important;
  font-weight: 950 !important;
}
.ap-info-pill small {
  opacity: .86;
}
.ap-info-pill small::before {
  color: rgba(255,255,255,.82) !important;
}
.ap-info-pill .dashicons {
  width: 24px !important;
  height: 24px !important;
  color: #a30f1d !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.ap-info-pharmacy {
  flex: 1 1 auto;
  max-width: 620px;
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.30) !important;
}
.ap-info-pharmacy img {
  width: 26px !important;
  height: 26px !important;
  border: 2px solid rgba(255,255,255,.75) !important;
  background: #ffffff !important;
}
.ap-pharmacy-prefix {
  color: #ffffff !important;
  font-weight: 950 !important;
}
.ap-info-emergency {
  display: none !important;
}
.ap-footer-premium,
.ap-footer-main {
  color: #ffffff !important;
  background: linear-gradient(155deg, #7f1018 0%, #9f1420 48%, #5f0b12 100%) !important;
  border-top: 4px solid #d7192a !important;
}
.ap-footer-brand,
.ap-footer-column {
  color: #ffffff !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(255,255,255,.17) !important;
}
.ap-footer-premium h1,
.ap-footer-premium h2,
.ap-footer-premium h3,
.ap-footer-premium h4,
.ap-footer-premium p,
.ap-footer-premium li,
.ap-footer-premium span,
.ap-footer-premium a,
.ap-footer-main h1,
.ap-footer-main h2,
.ap-footer-main h3,
.ap-footer-main h4,
.ap-footer-main p,
.ap-footer-main li,
.ap-footer-main span,
.ap-footer-main a {
  color: #ffffff !important;
}
.ap-footer-premium a:hover,
.ap-footer-main a:hover {
  color: #ffd6d6 !important;
}
.ap-footer-strip {
  color: #ffffff !important;
  background: #4c070d !important;
  border-top: 1px solid rgba(255,255,255,.18) !important;
}
.ap-footer-strip * {
  color: #ffffff !important;
}
@media (max-width: 860px) {
  .ap-info-bar-inner::before { display: none; }
  .ap-info-bar-inner { justify-content: flex-start !important; }
  .ap-info-pharmacy { min-width: max-content; }
}


/* Ajuste final solicitado: menu/footer #001737 + footer rediseñado y visitas reales */
.ap-site-header,
.ap-masthead,
.ap-nav {
  background: #001737 !important;
}
.ap-site-header {
  box-shadow: 0 18px 52px rgba(0, 23, 55, .28) !important;
}
.ap-site-header::before {
  background: linear-gradient(90deg, #00d6e6, #ffffff 36%, #ffcc3d 68%, #d7192a) !important;
}
.ap-site-header::after {
  opacity: .18 !important;
}
.ap-masthead {
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}
.ap-search input {
  color: #ffffff !important;
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.22) !important;
}
.ap-search input::placeholder { color: rgba(255,255,255,.72) !important; }
.ap-action-link,
.ap-menu-list a {
  color: #ffffff !important;
}
.ap-menu-list a:hover,
.ap-menu-list a:focus,
.ap-menu-list .current-menu-item > a,
.ap-menu-list .current_page_item > a {
  color: #ffcc3d !important;
}
.ap-menu-toggle span,
.ap-menu-toggle span::before,
.ap-menu-toggle span::after {
  background: #ffffff !important;
}

.ap-footer-premium {
  color: #eaf6ff !important;
  background: #001737 !important;
  border-top: 4px solid #00d6e6 !important;
}
.ap-footer-main {
  padding: 42px 0 30px !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(0,214,230,.16), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(255,204,61,.12), transparent 26%),
    linear-gradient(145deg, #001737 0%, #00214f 52%, #00112b 100%) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}
.ap-footer-main::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px) !important;
  background-size: 38px 38px !important;
  opacity: .35 !important;
}
.ap-footer-premium-grid {
  grid-template-columns: 1.35fr .85fr 1.15fr 1fr .9fr !important;
  gap: 18px !important;
}
.ap-footer-brand,
.ap-footer-column {
  padding: 20px !important;
  color: #eaf6ff !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.16) !important;
}
.ap-footer-brand { background: rgba(0,214,230,.075) !important; }
.ap-footer-premium h2,
.ap-footer-main h2 {
  position: relative;
  margin-bottom: 16px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ap-footer-premium h2::after,
.ap-footer-main h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 9px;
  background: linear-gradient(90deg, #00d6e6, #ffcc3d);
  border-radius: 999px;
}
.ap-footer-tagline,
.ap-footer-description,
.ap-footer-channel p,
.ap-footer-news-item p,
.ap-footer-utilities li,
.ap-footer-menu-list a,
.ap-footer-premium p,
.ap-footer-main p {
  color: #cfe3f5 !important;
}
.ap-footer-premium a,
.ap-footer-main a,
.ap-footer-news-item h3 a {
  color: #ffffff !important;
}
.ap-footer-premium a:hover,
.ap-footer-main a:hover {
  color: #ffcc3d !important;
}
.ap-footer-menu-list:not(.ap-footer-menu-fallback) a::before {
  background: #00d6e6 !important;
  box-shadow: 0 0 0 4px rgba(0,214,230,.12);
}
.ap-footer-cta {
  border-radius: 14px !important;
  border-color: rgba(255,255,255,.16) !important;
}
.ap-footer-cta-whatsapp { background: linear-gradient(135deg, #17a766, #0c7547) !important; }
.ap-footer-cta-send { background: linear-gradient(135deg, #006dd6, #00419a) !important; }
.ap-footer-cta-ad { background: linear-gradient(135deg, #ffcc3d, #d7192a) !important; }
.ap-footer-news-thumb,
.ap-social-button,
.ap-footer-outline-link { border-radius: 14px !important; }
.ap-footer-outline-link {
  border-color: rgba(0,214,230,.65) !important;
  background: rgba(0,214,230,.08) !important;
}
.ap-footer-utilities strong,
.ap-footer-utilities a { color: #ffcc3d !important; }
.ap-footer-strip {
  color: #ffffff !important;
  background: #000f26 !important;
  border-top: 1px solid rgba(0,214,230,.24) !important;
}
.ap-footer-strip-grid {
  grid-template-columns: 1.35fr 1fr 1.05fr !important;
  min-height: 104px !important;
  gap: 18px !important;
}
.ap-footer-stats {
  gap: 10px !important;
}
.ap-footer-stat {
  min-height: 62px !important;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 16px !important;
}
.ap-footer-stat:first-child { padding-left: 14px !important; }
.ap-footer-stat .dashicons,
.ap-stat-dot {
  color: #001737 !important;
  background: #ffcc3d !important;
  border-color: #ffcc3d !important;
}
.ap-footer-stat p {
  color: #bcd7ef !important;
  font-size: 11px !important;
}
.ap-footer-stat strong {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}
.ap-footer-legal a {
  color: #cfe3f5 !important;
  border-color: rgba(255,255,255,.16) !important;
}
.ap-footer-credit {
  color: #cfe3f5 !important;
}
.ap-footer-heart { color: #ffcc3d !important; }

@media (max-width: 1100px) {
  .ap-footer-premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .ap-footer-premium-grid,
  .ap-footer-strip-grid,
  .ap-footer-stats { grid-template-columns: 1fr !important; }
  .ap-footer-brand,
  .ap-footer-column { padding: 18px !important; }
}

/* Footer profesional plano solicitado: sin degradados, sin tarjetas ni bloques */
.ap-site-header,
.ap-main-header,
.ap-header-nav,
.ap-topbar,
.ap-main-menu-wrap {
  background: #001737 !important;
}

.ap-footer-premium {
  margin-top: 0 !important;
  color: #d8e6ff !important;
  background: #001737 !important;
  border-top: 4px solid #e21b2d !important;
}

.ap-footer-main {
  padding: 46px 0 32px !important;
  background: #001737 !important;
}

.ap-footer-main::before,
.ap-footer-main::after {
  display: none !important;
}

.ap-footer-premium-grid {
  display: grid !important;
  grid-template-columns: 1.35fr .78fr 1.05fr 1.05fr .92fr !important;
  gap: 30px !important;
  align-items: start !important;
}

.ap-footer-brand,
.ap-footer-column {
  padding: 0 24px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ap-footer-utilities {
  padding-right: 0 !important;
  border-right: 0 !important;
}

.ap-footer-logo {
  margin-bottom: 14px !important;
}

.ap-footer-logo img,
.ap-footer-logo .custom-logo {
  max-width: 300px !important;
  max-height: 74px !important;
  object-fit: contain !important;
}

.ap-footer h2 {
  margin: 0 0 18px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.ap-footer h2::after {
  display: block !important;
  width: 34px !important;
  height: 3px !important;
  margin-top: 10px !important;
  background: #27d7ff !important;
  border-radius: 999px !important;
}

.ap-footer-tagline {
  margin-bottom: 12px !important;
  color: #27d7ff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
}

.ap-footer-description,
.ap-footer p,
.ap-footer-menu-list a,
.ap-footer-news-item p,
.ap-footer-channel p,
.ap-footer-utilities li,
.ap-footer-credit,
.ap-footer-legal a {
  color: #c3d4ee !important;
}

.ap-footer a:hover,
.ap-footer a:focus,
.ap-footer-menu-list a:hover,
.ap-footer-menu-list a:focus,
.ap-footer-news-item h3 a:hover,
.ap-footer-legal a:hover,
.ap-footer-legal a:focus {
  color: #ffffff !important;
}

.ap-footer-menu-list {
  gap: 9px !important;
}

.ap-footer-menu-list a {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.ap-footer-menu-list .dashicons {
  color: #27d7ff !important;
}

.ap-footer-menu-list:not(.ap-footer-menu-fallback) a::before {
  width: 6px !important;
  height: 6px !important;
  background: #27d7ff !important;
  opacity: .9 !important;
}

.ap-footer-cta-list {
  gap: 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
}

.ap-footer-cta {
  min-height: 58px !important;
  padding: 12px 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ap-footer-cta .dashicons {
  color: #27d7ff !important;
}

.ap-footer-cta strong {
  color: #ffffff !important;
}

.ap-footer-cta small {
  color: #b7c9e5 !important;
}

.ap-footer-news-list {
  gap: 13px !important;
}

.ap-footer-news-item {
  grid-template-columns: 84px minmax(0,1fr) !important;
  padding-bottom: 13px !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.ap-footer-news-item:last-child {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.ap-footer-news-thumb {
  background: rgba(255,255,255,.08) !important;
  border: 0 !important;
  border-radius: 8px !important;
}

.ap-footer-news-item h3,
.ap-footer-news-item h3 a,
.ap-footer-channel strong,
.ap-footer-utilities strong,
.ap-footer-credit strong {
  color: #ffffff !important;
}

.ap-footer-outline-link {
  justify-content: flex-start !important;
  min-height: auto !important;
  margin-top: 16px !important;
  padding: 0 !important;
  color: #27d7ff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ap-social-grid {
  gap: 9px !important;
  margin-bottom: 20px !important;
}

.ap-social-button {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.ap-footer-channel {
  grid-template-columns: minmax(0,1fr) 78px !important;
  gap: 14px !important;
  padding: 18px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
}

.ap-footer-channel img,
.ap-footer-qr-placeholder {
  width: 78px !important;
  height: 78px !important;
  border-radius: 8px !important;
}

.ap-footer-utilities ul {
  border-top: 1px solid rgba(255,255,255,.12) !important;
}

.ap-footer-utilities li {
  min-height: 42px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.ap-footer-utilities a {
  color: #27d7ff !important;
}

.ap-footer-strip {
  color: #c3d4ee !important;
  background: #000f27 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
}

.ap-footer-strip-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  min-height: auto !important;
  padding: 18px 0 !important;
}

.ap-footer-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  order: 1 !important;
}

.ap-footer-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.ap-footer-stat:first-child {
  padding-left: 0 !important;
}

.ap-footer-stat .dashicons {
  width: auto !important;
  height: auto !important;
  color: #27d7ff !important;
  font-size: 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.ap-stat-dot {
  width: 9px !important;
  height: 9px !important;
  background: #20e27a !important;
  box-shadow: 0 0 0 5px rgba(32,226,122,.13) !important;
}

.ap-footer-stat p {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #c3d4ee !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.ap-footer-stat strong {
  display: inline !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.ap-footer-legal {
  justify-content: center !important;
  gap: 18px !important;
  order: 2 !important;
}

.ap-footer-legal a {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #c3d4ee !important;
  font-size: 13px !important;
}

.ap-footer-credit {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px 18px !important;
  order: 3 !important;
  color: #a9bddb !important;
  text-align: center !important;
}

.ap-footer-heart {
  color: #e21b2d !important;
}

@media (max-width: 1180px) {
  .ap-footer-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .ap-footer-brand,
  .ap-footer-column {
    border-right: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 860px) {
  .ap-footer-premium-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .ap-footer-brand,
  .ap-footer-column {
    padding-bottom: 26px !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
  }
  .ap-footer-utilities {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }
  .ap-footer-stats,
  .ap-footer-credit,
  .ap-footer-legal {
    justify-content: flex-start !important;
  }
}

@media (max-width: 560px) {
  .ap-footer-channel {
    grid-template-columns: 1fr !important;
  }
  .ap-footer-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .ap-footer-stat p {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .ap-footer-legal {
    display: grid !important;
    gap: 10px !important;
  }
}

/* Ajustes solicitados: barra farmacia/UF/dolar, footer profesional, popup y bloques portada */
.ap-info-bar-clean {
  background: #001737 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(0, 23, 55, .18);
}
.ap-info-bar-clean .ap-info-bar-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
.ap-info-bar-clean .ap-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 14px;
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.1;
}
.ap-info-bar-clean .ap-info-pill span,
.ap-info-bar-clean .ap-info-pill small {
  color: rgba(255,255,255,.82) !important;
}
.ap-info-bar-clean .ap-info-pill strong {
  color: #fff !important;
  font-weight: 800;
}
.ap-info-bar-clean .ap-info-pharmacy {
  background: rgba(255,255,255,.12) !important;
}
.ap-info-bar-clean .ap-info-pharmacy img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.ap-info-bar-clean .ap-pharmacy-prefix {
  font-weight: 700;
}
.ap-footer-premium {
  background: #001737 !important;
  color: #fff !important;
}
.ap-footer-premium a,
.ap-footer-premium p,
.ap-footer-premium li,
.ap-footer-premium span,
.ap-footer-premium small {
  color: rgba(255,255,255,.82) !important;
}
.ap-footer-premium h2,
.ap-footer-premium h3,
.ap-footer-premium strong,
.ap-footer-premium .ap-footer-tagline {
  color: #fff !important;
}
.ap-footer-premium .ap-footer-main {
  background: transparent !important;
}
.ap-footer-premium-grid {
  align-items: stretch !important;
  grid-template-columns: 1.25fr 1fr 1.25fr 1fr 1.05fr !important;
  gap: 30px !important;
}
.ap-footer-premium .ap-footer-column,
.ap-footer-premium .ap-footer-brand {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 100%;
}
.ap-footer-premium .ap-footer-column h2,
.ap-footer-premium .ap-footer-brand .ap-footer-tagline {
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.ap-footer-cta-list {
  display: grid;
  gap: 10px;
}
.ap-footer-premium .ap-footer-cta,
.ap-footer-premium .ap-social-button,
.ap-footer-premium .ap-footer-channel,
.ap-footer-premium .ap-footer-news-item,
.ap-footer-datebox .ap-footer-clock,
.ap-footer-datebox .ap-footer-calendar {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  box-shadow: none !important;
}
.ap-footer-premium .ap-footer-cta:hover,
.ap-footer-premium .ap-social-button:hover,
.ap-footer-premium .ap-footer-news-item:hover {
  background: rgba(255,255,255,.10) !important;
  transform: translateY(-1px);
}
.ap-footer-datebox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap-footer-clock {
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}
.ap-footer-clock strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.03em;
}
.ap-footer-clock span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.ap-footer-calendar {
  border-radius: 18px;
  padding: 12px;
  overflow: hidden;
}
.ap-footer-calendar table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 12px;
}
.ap-footer-calendar caption {
  color: #fff;
  font-weight: 800;
  padding: 0 0 8px;
}
.ap-footer-calendar th,
.ap-footer-calendar td {
  padding: 4px;
  text-align: center;
  color: rgba(255,255,255,.8);
  border: 0;
}
.ap-footer-calendar a {
  color: #7dd3fc !important;
  font-weight: 800;
}
.ap-footer-strip {
  background: rgba(0,0,0,.18) !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
}
.ap-footer-strip-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.ap-footer-stats-minimal .ap-footer-stat {
  min-width: 0 !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.ap-footer-stats-minimal .ap-footer-stat p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.ap-footer-stats-minimal .ap-footer-stat strong {
  font-size: 14px !important;
}
.ap-card-grid {
  gap: 18px !important;
}
.ap-card,
.ap-card-compact {
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10) !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ap-card:hover,
.ap-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14) !important;
}
.ap-card-media img {
  transition: transform .25s ease;
}
.ap-card:hover .ap-card-media img,
.ap-card-compact:hover .ap-card-media img {
  transform: scale(1.04);
}
.ap-card-body {
  padding: 16px !important;
}
.ap-card-body h3 {
  line-height: 1.25;
}
.ap-urgent-popup.is-visible {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.ap-urgent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1180px) {
  .ap-footer-premium-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 720px) {
  .ap-info-bar-clean .ap-info-bar-inner { justify-content: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .ap-info-bar-clean .ap-info-pill { width: 100%; max-width: 360px; }
  .ap-footer-premium-grid { grid-template-columns: 1fr !important; }
  .ap-footer-strip-grid { grid-template-columns: 1fr; text-align: center; }
  .ap-footer-stats-minimal { justify-content: center; }
}
