/* ----------------------------------------------------------------------------
   ACE NUTRITIONS. — Hoja de Componente 19
   Extraida de `tokens.css` en la Iteracion 07.7 (Regla #011).
   El ORDEN de carga en `app-shell.html` reproduce el del archivo original:
   la cascada CSS depende de el y no debe alterarse.
   -------------------------------------------------------------------------- */
/* ============================================================================
   PORTADA DE BIENVENIDA CON 3 PASOS + SECCIONES EDITORIALES ESTILO LANDING (/calculadora)
   ============================================================================ */
.pn-welcome-hero-stage {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto 24px;
  padding: 44px clamp(20px, 4vw, 48px);
  border-radius: 22px;
  background:
    radial-gradient(680px 340px at 50% 0%, rgba(34, 199, 240, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.94) 0%, rgba(5, 7, 10, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.pn-welcome-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pn-welcome-main-title {
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.06;
  margin: 0;
}

.pn-welcome-main-sub {
  max-width: 720px;
  font-size: 16px;
  color: rgb(203, 213, 225);
  margin: 0;
}

.pn-welcome-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  margin: 14px 0 8px;
  text-align: left;
}

.pn-welcome-step-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.pn-welcome-step-item.is-featured-step {
  background: linear-gradient(160deg, rgba(34, 199, 240, 0.14) 0%, rgba(15, 23, 42, 0.88) 100%);
  border-color: rgb(34, 199, 240);
  box-shadow: 0 14px 34px rgba(34, 199, 240, 0.16);
}

.pn-welcome-step-tag {
  align-self: flex-start;
  background: rgb(34, 199, 240);
  color: rgb(4, 16, 22);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
}

.pn-welcome-step-item strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: rgb(255, 255, 255);
}

.pn-welcome-step-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgb(203, 213, 225);
}

.pn-welcome-cta-box {
  width: 100%;
  max-width: 760px;
  margin-top: 8px;
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(34, 199, 240, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pn-welcome-cta-hook {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: rgb(248, 250, 252);
  letter-spacing: 0.01em;
}

.pn-btn-start-wizard {
  padding: 15px 34px !important;
  font-size: 15px !important;
  min-height: 52px;
  border-radius: 10px !important;
}

.pn-welcome-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.pn-wizard-BackToHero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Secciones Educativas Abiertas Inspiradas en la Portada (.fx-section) */
.pn-edu-sections {
  width: 100%;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#sec-calculator .fx-section {
  padding: 64px 24px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pn-svg-showcase-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(9, 13, 22, 0.92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.pn-edu-illustration-img {
  display: block;
  width: 100%;
  height: auto;
}

.pn-calc-benefits-offset {
  margin-top: 48px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pn-section-center-sub {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
  color: rgb(203, 213, 225);
}

.pn-featured-dark-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(4, 16, 22);
  background: rgba(255, 255, 255, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: center;
}

.pn-plate-banner-TopOffset {
  margin-top: 42px;
}

.pn-compact-h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 14px;
}

.pn-hand-pillars-grid {
  margin-top: 44px;
}

.pn-open-pillar-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-top: 3px solid rgb(34, 199, 240);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pn-final-cta-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(5, 7, 10, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  padding: 28px 26px;
}

.pn-final-cta-quote {
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  color: rgb(226, 232, 240);
  margin-bottom: 4px;
}

/* Acordeones FAQ dentro de #sec-calculator */
#sec-calculator .ace-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#sec-calculator .ace-faq-item {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 16px 20px;
}

#sec-calculator .ace-faq-summary {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: rgb(248, 250, 252);
  cursor: pointer;
}

#sec-calculator .ace-faq-body {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgb(203, 213, 225);
}

@media (max-width: 980px) {
  .pn-step-tabs.is-5steps,
  .pn-archetype-pills-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pn-welcome-steps-grid,
  .pn-hero-steps-strip {
    grid-template-columns: 1fr;
  }

  .pn-choice-grid.is-2col,
  .pn-choice-grid.is-3col,
  .pn-choice-grid.is-4col,
  .pn-number-cards-grid,
  .pn-number-cards-grid.is-4col,
  .pn-number-cards-grid.is-2col-tactile {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SISTEMA GEOMÉTRICO DE NAVEGACIÓN Y CHEVRONS (CERO FLECHAS ASCII)
   Reemplaza caracteres de texto por chevrons vectoriales CSS y píldoras táctiles
   ========================================================================== */

.ace-auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

#sec-calculator .ace-auth-back-link,
#sec-auth .ace-auth-back-link,
#sec-auth-register .ace-auth-back-link,
#sec-auth-forgot .ace-auth-back-link,
#sec-auth-reset .ace-auth-back-link {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: rgb(226, 232, 240);
}

.ace-auth-back-link::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.16s ease;
}

.ace-auth-back-link:hover {
  transform: translateX(-2px);
  border-color: rgba(34, 199, 240, 0.65);
  color: rgb(34, 199, 240);
}

.ace-auth-back-link:hover::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

/* Enlaces editoriales con círculo e icono chevron derecho */
.fx-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fx-arrow-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(34, 199, 240, 0.14);
  border: 1px solid rgba(34, 199, 240, 0.38);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.fx-arrow-link span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -2px;
}

.fx-arrow-link:hover span {
  transform: translateX(3px);
  background: rgba(34, 199, 240, 0.26);
  border-color: rgb(34, 199, 240);
}

/* Botones de retroceso en Wizards (Calculadora y Estudio) */
#btnCalcPrevStep,
#btnCalcBackToWizard,
#btnWizardPrev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#btnCalcPrevStep::before,
#btnCalcBackToWizard::before,
#btnWizardPrev::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

/* Botones de avance y llamada a la acción con chevron geométrico derecho */
#btnCalcNextStep,
#btnCalcJumpToResults,
#btnStartMacroWizard,
#btnScrollToCalcTop,
#btnWizardNext,
#btnWizardNextSite3d,
#btnWizardGoShareReport,
#btnUnlockFutureMe3d,
#btnOpenFutureMeInStudio,
#btnSendCalcToStudio,
#btnLandingGoCalculator,
#btnAuthLogin,
#btnAuthSignup,
#btnAuthRequestOtp,
#btnAuthResetWithOtp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

#btnCalcNextStep::after,
#btnCalcJumpToResults::after,
#btnStartMacroWizard::after,
#btnScrollToCalcTop::after,
#btnWizardNext::after,
#btnWizardNextSite3d::after,
#btnWizardGoShareReport::after,
#btnUnlockFutureMe3d::after,
#btnOpenFutureMeInStudio::after,
#btnSendCalcToStudio::after,
#btnLandingGoCalculator::after,
#btnAuthLogin::after,
#btnAuthSignup::after,
#btnAuthRequestOtp::after,
#btnAuthResetWithOtp::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 2px;
  transition: transform 0.16s ease;
}

#btnCalcNextStep:hover::after,
#btnStartMacroWizard:hover::after,
#btnScrollToCalcTop:hover::after,
#btnWizardNext:hover::after,
#btnUnlockFutureMe3d:hover::after,
#btnLandingGoCalculator:hover::after,
#btnAuthLogin:hover::after,
#btnAuthSignup:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* Separador de pasos en Funnel Stepper y botón de envío de chat */
.ace-funnel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

.ace-funnel-arrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.ace-chat-send-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ace-chat-send-circle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -2px;
}
