@font-face {
  font-family: 'HelveticaRounded';
  src: url('/fonts/HelveticaRoundedLTStd-Bd.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root { --font-primary: 'HelveticaRounded', Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; font-family: var(--font-primary); margin: 0; padding: 0; }

html, body { max-width: 100%; overflow-x: hidden; }

body { font-family: var(--font-primary); background: #fff; }

img, video, iframe { max-width: 100%; height: auto; }

button, input, select, textarea { font-family: var(--font-primary); }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
header {
  background: #034ea2;
  color: white;
  padding: 0;
  position: relative;
  height: 100px;
}

.top-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
  width: 90%;
  margin: 0 auto;
}

.top-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.top-menu a:hover {
  background-color: #ff9d00;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-header {
  background-color: #ff7e00;
  border-radius: 15px;
  height: 100px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  justify-content: space-between;
  width: 84%;
  max-width: 1320px;
  margin: 10px auto 20px;
  position: relative;
  z-index: 2;
}

.main-header .logo img { height: 104px; }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: nowrap;
  flex: 1;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.1;
  padding: 8px 6px;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  left: 50%;
  bottom: 0;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover { color: #ffcc00; }
.nav-menu a:hover::after { width: 100%; }

.play-button a {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button img {
  max-width: 205px;
  height: auto;
  display: block;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button a:hover img { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.play-button a:active img { transform: scale(0.95); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  background: linear-gradient(to bottom, #ff6700, #ff9c00);
  color: white;
  padding: 60px 5%;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
}

.texto-hero { max-width: 650px; margin-left: 80px; }

.hero h1 {
  font-size: 45px;
  font-weight: 920;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
}

.hero .horarios {
  font-size: 41px;
  font-weight: 820;
  color: #003399;
  margin-bottom: 20px;
}

.hero .boton {
  background-color: #fff200;
  color: #003399;
  padding: 16px 36px;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-top: 20px;
  transition: transform 0.2s ease;
}

.hero .boton:hover { transform: scale(1.08); background-color: #ffe600; }

.hero img { max-height: 380px; width: auto; position: relative; right: 0; }
.hero img.modelo { display: block; max-width: 100%; height: auto; max-height: 500px; }

/* ══════════════════════════════════════
   RESULTADOS
══════════════════════════════════════ */
.resultados, .youtube, .promo, .noticias, .footer, .rse { padding: 20px; text-align: center; }

.resultados-box {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px 20px 60px;
  width: 95%;
  max-width: 1400px;
  margin: 30px auto;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
}

.resultados-header h2 {
  font-size: 36px;
  font-weight: bold;
  display: block;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.titulo-naranja { color: #ff7f00 !important; }
.titulo-azul { color: #003399 !important; }

.resultados-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
}

.res-prev, .res-next {
  background: #ff7e00;
  color: white;
  border: none;
  font-size: 28px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
  z-index: 10;
}

.res-cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.res-card {
  width: 290px;
  height: 360px;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.res-card.verde { background: #aeca36; }
.res-card.naranja { background: #e31f26; }
.res-card.roja { background-color: #e31f26; color: #fff; }
.res-card.roja h4 { color: #fff; }
.res-card.roja .btn-jugar, .res-card.roja .btn-info { background: transparent; color: white; border: 2px solid white; font-weight: bold; }
.res-card.roja .btn-jugar:hover, .res-card.roja .btn-info:hover { background: white; color: #e31f26; }

.res-card img { width: 230px; height: auto; display: block; margin: 0 auto; }

.res-card .btn-container { display: flex; justify-content: center; margin-top: 10px; gap: 10px; }

.numeros { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 -10px; }
.num-number { font-size: 18px; font-weight: bold; color: white; }

.numeros span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
}

.bola-verde { background-color: #438f4f; color: white; }
.bola-amarilla { background-color: #fdd835; color: black; }

.btn-group { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }

.btn-jugar, .btn-info {
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-jugar:hover, .btn-info:hover { background: white; color: #333; }

.proximo {
  background-color: #ff7e00;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 15px 0;
  text-align: center;
  border-radius: 0 0 12px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.azul { color: #007bff; font-weight: bold; }

/* ══════════════════════════════════════
   BANNERS
══════════════════════════════════════ */
.banner-superpremio {
  width: 95%;
  max-width: 1400px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.banner-superpremio img { width: 100%; height: auto; display: block; }

.banner-apostemos { width: 100%; display: flex; justify-content: center; align-items: center; margin: 20px 0; }
.banner-apostemos img { width: 100%; max-width: none; height: auto; border-radius: 20px; display: block; }

/* ══════════════════════════════════════
   YOUTUBE
══════════════════════════════════════ */
.youtube {
  background: #0047b2;
  color: white;
  padding: 40px 0;
  width: 100vw;
  box-sizing: border-box;
}

.youtube-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.youtube-content { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.youtube-video { flex: 1 1 500px; max-width: 700px; }
.youtube-text { flex: 1 1 300px; max-width: 500px; background: #ff8000; padding: 20px; border-radius: 8px; color: white; text-align: center; }

/* ══════════════════════════════════════
   NOTICIAS HOME (carrusel)
══════════════════════════════════════ */
.noticias-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 25px;
  width: 90%;
  max-width: 1400px;
  margin: 40px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  align-items: stretch;
  overflow: visible;
  position: relative;
}

.noticias-left {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 10px 10px 10px 0;
}

.noticias-left h3 {
  font-size: 38px;
  font-weight: 900;
  color: #0047b2;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 6px solid #ff7e00;
  padding-left: 14px;
}

.noticias-boton {
  margin: 0 auto;
  background: linear-gradient(135deg, #ff7e00, #ff5500);
  color: white;
  border: none;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: block;
}

.noticias-boton:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }

.noticias-right { flex: 1; display: flex; align-items: center; position: relative; overflow: hidden; min-width: 0; }

.carousel { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; overflow: visible; padding-top: 25px; }

.card {
  flex: 0 0 auto;
  width: calc(100% / 3 - 15px);
  max-width: 340px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  height: 440px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 0;
  cursor: pointer;
}

.card:hover { transform: translateY(-40px) scale(1.04); z-index: 999; box-shadow: 0 25px 50px rgba(0,0,0,0.45); }
.card img { width: 100%; height: 260px; object-fit: cover; display: block; pointer-events: none; }

.card-content { padding: 18px; color: white; height: 100%; }
.carousel .card:nth-child(odd) .card-content { background: #ff7e00; }
.carousel .card:nth-child(even) .card-content { background: #0047b2; }
.card-content h4 { font-size: 20px; font-weight: bold; margin-bottom: 8px; }
.card-content p { font-size: 14px; line-height: 1.5; opacity: 0.9; }

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,126,0,0.95);
  color: white;
  border: none;
  font-size: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover { background: #ff5500; transform: translateY(-50%) scale(1.12); }

.carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.carousel-indicators span { width: 12px; height: 12px; background: #ddd; border-radius: 50%; cursor: pointer; transition: background 0.3s ease; }
.carousel-indicators span.active { background: #ff7e00; }

/* ══════════════════════════════════════
   PÁGINA NOTICIAS
══════════════════════════════════════ */
.container-general { width: 90%; max-width: 1200px; margin: auto; }

.titulo-noticias {
  background: #a6d1f8;
  padding: 80px 40px 45px;
  border-radius: 0 0 14px 14px;
  text-align: center;
  margin: 0 -2cm 70px;
}

.titulo-noticias h1 { color: #fff; font-size: 45px; font-weight: 900; letter-spacing: 2px; }

.noticia-principal-container {
  display: flex;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 90px;
  width: 100%;
  min-height: 350px;
}

.noticia-principal-container > img {
  width: 60%;
  border-radius: 16px;
  object-fit: cover;
  height: 100%;
}

.noticia-principal-contenido {
  width: 40%;
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.noticia-principal-contenido .fecha { font-size: 17px; font-weight: 700; color: #444; }
.noticia-principal-contenido h2 { color: #ff6600; font-size: 32px; margin: 12px 0; font-weight: 900; }
.noticia-principal-contenido p { font-size: 15px; line-height: 1.6; color: #444; }

.btn-leer {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  background: #ff6600;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-leer:hover { background: #cc5200; }

.grid-noticias-wrapper { background: #fff; padding: 30px 20px; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

.grid-noticias { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; transform: translateY(-70px); }

.card-noticia {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-noticia:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.card-noticia img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.card-noticia .fecha { font-size: 12px; color: #777; padding: 8px 12px 0; }
.card-noticia h3 { font-size: 15px; color: #ff6600; margin: 4px 12px; font-weight: 700; line-height: 1.4; }

.card-noticia .contenido {
  font-size: 13px; color: #444; margin: 0 12px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.5; max-height: calc(1.5em * 2);
  transition: max-height 0.3s ease;
}

.card-noticia .contenido.expandido { -webkit-line-clamp: 7; max-height: calc(1.5em * 7); }

.noticia-principal-contenido .descripcion {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  overflow: hidden; line-height: 1.6; max-height: calc(1.6em * 4);
  transition: max-height 0.3s ease;
}

.noticia-principal-contenido .descripcion.expandido { -webkit-line-clamp: 7; max-height: calc(1.6em * 7); }

.btn-leer-principal {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  background: #ff6600;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.btn-leer-principal:hover { background: #cc5200; }

.acciones-noticia { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.card-noticia .acciones-noticia { margin: 16px 12px 14px; }
.noticia-principal-contenido .acciones-noticia { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }

.btn-noticia-completa {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  background: #1a73e8;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-noticia .btn-noticia-completa { padding: 5px 12px; font-size: 12px; border-radius: 14px; }
.btn-noticia-completa:hover { background: #1558b0; }

/* ══════════════════════════════════════
   RSE
══════════════════════════════════════ */
.rse { background: #9647a5; color: white; padding: 20px 20px 15px; margin-bottom: 1.5cm; }

.rse-content { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 30px; }

.rse-text { text-align: center; max-width: 600px; }

.numero {
  font-size: 120px;
  font-weight: bold;
  color: #fff;
  text-shadow: 3px 0 #ff7e00,-3px 0 #ff7e00,0 3px #ff7e00,0 -3px #ff7e00,2px 2px #ff7e00,-2px -2px #ff7e00,2px -2px #ff7e00,-2px 2px #ff7e00;
  margin: 0 auto 10px;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 15px;
}

.rse-text p { font-size: 25px; line-height: 1.5; }

.rse-image { position: relative; left: 60px; top: -20px; }
.rse-image img { border: 2px solid orange; border-radius: 20px; width: 400px; height: auto; position: relative; top: -30px; margin-left: 90px; }

.boton-container { text-align: center; margin-top: 1px; position: relative; top: 30px; }

.rse-boton { background: #ff7e00; color: white; border: none; padding: 12px 30px; border-radius: 30px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; }
.rse-boton:hover { background: #ff7e00; transform: scale(1.05); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: #003399;
  color: white;
  padding: 50px 36px 36px;
  display: grid;
  grid-template-columns: minmax(220px,320px) minmax(620px,1fr) minmax(120px,170px);
  column-gap: clamp(24px,4vw,72px);
  row-gap: 34px;
  align-items: start;
  position: relative;
}

.footer-left { display: flex; align-items: center; justify-content: flex-start; }
.footer-logo { width: 140px; height: auto; position: relative; top: -40px; }
.footer-title { font-size: 36px; font-weight: bold; margin-top: 10px; }

.footer-right { min-width: 0; display: flex; justify-content: flex-start; margin: 0; }

.footer-columns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px,1fr));
  gap: clamp(20px,3vw,48px);
  justify-items: center;
}

.footer-column h3 { font-size: 20px; margin-bottom: 15px; }
.footer-column p { margin: 5px 0; font-size: 16px; cursor: pointer; }
.footer-column p:hover { text-decoration: underline; color: #ffcc00; }

.social-icons { grid-column: 1 / -1; display: flex; justify-content: center; gap: 15px; margin-top: 10px; cursor: pointer; }
.social-icons img { width: 24px; height: 24px; }

.footer-legal {
  grid-column: 1 / -1;
  width: calc(100% + 72px);
  margin: 8px -36px 0;
  padding: 22px 20px 6px;
  border-top: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.25;
}

.footer-logos { position: static; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-extra-logo { max-width: 120px; height: auto; }
.footer-juegos-logo { max-width: 190px; height: auto; }

/* ══════════════════════════════════════
   MISC
══════════════════════════════════════ */
.tarjetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tarjeta { background: white; border-radius: 10px; padding: 15px; width: 150px; box-shadow: 0 0 10px rgba(0,0,0,0.1); font-weight: bold; }

.diaria-page { padding: 40px; max-width: 1000px; margin: 0 auto; text-align: center; }
.btn-reglamento { background: #ff7f00; color: white; border: none; padding: 12px 25px; border-radius: 20px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 15px; }
.btn-reglamento:hover { background: hsl(20,100%,50%); }

.esfera { animation: girar 3s linear infinite; }
@keyframes girar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.scroll-up { transform: translateY(-3cm); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  header { height: auto; padding-bottom: 0; }

  .main-header { width: min(94%, 760px); height: auto; min-height: 84px; gap: 14px; flex-direction: column; text-align: center; padding: 10px; }
  .main-header .logo img { height: 80px; margin-bottom: 10px; }

  .nav-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

  .texto-hero { margin-left: 0; }

  .hero { flex-direction: column; text-align: center; padding: 30px 5%; gap: 18px; }
  .hero img { max-height: 200px; margin-top: 15px; }
  .hero h1 { font-size: clamp(28px,7vw,42px); line-height: 1.12; }
  .hero .horarios { font-size: clamp(22px,5vw,36px); }

  .card { width: calc(100% / 2 - 15px); }

  .grid-noticias { grid-template-columns: repeat(2,1fr); }

  .footer { grid-template-columns: 1fr; column-gap: 36px; text-align: center; }
  .footer-left { justify-content: center; }
  .footer-logos { grid-column: 1 / -1; justify-self: center; }
  .footer-columns { gap: 28px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MÓVIL (≤ 768px)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body { font-size: 15px; }

  /* Header */
  header { padding-bottom: 0; height: auto; }

  .top-menu { width: 100%; gap: 8px; padding: 8px 10px; }
  .top-menu a { font-size: 11px; line-height: 1.2; }

  .main-header { width: calc(100% - 20px); margin: 6px auto 0; padding: 10px; border-radius: 12px; }
  .main-header .logo img { height: auto; max-width: 135px; }

  .nav-menu { width: 100%; gap: 6px; }
  .nav-menu a { display: inline-flex; justify-content: center; padding: 6px 8px; font-size: 12px; white-space: nowrap; }

  .play-button img { max-width: 150px; }

  /* Hero */
  .hero { min-height: auto; padding: 28px 16px; }
  .hero h1 { font-size: clamp(26px,9vw,34px); line-height: 1.14; }
  .hero .horarios { font-size: clamp(22px,7vw,30px); }
  .hero .boton { max-width: 100%; white-space: normal; }

  /* Resultados */
  .resultados-box, .noticias-box, .banner-superpremio {
    width: calc(100% - 24px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .resultados-carousel { flex-direction: column; }

  .res-cards { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; gap: 10px; padding: 10px; }
  .res-card { flex: 0 0 80%; max-width: 400px; scroll-snap-align: center; }

  .res-prev, .res-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: linear-gradient(135deg,#ff7f00,#ff5500);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25); z-index: 10;
  }

  .res-prev { left: 10px; }
  .res-next { right: 10px; }

  /* YouTube */
  .youtube-content { flex-direction: column; }
  .youtube-video, .youtube-text { flex: none; width: 100%; max-width: 100%; }

  /* Noticias home */
  .noticias-box { flex-direction: column; padding: 20px; }
  .noticias-left { flex: 0 0 auto; margin-bottom: 15px; text-align: center; align-items: center; }
  .noticias-left h3 { font-size: 28px; }

  .carousel, .res-cards, .tarjetas { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .card, .res-card, .tarjeta { min-width: min(86vw, 320px); }

  .card { width: 100%; max-width: none; height: auto; }
  .card img { height: 200px; }

  /* Página noticias */
  .titulo-noticias { margin: 0 0 40px; padding: 40px 20px 30px; }
  .titulo-noticias h1 { font-size: 28px; letter-spacing: 1px; }

  .noticia-principal-container { flex-direction: column; margin-bottom: 40px; min-height: auto; }
  .noticia-principal-container > img { width: 100%; height: 220px; border-radius: 12px; }
  .noticia-principal-contenido { width: 100% !important; margin-top: 0 !important; position: static !important; padding: 20px; min-height: auto; }
  .noticia-principal-contenido h2 { font-size: 20px; }
  .noticia-principal-contenido .acciones-noticia { flex-direction: column; align-items: flex-start; }

  .grid-noticias { grid-template-columns: 1fr !important; transform: translateY(0) !important; }
  .card-noticia img { height: 180px; }

  /* RSE */
  .rse-content { flex-direction: column; text-align: center; gap: 15px; }
  .numero { font-size: 60px; padding: 10px 20px; }
  .rse-text p { font-size: 20px; }
  .rse-image { left: 0; top: 0; }
  .rse-image img { width: 100%; max-width: 320px; margin: 0 auto; top: 0; }

  /* Footer */
  .footer { grid-template-columns: 1fr; padding: 30px 20px; text-align: center; }
  .footer-left { position: static !important; left: auto !important; top: auto !important; width: 100%; flex-direction: column; justify-content: center; align-items: center; margin-bottom: 16px !important; }
  .footer-logo { position: static !important; top: 0 !important; width: min(160px,48vw) !important; max-width: 48vw !important; margin: 0 auto !important; }
  .footer-right { flex: none !important; width: 100%; }
  .footer-columns { grid-template-columns: repeat(2,minmax(140px,1fr)); gap: 20px; }
  .footer-legal { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; padding: 18px 16px 4px; font-size: 15px; }

  table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px)
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .top-menu { display: grid; grid-template-columns: 1fr 1fr; }
  .main-header { width: calc(100% - 12px); }
  .nav-menu a { font-size: 11px; padding: 5px 6px; }

  .hero, section { padding-left: 12px; padding-right: 12px; }

  .res-prev, .res-next, .prev, .next { width: 40px; height: 40px; font-size: 20px; }

  .titulo-noticias h1 { font-size: 22px; }
  .noticia-principal-container > img { height: 180px; }
  .noticia-principal-contenido h2 { font-size: 18px; }

  .footer-columns { grid-template-columns: 1fr; }
  .footer-legal { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════
   FIX HEADER MÓVIL — menú compacto en una sola fila
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Top-menu compacto en móvil */
  .top-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    width: 100% !important;
  }

  .top-menu a {
    font-size: 10px !important;
    padding: 5px 8px !important;
    border-radius: 4px !important;
  }

  /* Header azul sin altura fija */
  header { height: auto !important; }

  /* Header naranja compacto */
  .main-header {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: auto !important;
    min-height: 60px !important;
    padding: 8px 12px !important;
    width: calc(100% - 16px) !important;
    margin: 6px auto 0 !important;
    gap: 8px !important;
  }

  /* Logo pequeño */
  .main-header .logo img {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Menú horizontal con scroll táctil */
  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 4px 0 !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
  }

  .nav-menu::-webkit-scrollbar { display: none !important; }

  .nav-menu a {
    font-size: 11px !important;
    padding: 5px 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
  }

  /* Botón jugar más pequeño */
  .play-button img { max-width: 110px !important; }

  /* Hero después del header compacto */
  .hero-carousel { margin-top: 0 !important; }
}

@media (max-width: 480px) {
  .main-header { padding: 6px 8px !important; }
  .main-header .logo img { height: 42px !important; }
  .nav-menu a { font-size: 10px !important; padding: 4px 6px !important; }
  .play-button img { max-width: 90px !important; }
}
