/* ============================================================
   page-styles.css — Estilos exclusivos para las páginas
   internas de Computintas Digital.
   ============================================================ */

/* --- Hero de página interna --- */
.page-hero {
  background: var(--secondary);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
  background-size: 40px 40px;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -80px;
  width: 640px;
  height: 280px;
  transform: translateX(-50%);
  background: rgba(91, 92, 246, 0.18);
  filter: blur(90px);
  border-radius: 999px;
}

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

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.page-breadcrumb .sep {
  font-size: 11px;
}

.page-breadcrumb .current {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 20px 0;
  line-height: 1.1;
  max-width: 820px;
}

.page-hero h1 span {
  background: linear-gradient(135deg, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  max-width: 640px;
  margin: 0 0 36px 0;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* --- Secciones de páginas internas --- */
.page-section {
  padding: 80px 0;
}

.page-section-alt {
  padding: 80px 0;
  background: #fafafa;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.page-section-dark {
  padding: 80px 0;
  background: var(--secondary);
  color: #ffffff;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #dfe5f0;
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #0f172a !important;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

/* --- How it works / Steps --- */
.steps-list {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  counter-increment: step;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 8px;
}

.step-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* --- Benefit list --- */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.benefit-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-list.white li {
  color: rgba(255, 255, 255, 0.75);
}

.benefit-list.white li svg {
  color: #a5b4fc;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 16px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Two column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reversed {
  direction: rtl;
}

.two-col.reversed > * {
  direction: ltr;
}

.two-col-text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.15;
}

.two-col-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin: 0 0 20px;
}

.two-col-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.two-col-media img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* --- Tag list --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary-strong);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}

/* --- Reveal animation (reutilizada por components.js) --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- FAQ accordion --- */
.faq-list {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #dfe5f0;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(99, 102, 241, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  font-family: inherit;
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col.reversed {
    direction: ltr;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .page-hero {
    padding: 60px 0 52px;
  }
}
