/* =============================================
   CONSULTORÍA
   =============================================
   Depende de style.css y gestoria.css (paleta
   --gst-*, hero con panel lima y modal .gst-modal-*).

   Secuencia de fondos:
   hero (negro) → formatos (claro) → casos (negro)
   → cómo funciona + preguntas (claro)
   → CTA final (negro).
   ============================================= */


/* ═══════════════════════════════════════════════
   UTILIDADES COMUNES
   ═══════════════════════════════════════════════ */

.cns-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.cns-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.cns-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cns-header .gst-incluye-accent {
  margin-top: 20px;
}

.cns-header-center .gst-incluye-accent {
  margin-left: auto;
  margin-right: auto;
}

.cns-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gst-green-dark);
  opacity: 0.6;
  margin-bottom: 12px;
}

.cns-h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gst-black);
  margin-bottom: 14px;
}

.cns-sub {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #666;
}

.cns-sub strong {
  color: var(--gst-black);
  font-weight: 600;
}

.cns-header-dark .cns-eyebrow {
  color: var(--gst-lima);
  opacity: 1;
}

.cns-header-dark .cns-h2 {
  color: #fff;
}

.cns-header-dark .cns-sub {
  color: rgba(255, 255, 255, 0.65);
}

.cns-header-dark .cns-sub strong {
  color: #fff;
}


/* ═══════════════════════════════════════════════
   BLOQUE 0 — HERO
   ═══════════════════════════════════════════════ */

.cns-hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: -12px 0 32px;
  max-width: 480px;
}

.cns-hero-subtitle strong {
  color: var(--gst-lima);
  font-weight: 600;
}

.cns-panel {
  gap: 28px;
  padding-top: 44px;
}

.cns-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px 6px 8px;
  background: var(--gst-black);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gst-lima);
}

.cns-panel-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gst-lima);
  color: var(--gst-black);
}

.cns-panel-badge-icon svg {
  width: 12px;
  height: 12px;
}


/* ═══════════════════════════════════════════════
   BLOQUE 1 — FORMATOS  ·  claro
   ═══════════════════════════════════════════════ */

.cns-formatos {
  background: var(--gst-bg);
  padding: 96px 0;
  scroll-margin-top: 72px;
}

.cns-formatos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.cns-formato {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 18px;
  padding: 32px 28px 28px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cns-formato:hover {
  border-color: rgba(17, 17, 16, 0.18);
  box-shadow: 0 14px 40px -24px rgba(17, 17, 16, 0.35);
}

.cns-formato-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--gst-lima);
  color: var(--gst-black);
  margin-bottom: 20px;
}

.cns-formato-icon svg {
  width: 21px;
  height: 21px;
}

.cns-formato-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gst-black);
  margin-bottom: 8px;
}

.cns-formato-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #777;
}

.cns-formato-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 24px;
  padding: 16px 20px;
  background: var(--gst-bg);
  border-radius: 12px;
}

.cns-price-desde {
  font-size: 0.85rem;
  color: #777;
}

.cns-price-amount {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gst-black);
}

.cns-price-unit {
  font-size: 0.95rem;
  color: #555;
}

.cns-formato-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.cns-formato-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #444;
}

.cns-tick {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gst-lima);
  color: var(--gst-black);
}

.cns-tick svg {
  width: 11px;
  height: 11px;
}

.cns-formato-cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 13px 24px;
  border: 1px solid var(--gst-black);
  border-radius: 10px;
  background: var(--gst-black);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cns-formato-cta:hover {
  background: var(--gst-lima);
  border-color: var(--gst-lima);
  color: var(--gst-black);
}

/* Destacado: el estudio completo, en negro */

.cns-formato-featured {
  background: var(--gst-black);
  border-color: var(--gst-black);
}

.cns-formato-featured:hover {
  border-color: var(--gst-lima);
}

.cns-formato-featured .cns-formato-name {
  color: #fff;
}

.cns-formato-featured .cns-formato-tagline {
  color: rgba(255, 255, 255, 0.6);
}

.cns-formato-featured .cns-formato-price {
  background: var(--gst-lima);
}

.cns-formato-featured .cns-price-desde,
.cns-formato-featured .cns-price-unit {
  color: var(--gst-green-dark);
}

.cns-formato-featured .cns-formato-list li {
  color: rgba(255, 255, 255, 0.8);
}

.cns-formato-featured .cns-formato-cta {
  background: var(--gst-lima);
  border-color: var(--gst-lima);
  color: var(--gst-black);
}

.cns-formato-featured .cns-formato-cta:hover {
  background: #fff;
  border-color: #fff;
}

.cns-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gst-lima);
  color: var(--gst-black);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cns-formatos-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

.cns-formatos-note a {
  color: var(--gst-black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gst-lima-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}


/* ═══════════════════════════════════════════════
   BLOQUE 2 — CONSULTORÍA POR SITUACIÓN  ·  negro
   ═══════════════════════════════════════════════ */

.cns-casos {
  position: relative;
  overflow: hidden;
  background: var(--gst-black);
  padding: 96px 0;
  scroll-margin-top: 72px;
}

.cns-casos::before {
  content: '';
  position: absolute;
  top: 8%;
  right: 2%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.06) 0%, transparent 62%);
  pointer-events: none;
}

.cns-casos .cns-inner {
  position: relative;
  z-index: 1;
}

.cns-casos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cns-caso {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 26px 22px 22px;
  transition: border-color 180ms ease, background 180ms ease;
}

.cns-caso:hover {
  border-color: rgba(205, 245, 100, 0.4);
  background: rgba(205, 245, 100, 0.05);
}

.cns-caso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--gst-lima);
  color: var(--gst-black);
  margin-bottom: 18px;
}

.cns-caso-icon svg {
  width: 21px;
  height: 21px;
}

.cns-caso-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(205, 245, 100, 0.12);
  color: var(--gst-lima);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cns-caso-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.cns-caso-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
}

.cns-caso-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cns-caso-price {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.cns-caso-price strong {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--gst-lima);
}

.cns-caso-price-quote strong {
  font-size: 0.92rem;
}

.cns-caso-cta {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cns-caso-cta:hover,
.cns-caso:hover .cns-caso-cta {
  background: var(--gst-lima);
  border-color: var(--gst-lima);
  color: var(--gst-black);
}


/* ═══════════════════════════════════════════════
   BLOQUE 3 — CÓMO FUNCIONA + PREGUNTAS  ·  claro
   ═══════════════════════════════════════════════ */

.cns-proceso {
  background: var(--gst-bg);
  padding: 96px 0;
}

.cns-pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 96px;
  list-style: none;
}

.cns-paso {
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
}

.cns-paso-num {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gst-lima);
  color: var(--gst-green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cns-paso-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gst-black);
  margin-bottom: 8px;
}

.cns-paso-text {
  font-size: 0.87rem;
  line-height: 1.65;
  color: #777;
}

/* ── Preguntas frecuentes ── */

.cns-faq {
  max-width: 820px;
  margin: 0 auto;
}

.cns-faq-title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gst-black);
  text-align: center;
  margin-bottom: 28px;
}

.cns-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cns-faq-item {
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 14px;
  transition: border-color 180ms ease;
}

.cns-faq-item[open] {
  border-color: rgba(17, 17, 16, 0.2);
}

.cns-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gst-black);
}

.cns-faq-item summary::-webkit-details-marker {
  display: none;
}

.cns-faq-item summary:focus-visible {
  outline: 2px solid var(--gst-lima-dark);
  outline-offset: 2px;
  border-radius: 14px;
}

/* Icono + que gira a × al abrir */
.cns-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gst-bg);
  transition: transform 200ms ease, background 200ms ease;
}

.cns-faq-icon::before,
.cns-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--gst-black);
}

.cns-faq-icon::after {
  transform: rotate(90deg);
}

.cns-faq-item[open] .cns-faq-icon {
  background: var(--gst-lima);
  transform: rotate(45deg);
}

.cns-faq-answer {
  padding: 0 24px 22px;
}

.cns-faq-answer p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #666;
}

.cns-faq-answer a {
  color: var(--gst-black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gst-lima-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}


/* ═══════════════════════════════════════════════
   CTA FINAL  ·  negro de la paleta de gestoría
   ═══════════════════════════════════════════════ */

.page-cns .cta-final {
  background: var(--gst-black);
}

.cns-final-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: -16px auto 36px;
}

.cns-final-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cns-final-alt {
  display: block;
  margin-top: 22px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.cns-final-alt a {
  color: var(--gst-lima);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ═══════════════════════════════════════════════
   MODAL — Contratar servicio
   Reutiliza .gst-modal-* (gestoria.css). Aquí solo
   la cabecera con precio, campos extra (select,
   textarea, multiselección, filas de dos), notas,
   error y la pantalla de confirmación.
   ═══════════════════════════════════════════════ */

.cns-modal {
  max-width: 560px;
  color-scheme: dark;
}

.cns-modal-price {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(205, 245, 100, 0.12);
  color: var(--gst-lima);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cns-modal .gst-modal-title {
  padding-right: 28px;
}

.cns-modal .gst-modal-input {
  font-family: inherit;
}

.cns-modal textarea.gst-modal-input {
  min-height: 96px;
  line-height: 1.55;
  resize: vertical;
}

.cns-modal select.gst-modal-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CDF564' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.cns-modal select.gst-modal-input option {
  background: #1a1a19;
  color: #fff;
}

.cns-modal input[type="date"].gst-modal-input {
  min-height: 46px;
}

/* Grupo de selección múltiple (mismo aspecto que .gst-modal-options) */
.cns-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cns-multi .gst-modal-option.gst-option-selected {
  background: var(--gst-lima);
  border-color: var(--gst-lima);
  color: var(--gst-black);
  font-weight: 500;
}

.cns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.cns-opt {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
}

.cns-modal-hint {
  margin: -12px 0 24px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.cns-modal-hint a {
  color: var(--gst-lima);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cns-modal-note {
  margin: -6px 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(205, 245, 100, 0.25);
  border-radius: 10px;
  background: rgba(205, 245, 100, 0.07);
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.cns-modal-note strong {
  color: var(--gst-lima);
  font-weight: 600;
}

.cns-modal-note a {
  color: var(--gst-lima);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cns-modal-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.cns-modal-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cns-modal-error {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #ff8f6b;
}

.cns-modal-legal {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.35);
}

.cns-modal-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Pantalla de confirmación ── */

.cns-modal-success {
  text-align: center;
  padding: 16px 4px 4px;
}

.cns-modal-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--gst-lima);
  color: var(--gst-black);
}

.cns-modal-success-icon svg {
  width: 28px;
  height: 28px;
}

.cns-modal-success-title {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 10px;
}

.cns-modal-success-text {
  max-width: 420px;
  margin: 0 auto 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.cns-modal-success-meta {
  max-width: 420px;
  margin: 0 auto 28px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gst-lima);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1040px) {

  .cns-casos-grid,
  .cns-pasos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  .cns-formatos-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
    gap: 28px;
  }
}

@media (max-width: 760px) {

  .cns-formatos,
  .cns-casos,
  .cns-proceso {
    padding: 64px 0;
  }

  .cns-header {
    margin-bottom: 40px;
  }

  .cns-casos-grid,
  .cns-pasos {
    grid-template-columns: 1fr;
  }

  .cns-pasos {
    margin-bottom: 64px;
  }

  .cns-hero .gst-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cns-hero .gst-cta-pill {
    justify-content: space-between;
  }

  .cns-row {
    grid-template-columns: 1fr;
  }

  .cns-final-text {
    margin-top: -24px;
  }
}

@media (max-width: 480px) {

  .cns-formato {
    padding: 28px 22px 24px;
  }

  .cns-price-amount {
    font-size: 2.1rem;
  }

  .cns-faq-item summary {
    padding: 18px 18px;
    font-size: 0.93rem;
  }

  .cns-faq-answer {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cns-formato,
  .cns-caso,
  .cns-faq-icon,
  .cns-formato-cta,
  .cns-caso-cta {
    transition: none;
  }
}
