
.carta1 {
  position: relative;
  background: url('/servicioimg/reparacion.avif') center/cover no-repeat;
  border-radius: 15px;
  padding: 2rem;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* capa borrosa encima del fondo */
.carta1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* usa la misma imagen */
  filter: blur(4px) brightness(0.8);
  transition: filter 0.8s ease;
  z-index: 0;
  border-radius: 15px;
}

/* cuando el cursor entra, se hace nítido y un poco más brillante */
.carta1:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta1 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta1:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carta1 .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carta1:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta1 .overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

.carta1 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta1 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta1 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}

/*------------------------*/


.carta2 {
  position: relative;
  background: url('/servicioimg/tel.avif') center/cover no-repeat;
  border-radius: 15px;
  padding: 2rem;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* capa borrosa encima del fondo */
.carta2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* usa la misma imagen */
  filter: blur(4px) brightness(0.8);
  transition: filter 0.8s ease;
  z-index: 0;
  border-radius: 15px;
}

/* cuando el cursor entra, se hace nítido y un poco más brillante */
.carta2:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta2 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}
.carta2:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


.carta2 .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carta2:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta2 .overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

.carta2 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta2 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta2 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}

/*------------------------*/
.carta3 {
  position: relative;
  background: url('/servicioimg/pc.jpg') center/cover no-repeat;
  border-radius: 15px;
  padding: 2rem;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* capa borrosa encima del fondo */
.carta3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* usa la misma imagen */
  filter: blur(4px) brightness(0.8);
  transition: filter 0.8s ease;
  z-index: 0;
  border-radius: 15px;
}

/* cuando el cursor entra, se hace nítido y un poco más brillante */
.carta3:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta3 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta3:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta3 .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carta3:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta3 .overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

.carta3 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta3 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta3 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}

/*------------------------*/
.carta4 {
  position: relative;
  background: url('/servicioimg/flash.png') center/cover no-repeat;
  border-radius: 15px;
  padding: 2rem;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* capa borrosa encima del fondo */
.carta4::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* usa la misma imagen */
  filter: blur(4px) brightness(0.8);
  transition: filter 0.8s ease;
  z-index: 0;
  border-radius: 15px;
}

/* cuando el cursor entra, se hace nítido y un poco más brillante */
.carta4:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta4 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta4:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta4 .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carta4:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta4 .overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

.carta4 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta4 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta4 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #aee1c2);
}

/*------------------------*/
.carta5 {
  position: relative;
  background: url('/servicioimg/reparacion.avif') center/cover no-repeat;
  border-radius: 15px;
  padding: 2rem;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* capa borrosa encima del fondo */
.carta5::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* usa la misma imagen */
  filter: blur(4px) brightness(0.8);
  transition: filter 0.8s ease;
  z-index: 0;
  border-radius: 15px;
}

/* cuando el cursor entra, se hace nítido y un poco más brillante */
.carta5:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta5 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta5:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta5 .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carta5:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta5 .overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

.carta5 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta5 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta5 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}

/*------------------------*/
.carta6 {
  position: relative;
  background: url('/servicioimg/muchomas.avif') center/cover no-repeat;
  border-radius: 15px;
  padding: 2rem;
  height: 300px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* capa borrosa encima del fondo */
.carta6::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* usa la misma imagen */
  filter: blur(4px) brightness(0.8);
  transition: filter 0.8s ease;
  z-index: 0;
  border-radius: 15px;
}

/* cuando el cursor entra, se hace nítido y un poco más brillante */
.carta6:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta6 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta6:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta6 .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carta6:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta6 .overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

.carta6 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta6 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta6 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}
