/*
Theme Name: Fast Video Theme
Theme URI:  https://tusitio.com
Author:     Tu Nombre
Author URI: https://tusitio.com
Description: Tema editorial ligero para posts con video, enlaces de reparto y contexto escrito.
Version:    1.2
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fast-video
*/

:root {
  --nc-ink: #101217;
  --nc-ink-2: #252a33;
  --nc-muted: #697386;
  --nc-line: #d9dee8;
  --nc-soft: #f4f6fa;
  --nc-paper: #ffffff;
  --nc-red: #d71920;
  --nc-red-dark: #a80f18;
  --nc-blue: #174ea6;
  --nc-teal: #0f766e;
  --nc-gold: #f1b90b;
  --nc-shadow: 0 18px 42px rgba(16, 18, 23, 0.09);
  --nc-soft-shadow: 0 10px 26px rgba(16, 18, 23, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 260px, var(--nc-soft) 100%);
  color: var(--nc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: var(--nc-red-dark);
}

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

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--nc-line);
  position: sticky;
  top: 0;
  z-index: 9998;
}

.site-edition-bar {
  background: var(--nc-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-edition-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 28px;
  padding: 0 18px;
}

.site-topbar {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 74px;
  padding: 0 18px;
}

.site-brand {
  align-items: center;
  color: var(--nc-ink);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  min-height: 54px;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand::before {
  background: linear-gradient(180deg, var(--nc-red) 0 48%, var(--nc-blue) 48% 100%);
  content: "";
  display: inline-block;
  height: 34px;
  margin-right: 10px;
  width: 7px;
}

.site-brand-mobile {
  display: none;
}

.site-tagline {
  border-left: 1px solid var(--nc-line);
  color: var(--nc-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  max-width: 220px;
  padding-left: 16px;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.site-menu {
  align-items: center;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu li {
  margin: 0;
  position: relative;
}

.site-menu a {
  border-radius: 6px;
  color: var(--nc-ink-2);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 11px;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus {
  background: #fff1f2;
  color: var(--nc-red-dark);
}

.site-menu .sub-menu {
  background: var(--nc-paper);
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  box-shadow: var(--nc-shadow);
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 220px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 20;
}

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

.site-menu .sub-menu a {
  display: flex;
  justify-content: flex-start;
  padding: 10px 12px;
  width: 100%;
}

#main-content {
  min-height: 64vh;
}

.news-home {
  margin: 30px auto 0;
  max-width: 1180px;
  padding: 0 18px;
}

.home-section-head {
  align-items: end;
  border-top: 4px solid var(--nc-red);
  display: flex;
  justify-content: space-between;
  margin: 0 0 18px;
  padding-top: 12px;
}

.home-section-head p,
.home-section-head span {
  margin: 0;
}

.home-section-head p {
  color: var(--nc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.home-section-head span {
  color: var(--nc-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.post-summary {
  background: var(--nc-paper);
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  box-shadow: var(--nc-soft-shadow);
  min-width: 0;
  overflow: hidden;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post-summary:hover {
  border-color: rgba(215, 25, 32, 0.35);
  box-shadow: var(--nc-shadow);
  transform: translateY(-2px);
}

.post-summary--lead {
  border-top: 5px solid var(--nc-red);
  grid-column: span 2;
  grid-row: span 2;
}

.post-summary a {
  color: inherit;
  text-decoration: none;
}

.post-summary-media {
  background: #e8edf5;
  display: block;
  overflow: hidden;
}

.post-summary img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.post-summary--lead img {
  aspect-ratio: 16 / 9;
}

.post-summary-fallback {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.95), rgba(23, 78, 166, 0.95));
  color: #ffffff;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 900;
  justify-content: center;
}

.post-summary-body {
  padding: 14px;
}

.post-summary--lead .post-summary-body {
  padding: 18px;
}

.post-summary-meta,
.single-post-kicker {
  align-items: center;
  color: var(--nc-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  gap: 9px;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.post-summary-meta span,
.single-post-kicker span {
  color: var(--nc-red-dark);
}

.post-summary-meta span::after,
.single-post-kicker span::after {
  color: var(--nc-gold);
  content: "/";
  margin-left: 9px;
}

.post-summary h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.18;
  margin: 0;
}

.post-summary--lead h2 {
  font-size: 31px;
  line-height: 1.12;
}

.post-summary h2 a:hover {
  color: var(--nc-red-dark);
}

.post-summary p {
  color: var(--nc-muted);
  font-size: 16px;
  line-height: 1.56;
  margin: 12px 0 0;
}

.single-post-layout {
  margin: 32px auto 0;
  max-width: 920px;
  padding: 0 18px;
}

.single-post-header {
  border-bottom: 1px solid var(--nc-line);
  margin: 0 auto 22px;
  max-width: 840px;
  padding-bottom: 18px;
  text-align: left;
}

.single-post-header h1 {
  color: var(--nc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.08;
  margin: 0;
}

.single-post-content,
.page-content-shell {
  margin: 0 auto;
  max-width: 840px;
}

.page-content-shell {
  background: var(--nc-paper);
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  box-shadow: var(--nc-soft-shadow);
  line-height: 1.72;
  margin-top: 32px;
  padding: 26px;
}

.page-section h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.14;
  margin: 0 0 14px;
}

.page-section p {
  color: var(--nc-ink-2);
  font-size: 17px;
  margin: 0 0 15px;
}

.yt-lid-container {
  background: var(--nc-paper);
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  box-shadow: var(--nc-shadow);
  margin: 0 auto 18px;
  max-width: 680px;
  overflow: hidden;
  padding: 0;
}

.yt-lid-ad-slot {
  background: #ffffff;
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  margin: 14px auto;
  max-width: 100%;
  min-height: 1px;
  overflow: hidden;
  text-align: center;
}

.yt-lid-ad-slot:empty {
  display: none;
}

.yt-complete-btn {
  background: var(--nc-red) !important;
  border-radius: 6px !important;
}

.yt-complete-btn.enabled {
  background: var(--nc-red-dark) !important;
}

.video-article-content {
  background: var(--nc-paper);
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  box-shadow: var(--nc-soft-shadow);
  color: var(--nc-ink-2);
  font-size: 17px;
  line-height: 1.76;
  margin: 24px auto 0;
  max-width: 820px;
  padding: 28px;
}

.video-article-content h2,
.video-article-content h3 {
  color: var(--nc-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 25px 0 10px;
}

.video-article-content h2 {
  border-bottom: 1px solid var(--nc-line);
  font-size: 30px;
  padding-bottom: 10px;
}

.video-article-content h3 {
  font-size: 22px;
}

.video-article-content p,
.video-article-content ul,
.video-article-content ol {
  margin: 0 0 16px;
}

.video-article-content ul,
.video-article-content ol {
  padding-left: 22px;
}

.video-article-content li {
  margin-bottom: 8px;
}

.video-article-content .content-note {
  background: #eef8f6;
  border-left: 5px solid var(--nc-teal);
  border-radius: 8px;
  color: #153b37;
  padding: 14px 16px;
}

.site-footer {
  background: #111827;
  border-top: 4px solid var(--nc-red);
  color: #f8fafc;
  font-size: 16px;
  margin-top: 42px;
  padding: 34px 0 12px;
  text-align: left;
}

.footer-container {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 18px;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.site-footer p {
  color: #d8dce2;
  line-height: 1.6;
  margin: 0;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: #f8d572;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #303846;
  color: #aeb4bd;
  font-size: 14px;
  margin: 22px auto 0;
  max-width: 1180px;
  padding: 12px 18px 0;
  text-align: center;
}

@media (max-width: 980px) {
  .site-topbar {
    grid-template-columns: auto 1fr;
  }

  .site-tagline {
    display: none;
  }

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

  .post-summary--lead {
    grid-column: span 2;
  }

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

@media (max-width: 680px) {
  .site-edition-bar {
    display: none;
  }

  .site-topbar {
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
  }

  .site-brand {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    min-height: 40px;
  }

  .site-brand::before {
    height: 16px;
    margin-right: 7px;
    width: 4px;
  }

  .site-brand-title {
    display: none;
  }

  .site-brand-mobile {
    display: inline;
    letter-spacing: 0;
  }

  .site-nav {
    display: none;
  }

  .news-home {
    margin-top: 16px;
    padding: 0 12px;
  }

  .home-section-head {
    align-items: start;
    display: block;
    margin-bottom: 12px;
  }

  .home-section-head p {
    font-size: 24px;
  }

  .home-section-head span {
    display: block;
    margin-top: 5px;
  }

  .posts-list {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .post-summary--lead {
    grid-column: span 1;
  }

  .post-summary--lead h2,
  .post-summary h2 {
    font-size: 19px;
    line-height: 1.18;
  }

  .post-summary p {
    display: none;
  }

  .single-post-layout {
    margin-top: 16px;
    padding: 0;
  }

  .single-post-header {
    margin: 0 12px 14px;
    padding-bottom: 12px;
  }

  .single-post-header h1 {
    font-size: 25px;
    line-height: 1.12;
  }

  .single-post-content {
    max-width: none;
  }

  .yt-lid-container {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    margin-top: 0;
  }

  .yt-lid-ad-slot {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 10px 0;
  }

  .video-article-content,
  .page-content-shell {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    font-size: 16px;
    margin-top: 14px;
    padding: 18px;
  }

  .video-article-content h2 {
    font-size: 22px;
  }

  .video-article-content h3 {
    font-size: 19px;
  }
}
