/* ============================================================
   THEME VARIABLES
   Injected inline via PHP for dynamic theming.
   The values below are fallback defaults.
   ============================================================ */
:root {
  /* -- Brand Colors (set by PHP / config.php) -- */
  --publisher-color: #cc0000;
  --publisher-color-dark: #990000;
  --client-color: #cc0000;
  --client-color-dark: #990000;

  /* -- Base Palette -- */
  --white: #ffffff;
  --black: #000000;

  /* -- Semantic Alpha Colors (derived from client-color: 204, 0, 0) -- */
  --client-color-rgb: 204, 0, 0;
  --client-glow-soft: rgba(204, 0, 0, 0.08);
  --client-glow-medium: rgba(204, 0, 0, 0.30);
  --client-glow-strong: rgba(204, 0, 0, 0.40);
  --client-glow-dot: rgba(204, 0, 0, 0.50);
  --client-glow-dot-core: rgba(204, 0, 0, 0.80);
  --client-border-subtle: rgba(204, 0, 0, 0.15);
  --client-border-hover: rgba(204, 0, 0, 0.40);

  /* -- Card / Glassmorphism -- */
  --card-bg: rgba(20, 20, 20, 0.85);
  --card-border: var(--client-border-subtle);
  --card-border-hover: var(--client-border-hover);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.50), 0 0 20px var(--client-glow-soft), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  --card-radius: 16px;
  --card-padding: 25px 28px;

  /* -- Timeline -- */
  --timeline-dot-size: 16px;
  --timeline-dot-shadow: 0 0 12px var(--client-glow-dot), 0 0 4px var(--client-glow-dot-core);
  --timeline-line-grad: linear-gradient(180deg, var(--client-color), rgba(var(--client-color-rgb), 0.30));
  --timeline-connector-w: 30px;
  --timeline-connector-h: 2px;
  --year-badge-radius: 30px;
  --year-badge-grad: linear-gradient(135deg, var(--client-color), var(--client-color-dark));
  --year-badge-shadow: 0 4px 15px var(--client-glow-strong);

  /* -- Navigation -- */
  --nav-height: 100px;
  --nav-height-active: 70px;
  --nav-height-mobile: 40px;

  /* -- Typography -- */
  --font-family: 'Muli', 'Helvetica', Arial, sans-serif;
  --text-body: rgba(255, 255, 255, 0.75);
  --text-list: rgba(255, 255, 255, 0.70);

  /* -- Video Container -- */
  --video-radius: 14px;
  --video-shadow: 0 10px 40px rgba(0, 0, 0, 0.50);
}


/* ============================================================
   BASE / TYPOGRAPHY
   ============================================================ */
html {
  font-family: var(--font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 300 !important;
  line-height: 1.1em;
}


p {
  color: var(--white);
}

#intro p {
  color: var(--black);
}

p,
a,
em,
li,
button {
  font-weight: 400;
}

em {
  color: #333333;
}

strong {
  font-weight: 700;
  color: var(--client-color);
}

/* Prevent red-on-red strong text inside uk-light sections */
.uk-light strong {
  color: inherit;
}


/* ============================================================
   TIMELINE DESIGN SYSTEM
   ============================================================ */

.timeline {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Snaking Row Layout --- */
.timeline-row {
  margin: 0;
  padding: 60px 0 40px 0;
  position: relative;
}

.timeline-row .tl-item::after {
  z-index: 2;
}

.timeline-row>.tl-item {
  position: relative;
  z-index: 1;
}

/* --- Vertical Ruler Line --- */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--timeline-line-grad);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

/* --- Timeline Item --- */
.tl-item {
  padding: 10px 30px;
  position: relative;
  background-color: inherit;
}

/* --- Timeline Dot --- */
.tl-item::after {
  content: '';
  position: absolute;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  right: -8px;
  background-color: var(--client-color);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 2;
  box-shadow: var(--timeline-dot-shadow);
}

.tl-right::after {
  left: -8px;
  right: auto;
}

/* --- Horizontal Connectors (card → dot) --- */
.tl-left::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: var(--timeline-connector-w);
  height: var(--timeline-connector-h);
  background-color: var(--client-color);
  z-index: 1;
}

.tl-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--timeline-connector-w);
  height: var(--timeline-connector-h);
  background-color: var(--client-color);
  z-index: 1;
}

/* --- Modifier: No Dot / No Arrow --- */
.tl-item.tl-no-dot::after {
  display: none !important;
}

.tl-item.tl-no-arrow::before {
  display: none !important;
}

/* --- Year Divider Badge --- */
.timeline-year {
  position: absolute !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--year-badge-grad);
  color: var(--white) !important;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 30px;
  border-radius: var(--year-badge-radius);
  z-index: 10;
  box-shadow: var(--year-badge-shadow);
  text-transform: uppercase;
}

/* --- Card: Title --- */
.timeline .uk-card-body .title {
  color: var(--white) !important;
  font-size: 1.85rem;
  font-weight: 800 !important;
  line-height: 1.2;
  margin-top: 5px;
  margin-bottom: 15px;
  border-left: 4px solid var(--client-color);
  padding-left: 15px;
}

/* --- Card: List --- */
.timeline .uk-list-bullet>li::before {
  color: var(--client-color) !important;
}

.timeline .uk-list li {
  color: var(--text-list);
  font-size: 0.88rem;
}


/* ============================================================
   GLASSMORPHIC CARD
   ============================================================ */
.card-vertical .uk-card-default {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card-vertical .uk-card-default:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.card-vertical .uk-card-body {
  padding: var(--card-padding);
}

.card-vertical .uk-card-body p {
  color: var(--text-body);
  line-height: 1.7;
  font-size: 0.92rem;
}


/* ============================================================
   VIDEO CONTAINERS (inside timeline)
   ============================================================ */
.tl-item.video iframe,
.tl-item.video img {
  border-radius: var(--video-radius);
  box-shadow: var(--video-shadow);
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
}

/* Modifier: Vertical / Shorts format */
.tl-item.video.video-short iframe,
.tl-item.video.video-short img {
  aspect-ratio: 9/16;
  max-width: 360px;
  margin: 0 auto;
}


/* ============================================================
   CUSTOM PILL NAV (Video Switcher)
   ============================================================ */
.custom-pill-nav>li {
  margin-bottom: 10px;
}

.custom-pill-nav>li>a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 10px 15px;
}

.custom-pill-nav>li>a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.custom-pill-nav>li.uk-active>a {
  background-color: var(--client-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px var(--client-glow-strong);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#navigation-top {
  position: relative;
  z-index: 500;
  background-color: var(--client-color);
}

#navigation-top .uk-navbar-nav li:first-child .uk-navbar-item,
.uk-navbar-nav>li>a,
.uk-navbar-toggle {
  font-weight: 400 !important;
  font-size: 1.0rem;
  padding-left: 0;
}

#navigation-top .uk-navbar-right .uk-navbar-nav>li>a {
  padding-right: 0;
}

#navigation-top .uk-navbar-item,
#navigation-top .uk-navbar-nav>li>a,
#navigation-top .uk-navbar-toggle {
  min-height: var(--nav-height);
  color: var(--white);
}

#navigation-top.uk-active .uk-navbar-item,
#navigation-top.uk-active .uk-navbar-nav>li>a,
#navigation-top.uk-active .uk-navbar-toggle {
  min-height: var(--nav-height-active);
}

#navigation-top .uk-navbar-item:hover,
#navigation-top .uk-navbar-nav>li>a:hover,
#navigation-top .uk-navbar-toggle:hover {
  color: rgba(255, 255, 255, 0.75);
}

#navigation-top .uk-navbar-center:not(:only-child) {
  position: relative;
  transform: translateX(-50%);
}

/* --- Scroll Progress Bar --- */
#site-scroller {
  height: 3px;
  border-radius: 0 !important;
  background-color: var(--black);
}

#site-scroller[value]::-webkit-progress-value {
  background-color: var(--client-color) !important;
}

#site-scroller[value]::-moz-progress-bar {
  background-color: var(--client-color) !important;
}

.uk-card strong {
  color: var(--white);
}

/* ============================================================
   BRANDING / LOGOS
   ============================================================ */
#branding {
  position: relative;
  z-index: 10;
}

#branding .logoCM {
  width: 130px;
}

#branding .logo-Record {
  width: 150px;
}

#branding .logo-Sabado {
  width: 170px;
}

#branding .logo-Negocios {
  width: 180px;
}

#branding .logo-cmTV {
  width: 150px;
}

#branding .logo-TVG {
  width: 150px;
}

#branding .logo-CMB {
  width: 150px;
}


/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

/* --- Small (< 640px) — Timeline collapses to left-aligned --- */
@media screen and (max-width: 639px) {

  /* Timeline Line on Left */
  .timeline::after {
    display: block !important;
    left: 20px;
  }

  /* Timeline Dots */
  .tl-left::after,
  .tl-right::after {
    display: block !important;
    left: 12px;
    right: auto;
  }

  /* Horizontal Connectors */
  .tl-left::before,
  .tl-right::before {
    display: block !important;
    left: 20px;
    right: auto;
    width: 35px;
  }

  /* Item spacing to accommodate left rail */
  .tl-item {
    width: 100%;
    padding: 10px 15px 10px 55px !important;
  }

  .timeline-row {
    padding: 60px 0 20px 0 !important;
  }

  /* Year Badge */
  .timeline-year {
    font-size: 1rem !important;
    padding: 6px 20px !important;
    left: 55px;
    transform: none;
  }

  /* Year badge connector line */
  .timeline-year::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -110px;
    width: 110px;
    height: 2px;
    background-color: var(--client-color);
    z-index: -1;
  }

  /* Typography */
  .timeline .uk-card-body .title {
    font-size: 1.35rem !important;
    margin-bottom: 10px;
  }

  .timeline .uk-card-body p {
    font-size: 0.95rem;
  }
}

/* --- Small UIKit (< 40em) --- */
@media only screen and (max-width: 40em) {
  .uk-padding {
    padding: 20px 0;
  }

  #navigation-top .uk-navbar-item,
  #navigation-top .uk-navbar-nav>li>a,
  #navigation-top .uk-navbar-toggle {
    height: var(--nav-height-mobile);
  }

  #branding .logo-CM {
    width: 90px;
  }
}

footer {
  background: var(--client-color);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background-color: var(--black);
}

.header-bg {
  background-image: url('../img/header/header-img.jpg');
}

.header-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.text-client-color {
  color: var(--client-color) !important;
}


/* ============================================================
   VIDEO WRAPPER (standalone, outside timeline)
   ============================================================ */
.video-wrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-iframe {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
}


/* ============================================================
   FINALE CARD (2026 Block)
   ============================================================ */
.finale-card {
  position: relative;
  z-index: 10;
}

.finale-card .uk-card-default {
  background: linear-gradient(170deg, rgba(30, 30, 30, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(var(--client-color-rgb), 0.25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(var(--client-color-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.finale-card .uk-card-default:hover {
  border-color: rgba(var(--client-color-rgb), 0.4);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(var(--client-color-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Accent top bar */
.finale-card .uk-card-default::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--client-color), transparent);
  border-radius: 0 0 4px 4px;
}

.finale-card .uk-card-body {
  padding: 50px 40px;
}

.finale-card .uk-card-body p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Year badge with glow pulse */
.finale-year-badge {
  display: inline-block;
  background: var(--year-badge-grad);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 10px 35px;
  border-radius: 50px;
  box-shadow: var(--year-badge-shadow), 0 0 30px rgba(var(--client-color-rgb), 0.2);
  animation: finale-badge-pulse 3s ease-in-out infinite;
}

@keyframes finale-badge-pulse {

  0%,
  100% {
    box-shadow: var(--year-badge-shadow), 0 0 30px rgba(var(--client-color-rgb), 0.2);
  }

  50% {
    box-shadow: var(--year-badge-shadow), 0 0 50px rgba(var(--client-color-rgb), 0.35);
  }
}

/* Finale title */
.finale-title {
  color: var(--client-color) !important;
  font-weight: bold !important;
}

/* Finale subtitle */
.finale-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
}

/* Decorative ornament divider */
.finale-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 35px auto;
  max-width: 250px;
}

.finale-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--client-color-rgb), 0.4), transparent);
}

.finale-ornament-diamond {
  width: 10px;
  height: 10px;
  background: var(--client-color);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(var(--client-color-rgb), 0.5);
}

/* Closing quote */
.finale-quote {
  position: relative;
  padding: 25px 30px;
  margin-top: 40px;
  border-left: 3px solid var(--client-color);
  background: rgba(var(--client-color-rgb), 0.06);
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.finale-quote p {
  color: var(--white) !important;
  font-weight: 700;
  line-height: 1.4 !important;
}

.finale-quote-mark {
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--client-color);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}