* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

html {
  /* overflow-x: hidden; */
  background-color: var(--color-four);
}

li {
  list-style: none;
}

/*anclas para los enlaces del nav bar*/
.anchor {
  position: relative;
  top: -60px;
}

/*nav bar superior con menu*/

nav {
  position: fixed;
  left: 0;
  right: 0;
  max-width: 1920px;
  margin: 0 auto;
  /* width: 100%; */
  background-color: var(--color-two);
  color: var(--color-five);
  z-index: 99;
}

.nav-global-container {
  padding: 1rem 3rem 1rem 3rem;
  display: flex;
  justify-content: space-between;
}

.nav-logo img {
  width: 8rem;
  /* neutraliza el atributo height del HTML; conserva el aspect-ratio */
  height: auto;
  cursor: pointer;
}

.nav-btn-container {
  display: none;
  cursor: pointer;
}

.nav-btn-container .btn-line {
  width: 25px;
  height: 3px;
  background-color: var(--color-five);
  margin: 5px;
}

.nav-items-container {
  display: flex;
  gap: 2rem;
  cursor: pointer;
  margin-right: 1.5rem;
}

.nav-items-container a {
  text-decoration: none;
  color: var(--color-five);
}

.nav-items-container2 {
  display: flex;
  gap: 1rem;
}

.nav-items-container2 a {
  text-decoration: none;
  color: var(--color-one);
}

.nav-items {
  display: flex;
  align-items: center;
}

/*main contiene Sección 1, Sección 2, Sección 5 ....*/
main {
  width: 100%;
}

/*Sección 1*/
.section-1 {
  position: relative;
  overflow: hidden;
}
/* Carrusel */
.carousel-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.carousel-slide.active {
  opacity: 1;
}

/* Reemplaza el background-image del slide: mismo encuadre vía object-fit/object-position */
.carousel-slide picture {
  display: block;
  position: absolute;
  inset: 0;
}

.carousel-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes panLtr {
  from {
    transform: scale(1.08) translateX(-3%);
  }
  to {
    transform: scale(1.08) translateX(3%);
  }
}

@keyframes panRtl {
  from {
    transform: scale(1.08) translateX(3%);
  }
  to {
    transform: scale(1.08) translateX(-3%);
  }
}

.carousel-slide.pan-ltr {
  animation: panLtr 7s linear forwards;
}

.carousel-slide.pan-rtl {
  animation: panRtl 7s linear forwards;
}

/* Overlay negro para la transición */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.7s ease;
}

.carousel-overlay.visible {
  opacity: 1;
}

.portada-0 .carousel-bg-img,
.portada-2 .carousel-bg-img,
.portada-3 .carousel-bg-img {
  object-position: center 20px;
}

.portada-1 .carousel-bg-img {
  object-position: center -60px;
}

.portada-4 .carousel-bg-img {
  object-position: right -20px;
}

.portada-5 .carousel-bg-img {
  object-position: center -60px;
}

/* CONTENEDOR GENERAL */
.hero-bjj {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 30rem;
}

/* OVERLAY OSCURO PARA MEJORAR LEGIBILIDAD */
.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* CONTENIDO SOBRE EL OVERLAY */
.hero-content {
  position: relative;
  z-index: 0; /* crea stacking context para que ::before sea visible */
  max-width: 600px;
}

/* TITULAR */
.hero-title {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  padding: 0 20px;
}

/* BOTÓN PRINCIPAL (CTA) */
.cta-button {
  display: flex;
  gap: 18px;
  align-items: center;
  /* background-color: #0d47a1; */
  background-color: var(--color-eight);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
}

/* HOVER (importante para interacción) */
.cta-button:hover {
  background-color: #1565c0; /* ligeramente más claro */
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ICONO DENTRO DEL BOTÓN */
.cta-button .ico {
  font-size: 2rem;
}

/* TEXTO SECUNDARIO DENTRO DEL BOTÓN */
.cta-button small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 4px;
}

/*Sección 2 contiene a reviews*/
.section-2 {
  background-color: var(--color-four);
  width: 100%;
  color: white;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-2-cards-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-radius: 10px;
  padding: 2rem 3rem;
  background-color: var(--color-three);
  margin-left: 3rem;
  margin-right: 2rem;
}

.section-2-cards-img-container img {
  align-items: center;
  justify-content: center;
  width: 40rem;
  /* neutraliza el atributo height del HTML; conserva el aspect-ratio */
  height: auto;
  border-radius: 10px;
  text-align: center;
}

.section-2-cards-text-container {
  gap: 1rem;
  text-align: justify;
}

.section-2-cards-text-container h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  padding-left: 15px;
  font-style: italic;
}

.section-2-cards-text-container h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: table;
  border-bottom: 2px solid var(--color-two);
  width: 100%;
  padding-bottom: 5px;
  font-style: italic;
}

.section-2-cards-text-container p {
  margin-top: 10px;
  color: white;
  line-height: 1.5;
}

/*PROGRAMAS*/
.programas-container {
  display: flex;
  justify-content: center;
  align-items: stretch; /* era: center */
  flex-wrap: wrap;
  gap: 0;
  flex-direction: row;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.programas-card-container {
  /* background-color: var(--color-four-clear); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 375px;
}

.programas-card-item {
  /* color: var(--color-five); */
  background-color: var(--color-four-clear);
  width: 85%;
  max-width: 375px;
  margin-bottom: 80px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 20px 0;
}

.programas-card-item p {
  font-size: 1rem;
  margin: 40px 0 30px;
  color: black;
  line-height: 1.5;
}

.programas-card-item h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  padding-left: 15px;
  font-style: italic;
}

.programas-card-item h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: table;
  border-bottom: 2px solid var(--color-two);
  width: 80%;
  padding-bottom: 5px;
  font-style: italic;
}

.programas-card-image {
  transform: translate(-60px, 14px);
  width: calc(100% + 40px);
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.programas-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.programas-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50%;
  display: block;
}

.programas-card-button-container {
  padding-bottom: 10%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.programas-card-button-item {
  margin-top: auto;
}

/*reviews*/
.reviews-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
}

.reviews-container img {
  cursor: pointer;
  border-radius: 10px;
  width: 400px;
  /* neutraliza el atributo height del HTML; conserva el aspect-ratio */
  height: auto;
}

/*Sección 5 cotiene a seccion 3*/
.section-5 {
  background-color: var(--color-two);
}

.section-5-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-five);
  padding: 2rem 3rem;
}

.section-5-img-text-container img {
  width: 250px;
}

.section-5-cards {
  display: flex;
  gap: 3rem;
}

.section-5-card,
.section-5-card2 {
  color: white;
  width: 100%;
  border-radius: 10px;
  max-width: 400px;
  padding: 0.5rem;
}

.section-5-card {
  background-color: var(--color-eight);
}

.section-5-card2 {
  background-color: var(--color-three);
}

.section-5-card:hover {
  background-color: var(--color-seven);
  transition: 0.3s;
}

.section-5-card2:hover {
  background-color: var(--color-four);
  transition: 0.3s;
}

.section-5-card img,
.section-5-card2 img {
  cursor: pointer;
  border-radius: 5px;
  opacity: 0.5;
}

.section-5-card img:hover,
.section-5-card2 img:hover {
  opacity: 1;
}

/*Sección 3*/
.section-3 {
  background-color: var(--color-four);
  border-radius: 5px;
}

.section-3-container {
  left: 2rem;
  padding: 2rem 3rem;
  color: var(--color-five);
}

.section-3-container p {
  color: #333333;
  font-size: medium;
}

/*imagenes aumentadas con su botón para cerrar*/
.img-floatingImg {
  height: 80vh;
  width: auto;
  margin-top: 10vh;
}

.btn-floatingImg-cerrar {
  position: relative;
  top: 8vh;
}

.opening-button {
  position: relative;
}

.opening-button button {
  position: absolute;
  top: 10px;
  left: 29%;
  padding: 5px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  background-color: var(--color-one);
}

.opening-button button:hover {
  background-color: var(--color-six);
}

.opening-button img {
  max-width: 20px;
}

/*Sección 6*/
.section-6 {
  background-color: var(--color-nine);
  padding-bottom: 2rem;
}

.section-6 p,
h2 {
  color: var(--color-two);
}

.section-6 a {
  text-decoration: none;
  color: var(--color-one);
  cursor: pointer;
  background-color: white;
  padding: 1rem;
  border: 1px solid black;
  border-radius: 10px;
}

.section-6 a:hover {
  background-color: var(--color-four);
  transition: 0.5s;
}

.section-6-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-6-map-container {
  display: flex;
  gap: 1.5rem;
}

/*Sección 7*/
.section-7 {
  background-color: var(--color-four);
  width: 100%;
  color: white;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-7-cards-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-radius: 10px;
  padding: 2rem 3rem;
  background-color: var(--color-three);
  margin-left: 3rem;
  margin-right: 2rem;
}

.section-7-cards-img-container {
  width: 40rem;
}

.section-7-cards-img-container img {
  align-items: center;
  justify-content: center;
  width: 100%;
  /* neutraliza el atributo height del HTML; conserva el aspect-ratio */
  height: auto;
  border-radius: 10px;
  text-align: center;
}

.section-7-cards-text-container {
  gap: 1rem;
  text-align: justify;
}

.section-7-cards-text-container h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  padding-left: 15px;
  font-style: italic;
}

.section-7-cards-text-container h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: table;
  border-bottom: 2px solid var(--color-two);
  width: 100%;
  padding-bottom: 5px;
  font-style: italic;
}

.section-7-cards-text-container p {
  margin-top: 10px;
  color: white;
  line-height: 1.5;
}

.section-7-cards-text-container i {
  color: red;
}

/*footer*/

.footer-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 0;
  width: 100%;
  padding: 0 1rem;
  color: white;
  background-color: var(--color-two);
}

.footer-container a {
  text-decoration: none;
  color: white;
  cursor: pointer;
}

.footer-container a:hover {
  color: var(--color-one);
}

.footer-column {
  margin: 2rem 0;
  flex: 1;
}

.footer-column-img-container {
  height: 100%;
  border-right: 1px solid var(--color-four);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2rem;
}

.footer-column-img-container img {
  width: 65%;
  /* neutraliza el atributo height del HTML; conserva el aspect-ratio */
  height: auto;
}

.footer-column h4 {
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0;
  padding-left: 15px;
  font-style: italic;
}

.footer-column h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 4px;
  padding-bottom: 5px;
  font-style: italic;
}

.footer-column p {
  line-height: 2;
}

.footer-column i,
.footer-column .ico {
  margin-right: 0.5rem;
}

.footer-column-horario-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column-horario-item {
  display: flex;
  flex-direction: row;
}

.footer-column-horario-item p {
  line-height: 1.5;
}

.footer-column-horario-item-dias {
  width: 150px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: right;
}
.footer-column-horario-item-horas {
  padding: 0.5rem;
  text-align: left;
}

/* PANTALLA ENTRE 1600PX Y 1920PX TODO EN 1 SATORI */
@media screen and (min-width: 1600px) and (max-width: 1920px) {
}

/*Macbook Air*/
@media screen and (min-width: 1300px) and (max-width: 1600px) {
  .footer-column h4 {
    font-size: 1.2rem;
  }

  .footer-column h3 {
    font-size: 1.2rem;
  }

  .footer-column p {
    font-size: 0.9rem;
  }
}

/* tablet and medium screens */
/* Tablet Galaxy Tab A9+ Horizontal 1280 x 632 */
@media screen and (min-width: 1000px) and (max-width: 1300px) {
  .hero-bjj {
    margin-top: 20rem;
  }

  .portada-3 .carousel-bg-img {
    object-position: center 80px;
  }

  .portada-4 .carousel-bg-img {
    object-position: right -150px;
  }

  .footer-column h4 {
    font-size: 1.2rem;
  }

  .footer-column h3 {
    font-size: 1.2rem;
  }

  .footer-column p {
    font-size: 0.9rem;
  }
}

/*Tablet Galaxy Tab A9+ Vertical 800 x 1112 */
@media screen and (min-width: 600px) and (max-width: 1000px) {
  .nav-btn-container {
    display: block;
    order: 3;
  }

  .nav-logo {
    order: 1;
  }

  .nav-logo img {
    width: 8rem;
    cursor: pointer;
  }

  .nav-items-container {
    display: none;
    flex-direction: column;
    position: absolute;
    gap: 1rem;
    top: 4.4rem;
    width: 80%;
    padding: 1rem 2rem;
    cursor: pointer;
    background-color: var(--color-two);
    margin-right: 2rem;
    color: black;
  }

  .nav-items a,
  .nav-items a:visited {
    color: var(--color-five);
    font-weight: 600;
  }

  .active {
    display: flex;
    align-items: center;
  }

  .nav-items-container2 {
    order: 2;
  }

  .portada-0 .carousel-bg-img {
    object-position: -150px 20px;
  }

  .portada-1 .carousel-bg-img {
    object-position: center 0px;
  }

  .portada-2 .carousel-bg-img {
    object-position: center 80px;
  }

  .portada-3 .carousel-bg-img {
    object-position: center 80px;
  }

  .portada-4 .carousel-bg-img {
    object-position: bottom right;
  }

  .portada-5 .carousel-bg-img {
    object-position: center 0px;
  }

  /* CONTENEDOR GENERAL */
  .hero-bjj {
    margin-top: 25rem;
  }

  .section-2-cards-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .section-2-cards-container img {
    width: 40rem;
    border-radius: 5px;
  }

  .section-2-cards-text-container p {
    margin-bottom: 10px;
  }

  .programas-container {
    width: 90%;
  }

  .programas-card-container {
    min-width: 350px;
  }

  .programas-card-item {
    width: 85%;
    max-width: 350px;
    /* 
    margin-bottom: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 20px 0; */
  }

  .reviews-container {
    flex-direction: column;
    gap: 1rem;
  }

  .section-3 {
    background-color: var(--color-four);
  }

  .section-3-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 2rem;
    padding: 2rem 3rem;
    color: var(--color-five);
  }

  .section-3-text1 {
    font-size: x-large;
    margin-bottom: 2rem;
  }

  .section-3-container p {
    color: #333333;
    font-size: small;
  }

  .section-5-img-text-container img {
    width: 200px;
  }

  .section-5-card,
  .section-5-card2 {
    font-size: small;
    border-radius: 5px;
  }

  .section-6-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-6-map-container img {
    width: 300px;
  }

  .section-7 {
    background-color: var(--color-four);
  }

  .section-7 > div {
    font-size: small;
    text-align: center;
  }

  .section-7 > div > h1 {
    font-size: 2rem;
  }

  .section-7-card-container {
    justify-content: center;
    border-radius: 5px;
  }

  .section-7-subcontainer-texts {
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
  }

  .section-7-subcontainer-text1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  .section-7-subcontainer-text1 > div > img {
    width: 12rem;
  }

  .section-7-subcontainer-text2 {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    margin: 1rem;
    border-radius: 5px;
    background-color: rgba(34, 90, 181, 0.6);
  }

  .section-7-subcontainer-text2 > div {
    max-width: 18rem;
    padding: 0.5rem;
  }

  .section-7-subcontainer-text2 > div > p {
    color: white;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .primero {
    order: 1;
  }

  .segundo {
    order: 2;
  }

  .tercero {
    order: 3;
  }

  .cuarto {
    order: 4;
  }

  .footer-column-img-container {
    border-right: 1px solid transparent;
    justify-content: center;
    padding: 0;
  }

  .footer-column-img-container img {
    width: 40%;
  }
}

/* mobile and small screens */
@media screen and (max-width: 600px) {
  .nav-global-container {
    padding: 1rem;
    min-height: 80px;
    align-items: center;
  }

  .nav-btn-container {
    display: block;
    order: 3;
  }

  .nav-logo {
    order: 1;
  }

  .nav-logo img {
    width: 10rem;
    cursor: pointer;
  }

  .nav-items-container {
    display: none;
    flex-direction: column;
    position: absolute;
    gap: 3rem;
    top: 4.4rem;
    width: 100%;
    padding: 5rem 2rem;
    cursor: pointer;
    background-color: var(--color-two);
    margin-left: -1rem;
    font-size: x-large;
    color: black;
  }

  .nav-items a,
  .nav-items a:visited {
    color: var(--color-five);
    font-weight: 600;
  }

  .active {
    display: flex;
    align-items: flex-start;
  }

  .nav-items-container2 {
    order: 2;
  }

  .portada-0 .carousel-bg-img {
    object-position: -465px 20px;
  }

  .portada-1 .carousel-bg-img {
    object-position: -400px 20px;
  }

  .portada-2 .carousel-bg-img {
    object-position: -480px 20px;
  }

  .portada-3 .carousel-bg-img {
    object-position: -680px 40px;
  }

  .portada-4 .carousel-bg-img {
    object-position: center center;
  }

  .portada-5 .carousel-bg-img {
    object-position: center center;
  }

  /* CONTENEDOR GENERAL */
  .hero-bjj {
    margin-top: 30rem;
  }

  .section-2-cards-container {
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .section-2-cards-img-container {
    width: 100%;
  }

  .section-2-cards-img-container img {
    width: 100%;
    border-radius: 5px;
  }

  .section-2-cards-text-container p {
    margin: 20px 20px;
  }

  .reviews-container {
    flex-direction: column;
    gap: 1rem;
  }

  .section-3 {
    background-color: var(--color-four);
  }

  .section-3-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 2rem;
    padding: 2rem 3rem;
    color: var(--color-five);
  }

  .section-3-text1 {
    font-size: x-large;
    margin-bottom: 2rem;
  }

  .section-3-container p {
    color: #333333;
    font-size: small;
  }

  .section-5-img-text-container img {
    width: 200px;
  }

  .section-5-card,
  .section-5-card2 {
    font-size: small;
    border-radius: 5px;
  }

  .section-6-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-6-map-container img {
    width: 300px;
  }

  .section-7-cards-container {
    flex-direction: column;
    width: 90%;
    align-items: center;
    gap: 2rem;
    padding: 20px 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-7-cards-img-container {
    width: 100%;
  }

  .section-7-cards-img-container img {
    width: 100%;
    border-radius: 5px;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .primero {
    order: 1;
  }

  .segundo {
    order: 2;
  }

  .tercero {
    order: 3;
  }

  .cuarto {
    order: 4;
  }

  .footer-column-img-container {
    border-right: 1px solid transparent;
    justify-content: center;
    padding: 0;
  }

  .footer-column-img-container img {
    width: 40%;
  }

  .img-floatingImg {
    width: 80vw;
    height: auto;
    margin-top: 25vh;
  }

  .section-4-container {
    right: -450px;
  }

  .section-4-container-formulario {
    width: 360px;
    right: 45px;
  }

  .section-4-x-container img {
    left: 300px;
  }

  .section-5-cards {
    gap: 1rem;
  }

  .seciton-5-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-5-img-text-container img {
    width: 180px;
  }
}
