

/*------------------------*/
.carta7 {
  position: relative;
  background: url('/servicioimg/celularesofi.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 */
.carta7::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 */
.carta7:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta7 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta7:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta7 .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;
}

.carta7:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta7 .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;
}

.carta7 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta7 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta7 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}

/*------------------------*/
.carta8 {
  position: relative;
  background: url('/servicioimg/carcasasofi.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 */
.carta8::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 */
.carta8:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta8 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta8:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta8 .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;
}

.carta8:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta8 .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;
}

.carta8 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta8 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta8 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}



/*------------------------*/
.carta9 {
  position: relative;
  background: url('/servicioimg/Accesesoriosofi.avif');
    background-repeat: no-repeat;
  background-size: cover;
  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;

  animation: cambio-fondo-carta9 12s infinite ease-in-out;
}
@keyframes cambio-fondo-carta9 {
  0% { background-image: url('/servicioimg/celularesofi.avif'); }
  33% { background-image: url('/servicioimg/muchomas.avif'); }
  66% { background-image: url('/servicioimg/Accesesoriosofi.avif'); }
  100% { background-image: url('/servicioimg/Accesesoriosofi.avif'); }
}
/* capa borrosa encima del fondo */
.carta9::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 */
.carta9:hover::before {
  filter: blur(0px) brightness(1);
}

/* contenido dentro de la carta */
.carta9 > * {
  position: relative;
  z-index: 1;
  color: #fff; /* cambia según tu diseño */
}

.carta9:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}



.carta9 .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;
}

.carta9:hover .overlay {
  opacity: 1;
}

/* Texto "Contactar" */
.carta9 .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;
}


.carta9 a{
  text-decoration: none;
  font-size: 1.5rem;
}
/* Logo de WhatsApp */
.carta9 .overlay a {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.carta9 .overlay a:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px #212e26);
}
