/* ======= Reset ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #8b0000; /* Rojo oscuro navideño */
  color: white;
  text-align: center;
}

/* ======= Hero / Encabezado ======= */
.hero {
  padding: 60px 0px;
  /* border: #222 solid 5px; */
}

.hero h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff; /* Dorado */
  /* border: #222 solid 5px; */
}

.hero h1 span {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  /* border: #222 solid 5px; */
}

/* ======= Botones del menú ======= */
.menu-buttons {
  width: 100%;
  height: fit-content;
  margin: 30px auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  /* border: #317976 solid 5px; */
}

.menu-btn {
  background-color: #cc0000;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background-color: #ff4d4d;
  transform: translateY(-3px);
}

/* ======= Subtexto ======= */
.hero-text {
  margin-top: 30px;
  font-size: 1rem;
  font-weight: 300;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  /*  border: #317976 solid 5px; */
}

/* Sección del Logotipo */
.logo-section {
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: start;
  /* border: #317976 solid 5px; */
}

/* Imagen del logo */
.logo-img {
  width: 300px;
  height: 400px; /* Deja que la imagen use su altura natural */
  /* border: #222 solid 5px; */
}

/* Sección CUANDO */
.seccion-cuando {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  background-color: #8b0000;
  color: #fff;
}

.titulo-seccion {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.titulo-seccion i {
  margin-right: 8px;
  color: #e9a513; /* sutil dorado */
}

.contenido-cuando {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}

.contenido-cuando i {
  margin-right: 8px;
  color: #e9a513;
}

/* Contenedor centrado del botón CTA */
.cta-contenedor {
  text-align: center;
  margin-top: 30px;
}

/* Botón CTA */
.btn-cta {
  display: inline-block;
  background: #ec0f0f;
  color: #fff;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta i {
  margin-right: 8px;
}

/* Hover animado */
.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Sección Punto de Encuentro */
.punto-encuentro {
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.punto-encuentro h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #fff; /* Rojo navideño */
}

.punto-encuentro h2 i {
  margin-right: 10px;
  color: #e9a513;
}

.punto-contenido {
  display: flex;
  justify-content: center;
}

.punto-texto {
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.punto-texto p {
  font-size: 1.1rem;
  margin: 12px 0;
}

.punto-texto i {
  margin-right: 10px;
  color: #e9a513;
}

/* Contenedor del mapa */
.mapa-contenedor {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.mapa-contenedor iframe {
  width: 100%;
  height: 300px;
  max-width: 800px;
  border-radius: 10px;
}

/* Sección general */
.malls-section {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
}

.malls-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 30px;
}

.malls-section h2 i {
  color: #e9a513;
}

.transporte-section {
  text-align: center;
  padding: 60px 20px;
}

.transporte-section h2 {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.transporte-section h2 i {
  color: #e9a513;
}

/* Carrusel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.mall-name {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.tiktok-embed {
  width: 100%;
}

/* ========== FOOTER ========== */
.footer {
  background: #222;
  color: #fff;
  padding: 50px 20px 10px;
  font-family: "Poppins", sans-serif;
  margin-top: 5%;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* Columna general */
.footer-container div {
  flex: 1;
  min-width: 250px;
}

.footer h3,
.footer h4 {
  font-weight: 600;
  margin-bottom: 15px;
}

.footer p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 10px;
}

/* Enlaces de contacto */
.footer-contacto a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-contacto a:hover {
  color: #25d366;
  transform: translateX(5px);
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #aaa;
}

/* Botón flotante para subir */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #cc0000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  z-index: 999; /* Siempre encima */
}

.back-to-top:hover {
  background-color: #ff4d4d;
  transform: translateY(-3px);
  opacity: 1;
}

/* ======= CORRECCIÓN RESPONSIVE ======= */

/* --- Asegura que nada genere scroll lateral --- */
html,
body {
  overflow-x: hidden;
}

/* --- Ajustes generales responsivos --- */
section,
.hero,
.footer {
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* --- Tablets (hasta 1024px) --- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .logo-img {
    width: 250px;
    height: auto;
  }

  .carousel-item img {
    height: 350px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --- Pantallas medianas (hasta 768px) --- */
@media (max-width: 768px) {
  /* Centramos todo el contenido */
  body {
    text-align: center;
  }

  .hero {
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero h1 span {
    font-size: 1rem;
  }

  /* Botones del menú centrados */
  .menu-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .menu-btn {
    width: 80%;
    max-width: 250px;
    font-size: 1rem;
    padding: 12px;
  }

  .hero-text {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0 auto;
  }

  /* Logo centrado */
  .logo-section {
    flex-direction: column;
    align-items: center;
  }

  .logo-img {
    width: 220px;
    height: auto;
    margin: 0 auto;
  }
}
