/*general*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: "Inter", sans-serif;
  font-style: normal;
}
a{
  text-decoration: none;
  color: inherit;
  color: white;
}
body {
  background-color: #000000;
  color: #fff;
}
/*-- Header --*/
.index-header {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 75vh; /* Altura adaptable */
  min-height: 300px; /* Para móviles muy pequeños */
}
/* Header_img */
.oscurecer-header{

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75vh;
  background-color: rgba(18, 18, 18, 0.8);
}
.oscurecer-header-sucursales{

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: rgba(18, 18, 18, 0.8);
}
.img-header { 
  background-image: url("../image/nike_header_productos.jpg");
  display: flex;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}
.img-header_producto{
  background-image: url("../image/nike_header.jpg");

  display: flex;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}
.img-header_sucursales{
  background-image: url("../image/nike_header.jpg");

  display: flex;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 50vh;
}
/*Navbar*/
.navbar {
  width: 100%;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2); /* Transparencia */
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px); /* difuminado */
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo_text{
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 14px;
  transition: 0.3s ease;
}
.nav-links li a:hover {
  color: #f0ceb1;
}
/* Navbar-Celular_funcion */
.nav_celular {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.nav_celular span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 5px;
}

/*-- Main --*/
.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
/*-- Carousel --*/
.carousel-container {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  min-width: 100%;
  height: auto;
  object-fit: cover;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 2rem;
  color: white;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicators div {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicators .active {
  background-color: #fff;
}
/* Estilo de cada card */
.card-header {
      background-color: #1a1a1a;
      
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      max-width: 300px;
      width: 100%;
      color: #fff;
      display: flex;
      flex-direction: column;
      margin: 1rem;
      justify-content: space-between;
    }
    .card-header:hover {
      transform: translateY(-8px);
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    .card-header img {
      width: 100%;
      height: auto;
      object-fit: cover;
      display: block;
    }
    .card-content {
      padding: 1rem;
      flex-grow: 1;
    }

    .card-titulo-header {
      font-size: 1.2rem;
      margin-bottom: 0.3rem;
      color: #ffffff;
    }
    .card-subtitulo-header {
      font-size: 0.9rem;
      color: #bbbbbb;
      margin-bottom: 0.6rem;
    }
    .card-description {
      font-size: 0.95rem;
      line-height: 1.4;
      color: #dddddd;
      margin-bottom: 1rem;
    }
    .card-button {
      background-color: transparent;
      
      border: 1px solid white;
      padding: 0.6rem 1rem;
      border-radius: 15px;
      text-align: center;
      text-decoration: none;
      font-size: 0.95rem;
      transition: background-color 0.3s ease, color 0.3s ease;
      display: inline-block;
    }
    .card-button:hover {
      background-color: white;
      color: #0a0a0a;
    }

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #716b64;
  color: #ffffff;
  margin-top: 2rem;
}
.img_footer{
  width: 2.5rem;
  height: auto;
}
.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
}
    
.div1 {
    grid-column: span 3 / span 3;
    grid-row: span 5 / span 5;
}

.div2 {
    grid-column: span 2 / span 2;
    grid-row: span 5 / span 5;
    grid-column-start: 4;
}
/*sucursales*/
.contenedor-sucursales {
  display: flex;
  justify-content: center; 
  align-items: center;               
  background: #111;      
  margin-bottom: 5rem;  
}

.contenedor-sucursales h1 {
  color: white; 
  margin: 0;    
}
/* Cards_sucursales */
.section_container_sucursales {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  background-color: #120a0a;
}
.card-container_sucursales{
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  padding: 10px;
}
.card_sucursales{
  position: relative;
  list-style: none;
  width: 220px;
  transition: .2s ease;
}
.card_sucursales::before{
  content: "";
  display: block;
  padding-bottom: 150%;
  width: 100%;
}
.card_sucursales-background{
 position: absolute;
 bottom: 0;
 right: 0;
 left: 0;
 top: 0;
 border-radius: 350px;
 background-size: 350px;
 background-position: center;
 filter: brightness(.9) saturate(1) contrast(1);
 transform-origin: bottom;
 transform: scale(1) translateZ(0);
 transition: .3s ease;
}
.card_sucursales:hover .card_sucursales-background{
  transform: scale(1.15) translateZ(0);
  background-size: 260px;
}
.card-container_sucursales:hover .card_sucursales:not(:hover){
  transform: scale(.9);
}
.card-container_sucursales:hover > .card_sucursales:not(:hover) .card-background,
.card-container_sucursales:hover > .card_sucursales:not(:hover) .card_sucursales-category {
filter: brightness(.5) saturate(0) contrast(1.2) blur(20px); 
}
.content_sucursales{
  top: 50%;
  left: 0;
  padding: 25px;
  position: absolute;
}
.card_sucursales-category{
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card_sucursales-heading{
  color: #fff;
  font-size: 25px;
  line-height: 1;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

/* Card_sucursales */
@media (max-width: 768px) {
  .card-container_sucursales {
    flex-wrap: wrap;
    gap: 15px;
  }

  .card_sucursales {
    width: 180px;
  }

  .card_sucursales-heading {
    font-size: 20px;
  }

  .card_sucursales-category {
    font-size: 10px;
  }
}

@media (max-width: 480px) {

  .card-container_sucursales {
    flex-direction: column;
    align-items: center;
  }

  .card_sucursales {
    width: 90%;
    max-width: 300px;
  }

  .card_sucursales-heading {
    font-size: 18px;
    text-align: center;
  }

  .card_sucursales-category {
    font-size: 9px;
    text-align: center;
  }

  .content_sucursales {
    padding: 15px;
    top: 40%;
  }
}

/* Responsive-Card */
    @media (max-width: 768px) {
      body {
        flex-direction: column;
        align-items: center;
      }

      .card-header {
        max-width: 90%;
      }
      .card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
      }
      .main-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
      }
    }

/*Carousel */
@media (max-width: 600px) {
  button.prev,
  button.next {
    font-size: 1.5rem;
    padding: 6px;
  }

  .indicators div {
    width: 10px;
    height: 10px;
  }
}
/* Media Queries-Navbar */
@media (max-width: 768px) {
  
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    gap: 20px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav_celular {
    display: flex;
  }
  .card-button {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    
  }
}
