body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
}

/* HEADER */

header {
  background: #0b3d91;
  color: white;
  padding: 10px;
}

/* HEADER DISTRIBUCIÓN */
.header-content{
  display:flex;
  align-items:center;
  justify-content:space-between; /* separa izquierda, centro y derecha */
  gap:15px;
  flex-wrap:nowrap; /* importante */
}

/* IZQUIERDA */
.header-left{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:120px; /* evita que se estire */
}

/* CENTRO */
.header-text{
  flex:1; /* ocupa el espacio central */
  text-align:center;
}

.banner-img{
  width:100%; 
  max-width:600px;   /* controla el tamaño máximo */
  height:auto;
  margin-top:10px;
  /*display:block;*/
}

.weather-mini{
  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(5px);
  padding:8px 12px;
  border-radius:10px;
  font-size:13px;
  min-width:140px;
  text-align:right;
}

#weather-current{
  font-size:16px;
  font-weight:bold;
}

#weather-days div{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
}

.logo {
  width: 60px;
  height: auto;
}

/* MENU */

nav {
  background: #072c66;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav a.active {
  background: #0b3d91;
  border-bottom: 3px solid #ffd700;
}

nav a:hover {
  background: #0b3d91;
}

/* HERO */

.hero {
  position: relative;
  height: 250px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 25px;
  text-shadow: 2px 2px 6px black;
  text-align: center;
}

.hero-video {
  position: absolute;

  top: 50%;
  left: 50%;

  min-width: 100%;
  min-height: 100%;

  width: auto;
  height: auto;

  transform: translate(-50%, -50%);
  object-fit: cover;

  z-index: -1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* CONTENEDOR */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.bienvenida {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.bienvenida h2 {
  color: #0b3d91;
  margin-top: 0;
}

.bienvenida p {
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}

/* TARJETAS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  row-gap: 35px;
  column-gap: 15px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* IMAGENES DENTRO DE CARDS */

.card-images {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  margin-bottom: 10px;
}

.logo-rest img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.platillos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.platillos img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.small-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.card.small {
  padding: 12px;
  font-size: 14px;
}

.card.small h4 {
  margin: 5px 0;
  font-size: 14px;
}

/* TEXTO MÁS COMPACTO */
.card.small p {
  font-size: 14px;
  margin: 0;
  color: #555;
  margin: 0 0 5px 0; /* reduce espacio debajo */
}

/* INFO DE CARD */

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* RATING */

.rating {
  font-size: 14px;
  color: #ffb400;
  font-weight: bold;
}

.rating span {
  color: #333;
  margin-left: 5px;
}

/* ACCIONES */

.acciones {
  display: flex;
  gap: 10px;
}

.acciones a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
}

/* MAPA */

.btn-mapa {
  background: #0b3d91;
  color: white;
}

/* WHATSAPP */

.btn-whatsapp {
  background: #25d366;
  color: white;
}

/* PUBLICIDAD */

.ads {
  background: #e5e5e5;
  border: 2px dashed #bbb;
  text-align: center;
  padding: 30px;
  margin: 40px 0;
  font-size: 18px;
}


/* CONTENEDOR */
.ads-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* SLIDES */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ACTIVO */
.slide.active {
  display: block;
}

/* BOTONES */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* MAPA */

#map {
  height: 500px;
  width: 100%;
  border-radius: 10px;
}

/* FOOTER */

footer {
  background: #072c66;
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 40px;
}

/* RESPONSIVE MOVIL */

@media (max-width: 768px) {
  .logo {
    width: 40px;
  }

  .hero {
    height: 260px;
    font-size: 28px;
    padding: 20px;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .ads {
    padding: 20px;
  }

  .header-content{
    flex-direction:column;
  }

  .weather-mini{
    text-align:center;
  }

   .banner-img{
    max-width:280px;
  }

}


/* ANUNCIO FLOTANTE */

.ads-floating {
  position: fixed;
  right: 15px;
  top: 40%;
  transform: translateY(-50%);

  width: 220px;
  background: white;
  border-radius: 12px;
  padding: 15px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 999;

  text-align: center;
  display: none;
}

.ads-floating img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* BOTON PRINCIPAL */
.btn-ad {
  display: block;
  background: #0b3d91;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: 0.3s;
}

.btn-ad:hover {
  background: #072c66;
}

/* BOTON CERRAR */
.ads-close {
  position: absolute;
  top: 5px;
  right: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #999;
}

.ads-close:hover {
  color: red;
}

@media (max-width: 900px) {
  .ads-floating {
    display: none !important;
  }
}

/* OCULTAR EN MOVIL */
@media (max-width: 900px) {
  .ads-floating {
    display: none !important;
  }
}

/* APP FLOTANTE */

.app-float {
  position: fixed;
  bottom: 20px;
  left: 20px;

  display: flex;
  flex-direction: column; /* 🔥 clave para que QR vaya arriba */
  align-items: center;

  gap: 8px;

  background: white;
  padding: 12px;
  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

/* QR MÁS GRANDE */
.app-qr {
  width: 140px;
  height: 140px;
  padding: 6px;
  background: white;
  border-radius: 10px;
}

/* ICONO */
.app-float-icon {
  width: 30px;
}

/* TEXTO */
.app-float-text {
  font-size: 13px;
  font-weight: bold;
  color: #0b3d91;
  text-align: center;
}

/* BOTON */
.app-float-btn {
  background: #25d366;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

/* CONTENEDOR VIDEO RESPONSIVE */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

.app-qr {
  width: 50px;
  height: 50px;
  margin-left: 5px;
  border-radius: 6px;
}



/* CONTENEDOR ESTADO DEL TIEMPO */
.weather-box{
  background:white;
  padding:20px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  margin-bottom:30px;
}

.weather-current{
  font-size:18px;
  margin-bottom:15px;
}

.weather-days{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.day{
  background:#f5f5f5;
  padding:10px;
  border-radius:8px;
  flex:1;
  min-width:120px;
  text-align:center;
}

/* FONDO OSCURO */
.alerta-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* CAJA */
.alerta-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* BOTÓN CERRAR */
.alerta-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

/* BOTÓN ACCIÓN */
.alerta-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background: #0077cc;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}