/* ==========================================================================
   NOTES.CSS — Estilos exclusivos de páginas de nota/artículo
   Incluye: layout base (.nota__) + componentes extendidos
   ========================================================================== */

/* ==========================================================================
   NOTA — layout base (artículo individual)
   ========================================================================== */
.nota {
  background: var(--color-bg);
  padding-bottom: 40px;
}

.nota__inner {
  max-width:      1200px;
  margin:         0 auto;
  padding:        12px 12px 0;
  display:        flex;
  flex-direction: column;
  gap:            0;
}

/* --- Pills de categoría --- */
.nota__pills {
  display:     flex;
  gap:         4px;
  align-items: center;
  height:      48px;
  padding:     0;
  flex-wrap:   wrap;
  margin: 10px 0;
}

.nota__pill {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding:         10px 16px;
  border-radius:   8px;
  background:      #102039;
  color:           #7988a6;
  font-family:     'Roboto', sans-serif;
  font-weight:     500;
  font-size:       14px;
  letter-spacing:  0.1px;
  line-height:     20px;
  text-decoration: none;
  white-space:     nowrap;
  transition:      background 0.2s, color 0.2s;
}

.nota__pill--active {
  background:    #7988a6;
  color:         #00081a;
  border-radius: 20px;
  cursor:        default;
}

/* --- Tabs --- */
.nota__tabs-wrap {
  border-bottom: 1px solid var(--color-primary);
}

.nota__tabs {
  display:    flex;
  background: #162b4c;
  height:     48px;
  max-width:  360px;
}

.nota__tab {
  flex:            1;
  display:         flex;
  align-items:     flex-end;
  justify-content: center;
  padding-bottom:  0;
  background:      #050b13;
  border:          none;
  cursor:          pointer;
  font-family:     'Roboto', sans-serif;
  font-weight:     500;
  font-size:       14px;
  letter-spacing:  0.1px;
  color:           #b6b6b6;
  position:        relative;
  overflow:        hidden;
  transition:      color 0.2s;
}

.nota__tab--active {
  color: #ed989d;
}

.nota__tab--active::after {
  content:       '';
  position:      absolute;
  bottom:        0;
  left:          2px;
  right:         2px;
  height:        3px;
  background:    #d3010c;
  border-radius: 100px 100px 0 0;
}

.nota__tab span {
  padding-bottom: 14px;
  display:        block;
}

/* --- Foto principal --- */
.nota__hero {
  margin: 0 -12px;
}

.nota__hero-img-wrap {
  height:   600px;
  overflow: hidden;
}

.nota__hero-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.nota__caption {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  padding:         4px 8px;
  gap:             8px;
  width:           100%;
  background:      #858585;
}

.nota__caption-text {
  font-family: 'Inter', sans-serif;
  font-size:   16px;
  line-height: normal;
  color:       #000000;
  flex:        1;
  text-align:  left;
}

.nota__caption-credit {
  font-family: 'Inter', sans-serif;
  font-size:   12px;
  line-height: normal;
  color:       #162b4c;
  text-align:  right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Titular --- */
.nota__header {
  padding:        20px 20px 15px;
  display:        flex;
  flex-direction: column;
  gap:            12px;
  max-width:      1200px;
}

.nota__label-wrap {
  border-bottom:  1px solid #ffffff;
  padding-bottom: 8px;
}

.nota__label {
  font-family:    'Montserrat', sans-serif;
  font-weight:    900;
  font-size:      18px;
  color:          #ffffff;
  text-transform: uppercase;
}

.nota__title {
  font-family:    'Bebas Neue', sans-serif;
  font-size:      clamp(48px, 8vw, 90px);
  line-height:    0.92;
  color:          #ffffff;
  margin:         0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nota__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size:   20px;
  line-height: 1.4;
  color:       #ffffff;
  margin:      0;
}

/* --- Tarjeta de partido relacionado --- */
.nota__game-card {
  background:    #540005;
  border-radius: 8px;
  padding:       12px;
  max-width:     1200px;
  overflow-x:    auto;
}

.nota__game-inner {
  min-width: 0;
}

/* --- Cuerpo del artículo --- */
.nota__content {
  max-width:      900px;
  width:          100%;
  display:        flex;
  flex-direction: column;
  gap:            8px;
  padding-top:    8px;
  margin:         0 auto;
}

/* COMPARTE */
.nota__share {
  display:     flex;
  align-items: center;
  gap:         16px;
  padding:     16px 0;
  flex-wrap:   wrap;
}

.nota__share-label {
  font-family:  'Inter', sans-serif;
  font-weight:  400;
  font-size:    14px;
  line-height:  18px;
  color:        #ffffff;
  white-space:  nowrap;
}

.nota__share-icons {
  display: flex;
  gap:     12px;
}

.nota__share-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   50%;
  background:      #162b4c;
  color:           #98aecf;
  text-decoration: none;
  transition:      background 0.2s;
}

.nota__share-btn:hover { background: #1e3a60; }

.nota__share-btn svg {
  width:  18px;
  height: 18px;
}

/* Texto del artículo */
.nota__body {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

.nota__body p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size:   15px;
  line-height: 30px;
  color:       #ffffff;
  margin:      0;
  text-align:  left;
  hyphens:     auto;
}

/* Imagen secundaria landscape */
.nota__img-figure {
  margin:         0;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  padding:        16px 0;
}

.nota__img-secondary-wrap {
  width:         100%;
  max-width:     650px;
  min-width:     360px;
  aspect-ratio:  932 / 502;
  overflow:      hidden;
  border-radius: 4px 4px 0 0;
}

.nota__img-secondary {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

/* Redes sociales dentro de la nota */
.nota__social {
  margin-top:     24px;
  display:        flex;
  flex-direction: column;
  gap:            16px;
  width:          100%;
}

.nota__social-header {
  border-bottom:  1px solid #ffffff;
  padding-bottom: 8px;
}

.nota__social-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size:   18px;
  color:       #ffffff;
  margin:      0;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .nota__hero-img-wrap      { height: 260px; }
  .nota__title              { font-size: clamp(40px, 10vw, 72px); }
  .nota__subtitle           { font-size: 17px; }
  .nota__header             { padding: 16px 12px; }
  .nota__img-secondary-wrap { min-width: 0; }
}

/* --------------------------------------------------------------------------
   BARRA AUTOR / FECHA / COMPARTE
   -------------------------------------------------------------------------- */
.nota__author-bar {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             8px;
  padding:         16px 0;
  width:           100%;
}

.nota__author-field {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  flex:           1 0 200px;
  padding:        5px 10px;
  border-bottom:  1px solid #ffffff;
  min-width:      200px;
  max-width:      500px;
}

.nota__author-label {
  font-family:    'Roboto', sans-serif;
  font-weight:    400;
  font-size:      12px;
  line-height:    16px;
  letter-spacing: 0.4px;
  color:          #ffffff;
}

.nota__author-value {
  font-family:    'Roboto', sans-serif;
  font-weight:    400;
  font-size:      16px;
  line-height:    24px;
  letter-spacing: 0.15px;
  color:          #ffffff;
}

.nota__author-meta {
  display:     flex;
  align-items: center;
  gap:         16px;
  flex-shrink: 0;
  flex-wrap:   wrap;
}

.nota__author-date {
  font-family:  'Roboto', sans-serif;
  font-weight:  900;
  font-size:    16px;
  line-height:  24px;
  color:        #ffffff;
  white-space:  nowrap;
}

.nota__share-text {
  font-family:  'Inter', sans-serif;
  font-weight:  400;
  font-size:    14px;
  line-height:  18px;
  color:        #ffffff;
  white-space:  nowrap;
}

/* --------------------------------------------------------------------------
   BLOQUE TEXTO + DATO NUMÉRICO (flex-wrap, dos columnas)
   -------------------------------------------------------------------------- */
.nota__text-stat {
  display:   flex;
  flex-wrap: wrap;
  gap:       20px;
  align-items: flex-start;
  width:     100%;
}

.nota__text-col {
  flex:     1 0 340px;
  min-width: 340px;
}

.nota__text-col p {
  font-family:  'Inter', sans-serif;
  font-weight:  400;
  font-size:    15px;
  line-height:  30px;
  color:        #ffffff;
  margin:       0;
  text-align:   left;
  hyphens:      auto;
}

/* Dato numérico — card de estadística */
.nota__dato {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            12px;
  min-width:      340px;
  flex:           0 0 auto;
  text-align:     center;
  height:         131px;
}

.nota__dato-number {
  font-family:  'Montserrat', sans-serif;
  font-weight:  900;
  font-size:    48px;
  line-height:  52px;
  color:        #ffffff;
  flex:         1;
  display:      flex;
  align-items:  center;
  justify-content: center;
  width:        100%;
}

.nota__dato-chip {
  background:     #b6b6b6;
  color:          #162b4c;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  padding:        8px;
  width:          100%;
  flex-shrink:    0;
}

.nota__dato-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size:   16px;
  line-height: 20px;
}

.nota__dato-context {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size:   14px;
  line-height: 18px;
}

/* --------------------------------------------------------------------------
   IMAGEN SECUNDARIA — PORTRAIT (max-w 500px, aspect 4:5 aprox)
   -------------------------------------------------------------------------- */
.nota__img-figure--portrait {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  margin:         0;
  padding:        16px 0;
  width:          100%;
}

.nota__img-portrait-wrap {
  width:        100%;
  max-width:    500px;
  min-width:    340px;
  max-height:   625px;
  overflow:     hidden;
  border-radius: 4px 4px 0 0;
}

.nota__img-portrait-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.nota__img-portrait-caption {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  background:      #858585;
  padding:         4px 8px;
  gap:             8px;
  width:           100%;
  max-width:       500px;
  min-width:       340px;
  flex-wrap:       wrap;
}

.nota__img-portrait-caption .nota__caption-text  { flex: 1; min-width: 200px; }
.nota__img-portrait-caption .nota__caption-credit { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   SUBTÍTULO DE SECCIÓN (subtitle_content)
   -------------------------------------------------------------------------- */
.nota__section-title {
  display:        flex;
  align-items:    center;
  padding:        12px 0;
  border-bottom:  1px solid #ffffff;
  width:          100%;
}

.nota__section-title-text {
  font-family:    'Inter', sans-serif;
  font-weight:    600;
  font-size:      20px;
  line-height:    20px;
  color:          #ffffff;
  flex:           1;
  margin:         0;
}

/* --------------------------------------------------------------------------
   PUNTO IMPORTANTE NUMERADO (important_content)
   -------------------------------------------------------------------------- */
.nota__important {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
  padding:     12px 0;
  width:       100%;
}

.nota__important-num {
  display:         flex;
  align-items:     center;
  justify-content: center;
  min-width:       24px;
  min-height:      24px;
  max-width:       24px;
  max-height:      24px;
  background:      #d3010c;
  border-radius:   20px;
  flex-shrink:     0;
  padding:         0;
}

.nota__important-num span {
  font-family:  'Inter', sans-serif;
  font-weight:  900;
  font-size:    13px;
  line-height:  1;
  color:        #ffffff;
  text-align:   center;
}

.nota__important-text {
  font-family:  'Inter', sans-serif;
  font-weight:  400;
  font-size:    15px;
  line-height:  20px;
  color:        #ffffff;
  flex:         1;
  margin:       0;
  text-align:   justify;
  hyphens:      auto;
}

/* --------------------------------------------------------------------------
   CITA DESTACADA / PULL QUOTE (comment_note)
   -------------------------------------------------------------------------- */
.nota__pullquote {
  border-top:      4px solid #ffffff;
  border-bottom:   4px solid #ffffff;
  padding:         40px;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             8px;
  text-align:      center;
  width:           100%;
}

.nota__pullquote-text {
  font-family:  'Bebas Neue', sans-serif;
  font-size:    32px;
  line-height:  40px;
  color:        #ffffff;
  margin:       0;
  text-transform: uppercase;
}

.nota__pullquote-author {
  font-family:  'Montserrat', sans-serif;
  font-weight:  600;
  font-size:    20px;
  line-height:  25px;
  color:        #ffffff;
  margin:       0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nota__dato          { min-width: 100%; }
  .nota__text-col      { min-width: 100%; }
  .nota__pullquote     { padding: 24px 16px; }
  .nota__pullquote-text { font-size: 24px; line-height: 30px; }
  .nota__img-portrait-wrap { min-width: 0; max-width: 100%; }
  .nota__img-portrait-caption { max-width: 100%; min-width: 0; }
}

/* ==========================================================================
   NOTA TABS — PREVIA / NOTA / OPINIÓN
   ========================================================================== */

.nota__tabs-wrapper {
  border-bottom: 1px solid var(--color-primary);
  padding: 16px 0 0;
  width: 100%;
}

.nota__tabs {
  display: flex;
  height: 48px;
  width: 100%;
}

.nota__tab {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.nota__tab-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  width: 100%;
  height: 100%;
}

.nota__tab-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #b6b6b6;
  white-space: nowrap;
}

.nota__tab--active .nota__tab-label {
  color: #ed989d;
}

.nota__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 100px 100px 0 0;
}

.nota__tab--disabled {
  pointer-events: none;
  opacity: 0.35;
}
