/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  background: var(--secondary);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
}

.stat .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat .label {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden; /* Para que la imagen respete los bordes redondeados */
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}


.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-card p {
  color: #555;
  margin-bottom: 16px;
}

.service-card .price {
  font-weight: 600;
  color: var(--primary);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}


.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  background: var(--secondary);
}

.testimonial-card {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.quote {
  font-style: italic;
  color: #555;
  margin-bottom: 16px;
}

.author {
  font-weight: 600;
  color: var(--dark);
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(232,180,184,0.15), rgba(232,180,184,0.05));
}



.tooltip-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  opacity: 0; /* Oculto por defecto */
  transform: translateY(20px); /* Ligeramente desplazado hacia abajo */
  transition: all 0.3s ease;
  pointer-events: none; /* Para que no interfiera con el click */
  box-sizing: border-box;
}


.gallery-item:hover .tooltip-text,
.gallery-item:active .tooltip-text {
  opacity: 1;
  transform: translateY(0);
}


@media (hover: none) {
  .gallery-item:active .tooltip-text {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Contenedor de la imagen */
.service-image {
  width: 100%;
  aspect-ratio: 2 / 2; /* Cambia a 4/3, 1/1, etc. según la proporción real de tu video */
  overflow: hidden;
  position: relative;
  background: #f0f0f0; /* color de respaldo mientras carga */
}

.service-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformarse */
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05); /* Zoom suave al pasar el mouse */
}




.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1; /* Empuja el precio hacia abajo */
}

.service-content .price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 18px;
  margin-top: auto;
}


/* Estilos para la imagen de About con Tooltip */
.about-image-wrapper {
  position: relative;
  display: inline-block; /* Se ajusta al tamaño de la imagen */
  width: 100%;
}

.about-image-wrapper img {
  width: 100%;
  max-width: 600px; /* Opcional: limita el ancho máximo si es necesario */
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

/* Efecto hover en la imagen */
.about-image-wrapper:hover img {
  transform: scale(1.02); /* Un zoom sutil */
}

/* Tooltip específico para About (reutiliza la lógica pero adaptada) */
.about-image-wrapper .tooltip-text {
  position: absolute;
  bottom: 20px; /* Posición dentro de la imagen */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(44, 44, 44, 0.85); /* Fondo oscuro semitransparente */
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Mostrar tooltip al hacer hover o active */
.about-image-wrapper:hover .tooltip-text,
.about-image-wrapper:active .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ajuste responsive si la imagen se vuelve muy pequeña */
@media (max-width: 700px) {
  .about-image-wrapper .tooltip-text {
    font-size: 12px;
    bottom: 10px;
  }
}