/* ESTILOS EDITORIALES PRO - NOTICIAS APYT */
:root {
  --apyt-orange: #ff6600;
  --apyt-black: #111111;
  --apyt-dark-bg: #141414;
  --apyt-gray-text: #444444;
  --apyt-gray-muted: #737373;
  --apyt-border: #e2e2e2;
  --apyt-border-dark: #292929;
  --apyt-bg-alt: #f8f8f8;
  --font-serif: "Merriweather", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.apyt-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 1. TOPBAR FUNCIONAL (CLIMA, FOREX, SUSCRIPCIÓN) */
.apyt-topbar-functional {
  background: #fafafa;
  border-bottom: 1px solid var(--apyt-border);
  padding: 6px 0;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--apyt-gray-muted);
}
.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-left-cluster, .topbar-right-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-beacon {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #e53935;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}
.v-divider { color: #d0d0d0; }

/* WIDGET CLIMA */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 500;
  color: #333;
}
.weather-temp { font-weight: 700; color: #111; }

/* WIDGET FOREX */
.forex-widget {
  display: flex;
  gap: 8px;
}
.forex-pill {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  color: #555;
}
.forex-pill strong { color: #111; }

/* BOTÓN SUSCRIPCIÓN TOPBAR */
.btn-sub-trigger {
  background: var(--apyt-orange);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-sub-trigger:hover { opacity: 0.9; }

/* 2. LOGO OFICIAL INTACTO A LA IZQUIERDA */
.apyt-main-branding {
  background: #ffffff;
  padding: 16px 0;
}
.branding-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.apyt-logo-anchor {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.apyt-logo-image {
  height: 68px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

/* BUSCADOR */
.editorial-search-bar {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border-radius: 4px;
  padding: 6px 12px;
}
.search-input-field {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 220px;
}
.search-btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #555;
  display: flex;
}

/* 3. NAVEGACIÓN PRINCIPAL */
.apyt-main-nav {
  background: #ffffff;
  border-top: 1px solid var(--apyt-border);
  border-bottom: 2px solid var(--apyt-black);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-track {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-track::-webkit-scrollbar { display: none; }
.nav-link {
  text-decoration: none;
  color: var(--apyt-black);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.4px;
}
.nav-link:hover, .nav-link.active { color: var(--apyt-orange); }
.nav-link-about { margin-left: auto; }
.nav-link-about a {
  color: var(--apyt-orange) !important;
  border-bottom: 2px solid var(--apyt-orange);
  padding-bottom: 2px;
}

/* 4. DESTACADOS DE LA SEMANA (ESTILO EL PAÍS) */
.apyt-homepage-body { padding: 28px 0 50px; }
.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.spotlight-bar {
  width: 4px;
  height: 20px;
  background-color: var(--apyt-orange);
  display: inline-block;
}
.section-headline {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}
.editorial-asymmetric-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  border-bottom: 1px solid var(--apyt-border);
  padding-bottom: 28px;
  margin-bottom: 24px;
}
.hero-thumb-link {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s;
}
.hero-thumb-link:hover .hero-img { transform: scale(1.02); }
.section-kicker {
  color: var(--apyt-orange);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  margin: 12px 0 6px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.18;
  margin: 0 0 10px;
}
.hero-title a, .sub-lead-headline a, .card-article-title a {
  color: var(--apyt-black);
  text-decoration: none;
}
.hero-title a:hover, .sub-lead-headline a:hover, .card-article-title a:hover {
  color: var(--apyt-orange);
}
.hero-excerpt {
  color: var(--apyt-gray-text);
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.hero-byline { font-size: 13px; color: #777; }
.sub-lead-column { display: flex; flex-direction: column; gap: 16px; }
.sub-lead-item {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--apyt-border);
}
.sub-lead-item:last-child { border-bottom: none; }
.sub-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--apyt-orange);
}
.sub-lead-headline {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.25;
  margin: 4px 0 6px;
}
.sub-lead-thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 3px;
}
.sub-lead-date { font-size: 12px; color: #888; }

/* 5. CARRUSELES HORIZONTALES (5 NOTAS) */
.category-slider-module {
  padding: 24px 0;
  border-bottom: 1px solid var(--apyt-border);
}
.slider-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--apyt-black);
  padding-bottom: 6px;
}
.slider-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}
.slider-title a { text-decoration: none; color: var(--apyt-black); }
.accent-chevron { color: var(--apyt-orange); }
.carousel-arrows { display: flex; gap: 6px; }
.c-arrow {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.c-arrow:hover {
  background: var(--apyt-black);
  color: #fff;
}
.horizontal-card-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.horizontal-article-card {
  flex: 0 0 calc(20% - 13px);
  min-width: 210px;
  scroll-snap-align: start;
}
.card-media-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
}
.card-article-title {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.3;
  margin: 8px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-article-excerpt {
  font-size: 13px;
  color: var(--apyt-gray-text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.card-article-meta { font-size: 11px; color: #999; }

/* 6. MODAL DE SUSCRIPCIÓN */
.apyt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}
.apyt-modal-backdrop.is-visible { display: flex; }
.apyt-modal-box {
  background: #ffffff;
  max-width: 460px;
  width: 100%;
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
}
.btn-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #777;
}
.modal-logo { height: 48px; margin-bottom: 16px; }
.modal-header-branding h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--apyt-black);
}
.modal-header-branding p {
  font-size: 14px;
  color: var(--apyt-gray-muted);
  margin: 0 0 20px;
}
.form-group { margin-bottom: 12px; }
.sub-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.btn-sub-submit {
  width: 100%;
  background: var(--apyt-orange);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.sub-feedback {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.sub-feedback.success { color: #2e7d32; }
.sub-feedback.error { color: #c62828; }
.modal-disclaimer {
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}
.modal-disclaimer a { color: var(--apyt-orange); }

/* 7. PIE DE PÁGINA (ESTRUCTURA EXACTA PEDIDA) */
.apyt-footer-editorial {
  background: var(--apyt-dark-bg);
  color: #d1d1d1;
  font-family: var(--font-sans);
  padding: 50px 0 0;
  margin-top: 40px;
}
.footer-grid-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.3fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}
.footer-mission-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #9e9e9e;
  margin-bottom: 14px;
}
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f1f1f;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #aaa;
}
.beacon-green {
  width: 6px;
  height: 6px;
  background-color: #4caf50;
  border-radius: 50%;
}
.footer-col-block h4 {
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 16px;
  border-left: 3px solid var(--apyt-orange);
  padding-left: 8px;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-list li { margin-bottom: 10px; }
.footer-link-list a {
  color: #b5b5b5;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.footer-link-list a:hover { color: var(--apyt-orange); }
.footer-copyright-subbar {
  border-top: 1px solid var(--apyt-border-dark);
  padding: 18px 0;
  font-size: 12.5px;
  color: #777;
}
.subbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.subbar-flex p { margin: 0; }
.subbar-links a {
  color: #888;
  text-decoration: none;
}
.subbar-links a:hover { color: var(--apyt-orange); }

/* ENTRADAS INDIVIDUALES (ESTILO EL PAÍS) */
.apyt-article-page {
  background: #ffffff;
  color: var(--apyt-black);
  font-family: var(--font-sans);
  padding-bottom: 60px;
}
.apyt-article-header { padding: 36px 16px 20px; }
.apyt-header-inner { max-width: 860px; margin: 0 auto; }
.apyt-category-kicker a {
  color: var(--apyt-orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}
.apyt-article-headline {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.18;
  margin: 12px 0 16px;
}
.apyt-article-standfirst p {
  font-size: 20px;
  line-height: 1.45;
  color: #4a4a4a;
  margin: 0 0 20px;
}
.apyt-byline-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--apyt-border);
  border-bottom: 1px solid var(--apyt-border);
  padding: 12px 0;
  font-size: 13px;
}
.apyt-hero-media {
  max-width: 1080px;
  margin: 20px auto 36px;
  padding: 0 16px;
}
.apyt-lead-image {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}
.apyt-media-caption {
  font-size: 13px;
  color: var(--apyt-gray-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--apyt-border);
}
.apyt-layout-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.apyt-grid-body {
  display: grid;
  grid-template-columns: minmax(0, 700px) 1fr;
  gap: 50px;
}
.apyt-story-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
}
.apyt-sticky-sidebar {
  position: sticky;
  top: 80px;
  border-left: 1px solid var(--apyt-border);
  padding-left: 20px;
}
.apyt-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.apyt-sidebar-posts { list-style: none; padding: 0; margin: 0; }
.apyt-sidebar-item {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--apyt-border);
}
.apyt-side-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--apyt-orange);
  text-transform: uppercase;
}
.apyt-side-link {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--apyt-black);
  text-decoration: none;
  font-weight: 700;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 990px) {
  .footer-grid-layout { grid-template-columns: 1fr 1fr; }
  .editorial-asymmetric-grid { grid-template-columns: 1fr; }
  .apyt-grid-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .branding-layout { flex-direction: column; align-items: flex-start; gap: 12px; }
  .apyt-search-module, .editorial-search-bar, .search-input-field { width: 100%; }
  .horizontal-article-card { flex: 0 0 78%; }
  .footer-grid-layout { grid-template-columns: 1fr; }
  .topbar-content { flex-direction: column; align-items: flex-start; }
}
