/* ============================================================
   Service Pages — Ideas Colombia
   Fuente única de verdad para estilos de páginas de servicio.
   Reutiliza variables, .container, .btn y tipografía de style.css.
   ============================================================ */

:root {
  --border: oklch(90% 0.005 90);
}

/* ── Hero — layout de dos columnas ── */
.page-hero {
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(74,74,74,0.03) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 85% 10%, rgba(212,175,55,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 15% 90%, rgba(74,74,74,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(var(--spacing-lg), 4vw, 4rem);
  flex-wrap: wrap;
}

/* Columna de texto */
.page-hero-inner {
  flex: 1 1 360px;
}

/* Columna de imagen */
.page-hero-visual {
  flex: 0 1 460px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.10),
    0 4px 16px rgba(0,0,0,0.06);
  aspect-ratio: 4 / 3;
  background: var(--light-bg);
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.page-hero-visual:hover img {
  transform: scale(1.03);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  opacity: 1;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 var(--spacing-xs);
}

/* Eyebrow */
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.page-hero h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: var(--spacing-md);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 540px;
  margin: 0 0 var(--spacing-lg);
}

/* CTA dentro del hero */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.hero-actions .btn {
  min-width: 260px;
  padding: 0.875rem 2rem;
  font-size: 1.025rem;
}

/* Indicadores de confianza */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md) var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.65;
  letter-spacing: 0.01em;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Snippet AEO oculto para rastreadores */
.en-resumen {
  display: none;
}

/* ── Secciones de contenido ── */
.page-section {
  padding: var(--spacing-xl) 0;
}

.page-section.alt {
  background: var(--light-bg);
}

/* ── Prosa editorial ── */
.prose {
  width: min(100%, 740px);
  margin-inline: auto;
}

.prose p {
  margin-bottom: var(--spacing-md);
  font-size: 1.075rem;
  line-height: 1.7;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.prose strong {
  color: var(--primary-color);
  font-weight: 700;
}

.prose a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(212,175,55,0.3);
  transition: text-decoration-color var(--transition-fast);
}

.prose a:hover {
  text-decoration-color: var(--primary-color);
}

/* Bloque destacado con borde dorado */
.prose .highlight-box {
  background: var(--light-bg);
  border-left: 3px solid var(--primary-color);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.prose .highlight-box p:last-child {
  margin-bottom: 0;
}

.prose .terms-inline {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: -0.5rem;
  display: block;
}

.prose ul:not(.service-features) {
  margin: 0 0 var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.prose ul:not(.service-features) li {
  margin-bottom: var(--spacing-sm);
  font-size: 1.075rem;
  line-height: 1.6;
}

/* Grid de enlaces internos */
.prose .cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.prose .cross-link-card {
  display: block;
  padding: var(--spacing-md);
  background: var(--light-bg);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.prose .cross-link-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.prose .cross-link-card strong {
  display: block;
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
}

.prose .cross-link-card span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ── Grid de características (service cards) ── */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
}

.service-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  flex-shrink: 0;
  background: rgba(212,175,55,0.08);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: background var(--transition-fast);
}

.service-card:hover .service-card-svg {
  background: rgba(212,175,55,0.15);
}

.service-card-svg svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
  color: var(--text-color);
}

.service-card p {
  font-size: 0.975rem;
  line-height: 1.65;
  opacity: 0.78;
  flex-grow: 1;
  margin-bottom: 0;
}

/* ── FAQ acordeón ── */
.faq-section {
  background: var(--white);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.faq-q:hover,
.faq-q[aria-expanded="true"] {
  color: var(--primary-color);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  display: grid;
  place-items: center;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition-normal);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-q[aria-expanded="true"] .faq-icon::before {
  transform: rotate(180deg);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-a.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 0 0 var(--spacing-lg);
}

.faq-a p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ── Banda CTA de cierre ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary-color), #b8942f);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 80% 50%, rgba(0,0,0,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.cta-band p {
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--secondary-color);
  min-width: 240px;
  padding: 0.875rem 2rem;
  font-size: 1.025rem;
}

.cta-band .btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  font-size: 0.875rem;
  opacity: 0.78;
}

.cta-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .page-hero-visual {
    flex: 0 1 380px;
  }
}

@media (max-width: 768px) {
  .page-hero .container {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .page-hero-inner {
    text-align: center;
    flex: 1 1 100%;
  }

  .page-hero-visual {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 240px;
    border-radius: var(--border-radius-md);
  }

  .lead {
    margin: 0 auto var(--spacing-lg);
    max-width: 100%;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 1.25rem;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.4rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .hero-trust {
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-md);
  }

  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .faq-q {
    font-size: 1rem;
  }

  .cta-trust {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .prose .cross-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
  }

  .page-hero-visual {
    max-height: 200px;
  }
}

/* ════════════════════════════════════════════════════════
   COMPONENTES NUEVOS — rediseño de cuerpo de página
   ════════════════════════════════════════════════════════ */

/* ── Fondo cálido (crema) ── */
.page-section.warm {
  background: #FDF8EF;
}

/* ── Split two-column ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--spacing-lg), 4vw, 4rem);
  align-items: start;
}

.split.align-center { align-items: center; }

/* ── Check list (problemas / soluciones) ── */
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.5;
}

.check-list .ci {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.check-list.problems .ci { color: #c0392b; opacity: 0.65; }
.check-list.solutions .ci { color: var(--primary-color); }

/* ── Mini stats (3 cifras) ── */
.stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-mini {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-mini-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-mini-label {
  font-size: 0.78rem;
  opacity: 0.65;
  line-height: 1.3;
}

/* ── Párrafo intro del split (lado derecho) ── */
.pull-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* ── Process steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  counter-reset: step;
}

.step {
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.step p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.72;
  margin: 0;
}

/* ── Bloque convenios ── */
.convenio-section {
  background: linear-gradient(135deg, #FEF9E7 0%, #FDF3C8 100%);
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid rgba(212,175,55,0.18);
}

.convenio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.convenio-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: 0 4px 20px rgba(212,175,55,0.10);
  transition: transform var(--transition-normal);
}

.convenio-card:hover { transform: translateY(-4px); }

.convenio-pct {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.convenio-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.convenio-desc {
  font-size: 0.9rem;
  opacity: 0.72;
  line-height: 1.6;
  margin: 0;
}

.convenio-terms {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
  margin: 0;
}

/* ── Related services grid ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--spacing-lg);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: var(--text-color);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.related-card-icon {
  width: 36px;
  height: 36px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.related-card strong {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
}

.related-card span {
  font-size: 0.88rem;
  opacity: 0.68;
  line-height: 1.5;
}

/* FAQ sin fondo fijo — usa clase de sección padre */
.faq-section {
  background: unset;
}

/* ── Responsive nuevos componentes ── */
@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .convenio-pct {
    font-size: 3rem;
  }
}

@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .stats-mini {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
  }

  .stat-mini-number {
    font-size: 1.5rem;
  }
}
