/* ============================================
   RFCONTABLE — Page-Specific Styles
   pages.css
   ============================================ */

/* ============================================
   1. INTERNAL PAGE HERO
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #0D3B99, #1A5CFF);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative elements */
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.page-hero__breadcrumb a:hover {
  color: var(--color-white);
}

.page-hero__breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.page-hero__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-hero__subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================
   2. SERVICE DETAIL PAGE
   ============================================ */
.service-detail {
  padding: clamp(40px, 6vw, 70px) 0;
}

.service-detail__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-detail__intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-body);
  margin-bottom: 40px;
  text-align: center;
}

.service-detail__section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  margin-top: 48px;
}

.service-detail__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-body);
  margin-bottom: 24px;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* ============================================
   2.5 CONTENT CARD (For Tramites and Subpages)
   ============================================ */
.content-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 60px);
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.content-card h2, .content-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  margin-top: 32px;
}
.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ============================================
   3. SERVICE CHECKLIST (Premium)
   ============================================ */
.service-checklist {
  margin: 32px 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.service-checklist li {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.service-checklist li:hover {
  border-color: var(--color-primary-200);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(26, 92, 255, 0.08);
}

.service-checklist .check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-checklist .check-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

.checklist-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.checklist-desc {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ============================================
   4. COMPARISON TABLE
   ============================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 30px 0;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
}

.comparison-table th {
  padding: 16px 20px;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
  white-space: nowrap;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  font-size: 14px;
  color: var(--color-text-body);
  transition: background 0.2s ease;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-dark);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--color-bg-light);
}

.comparison-table tbody tr:hover {
  background: var(--color-primary-50);
}

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

/* Check / cross marks in table */
.table-check {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 18px;
}

.table-cross {
  color: var(--color-text-muted);
  font-size: 18px;
}

/* Highlight column */
.comparison-table .highlight-col {
  background: rgba(26, 92, 255, 0.04);
}

.comparison-table thead .highlight-col {
  background: rgba(0, 0, 0, 0.15);
}

/* ============================================
   5. PROCESS TIMELINE
   ============================================ */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 30px;
  margin: 30px 0;
}

/* Vertical connecting line */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary-100);
  border-radius: var(--radius-pill);
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}

.process-step__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(26, 92, 255, 0.25);
  transition: transform 0.3s ease;
}

.process-step:hover .process-step__number {
  transform: scale(1.08);
}

.process-step__content {
  flex: 1;
  padding-top: 4px;
}

.process-step__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.process-step__text {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   6. TRAMITES GRID
   ============================================ */
.tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tramite-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.tramite-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-primary);
}

.tramite-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.tramite-card__icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
}

.tramite-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.tramite-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.tramite-card__cta {
  margin-top: auto;
}

/* ============================================
   7. USE CASES
   ============================================ */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.use-case {
  background: var(--color-primary-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.use-case:hover {
  background: var(--color-primary-100);
  transform: translateX(4px);
}

.use-case__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case__icon svg {
  fill: var(--color-white);
  width: 20px;
  height: 20px;
}

.use-case__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.4;
}

/* ============================================
   8. FAQ / ACCORDION (Bonus — Internal Pages)
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 30px auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  fill: var(--color-text-muted);
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
  fill: var(--color-primary);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   9. PRICING / PLAN CARDS (Bonus)
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

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

.pricing-card--featured {
  border-color: var(--color-primary);
}

.pricing-card--featured::before {
  content: 'Más Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.pricing-card__price {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card__features {
  text-align: left;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card__cta {
  margin-top: auto;
}

/* ============================================
   10. RESPONSIVE — PAGES
   ============================================ */
@media (max-width: 768px) {
  /* Page Hero */
  .page-hero {
    padding: 90px 0 35px;
  }

  .page-hero__title {
    font-size: clamp(24px, 5.5vw, 32px);
  }

  .page-hero__subtitle {
    font-size: 15px;
    margin-top: 8px;
  }

  .page-hero__breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Content Card */
  .content-card {
    margin-top: -40px;
    padding: clamp(20px, 4vw, 40px);
  }

  .content-card h2 {
    font-size: 22px;
    margin-top: 24px;
  }

  .content-card h3 {
    font-size: 18px;
    margin-top: 20px;
  }

  .content-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  /* Service Checklist */
  .service-checklist {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 30px;
  }

  .service-checklist li {
    padding: 16px;
    gap: 12px;
    font-size: 15px;
  }

  .service-checklist .check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .service-checklist .check-icon svg {
    width: 12px;
    height: 12px;
  }

  /* Service Detail */
  .service-detail__intro {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .service-detail__section-title {
    font-size: clamp(22px, 4vw, 28px);
    margin-top: 32px;
    margin-bottom: 20px;
  }

  .service-detail__text {
    font-size: 15px;
    margin-bottom: 18px;
  }

  /* Comparison Table */
  .comparison-table-wrapper {
    margin: 20px -10px;
    border-radius: var(--radius-md);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Process Timeline */
  .process-timeline {
    padding-left: 10px;
  }

  .process-timeline::before {
    left: 10px;
  }

  .process-step__number {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .process-step {
    gap: 14px;
  }

  .process-step__title {
    font-size: 17px;
  }

  .process-step__text {
    font-size: 14px;
  }

  /* Tramites Grid */
  .tramites-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tramite-card {
    padding: 20px;
  }

  .tramite-card__title {
    font-size: 17px;
  }

  /* Use Cases */
  .use-cases {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Service Detail Grid */
  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 28px 22px;
  }

  .pricing-card__price {
    font-size: 32px;
  }

  .pricing-card__title {
    font-size: 20px;
  }

  /* FAQ */
  .faq-item__question {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq-item__answer {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 80px 0 24px;
  }

  .page-hero__title {
    font-size: 22px;
  }

  .page-hero__subtitle {
    font-size: 14px;
  }

  /* Content Card */
  .content-card {
    margin-top: -30px;
    padding: 18px;
  }

  .content-card h2 {
    font-size: 20px;
  }

  .content-card p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  /* Service Checklist */
  .service-checklist li {
    padding: 14px;
    font-size: 14px;
  }

  /* Process Timeline */
  .process-timeline::before {
    display: none;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .process-step__number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Pricing */
  .pricing-card {
    padding: 22px 18px;
  }

  .pricing-card__price {
    font-size: 28px;
  }
}

