/* ============================================================
   🧱 GUÍA COMERCIAL - ESTILOS UNIFICADOS (2025)
   ============================================================ */

/* === BASE GENERAL === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
}
img { max-width: 100%; display: block; }

/* ============================================================
   🟧 CABECERA GENERAL
   ============================================================ */
header {
  background: #fff;
  border-bottom: 5px solid #060606;
  display: flex;
  align-items: center;
  width: 100%;
}
.header-inner {
  width: 100%;
  max-width: 1500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding:0 15px;
}
.logo-area {
  background: #fff;
  text-align: center;
  padding: 10px 0;
}
.logo-area .logo {
  height: 150px;
  width: auto;
  display: inline-block;
}
.menu-bar {
  background: #f47c00;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  box-sizing: border-box;
}
.menu-btn {
  background: #a30000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.menu-btn:hover { background: #820000; }
.menu-bar .search-box {
  display: flex;
  align-items: center;
  background: #03a2bd;
  border-radius: 3px;
  overflow: hidden;
}
.menu-bar .search-box input {
  border: none;
  padding: 6px 8px;
  font-size: 0.9em;
  outline: none;
  width: 160px;
}
.menu-bar .search-box button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  padding: 6px;
}

/* === HEADER - ESCRITORIO === */
@media (min-width: 769px) {
  header { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 20px; }
  .header-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .logo-area { background: none; padding: 0; text-align: left; }
  .logo-area .logo { height: 150px; }
  .menu-bar { background: none; width: auto; padding: 0;padding-right: 30px; }
  .menu-btn { display: none !important; }
  .menu-bar .search-box input { width: 220px; }
  
}

/* ============================================================
   🧭 ESTRUCTURA GENERAL (4 columnas)
   ============================================================ */
.container {
  display: grid;
  grid-template-columns: 260px 1fr 240px 260px; /* menú | contenido | gratuitas | publicidad */
  gap: 20px;
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.container-noti{
    display: grid;
  grid-template-columns: 260px 1fr 260px; /* menú | contenido | gratuitas | publicidad */
  gap: 20px;
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ============================================================
   🟧 MENÚ LATERAL (CATEGORÍAS)
   ============================================================ */
aside {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 15px;
}
#menuCategorias {
  background: #03a2bd;
  border-radius: 6px;
  color: #fff;
  overflow: hidden;
}
#menuCategorias h2 {
  background: #505050;
  border-radius: 6px 6px 0 0;
  color: #fff;
  font-weight: bold;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #f3f3f3;
  padding: 6px 8px;
}
.search-box input {
  flex: 1;
  border: none;
  padding: 6px;
  border-radius: 4px;
  font-size: 0.9em;
  outline: none;
      width: 80%;
}
.search-box button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1em;
  margin-left: 5px;
  cursor: pointer;
}

/* Categorías principales */
.menu-categorias {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-categorias > li {
  background: #e1e1e1;
  border-bottom: 1px solid rgba(165 156 156 / 25%);
}
.menu-categorias > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  color: #03a2bd;
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: none;
  cursor: pointer;
}
.menu-categorias > li > a:hover {
  background: rgba(165 156 156 / 25%);
}

/* Eliminamos el pseudo-elemento + duplicado */
.menu-categorias > li > a::after {
  content: none !important;
}

/* Signo + / - dentro del span */
.menu-categorias a .signo {
  font-weight: bold;
  font-size: 1.1em;
  color: #fff;
  margin-left: 8px;
  transition: transform 0.25s ease;
}
.menu-categorias li.open > a .signo {
  transform: rotate(90deg);
}

/* Submenús */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f3f3f3;
  max-height: 0;
  opacity: 1;
  transition: all 0.3s ease;
}
.menu-categorias li.open > .submenu {
  max-height: 500px; /* o más, si querés que se vea más fluido */
  opacity: 1;
}
.submenu li a {
  display: block;
  color: #03a2bd;
  text-decoration: none;
  font-size: 0.9em;
  padding: 8px 20px 8px 28px;
  background: #f3f3f3;
  border-bottom: 1px solid rgba(165 156 156 / 25%);
}
.submenu li a:hover {
  background: rgba(165 156 156 / 25%);
}

/* ============================================================
   🏙️ CONTENIDO CENTRAL
   ============================================================ */
main {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 15px;
  overflow: hidden;
}
main h1 {
  color: #a30000;
  font-size: 1.4em;
  margin-top: 0;
}
main h2 {
  background: #03a2bd;
  color: #fff;
  padding: 10px;
  font-size: 1em;
  text-transform: uppercase;
  border-radius: 8px 8px 0 0;
}

.titulo-seccion {
  position: relative;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #03a2bd;
    text-transform: uppercase;
    border-top: 2px solid #dcdcdc;
    border-bottom: 2px solid #dcdcdc;
    margin: 20px 0px 10px;
    padding-bottom: 3px;
    padding-top: 3px;
}

.titulo-seccion::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 85px;
  height: 23px;
  background: #03a2bd; /* mismo naranja */
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

/* === Post listado === */
.post {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  
  /* 🟡 Etiqueta Premium */
.etiqueta-premium {
  position: absolute;
    top: 17px;
    right: -23px;
  transform: rotate(45deg);
  background: linear-gradient(45deg, #FFD700, #E6BE00);
  color: #333;
  font-weight: bold;
  font-size: 11px;
  width: 100px;
  text-align: center;
  padding: 4px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  text-transform: uppercase;
  z-index: 2;
}

}
.post:last-child {  }
.post img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.post-info { flex: 1; }
.post-info h3 { font-size: 1em; margin: 0; color: #03a2bd; }
.post-info p { margin: 3px 0; font-size: 0.85em; }
.post-info .btn {
  display: inline-block;
  background: #03a2bd;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.8em;
}
.post-info .btn:hover { background: #820000; }

/* ============================================================
   🖼️ SLIDER DE IMÁGENES (VER_POST)
   ============================================================ */
.main-swiper {
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 0 auto 15px auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-swiper {
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}
.thumb-swiper .swiper-slide {
  width: 120px;
  height: 80px;
  opacity: 0.6;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 5px;
}
.thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-swiper .swiper-slide:hover { transform: scale(1.05); opacity: 0.9; }
.thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #a30000;
}

/* ============================================================
   🟦 COLUMNA GRATUITAS Y PUBLICIDAD
   ============================================================ */


.col-gratuitas,
.right {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 15px;
}
.col-gratuitas h2,
.right h2 {
  background:#03a2bd;;
  color: #fff;
  padding: 10px;
  font-size: 1em;
  text-transform: uppercase;
  margin: -15px -15px 15px -15px;
  border-radius: 8px 8px 0 0;
}

.col-gratuitas span {
    background: #03a2bd;
    color: #fff;
    padding: 10px;
    font-size: 1em;
    text-transform: uppercase;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
}

.gratuita-item {     border: 1px solid #eee;padding: 8px 8px; }
.gratuita-item h3 { color: #03a2bd; font-size: 0.9em; margin: 0; }
.gratuita-item p { margin: 2px 0; font-size: 0.8em; }
.tel::before { content: "📞 "; color: #f47c00; }
.banner {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 10px;
  padding: 10px;
}
.banner img { max-width: 100%; height: auto; }

/* ============================================================
   📰 GUIA NEWS (diseño similar a GRATUITAS)
   ============================================================ */
.col-news h2 {
  background: #03a2bd; /* igual que el encabezado de gratuitas */
  color: #fff;
  padding: 10px;
  font-size: 1em;
  text-transform: uppercase;
  margin: -15px -15px 15px -15px;
  border-radius: 8px 8px 0 0;
}

.news-item {
  border: 1px solid #eee;
  padding: 8px 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #fafafa;
}

.news-item small {
  display: block;
  font-size: 0.75em;
  color: #777;
  margin-bottom: 3px;
}

.news-item h3 {
  color: #03a2bd;
  font-size: 0.9em;
  margin: 0 0 3px 0;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  text-decoration: underline;
}

.news-item p {
  margin: 0;
  font-size: 0.8em;
  color: #333;
}

/* ============================================================
   🟢 BOTÓN WHATSAPP
   ============================================================ */
.btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: scale(1.08); }

/* ============================================================
   ✳️ RESALTE DE CATEGORÍA ACTIVA
   ============================================================ */
.menu-categorias a.activo {
  background: rgba(255,255,255,0.25) !important;
  color: #1c1c1c !important;
  border-left: 4px solid #fff;
  padding-left: 10px;
}
.menu-categorias li.activo > a {
  background: rgba(255,255,255,0.25) !important;
}

/* ============================================================
   📱 RESPONSIVE AJUSTADO
   ============================================================ */
@media (max-width: 1400px) {
  .container {
    max-width: 1400px;
    grid-template-columns: 240px 1fr 220px 240px;
    gap: 15px;
  }
  
  .contenedor {
    max-width: 1400px;
    grid-template-columns: 240px 1fr 220px 240px;
    gap: 15px;
  }
  
  main { padding: 12px; }
  .main-swiper { max-width: 700px; height: 420px; }
}
@media (max-width: 1024px) {
    
  .container {
    grid-template-columns: 240px 1fr;
    gap: 15px;
  }
  .col-gratuitas, .right { display: none; }
  main { padding: 12px; }
}
@media (max-width: 768px) {
  .container { display: block; padding: 0 10px; margin: 0; }
  .col-gratuitas, .right { display: none; }
  aside {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background: #f47c00;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
  }
  
  .container-noti{
    display: grid;
  grid-template-columns: 1fr; /* menú | contenido | gratuitas | publicidad */
  gap: 20px;
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
} 
  aside.open { left: 0; }
  #overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 900;
  }
  #overlay.show { display: block; }
  main { border-radius: 0; box-shadow: none; width: 97%;}
  
  .menu-bar .search-box {
    display: none;
    align-items: center;
    background: #03a2bd;
    border-radius: 3px;
    overflow: hidden;
}

.header-inner {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    margin-bottom: 10px;
}

header {
    background: #fff;
    border-bottom: 5px solid #060606;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    width: 100%;
}

.post {
    position: relative;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(221, 221, 221);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
}

/* ============================================================
   📰 GUIA NEWS (dentro de la misma columna que GRATUITAS)
   ============================================================ */
.news-block {
  margin-top: 20px;
  border-top: 2px solid #03a2bd;
  padding-top: 10px;
}

.news-block h2 {
  background: #03a2bd;
  color: #fff;
  padding: 10px;
  font-size: 1em;
  text-transform: uppercase;
  margin: -15px -15px 15px -15px;
  border-radius: 8px 8px 0 0;
}

.news-item {
  border: 1px solid #eee;
  background: #fafafa;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.news-item small {
  display: block;
  font-size: 0.75em;
  color: #777;
}

.news-item h3 {
  margin: 3px 0;
  font-size: 0.9em;
  color: #03a2bd;
}

.news-item a {
  color: inherit;
  text-decoration: none;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-item p {
  font-size: 0.8em;
  margin: 0;
}

/* ============================================================
   🖼️ Guía News con imagen miniatura
   ============================================================ */
.news-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 6px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.news-thumb {
  flex: 0 0 55px;
  height: 55px;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-info {
  flex: 1;
  min-width: 0;
}

.news-info small {
  display: block;
  font-size: 0.7em;
  color: #777;
  margin-bottom: 2px;
}

.news-info h3 {
  margin: 0;
  font-size: 0.85em;
  color: #03a2bd;
  line-height: 1.1em;
}

.news-info h3 a {
  color: inherit;
  text-decoration: none;
}

.news-info h3 a:hover {
  text-decoration: underline;
}

.news-info p {
  margin: 2px 0 0 0;
  font-size: 0.75em;
  color: #333;
  line-height: 1.2em;
}

/* ============================================================
   🔵 BOTÓN "VER TODAS LAS NOTICIAS"
   ============================================================ */
.btn-ver-noticias {
  display: inline-block;
  background: #03a2bd;
  color: #fff;
  font-size: 0.85em;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s ease;
}
.btn-ver-noticias:hover {
  background: #820000;
  color: #fff;
}

/* 🏷️ Etiquetas de Plan */
.etiqueta-plan {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  border-bottom-left-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* 🎨 Colores según plan */
.etiqueta-plan.estandar {
  background: #bbb;
  color: #fff;
}

.etiqueta-plan.premium {
  background: #f5c518; /* amarillo dorado */
  color: #000;
}

.etiqueta-plan.platino {
  background: linear-gradient(359deg, #5a4f4f, #f9f9f9); /* dorado brillante */
  color: #000;
}

/* Asegurar que el contenedor permita la posición absoluta */
.post {
  position: relative;
}

/* 🌟 SLIDER DESTACADOS (solo Platino) */
.slider-destacados {
  width: 100%;
  height: 350px;
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.slider-destacados .swiper-slide {
  position: relative;
}

.slider-destacados img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* 📍 Bloque inferior con nombre y plan */
.slider-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 96%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.55);
  padding: 12px 16px;
  color: #fff;
}

.slider-titulo {
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.slider-plan {
  background: linear-gradient(359deg, rgb(90, 79, 79), rgb(249, 249, 249));
  color: #000;
  font-weight: bold;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pagination{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin:25px 0;
}

.page-btn{
    padding:8px 14px;
    background:#03a2bd;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
}

.page-btn:hover{
    opacity:.9;
}

.page-btn.active{
    background:#a30000;
}