html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  background-color: #ecf0f3;
  box-sizing: border-box;
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
/*---Breadcrums---*/
.contenedor-breadcrumb {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 530;
  text-transform: uppercase;
  position: relative;
  top: 80px;
  width: 100%;
  min-height: 60px;
  background-color: #ecf0f3;
  display: flex;
  align-items: center;
  padding: 10px 0px 10px 40px;
}

.contenedor-breadcrumb nav ol {
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.contenedor-breadcrumb nav ol li:nth-child(-n + 2) {
  font-weight: 750;
}
.contenedor-breadcrumb nav ol li a {
  text-decoration: none;
  color: #212121;
}
.contenedor-breadcrumb nav ol li a:hover {
  text-decoration: underline;
  color: #ce5900;
  transition: all 0.3s ease;
}

/*---Ficha de modelo---*/
.ficha-modelo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#contenedor-principal-inicio {
  max-width: 1300px;
  position: relative;
  top: 90px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 40px;
}
/*---IMAGENES---*/
.galeria-secundaria {
  width: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 360px 170px;
  gap: 15px;
  justify-items: center;
  align-items: start;
}
.img-grande {
  width: 340px;
  grid-column: 1 / 3;
  border-radius: 15px;
}
.img-chica {
  width: 155px;
  border-radius: 15px;
}
.img-principal {
  width: 100%;
  max-height: 360px;
  border-radius: 15px;
  object-fit: cover;
}
figcaption {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #212121;
  text-align: center;
  margin-top: 5px;
}

/*  Datos Modelo  */
.datos-modelo {
  margin-left: 80px;
  display: grid;
  grid-template-rows: auto;
  row-gap: 20px;
  justify-items: start;
  align-items: start;
}
h1 .titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #212121;
}
h1 .subtitulo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #212121;
}
.titulo-descripcion p {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #212121;
  margin-top: 10px;
  max-width: 500px;
}
/*---Especificaciones Tecnicas---*/
.especificaciones {
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  width: 100%;
}
.especificaciones p {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #212121;
  margin-top: 10px;
}
h2 {
  padding-top: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #212121;
  margin-bottom: 10px;
}
.contenedor-especs {
  width: 100%;
  color: #212121;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.datos-especs {
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  font-weight: 440;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  row-gap: 8px;
}
.datos-especs svg {
  width: 30px;
  height: auto;
  color: #ce5900;
  margin-right: 10px;
}
/*---Variaciones---*/
.variaciones-img {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  align-items: center;
  justify-items: start;
  max-width: 400px;
  gap: 20px;
  flex-wrap: wrap;
}
.variaciones-img figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.variaciones-img img {
  width: 100px;
  border-radius: 15px;
}

/*---Luminarias Sugeridas---*/
.contenedor-luminarias {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fija 3 columnas */
  gap: 20px;
  justify-items: center;
  align-items: center;
}
.lumi-card {
  min-width: 185px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lumi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.lumi-card p {
  padding-bottom: 5px;
}
.lumi-card img {
  max-width: 60px;
  height: auto;
}
.boton-detalles {
  display: inline-block;
  padding: 8px 12px;
  background-color: #212121;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}
.boton-detalles:hover {
  background-color: #ce5900;
}
.destacar {
  color: #ce5900;
  font-weight: 700;
}
/*---Anclaje y Base del Poste---*/
#anclaje-base {
  position: relative;
  top: 90px;
  background-color: #ffffff;
  border-radius: 20px;
  margin: 30px 100px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  max-width: 1300px;
}
.anclaje-titulo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0px 20px 30px 20px;
}
.anclaje-titulo h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #212121;
  margin-bottom: 10px;
}
.anclaje-titulo p {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #212121;
  width: 60%;
}
/*--- Tipo de Patín (Placa Base) ---*/
.tipo-patin,
.tipo-anclaje,
.tipo-cimentacion {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin-top: 50px;
  text-align: left;
}
.tipo-patin img {
  width: 350px;
  border-radius: 15px;
  align-self: center;
}
/*---TEXTO PATIN ---*/
.anclaje-subtitulo {
  max-width: 450px;
}
.anclaje-subtitulo h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #212121;
  margin-bottom: 10px;
}
.anclaje-subtitulo p {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #212121;
  text-align: left;
}
.anclaje-subtitulo p strong {
  color: #ce5900;
  font-weight: 700;
}
.ocultar {
  display: none;
}
/*--- Tipo de Anclaje ---*/
.tipo-anclaje img {
  width: 230px;
  border-radius: 15px;
}
/*--- Tabla de Anclaje ---*/
.tabla-anclaje {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.tabla-anclaje th,
.tabla-anclaje td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.tabla-anclaje th {
  background-color: #f2f2f2;
  font-weight: 600;
}
th {
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: #212121;
}
td {
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  color: #212121;
}
/*--- Cimentacion ---*/
.tipo-cimentacion img {
  width: 350px;
  border-radius: 15px;
  align-self: center;
}

/*--- FOOTER ---*/
footer {
  position: relative;
  top: 90px;
}

/* Tablets */
/* reglas para tablets en vertical/horizontal */
@media (max-width: 1024px) {
  /*--- Contenedor Principal ---*/
  #contenedor-principal-inicio {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0px 80px;
  }
  /*--- Galeria Secundaria ---*/
  .galeria-secundaria {
    width: 700px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-content: center;
    justify-items: center;
    gap: 10px;
  }
  .img-grande {
    width: 100%;
    grid-column: 1 / 2; /* Abarca la primera columna */
    grid-row: 1 / 3; /* Abarca las dos filas */
    justify-self: center; /* Centra la imagen principal */
  }
  .img-principal {
    width: 100%;
  }
  .img-secundaria {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .img-chica {
    width: 45%; /* Ajusta el ancho para que no se vea tan pequeña */
    grid-column: 2 / 3; /* Abarca la segunda columna */
    justify-self: center; /* Centra las imágenes chicas */
  }
  .datos-modelo {
    margin-left: 0px;
    margin-top: 30px;
    justify-items: center;
    text-align: center;
  }
  /*--- Titulo y Descripcion ---*/
  .titulo-descripcion p {
    max-width: 100%;
  }
  /*--- Contenedor Especificaciones ---*/
  .contenedor-especs {
    width: 500px;
  }
  .especificaciones {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .variaciones-img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    max-width: 400px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .contenedor-luminarias {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-content: center;
    align-items: center;
    max-width: 600px;
    gap: 20px;
  }
}
/* Tablets */
/* IPAD AIR */
@media (max-width: 820px) {
  #anclaje-base {
    margin: 30px 30px;
  }
}
/* Tablets Pequeñas y Celulares */
/* IPAD MINI para abajo */
@media (max-width: 768px) {
  /*---Breadcrums---*/
  .contenedor-breadcrumb {
    font-size: 0.6rem;
    position: fixed;
    z-index: 10;
    top: 80px;
    background-color: rgba(236, 240, 243, 0.8);
    padding: 0px 0px 0px 20px;
  }
  #contenedor-principal-inicio {
    padding: 0px 20px;
    top: 150px;
  }
  /*--- Galeria Secundaria ---*/
  .galeria-secundaria {
    width: 320px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 180px;
    justify-content: center;
    justify-items: center;
    gap: 10px;
  }
  .img-grande {
    width: auto;
    height: auto;
    object-fit: contain;
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .img-principal {
    width: 100%;
  }
  .img-secundaria {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .img-chica {
    width: 160px;
    grid-column: 2 / 3;
    justify-self: center;
  }
  /*---Especificaciones técnicas---*/
  .contenedor-especs {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 15px;
    justify-items: center;
  }
  /*---Contenedor Luminarias---*/
  .contenedor-luminarias {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    gap: 20px;
  }
  /*---Anclaje y Base del Poste---*/
  #anclaje-base {
    top: 150px;
    margin: 30px 10px;
    padding: 0px;
  }
  .tipo-patin,
  .tipo-anclaje,
  .tipo-cimentacion {
    border-top: 1px solid #ccc;
    grid-template-columns: 1fr;
    margin-top: 50px;
    padding: 0px;
  }
  .anclaje-titulo {
    margin: 0px;
    padding: 40px 20px 0px 20px;
  }
  .anclaje-titulo p {
    width: 100%;
  }
  .anclaje-subtitulo {
    max-width: 100%;
    padding: 25px;
  }
  .tipo-patin img {
    width: 300px;
  }
  .tipo-cimentacion img {
    width: 280px;
    padding: 0px 20px 20px 20px;
  }

  footer {
    margin-top: 100px;
  }
}
