* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: white;
}

body {
  font-family: 'Outfit', sans-serif;
}

/* Logo */
.logo{
  justify-content: center;
  width: 100%;
  height: 10px;
  color:#000;
}

.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('BACKGROUND/bjj-backgroun-1 copia.jpg');
  background-size: cover;
  background-position: center;
  opacity: 1; 
  z-index: -1;
}

.main-header {
  background-color:#F5F5F5;
  text-align: center;
  padding: 20px 0 5px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px); 
}

.navbar ul {
  display: flex;
  justify-content: center;
  margin: 15px 0 2px 0;
  list-style: none;
  gap: 20px;
}

.navbar li {
  position: relative;
  padding: 5px;
}

.navbar li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -10px;
  color: #999;
}

.navbar a {
  text-decoration: none;
  color: #444;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar a:hover {
  color: #000;
  transform: scale(1.1);
  cursor: pointer;
}

.logo-container {
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
  height: 25px;
}

.logo {
  max-height: 150px; 
  width: 150px;
  height: auto;
  display: block;
}

/* Home Video */
.home-video {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

/* Intro Section */
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin: 0 auto;
  max-width: 1000px;
  width: 90%;
  gap: 20px;
}

.intro h1 {
  font-size: 26px;
  text-align: center;
}

.divider {
  width: 8px;
  height: 4px;
  background-color: rgb(255, 255, 255);
  margin: 15px 0;
}

.intro-paragraph {
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  padding: 0 10px;
}

.intro-paragraph p {
  margin-bottom: 10px;
}

/* Programs Section */
.programs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

.programs .program {
  margin-bottom: 30px;
}

.programs h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.programs p {
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 10px auto;
}

.divider2 {
  width: 60%;
  max-width: 400px;
  height: 2px;
  background-color: rgb(255, 255, 255);
  margin: 15px auto;
}

/* Buttons */
.book-button, .book-private {
  color: #F5F5F5;
  display: block;
  text-align: center;
  background-color: black;
  border-radius: 20px;
  padding: 8px 15px;
  margin: 15px auto;
  width: 180px;
  transition: transform 0.3s ease;
}

.book-button:hover, .book-private:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.button-a {
  color: #F5F5F5;
  text-decoration: none;
}

/* Home private */
.home-private {
  text-align: center;
  padding: 20px 10px;
  max-width: 900px;
  margin: 20px auto;
}

.home-img-private {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
  object-fit: cover;
}

/* Location Section */
.location-section {
  max-width: 600px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 10px;
  background-color: #f5f5f5;
  margin-top: 40px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .intro h1 {
    font-size: 1.5rem;
  }

  .intro-paragraph, .programs p, .programs h3 {
    max-width: 95%;
    font-size: 1rem;
    padding: 0 5px;
  }

  .divider, .divider2 {
    width: 40%;
  }

  .book-button, .book-private {
    width: 90%;
    max-width: 250px;
  }

  .home-img-private {
    max-width: 95%;
  }

  .programs {
    padding: 15px 5px;
  }
}


/*schedueles */

/* Encabezado de horarios */
.schedule-header {
  text-align: center;
  margin-top: 60px;
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Logo debajo del encabezado */
#logomoya {
  width: 120px;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Contenedor de la tabla */
.schedule-table {
  width: 100%;
  max-width: 700px;
  margin: 10px auto;
  text-align:center;
  padding: 20px;
}

/* Tabla principal */
.schedule-table {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

table.schedule {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table.schedule th,
table.schedule td {
  padding: 12px;
  text-align: end;
  border-bottom: 1px solid #e0e0e0;
}

table.schedule th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #000;
}

table.schedule tr:nth-child(even) {
  background-color: #f3f2f2;
}

table.schedule tr:hover {
  background-color: #f0f8ff;
  transition: background-color 0.3s ease;
}

/*book free trial */

.contact-form {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  margin-bottom: 70px;
}

label {
  width: 100%;
  display: block;
  margin: 5px auto;
  
}
input {
  width: 300px;
  display: block;
  padding: 4px;
 margin: 5px auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.levelq {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

 .levelq label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  width: auto;
}
.levelq input[type="radio"] {
  width: auto;
  margin: 0;
}
select {
  width: 200px;
  padding: 4px;
  margin: 5px auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

#message {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin: 5px auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
}
button {
 background-color: rgb(255, 255, 255);
 color: rgb(0, 0, 0);
 font-size: 15px;
  border-radius: 20px;
  margin: 10px auto;
  padding: 5px 15px; 
   transition: all 0.2s ease; /
}

button:hover {
  color: white;
  background: black;
  cursor: pointer;
   transform: scale(1.05);
}


.instructors {
  padding: 60px 20px;
  text-align: center;
}

.instructors h2 {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 40px;
}

.instructor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.instructor {
  max-width: 900px;
  text-align: center; /* <-- antes estaba en left */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.instructor:hover {
  transform: translateY(-5px);
}


.instructor-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
margin-top: 5px;
 padding: 10px;
  text-align: center;
}

.instructor p {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.5;
}


/* Video embebido */
.mendes-video {
  width: 100%;
  max-width: 600px; /* ajusta el tamaño máximo visible */
  margin: 0 auto;   /* centra el bloque */
}

.mendes-img {
  width: 100%;
  height: auto; /* mantiene proporción */
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 8px; /* opcional */
}

/* --- Estilos Galería Moderna --- */
:root{
  --gap: 18px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.12);
}

.gallery-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.gallery-title{
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: .02em;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

/* Cada tarjeta mantiene relación de aspecto, recorta elegante */
.gallery-item{
  position: relative;
  display: block;
  aspect-ratio: 4/5;          /* cambia a 1/1 si prefieres cuadrada */
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateZ(0);    /* mejora render en algunos navegadores */
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

/* Imagen rellena el contenedor sin deformarse */
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1) contrast(1.02);
  transition: transform .6s ease, filter .35s ease;
}

/* Hover sutil, moderno */
.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.gallery-item:hover img{
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.06);
}

/* Accesibilidad foco teclado */
.gallery-item:focus{
  outline: none;
}
.gallery-item:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.6), var(--shadow);
}

/* Soporte reduce motion */
@media (prefers-reduced-motion: reduce){
  .gallery-item,
  .gallery-item img{
    transition: none;
  }
}

/* Ajustes finos para pantallas muy pequeñas */
@media (max-width: 380px){
  .gallery{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #f0f0f0;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  margin-top: 50px;
  border-top: 2px solid #444;
}

.footer p {
  margin: 5px 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer p:hover {
  opacity: 1;
}
.footer p:hover {
  opacity: 1;
}
