:root {
  --color-primary: #c72035;
  --color-primary-dark: #a71e2d;
}

/* Títulos */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* Body text */
p, body {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Subheaders */
h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

a:hover {
  color: inherit !important;
  text-decoration: underline;
}

/* Categorías */
.categoria {
    font-family: 'Sora', sans-serif !important;
}

.hr-date {
    border-width: 2px ;
    border-color: #000;
    opacity: 1;
}

.text-trending {
    color: var(--color-primary);
    font-family: 'Playfair Display', serif !important;
}

.trending-title {
    cursor: pointer;
}

.trending-title:hover {
    color: var(--color-primary)
}

.trending-scroll {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.trending-scroll-inner {
  display: flex;
  white-space: nowrap;
  width: max-content;
}

.trending-scroll a {
  margin-right: 30px;
  flex-shrink: 0;
}

.btn-suscribete {
  background-color: var(--color-primary) !important;
  color: #fff !important;
}

.btn-suscribete:hover {
  background-color: var(--color-primary-dark) !important;
}

/*====================================================== 
                UTILS
======================================================*/
.hr-header {
    border: 1px solid #fff !important;
    opacity: 0.9;
}

.text-primary-personalizado {
    color: var(--color-primary);
}

.name-publicidad {
  font-family: 'Graphik', 'Graphik Fallback', sans-serif;
  color: #737373;
  font-size: 0.625rem;
  text-transform: uppercase;
}

.zoom-img {
  transition: transform 1s ease;
}

.zoom-img:hover {
  transform: scale(1.05) !important;
}

.ls-wide {
    letter-spacing: 1px;
}

.underline-force:hover {
  text-decoration: underline !important;
}

.only-one-line {
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical;
}

.only-two-line {
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.only-three-line {
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.only-four-line {
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
}

.only-five-line {
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
}

.only-seven-line {
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 7; 
    -webkit-box-orient: vertical;
}

.arrow-svg {
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #fff;
}

.arrow-svg:hover {
color: var(--color-primary) !important;
}

.last-no-border:last-child {
    border-right: none !important;
}

.text-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #666;
  font-size: 16px;
}

.text-separator::before,
.text-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
}

/*====================================================== 
                ICONO PARA SUSCRIPTORES
======================================================*/
.badge-suscriptores {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .badge-icon {
      width: 20px;
      height: 20px;
      background-color: var(--color-primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .badge-icon span {
      color: #ffffff;
      font-size: 12px;
      font-weight: bold;
      line-height: 1;
      user-select: none;
    }

    .badge-text {
      font-size: 14px;
      color: var(--color-primary);
      font-weight: 400;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }

/*====================================================== 
        TABS SUSCRIPCION Y TRENDING
======================================================*/
.tabs {
    width: 100%;
    margin: 0 auto;
    max-width: 600px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #fff;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background: #f5f5f5;
    border: none;
    text-align: center;
    cursor: pointer;
    font-weight: 800 !important;
    font-size: 18px;
}

.tab-button.active {
    font-weight: 800;
    background: #fff;
    border-bottom: 3px solid var(--color-primary);
}

.tab-content {
    padding: 12px;
    background: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-button:hover {
    border-bottom: 3px solid var(--color-primary);
    
}

/*====================================================== 
        CAROUSEL PARA DAILY NEWS
======================================================*/
/* ── Layout wrapper ── */
.scroll-layout {
  display: grid;
  grid-template-areas:
    "scroll"
    "markers";
}

/* ── Carousel base ── */
.carousel {
  grid-area: scroll;
  display: grid;
  grid: auto / auto-flow 280px;
  gap: 16px;
  padding: 12px 4px 8px;
  margin: 0;
  list-style: none;

  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }

  & > li {
    scroll-snap-align: center;
  }
}

/* ── Scroll markers (dots) ── */
.carousel {
  scroll-marker-group: after;
  &::scroll-marker-group {
    grid-area: markers;
    display: grid;
    place-content: safe center;
    grid: 30px / auto-flow 20px;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    overflow: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;

    @media (prefers-reduced-motion: no-preference) {
      scroll-behavior: smooth;
    }
  }

  & > li::scroll-marker {
    content: " ";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #000;
	background-color: #000;
    outline-offset: 3px;
    scroll-snap-align: center;
    transition: background 0.2s, border-color 0.2s;
  }

  & > li::scroll-marker:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    opacity: 0.5;
  }

  & > li::scroll-marker:target-current {
    background: var(--color-primary);
    border-color: var(--color-primary);
  }
}

/*====================================================== 
        GO TO NEWSLETTER
======================================================*/
  .newsletter-section {
    background-color: #000;
    color: #fff;
  }
  .newsletter-section .form-control {
    border-radius: 0;
  }
  .newsletter-section .btn {
    font-weight: bold;
    letter-spacing: 1px;
  }
  .newsletter-section a {
    color: #fff;
    text-decoration: none;
  }
  .newsletter-section a:hover {
    text-decoration: underline;
  }