/* Pink Hosting - Componentes Reutilizables */

/* Feature Cards - 3D Flip */
.feature-card-wrapper {
  perspective: 1000px;
  height: 400px;
  margin: 1em;
}

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.feature-card-wrapper:hover .feature-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 0 30px rgba(229, 0, 142, 0.3);
}

.feature-card-front,
.feature-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 30px;
  overflow: hidden;
}

.feature-card-front { background-color: #eee; }
.feature-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pink-secondary) 25%, transparent 25%);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.feature-card-front h3 {
  color: var(--charcoal) !important;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 35px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-card-back {
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: multiply;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-xl);
  background-size: cover;
  background-position: center;
}

/* Service Cards - Softec + Glassmorphism */
.service-card-premium {
  background: var(--white);
  border-radius: 40px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 700px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card-featured {
  border: 4px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(135deg, var(--pink-primary), #B0006D, var(--pink-secondary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 15px 40px rgba(229, 0, 142, 0.2);
  transform: translateY(-10px);
}

.service-card-premium:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(229, 0, 142, 0.15);
}

.service-card-image {
  height: 350px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: var(--white);
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  border-top: 1px solid rgba(229, 0, 142, 0.15);
}

.service-card-premium:hover .service-card-overlay,
.service-card-premium:focus-within .service-card-overlay {
  background: var(--pink-secondary);
}

.service-card-overlay h3 {
  letter-spacing: 0.1em; /* Reduced from 0.2em of .premium-title to fit better */
}

.service-card-overlay .btn {
  height: 45px;
  padding: 0 1.8rem;
  font-size: 0.8rem;
}

/* Testimonials: Story Cards */
.story-card {
  position: relative;
  z-index: 1;
  padding: 1.5em;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: var(--white);
  transition: var(--transition-normal);
}

.story-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

/* Planes y Detalle (Específico de Hosting) */
.plan-card-tall {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  min-height: 600px;
  background: var(--white);
  transition: all 0.5s ease;
}

.plan-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, white 60%, transparent);
  z-index: 1;
}

.plan-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
