/* =====================================================
   MH SPORTS v2 - Estilo minimalista / editorial
   Simple, limpio, educativo. De Europa para Latinoamérica.
   Solo Bootstrap 5 + clases propias con prefijo mh-
===================================================== */

:root {
  --mh-blue: #1238D2;
  --mh-blue-dark: #0E2CA8;
  --mh-text: #111111;
  --mh-white: #FFFFFF;
  --mh-muted: #6B7280;
  --mh-line: #E6E8EC;
  --mh-soft: #F7F8FA;
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mh-text);
  background: var(--mh-white);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--mh-text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--mh-blue); }

h1,h2,h3,h4,h5,h6 { font-weight: 800; letter-spacing: -0.02em; color: var(--mh-text); }

img { max-width: 100%; }

/* ---------- Header ---------- */
.mh-header {
  background: var(--mh-white);
  border-bottom: 1px solid var(--mh-line);
  padding: 1.15rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.mh-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.9;
  font-style: italic;
  font-weight: 900;
  color: var(--mh-blue);
  letter-spacing: -0.04em;
}
.mh-logo__main { font-size: 1.6rem; }
.mh-logo__sub {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  font-style: normal;
  font-weight: 800;
  color: var(--mh-blue);
  margin-top: 3px;
  padding-left: 2px;
}
.mh-nav .nav-link {
  color: var(--mh-text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.9rem;
  position: relative;
}
.mh-nav .nav-link:hover { color: var(--mh-blue); }
.mh-nav .nav-link.active { color: var(--mh-blue); }
.mh-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: -2px;
  height: 2px;
  background: var(--mh-blue);
}

/* Buscador */
.mh-search {
  border: 1px solid var(--mh-line);
  border-radius: 999px;
  padding: 0.3rem 0.5rem 0.3rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mh-soft);
}
.mh-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 140px;
  color: var(--mh-text);
}
.mh-search button {
  border: none;
  background: transparent;
  color: var(--mh-muted);
  font-size: 1rem;
}
.mh-search button:hover { color: var(--mh-blue); }

/* ---------- Category kicker ---------- */
.mh-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mh-blue);
  margin-bottom: 0.5rem;
}
.mh-kicker--ondark { color: #fff; }

/* ---------- Section heading ---------- */
.mh-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--mh-text);
}
.mh-heading__title {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mh-heading__title::before {
  content: "";
  width: 6px;
  height: 22px;
  background: var(--mh-blue);
  display: inline-block;
  border-radius: 2px;
}
.mh-heading__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mh-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---------- Slider / Hero ---------- */
.mh-slide {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 460px;
}
.mh-slide__img { width: 100%; height: 460px; object-fit: cover; }
.mh-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%);
}
.mh-slide__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.25rem;
  color: #fff;
}
.mh-slide__title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 0.6rem;
  max-width: 780px;
}
.mh-slide__excerpt {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  max-width: 620px;
  margin-bottom: 0.5rem;
}
.mh-slide__meta { color: rgba(255,255,255,.72); font-size: 0.82rem; }

/* carousel controls minimal */
.mh-slider .carousel-control-prev,
.mh-slider .carousel-control-next { width: 8%; opacity: 0; transition: opacity .2s; }
.mh-slider:hover .carousel-control-prev,
.mh-slider:hover .carousel-control-next { opacity: 1; }
.mh-slider .carousel-indicators { margin-bottom: 1rem; }
.mh-slider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.6);
}
.mh-slider .carousel-indicators .active { background: #fff; }

/* ---------- Article card ---------- */
.mh-card { height: 100%; display: flex; flex-direction: column; }
.mh-card__media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 0.85rem;
}
.mh-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.mh-card:hover .mh-card__media img { transform: scale(1.04); }
.mh-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 0.4rem;
}
.mh-card:hover .mh-card__title { color: var(--mh-blue); }
.mh-card__excerpt {
  font-size: 0.9rem;
  color: var(--mh-muted);
  margin-bottom: 0.6rem;
  flex: 1;
}
.mh-card__meta {
  font-size: 0.76rem;
  color: var(--mh-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mh-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* ---------- Últimas noticias: lista destacada ---------- */
.mh-lead-row { border-bottom: 1px solid var(--mh-line); }
.mh-list-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--mh-line);
}
.mh-list-item:last-child { border-bottom: none; }
.mh-list-item__media {
  width: 120px; height: 84px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.mh-list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.mh-list-item__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.mh-list-item:hover .mh-list-item__title { color: var(--mh-blue); }
.mh-list-item__meta { font-size: 0.75rem; color: var(--mh-muted); }

/* ---------- Bloque de categoría en home ---------- */
.mh-cat-section { padding: 2.5rem 0; }
.mh-cat-section--soft { background: var(--mh-soft); }

/* Destacada dentro de categoría */
.mh-cat-feature__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 1rem;
}
.mh-cat-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.mh-cat-feature__title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 0.5rem;
}
.mh-cat-feature:hover .mh-cat-feature__title { color: var(--mh-blue); }
.mh-cat-feature__excerpt { color: var(--mh-muted); font-size: 0.98rem; margin-bottom: 0.5rem; }
.mh-cat-feature__meta { font-size: 0.8rem; color: var(--mh-muted); }

/* ---------- Instagram feed ---------- */
.mh-ig { padding: 3rem 0; }
.mh-ig__head {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin-bottom: 0.35rem;
}
.mh-ig__handle {
  font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.mh-ig__sub { text-align: center; color: var(--mh-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.mh-ig__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.mh-ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mh-ig__item:hover img { transform: scale(1.06); }
.mh-ig__item::after {
  content: "\F437";
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,56,210,.0);
  color: rgba(255,255,255,0);
  font-size: 1.5rem;
  transition: all .2s;
}
.mh-ig__item:hover::after {
  background: rgba(18,56,210,.55);
  color: #fff;
}

/* ---------- Footer ---------- */
.mh-footer {
  background: var(--mh-text);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.mh-footer__logo { color: #fff; }
.mh-footer__logo .mh-logo__sub { color: #fff; }
.mh-footer h5 {
  color: #fff; font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem;
}
.mh-footer a { color: rgba(255,255,255,.72); font-size: 0.9rem; }
.mh-footer a:hover { color: #fff; }
.mh-footer__tag { color: rgba(255,255,255,.72); font-size: 0.92rem; }
.mh-footer__socials a { font-size: 1.2rem; margin-right: 1rem; color: #fff; }
.mh-footer__socials a:hover { color: var(--mh-blue); }
.mh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,.55);
}

/* ---------- Page header (categoria / opinion) ---------- */
.mh-pagehead {
  border-bottom: 1px solid var(--mh-line);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
.mh-pagehead__crumb { font-size: 0.8rem; color: var(--mh-muted); margin-bottom: 0.6rem; }
.mh-pagehead h1 {
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.mh-pagehead p { color: var(--mh-muted); margin: 0; font-size: 1.02rem; }

/* Pagination */
.mh-pagination .page-link {
  color: var(--mh-text); border-color: var(--mh-line); font-weight: 600;
  margin: 0 3px; border-radius: 6px !important;
}
.mh-pagination .page-item.active .page-link {
  background: var(--mh-blue); border-color: var(--mh-blue); color: #fff;
}

/* ---------- Ficha noticia ---------- */
.mh-article { padding-top: 2.5rem; }
.mh-article__crumb { font-size: 0.8rem; color: var(--mh-muted); margin-bottom: 1rem; }
.mh-article__title {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.mh-article__excerpt {
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--mh-muted);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
/* byline periodista */
.mh-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
  margin-bottom: 1.75rem;
}
.mh-byline__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.mh-byline__name { font-weight: 800; font-size: 0.98rem; }
.mh-byline__bio { font-size: 0.82rem; color: var(--mh-muted); }
.mh-byline__date { margin-left: auto; font-size: 0.82rem; color: var(--mh-muted); text-align: right; }

/* Imagen destacada + copyright */
.mh-figure { margin-bottom: 2rem; }
.mh-figure img { width: 100%; border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.mh-figure__caption {
  font-size: 0.8rem;
  color: var(--mh-muted);
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mh-figure__caption i { font-size: 0.9rem; }

/* Cuerpo */
.mh-body { font-size: 1.1rem; line-height: 1.8; }
.mh-body p { margin-bottom: 1.5rem; }
.mh-body h2 { font-size: 1.55rem; margin: 2.25rem 0 1rem; }
.mh-body blockquote {
  border-left: 4px solid var(--mh-blue);
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
}
.mh-body img { border-radius: 8px; margin: 1.5rem 0; }

/* Video embed responsivo */
.mh-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.75rem 0;
}
.mh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Compartir */
.mh-share { display: flex; align-items: center; gap: 0.5rem; margin: 2rem 0; }
.mh-share__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 800; color: var(--mh-text); margin-right: 0.4rem;
}
.mh-share a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mh-soft); color: var(--mh-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.mh-share a:hover { background: var(--mh-blue); color: #fff; }

/* ---------- Widget de resultados (Downtack) ---------- */
.mh-results {
  background: var(--mh-soft);
  border-radius: 8px;
  padding: 1.5rem;
}
.mh-results__frame {
  width: 100%;
  border: none;
  overflow: hidden;
  background: var(--mh-white);
  border-radius: 6px;
}
.mh-results__note {
  font-size: 0.78rem;
  color: var(--mh-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Páginas institucionales / legales ---------- */
.mh-legal { padding-bottom: 3rem; }
.mh-legal__content { font-size: 1.02rem; line-height: 1.8; }
.mh-legal__content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2rem 0 0.85rem;
  color: var(--mh-text);
}
.mh-legal__content h2:first-child { margin-top: 0; }
.mh-legal__content p { margin-bottom: 1.25rem; color: var(--mh-text); }
.mh-legal__content ul { margin: 0 0 1.25rem 0; padding-left: 1.25rem; }
.mh-legal__content li { margin-bottom: 0.5rem; }
.mh-legal__updated {
  font-size: 0.85rem;
  color: var(--mh-muted);
  padding: 0.85rem 1.1rem;
  background: var(--mh-soft);
  border-radius: 6px;
  border-left: 4px solid var(--mh-blue);
  margin-bottom: 2rem;
}
.mh-legal__toc {
  background: var(--mh-soft);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 90px;
}
.mh-legal__toc h5 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mh-blue);
  margin-bottom: 0.9rem;
}
.mh-legal__toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--mh-text);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--mh-line);
}
.mh-legal__toc a:last-child { border-bottom: none; }
.mh-legal__toc a:hover { color: var(--mh-blue); }

/* Sobre nosotros: valores/tarjetas */
.mh-value {
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
}
.mh-value__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--mh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.mh-value__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.mh-value__text { font-size: 0.92rem; color: var(--mh-muted); margin: 0; }

/* Equipo */
.mh-team-card { text-align: center; }
.mh-team-card__avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}
.mh-team-card__name { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.15rem; }
.mh-team-card__role { font-size: 0.85rem; color: var(--mh-blue); font-weight: 600; }

/* Formulario de contacto */
.mh-form label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--mh-text);
}
.mh-form .form-control,
.mh-form .form-select {
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}
.mh-form .form-control:focus,
.mh-form .form-select:focus {
  border-color: var(--mh-blue);
  box-shadow: 0 0 0 0.15rem rgba(18,56,210,.12);
}
.mh-btn-primary {
  background: var(--mh-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mh-btn-primary:hover { background: var(--mh-blue-dark); color: #fff; }

/* Bloque de datos de contacto */
.mh-contact-info { background: var(--mh-soft); border-radius: 8px; padding: 1.75rem; height: 100%; }
.mh-contact-info__item { display: flex; gap: 0.85rem; margin-bottom: 1.35rem; }
.mh-contact-info__item:last-child { margin-bottom: 0; }
.mh-contact-info__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--mh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.mh-contact-info__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mh-muted); font-weight: 700; }
.mh-contact-info__value { font-weight: 600; color: var(--mh-text); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .mh-slide__title { font-size: 1.6rem; }
  .mh-slide, .mh-slide__img { min-height: 380px; height: 380px; }
  .mh-article__title { font-size: 2.1rem; }
  .mh-pagehead h1 { font-size: 2rem; }
  .mh-cat-feature__title { font-size: 1.35rem; }
}
@media (max-width: 575.98px) {
  .mh-slide__title { font-size: 1.3rem; }
  .mh-slide__body { padding: 1.35rem; }
  .mh-article__title { font-size: 1.7rem; }
  .mh-article__excerpt { font-size: 1.1rem; }
  .mh-byline__date { display: none; }
  .mh-list-item__media { width: 96px; height: 70px; }
}
