/* ===== servicio_web.css — Estilos exclusivos de Planes Web ===== */

/* Nav links (enlaces de vuelta al index) */
.nav-link {
  color: inherit;
  text-decoration: none;
}

/* Sección de planes */
.planes-section {
  min-height: 100vh;
  align-items: flex-start;
  padding-top: 7rem;
}

/* Grid de 3 planes (parent / div1 / div2 / div3) */
.parent {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 1.25rem;
  grid-row-gap: 1.25rem;
  min-height: 520px;
  width: 100%;
}

.div1 { grid-area: 1 / 1 / 2 / 4; }
.div2 { grid-area: 1 / 4 / 2 / 8; }
.div3 { grid-area: 1 / 8 / 2 / 11; }

/* Tarjeta de plan */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.plan-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Plan recomendado (Cloudflare) */
.plan-recommended {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(91, 33, 182, 0.12);
  position: relative;
}

.plan-recommended:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(91, 33, 182, 0.18);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.plan-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.badge-pro {
  background: var(--primary);
  color: #ffffff;
}

.badge-premium {
  background: #0f172a;
  color: #ffffff;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.plan-platform {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  margin-bottom: 1rem;
}

.plan-features li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-left: 1.1rem;
  position: relative;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

.plan-features li.feature-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.plan-features li.feature-highlight::before {
  background: #16a34a;
  opacity: 1;
}

.plan-limitation {
  font-size: 0.75rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  line-height: 1.4;
  margin-top: auto;
}

.plan-limitation span {
  font-weight: 600;
}

.planes-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive: apilar en móvil/tablet */
@media (max-width: 960px) {
  .parent {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .div1,
  .div2,
  .div3 {
    grid-area: auto;
  }
}

@media (max-width: 640px) {
  .plan-card {
    padding: 1.5rem 1.25rem;
  }

  .plan-name {
    font-size: 1.05rem;
  }
}


/* ===== Botón flotante "Volver al inicio" ===== */
.btn-back-home {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-back-home:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-back-home svg {
  width: 16px;
  height: 16px;
}

/* Ajuste para móviles */
@media (max-width: 640px) {
  .btn-back-home {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
  
  .btn-back-home span {
    display: none; /* Solo mostrar el ícono en pantallas muy pequeñas */
  }
  
  .btn-back-home svg {
    width: 20px;
    height: 20px;
  }
}