/* ===================================================== */
/* GLOBAL */
/* ===================================================== */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #002244, #000814);
  color: white;
  text-align: center;
}

/* ===================================================== */
/* NAV */
/* ===================================================== */

.top-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 15px;
  font-weight: bold;
}

.top-nav a {
  color: white;
  text-decoration: none;
}

.top-nav a:hover {
  text-decoration: underline;
}

/* ===================================================== */
/* WEATHER */
/* ===================================================== */

.weather-box {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

/* ===================================================== */
/* LOGO */
/* ===================================================== */

.logo img {
  width: 720px;
  max-width: none;
  margin: 15px auto 10px;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    width: 95%;
    max-width: 520px;
    margin: 10px auto 5px;
  }
}

/* ===================================================== */
/* LIVE */
/* ===================================================== */

.live-soon {
  margin-top: 5px;
}

.tv-placeholder {
  width: 180px;
  margin: 10px auto;
  display: block;
}

/* ===================================================== */
/* NEWS */
/* ===================================================== */

.news-section {
  width: 90%;
  max-width: 1000px;
  margin: 25px auto;
}

.section-title {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.news-card {
  border: 2px solid white;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  transition: 0.2s;
}

.news-card:hover {
  transform: scale(1.03);
}

.mini-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.mini-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card h3 {
  font-size: 16px;
  margin: 12px 0 8px;
}

.news-card a {
  display: block;
  margin-top: 8px;
  color: white !important;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 0;
}

.news-card a:hover {
  color: cyan !important;
  text-decoration: underline;
}

/* ===================================================== */
/* COMUNIDAD - REFINADO FINAL */
/* ===================================================== */

/* ICONOS HERO (arregla tamaño gigante) */

.icon-hero {
  width: 160px;
  max-width: 40%;
  height: auto;
  margin: 30px auto 15px auto;
  display: block;
}

/* SECCIÓN CONTENIDO */

.sub-section {
  background: transparent;
  padding: 40px 20px;
}

/* GRID TARJETAS */
/* COMUNIDAD PRINCIPAL (2 tarjetas centradas y chicas) */

.comunidad-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 50px auto;
  max-width: 600px;
}

.comunidad-cards .card {
  width: 220px;   /* 1/4 aprox visual */
  min-height: 160px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 500px;  /* mucho más angosto */
  margin: 40px auto;
}

/* TARJETA */

.card {
  border: 2px solid white;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  padding: 18px;
  min-height: 180px; /* mucho más compacta */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
  border-color: #ff7a00; /* naranja del logo */
}

/* CONTENIDO INTERNO */

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 8px;
}

.card-content p {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
}

/* BOTÓN INTERNO */

.card-content a {
  margin-top: auto;
  align-self: center;
  padding: 7px 16px;
  border-radius: 12px;
  background: #00cfff;   /* celeste brillante */
  color: #002244;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s ease;
}

.card-content a:hover {
  background: white;
  color: #002244;
}

.card-content a:hover {
  background: white;
  color: #002244;
}

/* ===================================================== */
/* NOTICIA AMPLIADA */
/* ===================================================== */

.noticia-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 25px;
  text-align: left;
}

.noticia-container h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.noticia-container .meta {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 25px;
}

.noticia-container img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 16px;
}

#descripcion {
  text-align: left;
}

#descripcion p {
  font-size: 1.6rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ===================================================== */
/* BOTON VOLVER */
/* ===================================================== */

.volver-btn,
.volver {
  display: inline-block;
  margin: 40px auto;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  transition: 0.25s ease;
}

.volver:hover,
.volver-btn:hover {
  background: white;
  color: #002244;
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media (max-width: 768px) {

  .noticia-container {
    padding: 20px;
  }

  .noticia-container h1 {
    font-size: 2.1rem;
  }

  #descripcion p {
    font-size: 1.4rem;
  }

}

/* ===================================================== */
/* COMUNIDAD PRINCIPAL - FORMATO VERTICAL */
/* ===================================================== */

.comunidad-cards {
  display: flex;
  flex-direction: column;   /* vertical */
  align-items: center;
  gap: 35px;
  margin: 60px auto;
}

.comunidad-cards .card {
  width: 320px;              /* más grande */
  max-width: 90%;
  min-height: 190px;
  border: 2px solid white;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  padding: 25px;
  transition: 0.25s ease;
}

.comunidad-cards .card:hover {
  transform: scale(1.03);
  border-color: #ff7a00;
}

.comunidad-cards .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comunidad-cards h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.comunidad-cards p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.comunidad-cards a {
  margin-top: auto;
  align-self: center;
  padding: 9px 20px;
  border-radius: 20px;
  background: #00cfff !important;
  color: #002244 !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: 0.2s ease;
}

.comunidad-cards a:hover {
  background: white !important;
  color: #002244 !important;
}
/* ================= CONTACTO ================= */

.contacto-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.contacto-section h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contacto-desc {
  margin-bottom: 40px;
  opacity: 0.9;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 14px;
  border-radius: 12px;
  border: 2px solid white;
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 15px;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contacto-form button {
  padding: 12px;
  border-radius: 20px;
  border: none;
  background: #00cfff;
  color: #002244;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.contacto-form button:hover {
  background: white;
}
/* ================= SOBRE ================= */

.sobre-section {
  max-width: 850px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: left;
}

.sobre-section h1 {
  text-align: center;
  margin-bottom: 40px;
}

.sobre-section p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 28px;
}
/* ================= PUBLICIDAD ================= */

.publicidad-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.publicidad-desc {
  margin-bottom: 50px;
  opacity: 0.9;
}

.publicidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* ================= FOOTER ================= */

.main-footer {
  text-align: center;
  padding: 40px 20px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #4fd8ff; /* celeste */
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: white;
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.sponsors img {
  height: 60px;
}

/* ================= SPONSORS HOME ================= */

.sponsors-section {
  margin: 60px 0;
  padding: 30px 20px;
  text-align: center;
}

.sponsors {
  display: flex;
  flex-wrap: wrap; /* esto hace que en celular bajen */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.sponsors img {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}

.sponsors img:hover {
  transform: scale(1.05);
}

/* ================= ENLACES GENERALES ================= */

a {
  text-decoration: none;
  color: #4fd8ff; /* celeste institucional */
}

a:hover {
  color: white;
}

.main-footer a {
  display: inline-block;
  margin-bottom: 8px;
}

/* ================= FRANJA SPONSORS HOME ================= */

.sponsors-section {
  margin-top: 80px;
  padding: 50px 20px;
  background-color: #0f2e4a; /* azul un poco más claro */
  border-top: 2px solid #ff7a00; /* línea naranja sutil */
  border-bottom: 2px solid #ff7a00;
  text-align: center;
}

.sponsors-title {
  margin-bottom: 30px;
  font-weight: 600;
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.sponsors img {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.sponsors img:hover {
  transform: scale(1.05);
  opacity: 1;
}
/* ================= VAR SECTION ================= */

.var-title {
  font-size: 30px;
  margin-top: 60px;
  color: #ff7a00; /* naranja institucional del logo */
  text-align: center;
  letter-spacing: 0.6px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,122,0,0.25);
  position: relative;
}

/* línea fina premium debajo del título */
.var-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #ff7a00, #ffb347);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,122,0,0.35);
}

/* En PC hasta 3 tarjetas */
#home-var {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

/* En móvil 1 columna tipo diario */
@media (max-width: 768px) {
  #home-var {
    grid-template-columns: 1fr;
  }
}

/* ================= SLIDER NOTICIA ================= */

.slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 12px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-wrapper img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 8px;
  z-index: 10;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Ocultar flechas si hay una sola imagen */
.slider-container.single .slider-btn {
  display: none;
}
