/* =============================================================
   LA OTRA VERSIÓN QR — Estilos principales
   Archivo: css/estilos.css
   Secciones:
     1. Variables y Reset
     2. Top Bar
     3. Header y Logo
     4. Navegación
     5. Cinta decorativa
     6. Breaking News
     7. Barra de Categorías
     8. Layout principal
     9. Noticia Hero
    10. Grid de noticias
    11. Sidebar
    12. Footer
    13. Placeholders de imágenes
    14. Responsive
============================================================= */


/* ============================================================
   1. VARIABLES Y RESET
============================================================= */
:root {
  --rojo:           #e60000;
  --rojo-oscuro:    #9b0000;
  --negro:          #0a0a0a;
  --gris-oscuro:    #111111;
  --gris-medio:     #1c1c1c;
  --gris-borde:     #2a2a2a;
  --blanco:         #f5f5f5;
  --blanco-apagado: #aaaaaa;
  --amarillo-cinta: #f5c400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--negro);
  color: var(--blanco);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}


/* ============================================================
   2. TOP BAR
============================================================= */
.top-bar {
  background: var(--rojo);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  overflow: hidden;
}

.top-bar span {
  color: var(--amarillo-cinta);
  white-space: nowrap;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker p { color: white; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   3. HEADER Y LOGO
============================================================= */
header {
  background: var(--gris-oscuro);
  border-bottom: 3px solid var(--rojo);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 10px;
  min-height: 110px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 54px;
  height: 54px;
  background: radial-gradient(circle at center, #3a0000, #0a0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rojo);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 40%, rgba(255,69,0,0.4), transparent 60%);
}

.logo-icon svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1;
}

.logo-icon--sm {
  width: 42px;
  height: 42px;
}

.logo-icon--sm svg {
  width: 24px;
  height: 24px;
}

.logo-img {
  height: 100px;
  width: 180px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(230,0,0,0.7));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(230,0,0,0.9));
}

.logo-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--blanco);
  line-height: 1;
  text-transform: uppercase;
}

.logo-title em {
  color: var(--rojo);
  font-style: normal;
}

.logo-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--amarillo-cinta);
  text-transform: uppercase;
}

.search-btn {
  background: var(--gris-medio);
  border: 1px solid var(--gris-borde);
  color: var(--blanco-apagado);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}

.search-btn:hover {
  border-color: var(--rojo);
  color: white;
}


/* ============================================================
   4. NAVEGACIÓN
============================================================= */
nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex-shrink: 1;
}

nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blanco-apagado);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--rojo);
  color: white;
}


/* ============================================================
   5. CINTA DECORATIVA
============================================================= */
.cinta {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amarillo-cinta),
    var(--amarillo-cinta) 20px,
    #1a1a00 20px,
    #1a1a00 40px
  );
}


/* ============================================================
   6. BREAKING NEWS
============================================================= */
.breaking {
  background: var(--rojo);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.breaking-label {
  background: white;
  color: var(--rojo);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  white-space: nowrap;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.breaking-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================================
   7. BARRA DE CATEGORÍAS
============================================================= */
.cat-bar {
  background: var(--gris-medio);
  border-top: 1px solid var(--gris-borde);
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 20px;
}

.cat-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-bar-inner::-webkit-scrollbar { display: none; }

.cat-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blanco-apagado);
  text-decoration: none;
  padding: 12px 18px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.cat-link:hover,
.cat-link.active {
  color: white;
  border-bottom-color: var(--rojo);
}


/* ============================================================
   8. LAYOUT PRINCIPAL
============================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.grid-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rojo);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--rojo);
  display: inline-block;
}

.section-title--center {
  justify-content: center;
}


/* ============================================================
   9. NOTICIA HERO
============================================================= */
.hero {
  background: var(--gris-medio);
  border: 1px solid var(--gris-borde);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-img-wrap { overflow: hidden; }

.hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.hero:hover .hero-img { transform: scale(1.02); }

.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--rojo);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  text-transform: uppercase;
  z-index: 2;
}

.hero-content { padding: 20px 22px 22px; }

.hero-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--rojo);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin-bottom: 10px;
}

.hero-excerpt {
  font-size: 14px;
  color: var(--blanco-apagado);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: #666;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* ============================================================
   10. GRID DE NOTICIAS
============================================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--gris-medio);
  border: 1px solid var(--gris-borde);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--rojo); }

.card-img-wrap { overflow: hidden; }

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card:hover .card-img { transform: scale(1.04); }

.card-body { padding: 14px; }

.card-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--rojo);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blanco);
}

.card-meta {
  font-size: 11px;
  color: #555;
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
}


/* ============================================================
   11. SIDEBAR
============================================================= */
aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Stats Instagram */
.stats-box {
  background: linear-gradient(135deg, var(--rojo-oscuro), #1a0000);
  border: 1px solid var(--rojo);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
}

.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--amarillo-cinta);
  display: block;
}

.stat-num--sm { font-size: 22px; }

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ig-follow:hover { opacity: 0.85; }

/* Lista de noticias */
.sidebar-section { display: flex; flex-direction: column; }

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gris-borde);
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-thumb {
  width: 75px;
  height: 55px;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.sidebar-info { flex: 1; }

.sidebar-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--rojo);
  text-transform: uppercase;
}

.sidebar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blanco);
  margin-top: 2px;
  transition: color 0.2s;
}

.sidebar-item:hover .sidebar-title { color: var(--rojo); }

.sidebar-date {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  font-family: 'Barlow Condensed', sans-serif;
}

/* Redes sociales */
.social-box {
  background: var(--gris-medio);
  border: 1px solid var(--gris-borde);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
}

.social-box p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--blanco-apagado);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gris-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: var(--rojo);
  transform: scale(1.1);
}


/* ============================================================
   12. FOOTER
============================================================= */
footer {
  background: var(--gris-oscuro);
  border-top: 3px solid var(--rojo);
  margin-top: 50px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 14px;
  gap: 10px;
}

.footer-logo-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  display: block;
}

.footer-logo-title span { color: var(--rojo); }

.footer-logo-sub {
  font-size: 10px;
  color: var(--amarillo-cinta);
  letter-spacing: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  display: block;
}

.footer-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

footer h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--rojo);
}

footer a {
  font-size: 13px;
  color: var(--blanco-apagado);
  text-decoration: none;
  line-height: 2;
  display: block;
  transition: color 0.2s;
}

footer a:hover { color: var(--rojo); }

.footer-bottom {
  border-top: 1px solid var(--gris-borde);
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: #444;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
}


/* ============================================================
   13. PLACEHOLDERS DE IMÁGENES (mientras no hay fotos reales)
============================================================= */

/* Hero */
.hero-img--placeholder {
  background: linear-gradient(135deg, #1a0000 0%, #3d0000 40%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img--placeholder span { font-size: 90px; filter: drop-shadow(0 0 30px #e60000); }

/* Cards */
.card-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img span { font-size: 52px; }

.card-img--verde   { background: linear-gradient(135deg, #001a0a, #003d18); }
.card-img--morado  { background: linear-gradient(135deg, #0a001a, #1a003d); }
.card-img--naranja { background: linear-gradient(135deg, #1a1000, #3d2800); }
.card-img--cyan    { background: linear-gradient(135deg, #001a1a, #003d3d); }
.card-img--cafe    { background: linear-gradient(135deg, #1a0a00, #3d1800); }
.card-img--violeta { background: linear-gradient(135deg, #0a001a, #250040); }

/* Sidebar thumbs */
.sidebar-thumb--rojo   { background: linear-gradient(135deg, #3d0000, #0a0000); }
.sidebar-thumb--azul   { background: linear-gradient(135deg, #001a3d, #0a0a0a); }
.sidebar-thumb--naranja{ background: linear-gradient(135deg, #1a1000, #0a0a0a); }
.sidebar-thumb--cyan   { background: linear-gradient(135deg, #001a1a, #0a0a0a); }
.sidebar-thumb--verde  { background: linear-gradient(135deg, #001a0a, #0a0a0a); }


/* ============================================================
   MENÚ HAMBURGUESA (solo móvil)
============================================================= */
.hamburger-btn {
  display: none;
  background: var(--rojo);
  border: none;
  color: white;
  font-size: 22px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.menu-movil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.6);
}

.menu-movil.abierto { display: block; }

.menu-movil-inner {
  background: var(--gris-oscuro);
  width: 280px;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border-right: 2px solid var(--rojo);
}

.menu-movil-inner a {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--blanco);
  text-decoration: none;
  padding: 12px 10px;
  border-bottom: 1px solid var(--gris-borde);
  letter-spacing: 1px;
  transition: color 0.2s;
}

.menu-movil-inner a:hover { color: var(--rojo); }

.menu-cerrar {
  background: none;
  border: none;
  color: var(--blanco-apagado);
  font-size: 22px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 10px;
  padding: 4px 8px;
}

.menu-redes {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-redes a {
  font-size: 14px !important;
  color: var(--blanco-apagado) !important;
  border-bottom: none !important;
}


/* ============================================================
   14. RESPONSIVE
============================================================= */
@media (max-width: 900px) {
  .grid-main          { grid-template-columns: 1fr; }
  .news-grid          { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr 1fr; }
  nav                 { display: none; }
  .hamburger-btn      { display: flex; align-items: center; margin-left: auto; }
  .logo-img           { height: 55px; width: auto; }
  .header-inner       { min-height: 65px; padding: 0 16px; justify-content: space-between; }
  .search-btn         { display: none; }
}

@media (max-width: 500px) {
  .hero-title         { font-size: 22px; }
  .footer-inner       { grid-template-columns: 1fr; }
  .logo-img           { height: 45px; width: auto; }
  .breaking           { padding: 8px 12px; gap: 8px; }
  .breaking-text      { font-size: 12px; }
  .top-bar            { padding: 5px 12px; }
}