/* =============================================
   ESTRUCTURAS HOLDING
   =============================================
   Depende de style.css y gestoria.css.
   Paleta de gestoría:
   --gst-black  #111110   --gst-lima      #CDF564
   --gst-bg     #f7f7f5   --gst-lima-dark #B3E04D
   --gst-green-dark #173404

   Secuencia de fondos:
   hero (negro) → bloque 1 claro con tarjeta negra
   → bloque 2 (negro) → bloque 3 (claro)
   → CTA final (negro).
   ============================================= */


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

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

.hld-header {
  max-width: 720px;
  margin-bottom: 48px;
}

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

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

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

.hld-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;
}

.hld-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;
}

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

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

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

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

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

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


/* ═══════════════════════════════════════════════
   BOTÓN CTA  ·  lima solo al pasar el cursor
   ═══════════════════════════════════════════════ */

.hld-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.hld-cta-btn-light {
  border-color: rgba(17, 17, 16, 0.2);
  color: var(--gst-black);
}

.hld-cta-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.hld-cta-note-light {
  color: #777;
}

.hld-cta-row {
  margin-top: 56px;
  text-align: center;
}


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

.hld-hero .gst-hero-inner {
  align-items: center;
}

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

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

.hld-hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ── Panel lima ── */

.hld-panel {
  position: relative;
  background: var(--gst-lima);
  border-radius: 12px 0 12px 12px;
  padding: 44px 32px 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hld-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);
}

.hld-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);
}

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

.hld-panel-logo img {
  height: 46px;
  width: auto;
  margin: 0 auto;
}

.hld-panel-tags {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 52, 4, 0.14);
}

.hld-panel-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ═══════════════════════════════════════════════
   BLOQUE 1 — QUÉ ES UNA HOLDING  ·  fondo claro
   ═══════════════════════════════════════════════ */

.hld-que {
  background: var(--gst-bg);
  padding: 88px 0;
}

/* ── Esquema: holding → sociedades / inversiones ── */

.hld-esquema {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.hld-esq-node {
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.1);
  border-radius: 14px;
  padding: 22px 26px;
  text-align: left;
}

.hld-esq-top {
  display: flex;
  justify-content: center;
}

.hld-esq-holding {
  background: var(--gst-black);
  border-color: var(--gst-black);
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hld-esq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--gst-lima);
  color: var(--gst-black);
}

.hld-esq-icon svg {
  width: 20px;
  height: 20px;
}

.hld-esq-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gst-black);
  line-height: 1.3;
}

.hld-esq-holding .hld-esq-title {
  color: #fff;
}

.hld-esq-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #777;
  margin-top: 4px;
}

.hld-esq-holding .hld-esq-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* Conectores en lima */

.hld-esq-stem {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--gst-lima-dark);
}

.hld-esq-children {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 34px;
}

.hld-esq-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--gst-lima-dark);
}

.hld-esq-child {
  position: relative;
}

.hld-esq-child::before {
  content: '';
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 34px;
  background: var(--gst-lima-dark);
}

.hld-esq-child .hld-esq-icon {
  background: rgba(205, 245, 100, 0.35);
  margin-bottom: 12px;
}

.hld-esq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hld-esq-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gst-green-dark);
  background: rgba(205, 245, 100, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── Tres beneficios ── */

.hld-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.hld-benefit {
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 16px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hld-benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 17, 16, 0.07);
}

.hld-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gst-lima);
  color: var(--gst-black);
  margin-bottom: 6px;
}

.hld-benefit-icon svg {
  width: 22px;
  height: 22px;
}

.hld-benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gst-black);
}

.hld-benefit-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #777;
}

/* ── Tarjeta negra: el ejemplo numérico ── */

.hld-ejemplo {
  position: relative;
  overflow: hidden;
  background: var(--gst-black);
  border-radius: 18px;
  padding: 40px 38px 34px;
}

.hld-ejemplo-glow {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 245, 100, 0.10) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hld-ejemplo-body {
  position: relative;
  z-index: 1;
}

.hld-ejemplo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.hld-ejemplo-intro {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
  max-width: 620px;
}

.hld-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hld-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px 22px;
}

.hld-col-win {
  background: rgba(205, 245, 100, 0.09);
  border-color: rgba(205, 245, 100, 0.4);
}

.hld-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  display: block;
}

.hld-col-win .hld-col-label {
  color: var(--gst-lima);
}

.hld-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.hld-line:last-child {
  border-bottom: 0;
}

.hld-line-val {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.hld-line-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  font-size: 0.92rem;
  color: #fff;
  font-weight: 600;
}

.hld-line-total .hld-line-val {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.hld-col-win .hld-line-total .hld-line-val {
  color: var(--gst-lima);
}

/* Aviso de diferimiento */

.hld-aviso {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--gst-lima);
  border-radius: 10px;
  padding: 18px 20px;
}

.hld-aviso-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--gst-lima);
}

.hld-aviso-icon svg {
  width: 20px;
  height: 20px;
}

.hld-aviso-text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.hld-aviso-text strong {
  color: #fff;
  font-weight: 600;
}

.hld-ejemplo-legal {
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 20px;
}


/* ── Cómo usar el dinero sin repartírselo ──
   Vive dentro del bloque 1 (fondo claro), justo después de la
   tarjeta negra del ejemplo: responde a la objeción que plantea. */

.hld-usar {
  margin-top: 64px;
}

.hld-usar-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.hld-usar-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gst-green-dark);
  background: var(--gst-lima);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.hld-usar-title {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--gst-black);
  margin-bottom: 14px;
}

.hld-usar-sub {
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(17, 17, 16, 0.62);
}

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

.hld-vias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hld-via {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-top: 3px solid var(--gst-lima);
  border-radius: 14px;
  padding: 28px 24px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hld-via:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17, 17, 16, 0.08);
}

.hld-via-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(17, 17, 16, 0.18);
}

.hld-via-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gst-lima);
  color: var(--gst-green-dark);
  margin-bottom: 16px;
}

.hld-via-icon svg {
  width: 20px;
  height: 20px;
}

.hld-via-title {
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.3;
  color: var(--gst-black);
  margin-bottom: 12px;
  padding-right: 28px;
}

.hld-via-text {
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(17, 17, 16, 0.6);
  margin-bottom: 12px;
}

.hld-via-text strong {
  color: var(--gst-black);
  font-weight: 600;
}

.hld-via-nota {
  font-size: 0.83rem;
  line-height: 1.6;
  color: rgba(17, 17, 16, 0.55);
  background: rgba(205, 245, 100, 0.22);
  border-left: 3px solid var(--gst-lima-dark);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-top: auto; /* ancla la nota abajo: las 3 tarjetas alinean su franja lima */
}

.hld-via-text:last-of-type {
  margin-bottom: 18px;
}

.hld-via-nota strong {
  color: var(--gst-green-dark);
  font-weight: 700;
}

/* La línea roja */
.hld-linea {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 28px 30px;
  background: #fff;
  border: 1px dashed rgba(17, 17, 16, 0.22);
  border-radius: 14px;
}

.hld-linea-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gst-black);
  color: var(--gst-lima);
}

.hld-linea-icon svg {
  width: 20px;
  height: 20px;
}

.hld-linea-title {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--gst-black);
  margin-bottom: 12px;
}

.hld-linea-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(17, 17, 16, 0.6);
  margin-bottom: 12px;
}

.hld-linea-text:last-child {
  margin-bottom: 0;
}

.hld-linea-text strong {
  color: var(--gst-black);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════
   BLOQUE 2 — ¿TIENE SENTIDO PARA TI?  ·  negro
   ═══════════════════════════════════════════════ */

.hld-sentido {
  background: var(--gst-black);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.hld-sentido::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 4%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.06) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hld-sentido .hld-inner {
  position: relative;
  z-index: 1;
}

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

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

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

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

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

.hld-caso-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
}

.hld-caso-text {
  font-size: 0.87rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.hld-caso-text strong {
  color: #fff;
  font-weight: 600;
}

/* Tarjeta en contra */

.hld-contra {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 30px 28px;
}

.hld-contra-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gst-black);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.hld-contra-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.hld-contra-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 780px;
}

.hld-contra-text strong {
  color: #fff;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════
   BLOQUE 3 — EL ESTUDIO DE ESTRUCTURA  ·  claro
   ═══════════════════════════════════════════════ */

.hld-estudio {
  background: var(--gst-bg);
  padding: 88px 0;
}

.hld-estudio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.hld-punto {
  background: #fff;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 16px;
  padding: 28px 26px;
}

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

.hld-punto-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gst-black);
  margin-bottom: 8px;
}

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

/* Franja de entrega */

.hld-entrega {
  background: var(--gst-black);
  border-radius: 18px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hld-entrega-copy {
  flex: 1 1 380px;
}

.hld-entrega-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.hld-entrega-text {
  font-size: 0.89rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.hld-entrega-text strong {
  color: var(--gst-lima);
  font-weight: 600;
}

.hld-entrega-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}


/* ═══════════════════════════════════════════════
   CTA FINAL  ·  negro de calculadora, no el del footer
   ═══════════════════════════════════════════════ */

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

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


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

@media (max-width: 1040px) {

  .hld-benefits,
  .hld-estudio-grid,
  .hld-vias {
    grid-template-columns: repeat(2, 1fr);
  }

  .hld-ejemplo {
    padding: 34px 28px 30px;
  }
}

@media (max-width: 980px) {

  .hld-casos {
    grid-template-columns: 1fr;
  }

  .hld-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {

  .hld-que,
  .hld-sentido,
  .hld-estudio {
    padding: 64px 0;
  }

  .hld-benefits,
  .hld-estudio-grid,
  .hld-vias {
    grid-template-columns: 1fr;
  }

  .hld-usar {
    margin-top: 48px;
  }

  .hld-linea {
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
  }

  /* El esquema pasa a columna: solo queda el tallo que baja de la matriz.
     Los conectores en L confundirían (parecería que una cuelga de la otra). */
  .hld-esq-children {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 0;
  }

  .hld-esq-children::before,
  .hld-esq-child::before {
    display: none;
  }

  .hld-esq-holding {
    min-width: 0;
    width: 100%;
  }

  .hld-hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hld-hero-cta .hld-cta-btn {
    width: 100%;
    text-align: center;
  }

  .hld-entrega {
    padding: 28px 24px;
  }

  .hld-entrega-cta {
    width: 100%;
  }

  .hld-entrega-cta .hld-cta-btn {
    width: 100%;
    text-align: center;
  }

  .hld-ejemplo-title {
    font-size: 1.08rem;
  }
}
