/* ==============================
THEME: HELLO ELEMENTOR CHILD
OPTIMIZADO PRO 2026
============================== */

:root {
  --color-primario: #FB8500;
  --color-secundario: #0b073d;
  --color-fondo: #ffffff;
  --color-suave: #FEF3E2;
  --color-texto: #0b073d;
  --color-blanco: #ffffff;

  --font-base: 'Poppins', sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 22px rgba(0,0,0,0.08);

  --max-width-content: 1100px;
  --max-width-xl: 1280px;
  --max-width-xxl: 1400px;
}

body {
  font-family: var(--font-base);
  background: var(--color-fondo);
  color: var(--color-texto);
  margin: 0;
}

/* ==============================
MENÚ
============================== */

.menu-wrapper {
  width: 100%;
  background-color: var(--color-secundario);
  padding: 12px 0;
}

.menu-delgado {
  max-width: 1400px;
  margin: 0 auto;
}

.menu-links {
  display: flex;
  gap: 0.5rem;
}

.menu-links a {
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.25s;
}

.menu-links a:hover {
  background-color: rgba(251,133,0,0.15);
  color: var(--color-primario);
}

.menu-item:hover .submenu {
  display: flex;
}

.submenu {
  display: none;
  position: absolute;
  background: var(--color-secundario);
  border-radius: 10px;
  padding: 6px;
  flex-direction: column;
  z-index: 999;
}

/* ==============================
CABECERA
============================== */

.entrada-cabecera {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.entrada-cabecera::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.25),
    rgba(11,7,61,0.92)
  );
  z-index: 1;
}

.entrada-cabecera-contenido {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  z-index: 2;
  max-width: 700px;
}

/* ==============================
CONTENIDO
============================== */

.entrada-contenido {
  max-width: var(--max-width-content);
  margin: 50px auto;
  padding: 0 20px;
  line-height: 1.7;
}

.entrada-contenido img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ==============================
SIDEBAR + SLIDER PRO
============================== */

.sidebar-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

/* 🔥 SLIDER CONTENEDOR */
.top5-slider {
  overflow: hidden;
  position: relative;
}

.top5-track {
  display: flex;
  transition: transform 0.5s ease;
}

.top5-slide {
  min-width: 100%;
}

/* ITEM */
.sidebar-item {
  display: grid !important;
  grid-template-columns: 26px 68px 1fr !important;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-secundario);
}

.sidebar-item:hover {
  background: var(--color-suave);
}

/* Ranking */
.sidebar-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b073d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen */
.sidebar-item img {
  width: 68px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 12px;
}

/* Texto */
.sidebar-info {
  min-width: 0;
}

.sidebar-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ==============================
COMPARTIR
============================== */

.btn-icono {
  background: var(--color-secundario);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
BARRA LECTURA
============================== */

#barra-tiempo-lectura {
  position: fixed;
  top: 0;
  height: 5px;
  background: var(--color-primario);
}

#contador-lectura {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--color-primario);
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
}

/* ==============================
MENU MOBILE
============================== */

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: white;
    cursor: pointer;
  }
}