/* ═══════════════════════════════════════════════════════════
   INORGE SAC - Páginas de servicio (SEO)
   Generadas desde tools/seo-pages/. Usa los tokens de styles.css
   (--azul, --rojo, --ink, --body, --muted, --border, --cond, etc.)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(140deg, #fff 0%, #f4f8fd 60%, #ebf3fb 100%);
  padding: calc(var(--nav-h) + 56px) 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--azul) 0%, var(--azul-2) 60%, var(--rojo) 100%);
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: .35; }
.page-hero h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.1rem;
  max-width: 900px;
}
.page-hero h1 em { font-style: normal; color: var(--azul); }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--cond); font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--azul); }
.lp-lead { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--body); max-width: 740px; margin: 0; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.lp-chip {
  font-family: var(--cond); font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--azul); background: rgba(11,58,102,.07);
  border: 1px solid rgba(11,58,102,.14); padding: 5px 12px; border-radius: 999px;
}
.lp-chip.rojo { color: var(--rojo); background: rgba(180,35,28,.07); border-color: rgba(180,35,28,.18); }
.lp-hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.lp-updated { margin-top: 1.4rem; font-size: 12.5px; color: var(--muted); }

/* ── Layout: contenido + columna lateral ─────────────────── */
.lp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(44px, 6vw, 84px) 0;
}
.lp-main section { margin-bottom: clamp(2.6rem, 5vw, 3.8rem); scroll-margin-top: calc(var(--nav-h) + 24px); }
.lp-main section:last-child { margin-bottom: 0; }
.lp-main h2 {
  font-family: var(--cond); font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.15;
  color: var(--ink); text-transform: uppercase; margin: 0 0 1rem;
}
.lp-main h2 em { font-style: normal; color: var(--azul); }
.lp-main h3 { font-family: var(--cond); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 1.4rem 0 .5rem; text-transform: uppercase; letter-spacing: .02em; }
.lp-main p { font-size: 16px; line-height: 1.8; color: var(--body); margin: 0 0 1rem; }
.lp-main a:not(.btn-primary):not(.btn-secondary) { color: var(--azul); border-bottom: 1px solid rgba(11,58,102,.3); }
.lp-main a:not(.btn-primary):not(.btn-secondary):hover { border-bottom-color: var(--azul); }
.lp-main strong { color: var(--ink); font-weight: 600; }

.lp-list { display: grid; gap: 10px; margin: 0 0 1rem; }
.lp-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.65; color: var(--body); }
.lp-list li::before {
  content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

.lp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 1.2rem 0 1.4rem; background: #fff; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.lp-table th {
  background: var(--azul); color: #fff; text-align: left; padding: 12px 14px;
  font-family: var(--cond); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.lp-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--border); line-height: 1.55; color: var(--body); }
.lp-table tbody tr:nth-child(even) td { background: #f8fafc; }
.lp-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.lp-steps { display: grid; gap: 12px; margin: 1.2rem 0; counter-reset: paso; }
.lp-steps li {
  counter-increment: paso; position: relative; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 18px 14px 64px; font-size: 15.5px; line-height: 1.65; color: var(--body);
}
.lp-steps li::before {
  content: counter(paso); position: absolute; left: 16px; top: 13px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center;
  font-family: var(--cond); font-weight: 700; font-size: 1.05rem;
}
.lp-steps li strong { display: block; margin-bottom: 2px; }

.lp-callout {
  border-left: 3px solid var(--rojo); background: #fff7f6;
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0;
}
.lp-callout p { margin: 0; font-size: 15px; }

.lp-figure { margin: 1.4rem 0; }
.lp-figure img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; height: auto; }
.lp-figure figcaption { font-size: 13px; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
.lp-figure.solo img { max-width: 520px; }
.lp-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.4rem 0; }
.lp-figs .lp-figure { margin: 0; }

.lp-faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.lp-faq details:first-child { border-top: 1px solid var(--border); }
.lp-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--ink);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--azul); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.lp-faq details[open] summary::after { content: '\2013'; }
.lp-faq details p { margin: .7rem 0 0; padding-right: 2rem; font-size: 15.5px; }

/* ── Columna lateral ─────────────────────────────────────── */
.lp-aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.lp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.lp-card h2 { font-family: var(--cond); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); margin: 0 0 .6rem; }
.lp-card p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0 0 1rem; }
.lp-card .btn-primary, .lp-card .btn-secondary { width: 100%; justify-content: center; margin-bottom: 8px; }
.lp-card .lp-note { font-size: 12.5px; color: var(--muted); margin: .4rem 0 0; }
.lp-toc a { display: block; padding: 8px 0; font-size: 14px; color: var(--body); border-bottom: 1px solid var(--border); }
.lp-toc a:last-child { border-bottom: 0; }
.lp-toc a:hover { color: var(--azul); }

/* ── Relacionados + CTA final ────────────────────────────── */
.lp-related { background: var(--bg-alt); padding: clamp(48px, 7vw, 84px) 0; }
.lp-related h2 { font-family: var(--cond); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; color: var(--ink); margin: 0 0 1.6rem; }
.lp-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.lp-rel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: block; transition: border-color .2s, box-shadow .2s; }
.lp-rel-card:hover { border-color: var(--azul); box-shadow: 0 8px 24px var(--shadow); }
.lp-rel-card .lp-chip { margin-bottom: 10px; display: inline-block; }
.lp-rel-card h3 { font-family: var(--cond); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); margin: 0 0 .4rem; }
.lp-rel-card p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0 0 .8rem; }
.lp-rel-card span.go { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }

.lp-cta { background: linear-gradient(135deg, var(--azul) 0%, #0d4e8a 100%); padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.lp-cta h2 { font-family: var(--cond); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.lp-cta p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 2rem; line-height: 1.75; }
.lp-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.lp-cta .btn-wa { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: #25D366; color: #fff; border-radius: var(--radius); font-size: 15px; font-weight: 600; }
.lp-cta .btn-white { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: #fff; color: var(--azul); border-radius: var(--radius); font-size: 15px; font-weight: 700; }

/* ── Tarjetas de servicios destacados (servicios.html) ───── */
.lp-feat { background: var(--bg-alt); padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--border); }
.lp-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }

@media (max-width: 960px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr); }
  .lp-aside { position: static; }
  .lp-toc { display: none; }
}
@media (max-width: 640px) {
  .lp-figs { grid-template-columns: minmax(0, 1fr); }
  .lp-table td:first-child { white-space: normal; }
}
