/* Slider*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #282828;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  transition: background-position 0.2s ease-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}


a {
  text-decoration: none;
}

.main {
  padding-top: 70px;
  flex: 1;
}


.swiper {
  width: 100%;
  height: 60vh;
}


.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 5rem;
    background-color: rgba(255, 255, 255, 0.331);

  
}

.slide-bg {
  position: absolute;
  top: 0;
   inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  
  transition: all 900ms;
  opacity: 0;
  transform: translateY(-20px);
  
}


.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-content {
    position: relative;
    z-index: 3;
    
}

.slide-content__subtitle {
  font-size: 0.5rem;
  font-weight: 300;
  display: block;
}

.slide-content__title {
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1.1;
  color: #000000f7;
}

.slide-content__text {
  font-size: 1rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-style: italic;
  color: #000000;
}

.button {
  padding: 1rem 2rem;
  background-color: #282828;
  color: #ffffff;
  display: inline-block;
  transition: all 300ms;
}

.button:hover {
  padding: 1rem 2.5rem;
}

/* Slider Activacion */
.slide-content__subtitle,
.slide-content__title,
.slide-content__subtitle,
.slide-content__text,
.slide-content__buttons {
  transition: 900ms;
  opacity: 0;
  transform: translateX(-300px);
}

.slide-bg {
  transition: all 900ms;
  opacity: 0;
  transform: translateY(-20px);
  
}
.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.swiper-slide-active .slide-bg {
  opacity: 1;
  transform: translateY(0);

}

.swiper-slide-active .slide-content__subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

.swiper-slide-active .slide-content__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 700ms;
}

.swiper-slide-active .slide-content__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 900ms;
}

.swiper-slide-active .slide-content__buttons {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1100ms;
}


/* Estilos responsivos mejorados */
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
    /* Tipografía más compacta en móvil */
    overflow-x: hidden;
    /* Evita scroll lateral innecesario */
  }

  .swiper {
    height: 70vh;
    /* Un poco más alto en móvil para mejor visibilidad */
  }

  .container {
    max-width: 100%;
    /* Que ocupe todo el ancho en móvil */
    padding: 1.5rem;
    /* Menos padding que en desktop */
    border-radius: 12px;
    /* Bordes redondeados para aspecto moderno */
    background-color: rgba(255, 255, 255, 0.8);
  }

  .slide-content {
    max-width: 100%;
    /* Que no quede cortado */
    text-align: center;
    /* Centrado en móvil para mejor lectura */
  }

  .slide-content__subtitle {
    font-size: 0.9rem;
  }

  .slide-content__title {
    font-size: 1.8rem;
    /* Más pequeño en móvil */
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .slide-content__text {
    font-size: 0.9rem;
    margin: 0.5rem 0 1.2rem;
    line-height: 1.4;
  }

  .button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* Mejora de visibilidad con overlay */
  .slide-bg:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(105, 104, 104, 0.002),
        rgba(0, 0, 0, 0.5));
    /* Degradado oscuro para que el texto se lea mejor */
    z-index: 1;
  }

  .slide-bg img {
    object-fit: cover;
    object-position: center;
    /* Centrado en móvil */
  }

  /* Elevar texto por encima del overlay */
  .slide-content {
    position: relative;
    z-index: 2;
  }
}


/* Slider*/

/* Menu */

:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(125, 95%, 47%);
  --black-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat Alternates", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive */
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
  }
}

html {
  scroll-behavior: smooth;
}


ul {
  list-style: none;
}

a {
  text-decoration: none;
}


.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}


.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--black-color);
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo__img {
  height: 60px;
  width: auto;
}


.nav__close,
.nav__toggle {
  display: flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}


@media screen and (max-width: 1150px) {
  .nav__menu {

    position: fixed;
    left: -100%;
    top: 0;
    background-color: var(--black-color);
    width: 100%;
    height: 100%;
    padding: 6rem 3.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .4s;
  }

  .nav__item {
    transform: translateX(-150px);
    visibility: hidden;
    transition: transform .4s ease-out, visibility .4s;
  }

  .nav__item:nth-child(1) {
    transition-delay: .1s;
  }

  .nav__item:nth-child(2) {
    transition-delay: .2s;
  }

  .nav__item:nth-child(3) {
    transition-delay: .3s;
  }

  .nav__item:nth-child(4) {
    transition-delay: .4s;
  }

  .nav__item:nth-child(5) {
    transition-delay: .5s;
  }
}

.nav__list,
.nav__social {
  display: flex;
}

.nav__list {
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  transition: opacity .4s;
}

.nav__link i {
  font-size: 2rem;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.nav__link span {
  position: relative;
  transition: margin .4s;
}

.nav__link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  transition: width .4s ease-out;
}


.nav__link:hover span {
  margin-left: 2.5rem;
}

.nav__link:hover i {
  opacity: 1;
  visibility: visible;
}

.nav__link:hover span::after {
  width: 100%;
}


.nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
  opacity: .4;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.nav__social {
  column-gap: 1rem;
}

.nav__social-link {
  color: var(--white-color);
  font-size: 1.5rem;
  transition: transform .4s;
}

.nav__social-link:hover {
  transform: translateY(-.25rem);
}


.show-menu {
  left: 0;
}


.show-menu .nav__item {
  visibility: visible;
  transform: translateX(0);
}


@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__link i {
    font-size: 1.5rem;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 3.5rem;
  }
}


/* Cont Info */



/* Pie de Pagina */
.pie__pagina {
  width: 100%;
  background-color: white;
  padding: 40px 0;
  color: #282828;
}

.pie__pagina .grupo-1 {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
}

.pie__pagina .grupo-1 .box {
  text-align: center;
}

.pie__pagina .grupo-1 .box figure {
  margin: 0;
  padding: 0;
}

.pie__pagina .grupo-1 .box figure img {
  width: 120px;
  height: auto;
}

.pie__pagina .grupo-1 .box h2 {
  color: #0b0e0b;
  font-size: 20px;
  margin-bottom: 15px;
}

.pie__pagina .grupo-1 .box p {
  color: #040504;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.pie__pagina .grupo-1 .red-social a {
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
  color: #0a0a0a;
  font-size: 20px;
  width: 40px;
  height: 50px;
}

.pie__pagina .grupo-2 {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #2eec076d;
  padding-top: 10px;
  font-size: 12px;
  color: #020202;
}

/* Responsive Pie */
@media (max-width: 768px) {
  .pie__pagina .grupo-1 {
    grid-template-columns: 1fr;
  }

  .pie__pagina .grupo-1 .box {
    margin-bottom: 30px;
  }
}


/* Sucursales */

.slider-main {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  /* Sombra suave para profundidad */
  background-color: #000;
  /* Fondo para evitar parpadeo en carga */
}

.custom-swiper-slide {
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  border-radius: 50px;
  /* Para que la imagen y contenido se ajusten */
}

.slide-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 50px;
}

.slide-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
  transition: filter 0.5s ease, transform 0.5s ease;
  border-radius: 50px;
}

.slide-image-link:hover img {
  filter: brightness(0.6);
  transform: scale(1.05);
  cursor: pointer;
}

.custom-overlay-content {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 0.6rem 1.8rem;
  border-radius: 12px;
  font-size: 1.1rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.custom-footer-banner {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.75rem 3rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  max-width: 90%;
}

.slide-title {
  font-size: 2.75rem;
  color: rgb(7, 255, 28);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  text-shadow: 0 0 8px rgb(7, 255, 28);
}

.btn__ubicacion {
  padding: 1rem 2.5rem;
  background-color: rgb(7, 255, 28);
  color: #282828;
  display: inline-block;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition:
    padding 300ms ease,
    background-color 300ms ease,
    color 300ms ease,
    box-shadow 300ms ease;
  box-shadow: 0 4px 12px rgba(7, 255, 28, 0.6);
  user-select: none;
}

.btn__ubicacion:hover {
  padding: 1rem 3rem;
  background-color: rgb(0, 220, 20);
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(7, 255, 28, 0.85);
}





/* Titulo */

.titulo {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: rgb(7, 255, 28);
  letter-spacing: 2px;
  position: relative;
  animation: fadeInSlide 1s ease-out both;
  background: linear-gradient(90deg, rgb(7, 255, 28));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cont__titulo {
  width: 100%;
  margin-top: 100px;
}


/* Secciones */

.text__section {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  color: rgb(7, 255, 28);
  letter-spacing: 2px;
  position: relative;
  animation: fadeInSlide 1s ease-out both;
  background: linear-gradient(90deg, rgb(7, 255, 28));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animación */
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.seccion__info {
  width: 100%;
  min-height: 100vh;
  padding: 50px;
  color: #282828;
}


/* Seccion 1 */

.seccion__conocenos {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
}

.text_t {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.contenedor__conocenos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.elementos__conocenos {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  gap: 30px;
}


.info__conocenos {
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  color: #282828;
  text-align: justify;
  line-height: 1.8;
}


.info__conocenos p {
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: justify;
  color: #282828;
  margin-bottom: 1.5rem;
  white-space: normal;
  word-break: break-word;
}


.imagenes__conocenos {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 650px;
}

.img__atizapan,
.img__peñon {
  flex: 1 1 300px;
  max-width: 300px;
}

.img__atizapan img,
.img__peñon img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 650px) {
  .imagenes__conocenos {

    flex-direction: column;
    align-items: center;
  }

  .img__atizapan,
  .img__peñon {
    max-width: 90%;
    margin-bottom: 20px;
  }
}

/* Sección de imágenes */


.sec__imagenes1 h1 {
  color: rgb(7, 255, 28);
  font-size: 2.5rem;
  margin-bottom: 35px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(7, 255, 28, 0.6);
}


.carousel1 {
  max-width: 900px;
  height: 600px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  position: relative;
}

.carousel1-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel1-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel1-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}


/* Botones */
.carousel1-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 255, 28, 0.15);
  border: 2px solid rgba(7, 255, 28, 0.212);
  color: rgb(7, 255, 28);
  font-size: 2rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background 0.25s ease;
}

.carousel1-btn:hover {
  background: rgba(7, 255, 28, 0.35);
}

.carousel1-btn.prev {
  left: 10px;
}

.carousel1-btn.next {
  right: 10px;
}

/* Indicadores */
.carousel1-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel1-indicators span {
  width: 10px;
  height: 10px;
  background: rgba(7, 255, 28, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel1-indicators span.active {
  background: rgb(7, 255, 28);
}

/* Responsive */
@media (max-width: 768px) {
  .sec__imagenes1 {
    padding: 40px 15px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(7, 255, 28, 0.2);
  }

  .sec__imagenes1 h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(7, 255, 28, 0.5);
  }

  .carousel1 {
    max-width: 100%;
    height: 400px;
    margin: 30px auto;
    border-radius: 10px;
  }

  .carousel1-slide img {
    max-height: 100%;
  }

  .carousel1-btn {
    font-size: 1.6rem;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .carousel1-btn.prev {
    left: 5px;
  }

  .carousel1-btn.next {
    right: 5px;
  }

  .carousel1-indicators {
    bottom: 8px;
    gap: 7px;
  }

  .carousel1-indicators span {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .sec__imagenes1 {
    padding: 30px 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(7, 255, 28, 0.15);
  }

  .sec__imagenes1 h1 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .carousel1 {
    height: 300px;
    margin: 20px auto;
    border-radius: 8px;
  }

  .carousel1-btn {
    font-size: 1.3rem;
    padding: 4px 8px;
    border-radius: 5px;
  }

  .carousel1-indicators {
    bottom: 6px;
    gap: 5px;
  }

  .carousel1-indicators span {
    width: 6px;
    height: 6px;
  }


}

/* =========================
   SECCION VIDEOS
========================= */

.seccion-videos1 {
    width: 100%;
    padding: 80px 20px;
    background: #ffffff;
}

.titulo-videos1 {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-videos1 h2 {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 5vw, 5rem);
    color: #37ff10;
}


/* CONTENEDOR */

.contenedor-videos1 {
    width: 100%;
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}


/* TARJETAS */

.tarjeta-video1 {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.tarjeta-video1:hover {
    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}


/* VIDEO */

.tarjeta-video1 video {
    width: 100%;
    height: 350px;

    display: block;

    object-fit: cover;

    background: #000;
}


/* INFORMACION */

.info-video1 {
    padding: 20px;
}

.info-video1 h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #111;
}

.info-video1 p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}


/* =========================
   SECCION VIDEOS FIJA
========================= */

.seccion-videos1 {
    width: 100%;
    padding: 80px 10px;
    background: #ffffff;
    overflow-x: auto;
}

.titulo-videos1 {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-videos1 h2 {
    font-family: "Poppins", sans-serif;
    font-size: 70px;
    color: #37ff10;
}

.contenedor-videos1 {
    width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.tarjeta-video1 {
    width: 260px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tarjeta-video1 video {
    width: 310px;
    height: 250px;

    display: block;
    object-fit:over;

    background: #000;
}

.info-video1 {
    padding: 20px;
}

.info-video1 h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #111;
}

.info-video1 p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}