body {
    background: rgba(0, 0, 0, 0.9);
    margin: 0;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .main-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    padding: 10px 0;
    
  }
  
  .main-header-image {
    max-height: 400px; /* Adjusted height */
    width: auto;
  }

  .navbar {
    background-color: #E6E6E6;
    padding: 10px 0;
    text-align: center;
    width: 50%;
    z-index: 1;
    top: 400px;
    padding: 40px 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-radius: 50px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    position: absolute;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    text-decoration: none;
    color: #909090;
    font-size: 16px;
    font-weight: bold;
    font-size: 20px; 
}

.nav-list a:hover {
    color: #000;
}
  

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
.btn {
  background-color: white;
  border: 1px solid #cccccc;
  color: #696969;
  padding: 0.5rem;
  text-transform: lowercase;
}
.btn--block {
  display: block;
  width: 100%;
}
.ion-cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  gap: 20px;
  margin-top: 90px;
  background-color: rgb(223, 223, 223);
}
.ion-cards__item {
  display: flex;
  padding: 1rem;
}
@media (min-width: 40rem) {
  .ion-cards__item {
    width: 50%;
  }
}
@media (min-width: 56rem) {
  .ion-cards__item {
    width: 33.3333%;
  }
}
.ion-card {
  background-color: white;
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}
.ion-card__content {
  flex-direction: column;
  padding: 1rem;
}
.ion-card__image {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  filter: grayscale(100%) contrast(70%);
  overflow: hidden;
  position: relative;
  transition: filter 0.5s cubic-bezier(0.43, 0.41, 0.22, 0.91), transform 0.5s cubic-bezier(0.43, 0.41, 0.22, 0.91);
}
.ion-card:hover .ion-card__image {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.05);
}


.ion-card__image::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* Vista móvil: 2 tarjetas por fila */
@media (max-width: 768px) {
  .ion-cards__item {
    width: 50%;
  }
}

.ion-card__image--flowers {
  background-image: url(./images/MAT.png);
  
}
.ion-card__image--cruz {
  background-image: url(./images/CRU.png);
}
.ion-card__image--laser {
  background-image: url(./images/LAS.jpg);
}
.ion-card__image--esc {
  background-image: url(./images/ESC.jpg);
}

.ion-card__image--enc {
  background-image: url(./images/ENC.jpg);
}
.ion-card__image--per {
  background-image: url(./images/PER.png);
}
.ion-card__image--fence {
  background-image: url(./images/ARE.png);
}
.ion-card__title {
  color: #696969;
  font-size: 20px;
}

.container {
  display: flex;
  justify-content: center;
  gap: 130px; /* Ajusta este valor según el espacio deseado entre las imágenes */
}

.centered-image {
  width: auto;
  height: auto;
  max-width: 300px; /* Ajusta el tamaño máximo según tus necesidades */
  max-height: 300px;
  transition: transform 0.2s ease-in-out; /* Ajusta el tamaño máximo según tus necesidades */
}

.centered-image:hover {
  transform: scale(1.1); /* Escala la imagen al hacer hover */
}

.caption {
  color: #000000; /* Ajusta el color del texto según tus necesidades */
  font-size: 30px;
  font-weight: 150; /* Ajusta el tamaño de la fuente según tus necesidades */
}

.item{
  text-align: center;
}


a{
  text-decoration:none;
  outline:none !important;
  color:#fff;
  }
  
  .border-shape {
  background: #ffffff none repeat scroll 0 0;
  color: #fff;
  display: block;
  height: 3px;
  left: 0;
  margin: 20px auto;
  position: relative;
  right: 0;
  text-align: center;
  top: 0;
  width: 80px;
  }
  
  .border-shape::before {
  background: #ffffff none repeat scroll 0 0;
  bottom: 0;
  content: "";
  height: 1px;
  left: 80px;
  margin: 0 auto;
  position: absolute;
  text-align: center;
  top: 1px;
  width: 100px;
  }
  
  .border-shape::after {
  background: #ffffff none repeat scroll 0 0;
  bottom: 0;
  content: "";
  height: 1px;
  margin: 0 auto;
  position: absolute;
  right: 80px;
  text-align: center;
  top: 1px;
  width: 100px;
  }
  
  /*FOOTER*/
  .bg-dark {
    background: #333;
    color: #f4f4f4;
  }
  
  footer {
    padding: 2.2rem;
  }
  
  footer p {
    margin: 0;
  }
  

  footer{
  
  background-color:#121619;
  color:#fff;
  }
  
  .top_header{
  padding:2rem;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  }
  
  .top_header section{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  }
  
  .top_header span{
  padding:0 1rem;
  }
  
  .top_header .fa{
  color:#ffffff;
  font-size:35px;
  }
  
  footer .border-shape {
  width: 40%;
  }
  
  footer .border-shape::before {
  width: 100%;
  left:120px;
  }
  
  footer .border-shape::after {
  width: 100%;
  right:120px;
  }
  
  footer .bottom_content section{
  padding:1.5rem 2rem;
  display:flex;
  align-items:center;
  justify-content:Center;
  }
  
  .bottom_content a{
  margin:0 20px;
  color:rgba(255,255,255,0.7);
  transition:0.5s;
  }
  
  .bottom_content a:hover{
  color:rgba(255,255,255,1);
  }
  
  
  .copyright{
  padding:0.8em 0;
  background-color:#1e1e1e;
  text-align:center;
  color:rgba(255,255,255,0.7);
  font-size:12px;
  }
  
  
  


  .float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    box-shadow: 2px 2px 3px #999;
    z-index:100;
  }
  
  .my-float{
    margin-top:16px;
  }

  @media screen and (max-width: 768px) {
    .showcase {
      height: auto;
    }
  
    .content {
      width: 90%;
    }
  
    .navbar {
      width: 95%;
      top: 185px;
    }
  
    .top_header {
      
      padding: 1rem;
    }
  
    .nav-list {
      flex-direction: column;
    }

    .titulolapida{
      display: none;
    }


    
  
   
  
    .float {
      
      right: 20px;
      width: 50px;
      height: 50px;
      font-size: 24px;
    }
  }
  

  /* Responsividad para la imagen principal (main-header-image) */
@media screen and (max-width: 768px) {
  
  /* Ajustar los títulos y espaciado */
  h1 {
    font-size: 1.6rem;
    padding: 2rem 1rem;
    text-align: center;
    font-weight: 300;
  }

  .ion-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
    margin-top: 15rem;
  }

  .ion-cards__item {
    width: 90%;
    max-width: 320px;
  }

  .ion-card {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .ion-card:hover {
    transform: scale(1.02);
  }

  .ion-card__image {
    width: 100%;
    height: 180px; /* Ajusta según tus necesidades */
    background-size: cover;
    background-position: center;
  }

  .ion-card__title {
    font-size: 1.1rem;
    padding: 1rem;
    color: #333;
  }

  /* Sección de accesorios */
  .services h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #000;
  }

  /* Ajustes de imágenes dentro de los accesorios */
  .services .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .item {
    text-align: center;
  }

  .centered-image {
    width: 80%;
    height: auto;
    max-width: 150px;
    margin: 0 auto 1rem;
    display: block;
  }

  .caption {
    font-size: 1rem;
    color: #333;
  }
}

@media screen and (max-width: 768px) {
  .top_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  
  .top_header section {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    gap: 0.3rem;
  }
  
  .top_header i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .bottom_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .bottom_content section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .bottom_content a {
    font-size: 0.95rem;
    text-align: center;
  }
  
  .copyright {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }
  
  .copyright img {
    width: 100px;
    height: auto;
    display: block;
  }
  
  }

  @media screen and (max-width: 768px) {
    .main-header-image {
      max-height: 200px;
      width: 100%;
      object-fit: cover;
      margin: 0 auto;
    }
  }

  
  
  
/* ===== MOBILE / TABLET ===== */
@media (max-width: 56rem) {
  /* Quitar filtros */
  .ion-card__image {
    filter: none !important;
    transform: none !important;
  }

  /* Desactivar hover */
  .ion-card:hover .ion-card__image {
    filter: none !important;
    transform: none !important;
  }
}

