*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #CE1126;
  --red-light: #fff0f0;
  --col-yellow: #FCD116;
  --col-blue: #003893;
  --black: #111111;
  --white: #FFFFFF;
  --off-white: #F5F3EF;
  --gray-100: #EEECE8;
  --gray-200: #D9D6D0;
  --gray-400: #9A9690;
  --gray-600: #5C5852;
  --ink: #1A1814;
  --ad-bg: #F0EDE8;
}
html { scroll-behavior: smooth; }
body { background: var(--off-white); color: var(--ink); font-family: 'Barlow', sans-serif; font-size: 15px; line-height: 1.6; overflow-x: hidden; }

/* ── ENTRADA SUAVE AL CARGAR (fade-in, sin JS ni retraso de navegación) ── */
body { animation: pageFadeIn 0.45s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ── LAYOUT WRAPPER ── */
.page-wrap { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; min-height: 100vh; }
.main-col { min-width: 0; }

/* ── AD SIDEBAR ── */
.ad-sidebar {
  background: var(--ad-bg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}
.ad-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: -12px;
}
.ad-slot {
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray-400);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ad-slot.tall { height: 250px; }
.ad-slot.medium { height: 160px; }
.ad-slot.wide { height: 100px; }
.ad-slot svg { opacity: 0.35; }
.ad-divider { height: 1px; background: var(--gray-200); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid #e5e5e5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  grid-column: 1 / -1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 64px; width: auto; display: block; object-fit: contain; }
.nav-logo-text { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 4px; color: var(--black); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #444444; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active-hoy    { color: #FCD116; }
.nav-links a.active-resenas { color: #003893; }
.nav-links a.active-salido  { color: #FCD116; }
.nav-links a.active-movida  { color: #CE1126; }
.nav-live { display: flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--red); }
.nav-live::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

/* ── TICKER ── */
.ticker { background: var(--black); height: 34px; overflow: hidden; display: flex; align-items: center; }
.ticker-label { background: var(--red); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2.5px; padding: 0 16px; height: 100%; display: flex; align-items: center; flex-shrink: 0; position: relative; z-index: 2; }
.ticker-wrap { flex: 1; overflow: hidden; min-width: 0; position: relative; }
.ticker-track { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; will-change: transform; }
.ticker-item { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-200); padding: 0 36px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── HERO ── */
.hero { display: grid; grid-template-columns: 65% 35%; border-bottom: 1px solid #111; gap: 0; }
.hero-image { position: relative; background: linear-gradient(160deg, #111111 0%, #2a2a2a 100%); overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-image-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.hero-car-svg { width: 85%; height: auto; opacity: 0.95; filter: brightness(1.1); }
.hero-badge { position: absolute; top: 20px; left: 20px; background: var(--red); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 4px 10px; }
.hero-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 36px 32px; border-left: none; background: var(--white); }
.hero-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--gray-400); text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 2.8vw, 42px); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: -1px; color: var(--black); margin-bottom: 20px; }
.hero-excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.65; max-width: 320px; margin-bottom: 28px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 11px 20px; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s; width: fit-content; }
.btn-primary:hover { background: var(--col-yellow); color: var(--black); }

/* ── SECTIONS ── */
section { border-bottom: 1px solid var(--gray-200); background: var(--white); }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px 0; margin-bottom: 24px; }
.section-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--black); display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: block; width: 16px; height: 2px; background: var(--red); flex-shrink: 0; }
.section-link { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-400); text-decoration: none; transition: color 0.15s; }
.section-link:hover { color: var(--red); }

/* ── CARD COMMONS ── */
.card-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 600; text-transform: uppercase; line-height: 1.1; margin-bottom: 6px; color: var(--black); }
.card-meta { font-size: 11px; color: var(--gray-400); }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.12) 0%, transparent 50%); pointer-events: none; }
.bg-1 { background: var(--gray-100); }
.bg-2 { background: #EDE8E2; }
.bg-3 { background: #E8EDE8; }
.bg-4 { background: #E8E8ED; }
.bg-5 { background: #EDEDE8; }

/* ── HOY GRID ── */
.hoy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); margin: 0 0 0; }
.hoy-card { background: var(--white); cursor: pointer; transition: background 0.15s; }
.hoy-card:hover { background: var(--gray-100); }
.hoy-card-img { aspect-ratio: 16/9; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.hoy-card-img-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; position: absolute; inset: 0; }
.hoy-card-body { padding: 14px 16px; }

/* ── ZOOM HOVER GLOBAL ── */
.img-inner {
  transition: transform 0.45s ease;
}
.resena-feature:hover .img-inner,
.resena-row:hover .img-inner,
.salido-hero:hover .img-inner,
.salido-item:hover .img-inner,
.movida-card:hover .img-inner,
.hoy-card:hover .img-inner {
  transform: scale(1.05);
}

/* ── RESEÑAS ── */
.resenas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-200); }
.resena-feature { background: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-200); }
.resena-feature-img { background: var(--gray-100); display: flex; align-items: center; justify-content: center; min-height: 280px; font-size: 60px; position: relative; overflow: hidden; }
.resena-feature-body { background: var(--white); padding: 28px 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.resena-rating { font-family: 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 6px; }
.resena-rating-label { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--gray-400); text-transform: uppercase; margin-bottom: 14px; }
.resena-title { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1; margin-bottom: 10px; color: var(--black); }
.resena-excerpt { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.resenas-list { background: var(--white); display: flex; flex-direction: column; gap: 1px; background: var(--gray-200); }
.resena-row { background: var(--white); display: grid; grid-template-columns: 150px 1fr; cursor: pointer; transition: background 0.15s; }
.resena-row:hover { background: var(--gray-100); }
.resena-row-img { background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 40px; min-height: 130px; position: relative; overflow: hidden; }
.resena-row-body { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.resena-row-score { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 6px; }
.resena-row-title { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; line-height: 1.1; margin-bottom: 5px; color: var(--black); }

/* ── SALIDO ── */
.salido-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px; background: var(--gray-200); }
.salido-hero { background: var(--white); display: flex; flex-direction: column; }
.salido-hero-img { flex: 1; min-height: 240px; display: flex; align-items: center; justify-content: center; font-size: 72px; position: relative; overflow: hidden; background: var(--gray-100); }
.salido-hero-body { padding: 22px; }
.salido-hero-title { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 900; text-transform: uppercase; line-height: 1; margin-bottom: 10px; color: var(--black); }
.salido-item { background: var(--white); display: flex; flex-direction: column; flex: 1; cursor: pointer; transition: background 0.15s; }
.salido-item:hover { background: var(--gray-100); }
.salido-item-img { aspect-ratio: 4/3; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 32px; position: relative; overflow: hidden; }
.salido-item-body { padding: 14px; }
.new-badge { display: inline-block; background: var(--black); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 7px; margin-bottom: 6px; }

/* ── MOVIDA ── */
.movida-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-200); }
.movida-card { background: var(--white); display: grid; grid-template-columns: 140px 1fr; cursor: pointer; transition: background 0.15s; }
.movida-card:hover { background: var(--gray-100); }
.movida-card-img { background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 36px; min-height: 120px; position: relative; overflow: hidden; }
.movida-card-body { padding: 18px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--gray-200); }
.movida-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; line-height: 1.1; margin-bottom: 6px; color: var(--black); }
.movida-card-excerpt { font-size: 12px; color: var(--gray-600); line-height: 1.6; }

/* ── GRADIENTES BANDERA COLOMBIA ── */

/* LO DE HOY — amarillo vibrante */
#hoy { background: linear-gradient(160deg, #5c3d00 0%, #e0a800 100%); border-bottom: none; padding-bottom: 0; }
#hoy .hoy-grid { margin-bottom: 0; }
#hoy .hoy-card { display: flex !important; flex-direction: column !important; }
#hoy .hoy-card-body { flex: 1; min-height: 0; }
#hoy .section-label { color: var(--white); }
#hoy .section-label::before { background: var(--col-yellow); }
#hoy .section-link { color: rgba(255,255,255,0.4); }
#hoy .section-link:hover { color: var(--col-yellow); }
#hoy .hoy-grid { background: var(--white); }
#hoy .hoy-card { background: transparent; }
#hoy .hoy-card:hover { background: transparent; }
#hoy .hoy-card-body { background: var(--white); }
#hoy .hoy-card:hover .hoy-card-body { background: var(--gray-100); }
#hoy .card-title { color: var(--black); }
#hoy .card-tag { color: var(--gray-600); }
#hoy .card-meta { color: var(--gray-400); }

/* RESEÑAS — azul vibrante */
#resenas { background: linear-gradient(160deg, #001a5c 0%, #1a52e0 100%); border-bottom-color: #1a52e0; }
#resenas .section-label { color: var(--white); }
#resenas .section-label::before { background: var(--col-yellow); }
#resenas .section-link { color: rgba(255,255,255,0.4); }
#resenas .section-link:hover { color: var(--col-yellow); }
#resenas .resenas-grid { background: var(--white); }
#resenas .resena-feature-body { background: var(--white) !important; }
#resenas .resena-title { color: var(--black); }
#resenas .resena-excerpt { color: var(--gray-600); }
#resenas .resena-rating { color: #003893; }
#resenas .resena-rating-label { color: var(--gray-400); }
#resenas .resenas-list { background: var(--gray-200) !important; }
#resenas .resena-row { background: var(--white) !important; }
#resenas .resena-row:hover { background: var(--gray-100) !important; }
#resenas .resena-row-title { color: var(--black); }
#resenas .resena-row-score { color: #003893; }
#resenas .card-meta { color: rgba(255,255,255,0.4); }
#resenas .resena-row-body .card-meta { color: var(--black); }
#resenas .card-tag { color: var(--col-yellow); }

/* RECIÉN SALIDO — amarillo vibrante */
#salido { background: linear-gradient(160deg, #5c3d00 0%, #e0a800 100%); border-bottom-color: #e0a800; }
#salido .section-label { color: var(--white); }
#salido .section-label::before { background: var(--col-yellow); }
#salido .section-link { color: rgba(255,255,255,0.4); }
#salido .section-link:hover { color: var(--col-yellow); }
#salido .salido-grid { background: var(--white); }
#salido .salido-hero { background: transparent !important; }
#salido .salido-hero-body { background: var(--white); }
#salido .salido-hero-title { color: var(--black); }
#salido .salido-item { background: var(--white) !important; display: flex !important; flex-direction: column !important; }
#salido .salido-item:hover { background: var(--gray-100) !important; }
#salido .card-title { color: var(--black); }
#salido .card-meta { color: var(--gray-400); }
#salido .card-tag { color: var(--gray-600); }
#salido .new-badge { background: var(--black); color: var(--white); }
#salido .btn-primary { background: var(--black); }
#salido .btn-primary:hover { background: var(--col-yellow); color: var(--black); }
#salido p { color: var(--gray-600); }
#salido { border-bottom: none; padding-bottom: 0; }

/* MOVIDA MOTOR — rojo vibrante */
#movida { background: linear-gradient(160deg, #5c000f 0%, #e8152d 100%); border-bottom-color: #e8152d; }
#movida .section-label { color: var(--white); }
#movida .section-label::before { background: var(--col-yellow); }
#movida .section-link { color: rgba(255,255,255,0.4); }
#movida .section-link:hover { color: var(--col-yellow); }
#movida .movida-grid { background: var(--gray-200); }
#movida .movida-card { background: transparent !important; display: flex !important; flex-direction: column !important; }
#movida .movida-card:hover { background: transparent !important; }
#movida .movida-card-body { background: var(--white); flex: 1; }
#movida .movida-card:hover .movida-card-body { background: var(--gray-100); }
#movida .movida-card-title { color: var(--black); }
#movida .movida-card-excerpt { color: var(--gray-600); }
#movida .card-tag { color: var(--gray-600); }
#movida .card-meta { color: var(--gray-400); }
#movida { border-bottom: none; padding-bottom: 0; }

/* ── LOADING ── */
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--gray-400); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; font-size: 11px; text-transform: uppercase; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--gray-200); border-top-color: var(--red); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
footer {
  background-image: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.78) 100%), url('imagenes/hyundai-hb20-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  border-top: none;
}
.footer-bar {
  background: linear-gradient(to bottom, #555555 0%, #111111 100%);
  padding: 16px 40px 16px;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}
.footer-bar img {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  height: 56px;
  width: 56px;
  object-fit: contain;
  object-position: center;
  z-index: 10;
  background: linear-gradient(145deg, #ffffff 0%, #d6d6d6 100%);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.footer-brand { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 5px; color: #ffffff; }
.footer-inner { max-width: 860px; margin: 0 auto; text-align: center; padding: 104px 20px 0; }
.footer-tagline { font-size: 13px; color: #f0f0f0; margin-bottom: 32px; letter-spacing: 1px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: transform 0.2s, opacity 0.2s; }
.footer-social a:hover { transform: scale(1.12); opacity: 0.85; }
.footer-social .soc-yt { background: #FF0000; }
.footer-social .soc-ig { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.footer-social .soc-tt { background: #111111; }
.footer-social .soc-fb { background: #1877F2; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; padding: 11px 24px; border-radius: 4px; text-decoration: none; margin-bottom: 0; transition: background 0.2s; }
.footer-whatsapp:hover { background: #1da851; }
.footer-nav-row { display: inline-flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; padding: 16px 28px; margin: 0 auto 32px; background: #ffffff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.footer-nav-row a { font-size: 12px; color: #333333; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.15s; }
.footer-nav-row a:hover { color: var(--red); }
.footer-nav-row .sep { color: #cccccc; font-size: 10px; }
.footer-bottom { background: transparent; padding: 28px 32px; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 32px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.8); letter-spacing: 1px; }

/* ── RESPONSIVE ── */
@media (min-width: 861px) {
  #hoy .hoy-card:nth-child(4) { display: none !important; }
}
@media (max-width: 1100px) {
  .page-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .page-wrap { grid-template-columns: 1fr; }
  .ad-sidebar { display: none; }
  nav { padding: 12px 20px; height: auto; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .nav-logo { width: 100%; justify-content: center; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { border-left: none; border-top: 1px solid var(--gray-200); }
  .hoy-grid, .movida-grid { grid-template-columns: 1fr 1fr; }
  .resenas-grid, .salido-grid { grid-template-columns: 1fr; }
  .resena-feature { grid-template-columns: 1fr; }
  .section-header { padding: 20px 20px 0; }
  footer { padding: 40px 20px 24px; }
  .footer-social a { width: 40px; height: 40px; }
}
