/* Tratamientos CSS - Professional Dental Educational Architecture */
@import url('../style.css?v=1.2');
@import url('../blog/blog.css?v=1.1');

/* Treatment Specific Styles */
.treatment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--primary-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.treatment-hero {
  padding-top: 160px;
  padding-bottom: 50px;
  background: radial-gradient(circle at 50% 10%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
}

.treatment-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.85rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.treatment-hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 28px;
}

.treatment-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* WhatsApp CTA Banner within content */
.whatsapp-cta-box {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.whatsapp-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #25d366;
}

.whatsapp-cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.whatsapp-cta-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.whatsapp-cta-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-cta-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Treatment Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.comparison-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
  padding: 16px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  line-height: 1.5;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: rgba(6, 182, 212, 0.02);
}

/* Treatment Candidate Checkboxes */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.candidate-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--transition-fast);
}

.candidate-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.candidate-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.candidate-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.candidate-card strong {
  color: var(--text-primary);
}

/* FAQ Accordion in treatments */
.treatment-faq {
  margin: 48px 0;
}

.treatment-faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.treatment-faq-item:hover {
  border-color: rgba(6, 182, 212, 0.25);
}

.treatment-faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}

.treatment-faq-question i, .treatment-faq-question svg {
  color: var(--primary-cyan);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.treatment-faq-item.active .treatment-faq-question i,
.treatment-faq-item.active .treatment-faq-question svg {
  transform: rotate(45deg);
}

.treatment-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.treatment-faq-item.active .treatment-faq-answer {
  padding: 0 24px 20px 24px;
  max-height: 500px;
}

@media (max-width: 768px) {
  .whatsapp-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .whatsapp-cta-box::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }
  .whatsapp-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .candidate-grid {
    grid-template-columns: 1fr;
  }
  .treatment-hero h1 {
    font-size: 2.1rem;
  }
}
