/* =====================================================================
   G3 PLATFORM · PÁGINA DE VENTA
   Extiende el diseño original del sitio (azul G3, tarjetas redondeadas).
   ===================================================================== */

/* --------------------------------------------------------------
   Sub-navegación por pestañas
   -------------------------------------------------------------- */
.gp-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(20, 48, 104, .1);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
}

.gp-subnav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.gp-subnav__inner::-webkit-scrollbar { display: none; }

.gp-subnav a {
  flex: none;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #46557a;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s ease;
}

.gp-subnav a:hover {
  background: #f2f6ff;
  color: #123b86;
}

.gp-subnav a.is-active {
  background: #123b86;
  border-color: #123b86;
  color: #fff;
}

.gp-subnav__cta {
  margin-left: auto;
  background: #f5b942 !important;
  border-color: #f5b942 !important;
  color: #071126 !important;
}

/* --------------------------------------------------------------
   Hero
   -------------------------------------------------------------- */
.gp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.gp-hero-badges span {
  padding: 7px 13px;
  border: 1px solid rgba(20, 48, 104, .14);
  border-radius: 999px;
  background: #fff;
  color: #33415c;
  font-size: .82rem;
  font-weight: 800;
}

.gp-hero-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 26px;
}

.gp-hero-panel__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f7f9ff;
}

.gp-hero-panel__row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: #123b86;
  color: #fff;
  font-size: .95rem;
}

.gp-hero-panel__row strong {
  display: block;
  color: #071126;
  font-size: .98rem;
}

.gp-hero-panel__row span {
  color: #60708b;
  font-size: .88rem;
  line-height: 1.4;
}

.gp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.gp-stats article {
  padding: 20px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 42px rgba(13, 40, 88, .07);
}

.gp-stats strong {
  display: block;
  color: #123b86;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -.04em;
}

.gp-stats span {
  display: block;
  margin-top: 6px;
  color: #071126;
  font-size: .96rem;
  font-weight: 800;
}

.gp-stats small {
  display: block;
  margin-top: 4px;
  color: #60708b;
  font-size: .84rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------
   Encabezados de sección reutilizables
   -------------------------------------------------------------- */
.gp-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.gp-head h2 {
  margin: 14px 0 10px;
  color: #071126;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.gp-head p {
  margin: 0;
  color: #60708b;
  font-size: 1.06rem;
  line-height: 1.7;
}

.gp-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* --------------------------------------------------------------
   Dolores del negocio
   -------------------------------------------------------------- */
.gp-pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gp-pains article {
  padding: 22px;
  border: 1px solid rgba(214, 60, 60, .18);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff8f8, #ffffff);
}

.gp-pains span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1rem;
  font-weight: 950;
}

.gp-pains strong {
  display: block;
  margin: 14px 0 8px;
  color: #071126;
  font-size: 1.12rem;
}

.gp-pains p {
  margin: 0;
  color: #60708b;
  line-height: 1.55;
}

/* --------------------------------------------------------------
   Antes / después
   -------------------------------------------------------------- */
.gp-shift {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gp-shift__card {
  padding: 26px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 40, 88, .08);
}

.gp-shift__card--after {
  border-color: rgba(18, 59, 134, .3);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 99, 214, .12), transparent 40%),
    linear-gradient(180deg, #ffffff, #f6faff);
}

.gp-shift__card > span {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gp-shift__card--after > span {
  background: #eaf1ff;
  color: #123b86;
}

.gp-shift__card h3 {
  margin: 14px 0 16px;
  color: #071126;
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.gp-shift__card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-shift__card li {
  display: flex;
  gap: 10px;
  color: #46557a;
  font-size: .98rem;
  line-height: 1.5;
}

.gp-shift__card li::before {
  content: "✕";
  flex: none;
  color: #dc2626;
  font-weight: 950;
}

.gp-shift__card--after li::before {
  content: "✓";
  color: #16a34a;
}

/* --------------------------------------------------------------
   Módulos por resultado
   -------------------------------------------------------------- */
.gp-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gp-module {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 48px rgba(13, 40, 88, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gp-module:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(13, 40, 88, .14);
}

.gp-module > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #123b86;
  color: #fff;
  font-size: .9rem;
  font-weight: 950;
}

.gp-module h3 {
  margin: 6px 0 0;
  color: #071126;
  font-size: 1.24rem;
  letter-spacing: -.025em;
}

.gp-module p {
  margin: 0;
  color: #60708b;
  line-height: 1.55;
}

.gp-module b {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 48, 104, .16);
  color: #123b86;
  font-size: .92rem;
}

/* --------------------------------------------------------------
   Industrias
   -------------------------------------------------------------- */
.gp-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.gp-industries span {
  padding: 10px 16px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 999px;
  background: #fff;
  color: #33415c;
  font-size: .9rem;
  font-weight: 800;
}

/* --------------------------------------------------------------
   Bloque de demos (pestañas landing / sistema)
   -------------------------------------------------------------- */
.gp-demos-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.gp-demos-tabs article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(13, 40, 88, .07);
}

.gp-demos-tabs span {
  display: inline-flex;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #123b86;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gp-demos-tabs strong {
  color: #071126;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.gp-demos-tabs p {
  margin: 0;
  color: #60708b;
  line-height: 1.55;
}

/* --------------------------------------------------------------
   Calculadora de recuperación
   -------------------------------------------------------------- */
.gp-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 99, 214, .14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 248, 255, .9));
  box-shadow: 0 22px 60px rgba(13, 40, 88, .09);
}

.gp-calc__fields {
  display: grid;
  gap: 14px;
  align-content: start;
}

.gp-calc__fields label {
  display: grid;
  gap: 6px;
}

.gp-calc__fields span {
  color: #46557a;
  font-size: .92rem;
  font-weight: 800;
}

.gp-calc__fields input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(20, 48, 104, .14);
  border-radius: 16px;
  background: #fff;
  color: #071126;
  font-size: 1.05rem;
  font-weight: 800;
}

.gp-calc__fields input:focus {
  outline: none;
  border-color: rgba(18, 59, 134, .5);
  box-shadow: 0 0 0 4px rgba(18, 59, 134, .12);
}

.gp-calc__fields small {
  color: #8290a8;
  font-size: .82rem;
}

.gp-calc__result {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #071126, #123b86);
  color: #fff;
  text-align: center;
}

.gp-calc__result span {
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gp-calc__result strong {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.05em;
}

.gp-calc__result p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  line-height: 1.5;
}

.gp-calc__result .btn {
  margin-top: 6px;
}

/* --------------------------------------------------------------
   Implementación
   -------------------------------------------------------------- */
.gp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gp-steps article {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(20, 48, 104, .12);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.gp-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #071126;
  color: #fff;
  font-weight: 950;
}

.gp-steps strong {
  display: block;
  margin: 16px 0 6px;
  color: #071126;
  font-size: 1.15rem;
}

.gp-steps p {
  margin: 0 0 8px;
  color: #60708b;
  line-height: 1.55;
}

.gp-steps b {
  color: #123b86;
  font-size: .88rem;
}

/* --------------------------------------------------------------
   Cierre
   -------------------------------------------------------------- */
.gp-final {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 20px;
  align-items: center;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, #071126, #123b86);
  color: #fff;
}

.gp-final h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.gp-final p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  line-height: 1.65;
}

.gp-final__actions {
  display: grid;
  gap: 10px;
}

.gp-final__actions .btn {
  justify-content: center;
  width: 100%;
}

/* --------------------------------------------------------------
   Responsive
   -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .gp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-pains,
  .gp-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .gp-shift,
  .gp-demos-tabs,
  .gp-calc,
  .gp-final { grid-template-columns: minmax(0, 1fr); }
  .gp-subnav__cta { margin-left: 0; }
}

@media (max-width: 620px) {
  .gp-stats,
  .gp-pains,
  .gp-modules,
  .gp-steps { grid-template-columns: minmax(0, 1fr); }
}
