/* CSS específico para página de Mantenimiento */

/* Maintenance Services Grid */
.maintenance-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-category {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-icon {
  font-size: 2rem;
  margin-right: 1rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--text-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 1.5rem;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Maintenance Plans */
.maintenance-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.plan-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.plan-card.basic {
  border-color: #e5e7eb;
}

.plan-card.professional {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.plan-card.enterprise {
  border-color: #8b5cf6;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.plan-card.professional:hover {
  transform: scale(1.05) translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-secondary);
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.875rem;
  font-weight: 700;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-right: 0.25rem;
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
}

.period {
  font-size: 1rem;
  color: var(--text-gray);
  margin-left: 0.25rem;
}

.feature-group h4 {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-group ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.feature-group li {
  padding: 0.5rem 0;
  color: var(--text-gray);
  position: relative;
  padding-left: 1.5rem;
}

.feature-group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.plan-ideal {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-color);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Process Timeline */
.maintenance-process {
  margin-top: 2rem;
}

.process-timeline {
  position: relative;
  padding-left: 2rem;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 1;
}

.timeline-content {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-left: 1rem;
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Sidebar específico */
.sidebar-card.emergency {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  text-align: center;
}

.sidebar-card.emergency h3 {
  color: white;
  margin-bottom: 1rem;
}

.sidebar-card.emergency p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.emergency-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.emergency-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.emergency-time {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.btn-emergency {
  background: white !important;
  color: #ef4444 !important;
  font-weight: 700;
}

.btn-emergency:hover {
  background: var(--secondary-color) !important;
  color: var(--text-dark) !important;
}

.sidebar-card.guarantee {
  border: 2px solid #10b981;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.05) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.sidebar-card.guarantee h3 {
  color: #10b981;
}

.guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guarantee-list li {
  padding: 0.5rem 0;
  color: var(--text-gray);
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.guarantee-list li:last-child {
  border-bottom: none;
}

.guarantee-list li::before {
  content: "🛡️";
  position: absolute;
  left: 0;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .maintenance-services {
    grid-template-columns: 1fr;
  }

  .maintenance-plans {
    grid-template-columns: 1fr;
  }

  .plan-card.professional {
    transform: none;
  }

  .plan-card.professional:hover {
    transform: translateY(-8px);
  }

  .process-timeline {
    padding-left: 1rem;
  }

  .process-timeline::before {
    left: 0.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }

  .timeline-content {
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .plan-price {
    flex-direction: column;
    align-items: center;
  }

  .amount {
    font-size: 2.5rem;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .category-icon {
    margin-right: 0;
  }
}
