/* ============================================
   LGM ASESORES — Design System Premium v2
   Granate · Champagne · Marfil
   Mobile-first con DENSIDAD en móvil
   ============================================ */

:root {
  --lgm-primary: #7B1E3A;
  --lgm-primary-dark: #5C0F22;
  --lgm-primary-soft: #9B3450;
  --lgm-primary-glow: rgba(123,30,58,.18);
  --lgm-accent: #C9A227;
  --lgm-accent-soft: #E0BD4A;
  --lgm-accent-glow: rgba(201,162,39,.32);
  --lgm-ink: #1A1414;
  --lgm-text: #2C2424;
  --lgm-muted: #6B6360;
  --lgm-line: #EAE2DA;
  --lgm-line-strong: #D9CFC2;
  --lgm-cream: #FAF6EF;
  --lgm-cream-2: #F4EDE2;
  --lgm-white: #FFFFFF;

  --lgm-radius-sm: 10px;
  --lgm-radius: 16px;
  --lgm-radius-lg: 24px;
  --lgm-radius-xl: 32px;

  --lgm-shadow-xs: 0 1px 2px rgba(20,20,30,.04), 0 2px 8px rgba(20,20,30,.04);
  --lgm-shadow-sm: 0 2px 4px rgba(20,20,30,.06), 0 6px 16px rgba(20,20,30,.06);
  --lgm-shadow-md: 0 8px 28px rgba(20,20,30,.10), 0 4px 10px rgba(20,20,30,.06);
  --lgm-shadow-lg: 0 28px 72px rgba(20,20,30,.16), 0 10px 24px rgba(20,20,30,.08);

  --lgm-font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --lgm-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset suave dentro del wrapper ─────────────────── */
.lgm { font-family: var(--lgm-font-sans); color: var(--lgm-text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.lgm *, .lgm *::before, .lgm *::after { box-sizing: border-box; }
.lgm img, .lgm svg { max-width: 100%; height: auto; display: block; }
.lgm a { color: inherit; }

/* ── Tipografía ─────────────────────────────────────── */
.lgm h1, .lgm h2, .lgm h3, .lgm h4 { font-family: var(--lgm-font-serif); color: var(--lgm-ink); margin: 0; line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }
.lgm h1 { font-size: clamp(2.1rem, 6vw + 0.8rem, 3.85rem); letter-spacing: -0.025em; }
.lgm h2 { font-size: clamp(1.65rem, 4vw + 0.6rem, 2.55rem); }
.lgm h3 { font-size: clamp(1.05rem, 1.5vw + 0.7rem, 1.4rem); font-weight: 600; }
.lgm p { margin: 0 0 1rem; }
.lgm .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--lgm-font-sans); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--lgm-accent); }
.lgm .eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--lgm-accent); border-radius: 2px; }
.lgm .lead { font-size: 1.0625rem; color: var(--lgm-muted); line-height: 1.55; }

/* ── Layout container ───────────────────────────────── */
.lgm-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .lgm-wrap { padding: 0 32px; } }

.lgm-section { padding: 56px 0; }
@media (min-width: 768px) { .lgm-section { padding: 88px 0; } }
@media (min-width: 1024px) { .lgm-section { padding: 112px 0; } }

.lgm-section--cream { background: var(--lgm-cream); }
.lgm-section--cream-2 { background: var(--lgm-cream-2); }
.lgm-section--dark { background: var(--lgm-primary-dark); color: rgba(255,255,255,.92); }
.lgm-section--dark h1, .lgm-section--dark h2, .lgm-section--dark h3 { color: #fff; }

/* ── Botones ────────────────────────────────────────── */
.lgm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 14px 22px; border-radius: 999px; font-family: var(--lgm-font-sans); font-weight: 600; font-size: .9375rem; text-decoration: none; line-height: 1; transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease; cursor: pointer; border: none; letter-spacing: -.005em; }
.lgm-btn--primary { background: var(--lgm-accent); color: var(--lgm-primary-dark); box-shadow: 0 8px 20px rgba(201,162,39,.40), inset 0 1px 0 rgba(255,255,255,.35); }
.lgm-btn--primary:hover { background: var(--lgm-accent-soft); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,39,.50), inset 0 1px 0 rgba(255,255,255,.35); color: var(--lgm-primary-dark); }
.lgm-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.lgm-btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.lgm-btn--dark { background: var(--lgm-primary); color: #fff; box-shadow: 0 8px 20px rgba(123,30,58,.30), inset 0 1px 0 rgba(255,255,255,.15); }
.lgm-btn--dark:hover { background: var(--lgm-primary-dark); transform: translateY(-2px); color: #fff; }
.lgm-btn--outline { background: transparent; color: var(--lgm-primary); border: 1.5px solid var(--lgm-primary); }
.lgm-btn--outline:hover { background: var(--lgm-primary); color: #fff; }
.lgm-btn svg { width: 16px; height: 16px; }

/* ── Hero ───────────────────────────────────────────── */
.lgm-hero { position: relative; background: linear-gradient(140deg, var(--lgm-primary-dark) 0%, var(--lgm-primary) 50%, var(--lgm-primary-soft) 100%); color: #fff; overflow: hidden; padding: 64px 0 56px; }
/* Primer bloque pegado al header (sin padding-top), conserva padding-bottom */
.lgm > *:first-child { padding-top: 0; }
.lgm > *:first-child.lgm-hero { padding-top: 0; padding-bottom: 56px; }
.lgm > *:first-child.lgm-hero .lgm-container { padding-top: 40px; }
@media (min-width: 992px) {
  .lgm > *:first-child.lgm-hero .lgm-container { padding-top: 72px; }
}
@media (max-width: 575px) {
  .lgm > *:first-child.lgm-hero { padding-bottom: 44px; }
  .lgm > *:first-child.lgm-hero .lgm-container { padding-top: 28px; }
}
.lgm-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(201,162,39,.22), transparent 45%),
    radial-gradient(circle at 92% 92%, rgba(255,255,255,.10), transparent 50%);
  pointer-events: none;
}
.lgm-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><circle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.06'/></svg>");
  opacity: .4; pointer-events: none;
}
.lgm-hero-grid { position: relative; display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 992px) { .lgm-hero { padding: 130px 0 110px; } .lgm-hero-grid { grid-template-columns: 1.12fr 1fr; gap: 56px; } .lgm > *:first-child.lgm-hero { padding-top: 0; padding-bottom: 110px; } }
.lgm-hero h1 { color: #fff; margin: 16px 0 16px; }
.lgm-hero .eyebrow { color: var(--lgm-accent-soft); }
.lgm-hero .eyebrow::before { background: var(--lgm-accent-soft); }
.lgm-hero p.lead { color: rgba(255,255,255,.86); font-size: 1.0625rem; max-width: 520px; margin-bottom: 24px; line-height: 1.55; }
.lgm-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero meta — DOS columnas en móvil para densidad */
.lgm-hero-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  color: rgba(255,255,255,.85);
  font-size: .8125rem;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 24px;
}
.lgm-hero-meta > div { line-height: 1.25; }
.lgm-hero-meta strong { display: block; color: var(--lgm-accent-soft); font-family: var(--lgm-font-serif); font-size: 1.65rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }

/* Hero card — items en 2 columnas desde mobile */
.lgm-hero-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--lgm-radius-lg);
  padding: 24px 22px;
  box-shadow: var(--lgm-shadow-lg);
}
@media (min-width: 768px) { .lgm-hero-card { padding: 32px; } }
.lgm-hero-card h3 { color: #fff; margin-bottom: 18px; font-size: 1.15rem; }
.lgm-hero-card ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
}
@media (min-width: 480px) { .lgm-hero-card ul { grid-template-columns: 1fr 1fr; } }
.lgm-hero-card li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.92); font-size: .8125rem; line-height: 1.35; }
.lgm-hero-card li::before { content: "✓"; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--lgm-accent); color: var(--lgm-primary-dark); display: grid; place-items: center; font-weight: 800; font-size: .6875rem; margin-top: 1px; }

/* ── Section heading ────────────────────────────────── */
.lgm-section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
@media (min-width: 768px) { .lgm-section-head { margin-bottom: 56px; } }
.lgm-section-head .eyebrow { margin-bottom: 12px; }
.lgm-section-head h2 { margin-bottom: 14px; }
.lgm-section-head p { color: var(--lgm-muted); font-size: 1rem; margin: 0; }

/* ── Service cards — 2 columnas DESDE MÓVIL ─────────── */
.lgm-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .lgm-grid { gap: 22px; } }
@media (min-width: 992px) { .lgm-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.lgm-card {
  background: #fff;
  border: 1px solid var(--lgm-line);
  border-radius: var(--lgm-radius);
  padding: 22px 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) { .lgm-card { padding: 30px 26px; } }
.lgm-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--lgm-accent), var(--lgm-accent-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.lgm-card:hover, .lgm-card:focus-within { transform: translateY(-4px); box-shadow: var(--lgm-shadow-md); border-color: transparent; }
.lgm-card:hover::before, .lgm-card:focus-within::before { transform: scaleX(1); }
.lgm-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--lgm-primary), var(--lgm-primary-soft));
  display: grid; place-items: center;
  margin-bottom: 14px;
  color: #fff;
  box-shadow: 0 6px 14px var(--lgm-primary-glow);
}
@media (min-width: 768px) { .lgm-card-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; } }
.lgm-card-icon svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .lgm-card-icon svg { width: 26px; height: 26px; } }
.lgm-card h3 { margin-bottom: 8px; font-size: 1.05rem; line-height: 1.2; }
@media (min-width: 768px) { .lgm-card h3 { font-size: 1.25rem; margin-bottom: 10px; } }
.lgm-card p { color: var(--lgm-muted); font-size: .8125rem; line-height: 1.5; margin-bottom: 14px; flex: 1; }
@media (min-width: 768px) { .lgm-card p { font-size: .9375rem; margin-bottom: 18px; } }
.lgm-card-link { font-weight: 600; font-size: .8125rem; color: var(--lgm-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
@media (min-width: 768px) { .lgm-card-link { font-size: .9375rem; } }
.lgm-card-link:hover { color: var(--lgm-primary-dark); gap: 10px; }

/* ── Sectors row — 2 columnas en móvil, 3 en tablet ── */
.lgm-sectors { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .lgm-sectors { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.lgm-sector {
  padding: 24px 18px;
  border-radius: var(--lgm-radius);
  background: linear-gradient(135deg, #fff 0%, var(--lgm-cream) 100%);
  border: 1px solid var(--lgm-line);
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 768px) { .lgm-sector { padding: 34px 28px; } }
.lgm-sector:hover { transform: translateY(-4px); box-shadow: var(--lgm-shadow-md); }
.lgm-sector::after {
  content: ""; position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--lgm-accent); opacity: .08;
  border-radius: 50%;
}
.lgm-sector h3 { font-family: var(--lgm-font-serif); margin-bottom: 8px; color: var(--lgm-primary); font-size: 1.05rem; }
@media (min-width: 768px) { .lgm-sector h3 { font-size: 1.3rem; margin-bottom: 10px; } }
.lgm-sector p { color: var(--lgm-muted); font-size: .8125rem; line-height: 1.5; margin: 0; }
@media (min-width: 768px) { .lgm-sector p { font-size: .9375rem; } }

/* ── Features — 2 COLUMNAS desde móvil ──────────────── */
.lgm-features { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .lgm-features { gap: 36px; } }
.lgm-feature { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 768px) { .lgm-feature { flex-direction: row; gap: 20px; } }
.lgm-feature-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(123,30,58,.10); color: var(--lgm-primary);
  display: grid; place-items: center;
}
@media (min-width: 768px) { .lgm-feature-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; } }
.lgm-feature-icon svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .lgm-feature-icon svg { width: 28px; height: 28px; } }
.lgm-feature h3 { margin-bottom: 6px; font-size: 1rem; line-height: 1.2; }
@media (min-width: 768px) { .lgm-feature h3 { font-size: 1.1875rem; margin-bottom: 8px; } }
.lgm-feature p { color: var(--lgm-muted); font-size: .8125rem; line-height: 1.5; margin: 0; }
@media (min-width: 768px) { .lgm-feature p { font-size: .9375rem; } }

/* ── Testimonials — 1 col mobile (textos largos), 3 desktop ── */
.lgm-quotes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lgm-quotes { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1024px) { .lgm-quotes { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.lgm-quote {
  background: #fff;
  border: 1px solid var(--lgm-line);
  border-radius: var(--lgm-radius);
  padding: 28px 22px 22px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 768px) { .lgm-quote { padding: 32px; } }
.lgm-quote:hover { transform: translateY(-3px); box-shadow: var(--lgm-shadow-sm); }
.lgm-quote::before {
  content: "“"; position: absolute; top: -10px; left: 18px;
  font-family: var(--lgm-font-serif); font-size: 4.5rem; color: var(--lgm-accent);
  line-height: 1;
}
@media (min-width: 768px) { .lgm-quote::before { font-size: 6rem; top: -22px; left: 24px; } }
.lgm-quote p {
  font-family: var(--lgm-font-serif);
  font-size: .9375rem; line-height: 1.5;
  color: var(--lgm-ink); margin-bottom: 20px;
}
@media (min-width: 768px) { .lgm-quote p { font-size: 1.0625rem; margin-bottom: 24px; } }
.lgm-quote-author { display: flex; align-items: center; gap: 12px; }
.lgm-quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lgm-primary), var(--lgm-primary-soft));
  color: #fff; display: grid; place-items: center;
  font-weight: 600; font-family: var(--lgm-font-sans);
  font-size: .875rem;
  box-shadow: 0 4px 10px var(--lgm-primary-glow);
}
.lgm-quote-name { font-weight: 600; color: var(--lgm-ink); font-size: .875rem; line-height: 1.2; }
.lgm-quote-role { color: var(--lgm-muted); font-size: .75rem; margin-top: 2px; }

/* ── CTA final ──────────────────────────────────────── */
.lgm-cta-final {
  background: linear-gradient(135deg, var(--lgm-primary-dark) 0%, var(--lgm-primary) 100%);
  color: #fff;
  border-radius: var(--lgm-radius-lg);
  padding: 40px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .lgm-cta-final { padding: 64px 48px; } }
.lgm-cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,162,39,.28), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.10), transparent 40%);
  pointer-events: none;
}
.lgm-cta-final > * { position: relative; }
.lgm-cta-final h2 { color: #fff; margin-bottom: 12px; }
.lgm-cta-final p { color: rgba(255,255,255,.86); margin-bottom: 24px; font-size: 1rem; }
@media (min-width: 768px) { .lgm-cta-final p { font-size: 1.0625rem; } }
.lgm-cta-final .lgm-hero-ctas { justify-content: center; }

/* ── Process steps — 2 columnas en móvil ────────────── */
.lgm-steps { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); counter-reset: step; }
@media (min-width: 768px) { .lgm-steps { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.lgm-step {
  padding: 22px 18px;
  background: #fff; border-radius: var(--lgm-radius);
  border: 1px solid var(--lgm-line);
  position: relative; counter-increment: step;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 768px) { .lgm-step { padding: 28px; } }
.lgm-step:hover { transform: translateY(-3px); box-shadow: var(--lgm-shadow-sm); }
.lgm-step::before {
  content: "0" counter(step);
  font-family: var(--lgm-font-serif); font-size: 1.85rem; font-weight: 700;
  color: var(--lgm-accent); line-height: 1; margin-bottom: 12px;
  display: block;
}
@media (min-width: 768px) { .lgm-step::before { font-size: 2.25rem; margin-bottom: 16px; } }
.lgm-step h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.2; }
@media (min-width: 768px) { .lgm-step h3 { font-size: 1.125rem; margin-bottom: 8px; } }
.lgm-step p { color: var(--lgm-muted); font-size: .8125rem; line-height: 1.5; margin: 0; }
@media (min-width: 768px) { .lgm-step p { font-size: .9375rem; } }

/* ── Trust bar — 2x2 grid en móvil ──────────────────── */
.lgm-trust { padding: 28px 0; background: var(--lgm-cream); border-top: 1px solid var(--lgm-line); border-bottom: 1px solid var(--lgm-line); }
.lgm-trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
  text-align: center;
  color: var(--lgm-muted);
  font-size: .75rem;
  align-items: start;
}
@media (min-width: 768px) {
  .lgm-trust-row { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; font-size: .875rem; }
}
.lgm-trust-row > div { line-height: 1.3; }
.lgm-trust-row strong {
  color: var(--lgm-primary);
  font-family: var(--lgm-font-serif);
  font-size: 1.4rem; font-weight: 700;
  display: block; line-height: 1; margin-bottom: 6px;
}
@media (min-width: 768px) { .lgm-trust-row strong { font-size: 1.6rem; } }

/* ── Contact split ──────────────────────────────────── */
.lgm-split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 992px) { .lgm-split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.lgm-contact-info ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.lgm-contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.lgm-contact-info li svg { width: 22px; height: 22px; color: var(--lgm-primary); flex-shrink: 0; margin-top: 2px; }
.lgm-contact-info strong { display: block; color: var(--lgm-ink); font-weight: 600; margin-bottom: 2px; }
.lgm-contact-info span { color: var(--lgm-muted); font-size: .9375rem; }
.lgm-contact-form { background: #fff; padding: 24px 20px; border-radius: var(--lgm-radius); border: 1px solid var(--lgm-line); box-shadow: var(--lgm-shadow-sm); }
@media (min-width: 768px) { .lgm-contact-form { padding: 36px; } }
.lgm-contact-form label { display: block; margin-bottom: 14px; }
.lgm-contact-form label span { display: block; font-weight: 600; font-size: .8125rem; color: var(--lgm-ink); margin-bottom: 6px; }
.lgm-contact-form input, .lgm-contact-form textarea, .lgm-contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--lgm-line-strong); border-radius: var(--lgm-radius-sm); font-family: inherit; font-size: .9375rem; color: var(--lgm-ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.lgm-contact-form input:focus, .lgm-contact-form textarea:focus, .lgm-contact-form select:focus { outline: none; border-color: var(--lgm-primary); box-shadow: 0 0 0 3px var(--lgm-primary-glow); }
.lgm-contact-form textarea { min-height: 110px; resize: vertical; }
.lgm-contact-form .lgm-btn { width: 100%; }

/* ── FAQ ────────────────────────────────────────────── */
.lgm-faq { max-width: 800px; margin: 0 auto; }
.lgm-faq details {
  border: 1px solid var(--lgm-line);
  border-radius: var(--lgm-radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
@media (min-width: 768px) { .lgm-faq details { padding: 20px 24px; margin-bottom: 12px; } }
.lgm-faq details[open] { box-shadow: var(--lgm-shadow-sm); border-color: rgba(123,30,58,.25); }
.lgm-faq summary { cursor: pointer; font-weight: 600; color: var(--lgm-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .9375rem; line-height: 1.35; }
.lgm-faq summary::-webkit-details-marker { display: none; }
.lgm-faq summary::after {
  content: ""; flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--lgm-primary-glow);
  position: relative; transition: transform .25s ease, background .25s ease;
}
.lgm-faq summary::before {
  content: ""; position: absolute; right: 26px;
  width: 10px; height: 2px; background: var(--lgm-primary); border-radius: 2px;
  transition: transform .25s ease;
}
.lgm-faq details[open] summary::before { transform: rotate(0); }
.lgm-faq summary { position: relative; padding-right: 8px; }
.lgm-faq summary::after { background-image: linear-gradient(to bottom, var(--lgm-primary) 45%, transparent 45%, transparent 55%, var(--lgm-primary) 55%); background-size: 10px 2px; background-position: center; background-repeat: no-repeat; }
.lgm-faq details[open] summary::after { background-image: linear-gradient(var(--lgm-primary), var(--lgm-primary)); background-size: 10px 2px; }
.lgm-faq details p { margin: 12px 0 0; color: var(--lgm-muted); font-size: .875rem; line-height: 1.55; }
@media (min-width: 768px) { .lgm-faq details p { font-size: .9375rem; } }

/* ── Mobile fine-tuning ─────────────────────────────── */
@media (max-width: 575px) {
  .lgm-hero { padding: 52px 0 48px; }
  .lgm-hero h1 { font-size: 2.05rem; }
  .lgm-hero p.lead { font-size: .9375rem; }
  .lgm-hero-ctas .lgm-btn { font-size: .875rem; padding: 12px 18px; }
  .lgm-hero-ctas .lgm-btn--primary { flex: 1; }

  .lgm-cta-final { padding: 36px 20px; }
  .lgm-cta-final .lgm-btn { font-size: .875rem; padding: 12px 18px; }
  .lgm-cta-final .lgm-hero-ctas .lgm-btn--primary { flex: 1 1 auto; }
}

/* ── Hide Cerato remnants that conflict ─────────────── */
.page-template-default .post-thumbnail { display: none; }

/* ── Tap feedback for cards on touch devices ────────── */
@media (hover: none) {
  .lgm-card:active, .lgm-sector:active, .lgm-step:active, .lgm-quote:active { transform: scale(.985); }
}

/* ============================================
   HEADER & FOOTER PROFESIONAL · LGM
   ============================================ */

/* Ocultar header/footer del tema Cerato */
.lgm-theme-active #header,
.lgm-theme-active .site-header,
.lgm-theme-active #masthead,
.lgm-theme-active .header-wrap,
.lgm-theme-active #footer,
.lgm-theme-active .site-footer,
.lgm-theme-active #colophon,
.lgm-theme-active .footer-wrap,
.lgm-theme-active .top-bar,
.lgm-theme-active .topbar,
.lgm-theme-active .breadcrumbs,
.lgm-theme-active .page-header,
.lgm-theme-active .entry-header { display: none !important; }

.lgm-theme-active #page,
.lgm-theme-active #content,
.lgm-theme-active .site-content,
.lgm-theme-active .container,
.lgm-theme-active main { padding: 0 !important; margin: 0 !important; max-width: none !important; }

.lgm-theme-active body,
.lgm-theme-active .site,
.lgm-theme-active #wrapper { background: var(--lgm-cream); }

.lgm-theme-active.lgm-no-scroll { overflow: hidden; }

/* Spacer para que el contenido no quede bajo el header sticky */
.lgm-theme-active main,
.lgm-theme-active .site-main { padding-top: 0 !important; }
.lgm-shell + * { margin-top: 0; }

/* ── HEADER ────────────────────────────────── */
.lgm-header {
  position: sticky;
  top: 0;
  z-index: 999;
  font-family: var(--lgm-font-sans);
  background: var(--lgm-white);
  transition: box-shadow .25s ease;
}
.lgm-header.is-scrolled { box-shadow: var(--lgm-shadow-sm); }

.lgm-topbar {
  background: linear-gradient(135deg, var(--lgm-primary-dark), var(--lgm-primary));
  color: #F2E6D9;
  font-size: .8125rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lgm-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.lgm-tb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F2E6D9;
  text-decoration: none;
  transition: color .2s;
}
.lgm-tb-item:hover { color: var(--lgm-accent-soft); }
.lgm-tb-item svg { width: 14px; height: 14px; opacity: .85; }

.lgm-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand */
.lgm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lgm-ink);
}
.lgm-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lgm-primary), var(--lgm-primary-soft));
  color: var(--lgm-white);
  font-family: var(--lgm-font-serif);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .5px;
  box-shadow: 0 6px 16px var(--lgm-primary-glow);
}
.lgm-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.lgm-brand-text strong {
  font-family: var(--lgm-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lgm-ink);
  letter-spacing: .2px;
}
.lgm-brand-text em {
  font-style: normal;
  font-size: .72rem;
  color: var(--lgm-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.lgm-brand-light strong { color: var(--lgm-white); }
.lgm-brand-light em { color: rgba(255,255,255,.7); }

/* Menu desktop */
.lgm-menu {
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lgm-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  color: var(--lgm-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.lgm-menu > li > a:hover { background: var(--lgm-cream-2); color: var(--lgm-primary); }
.lgm-menu > li > a svg { width: 14px; height: 14px; transition: transform .2s; }
.lgm-has-sub:hover > a svg { transform: rotate(180deg); }

/* Submenu desktop */
.lgm-sub {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 8px;
  min-width: 240px;
  list-style: none;
  background: var(--lgm-white);
  border: 1px solid var(--lgm-line);
  border-radius: 14px;
  box-shadow: var(--lgm-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.lgm-has-sub { position: relative; }
.lgm-has-sub:hover > .lgm-sub,
.lgm-has-sub:focus-within > .lgm-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lgm-sub li a {
  display: block;
  padding: 10px 14px;
  color: var(--lgm-text);
  text-decoration: none;
  font-size: .9rem;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.lgm-sub li a:hover { background: var(--lgm-cream); color: var(--lgm-primary); }

.lgm-btn-sm { padding: 9px 18px; font-size: .875rem; }
.lgm-menu-cta { margin-left: 8px; }

/* Burger */
.lgm-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--lgm-line);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.lgm-burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--lgm-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.lgm-burger span:nth-child(1) { top: 14px; }
.lgm-burger span:nth-child(2) { top: 21px; }
.lgm-burger span:nth-child(3) { top: 28px; }
.lgm-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.lgm-burger.is-open span:nth-child(2) { opacity: 0; }
.lgm-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Responsive header */
@media (max-width: 1023px) {
  .lgm-topbar-inner { justify-content: center; gap: 14px; font-size: .75rem; }
  .lgm-tb-mail { display: none; }
  .lgm-burger { display: block; }
  .lgm-menu {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--lgm-white);
    padding: 80px 24px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 998;
  }
  .lgm-menu.is-open { transform: translateX(0); }
  .lgm-menu > li > a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--lgm-line);
    border-radius: 0;
    justify-content: space-between;
  }
  .lgm-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--lgm-cream);
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height .3s ease, padding .3s ease;
  }
  .lgm-has-sub.is-open > .lgm-sub { max-height: 500px; padding: 8px; }
  .lgm-menu-cta { margin: 18px 0 0; }
  .lgm-menu-cta .lgm-btn { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 575px) {
  .lgm-nav-inner { padding: 12px 16px; gap: 12px; }
  .lgm-brand-mark { width: 40px; height: 40px; font-size: .95rem; }
  .lgm-brand-text strong { font-size: 1rem; }
  .lgm-brand-text em { font-size: .65rem; }
  .lgm-topbar-inner { padding: 6px 14px; }
}

/* ── FOOTER ────────────────────────────────── */
.lgm-footer {
  font-family: var(--lgm-font-sans);
  background: linear-gradient(180deg, #1F1010 0%, #160A0C 100%);
  color: #D9CFCB;
  margin-top: 80px;
}
.lgm-footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}
.lgm-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.lgm-footer-col h4 {
  font-family: var(--lgm-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lgm-white);
  margin: 0 0 16px;
  letter-spacing: .3px;
}
.lgm-footer-desc {
  margin: 16px 0 20px;
  font-size: .9rem;
  line-height: 1.65;
  color: #C9BFBB;
  max-width: 360px;
}
.lgm-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lgm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: .875rem;
  color: #C9BFBB;
}
.lgm-footer-contact svg {
  width: 16px; height: 16px;
  margin-top: 2px;
  color: var(--lgm-accent);
  flex-shrink: 0;
}
.lgm-footer-contact a {
  color: #C9BFBB;
  text-decoration: none;
  transition: color .2s;
}
.lgm-footer-contact a:hover { color: var(--lgm-accent); }

.lgm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lgm-footer-links li { padding: 5px 0; }
.lgm-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #C9BFBB;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s, transform .2s;
}
.lgm-footer-links a::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lgm-accent);
  opacity: 0;
  transition: opacity .2s;
}
.lgm-footer-links a:hover { color: var(--lgm-white); transform: translateX(2px); }
.lgm-footer-links a:hover::before { opacity: 1; }

.lgm-footer-cta-text {
  font-size: .875rem;
  line-height: 1.6;
  color: #C9BFBB;
  margin: 0 0 16px;
}
.lgm-btn-block { display: block; width: 100%; text-align: center; }
.lgm-btn-accent {
  background: linear-gradient(135deg, var(--lgm-accent), var(--lgm-accent-soft));
  color: var(--lgm-primary-dark);
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(201,162,39,.25);
}
.lgm-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,39,.35); }

.lgm-footer-social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.lgm-footer-social a {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #C9BFBB;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.lgm-footer-social a:hover {
  background: var(--lgm-accent);
  color: var(--lgm-primary-dark);
  transform: translateY(-2px);
}
.lgm-footer-social svg { width: 18px; height: 18px; }

/* Footer bottom */
.lgm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
}
.lgm-footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: #A89E9A;
}
.lgm-footer-bottom p { margin: 0; }
.lgm-footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.lgm-footer-legal a {
  color: #A89E9A;
  text-decoration: none;
  transition: color .2s;
}
.lgm-footer-legal a:hover { color: var(--lgm-accent); }

/* Footer responsive */
@media (max-width: 991px) {
  .lgm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lgm-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .lgm-footer { margin-top: 56px; }
  .lgm-footer-top { padding: 44px 20px 32px; }
  .lgm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .lgm-footer-brand { grid-column: 1 / -1; }
  .lgm-footer-col h4 { font-size: .95rem; margin-bottom: 12px; }
  .lgm-footer-desc { font-size: .85rem; margin: 12px 0 16px; }
  .lgm-footer-contact li { font-size: .82rem; }
  .lgm-footer-links a { font-size: .85rem; }
  .lgm-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    font-size: .75rem;
  }
  .lgm-footer-legal { justify-content: center; gap: 16px; }
}

/* ============================================
   EXTENSIONES PARA PÁGINAS INTERIORES
   ============================================ */

/* Numbered features / steps (uso de .lgm-feature-num y .lgm-step-num) */
.lgm-feature-num {
  display: inline-grid; place-items: center;
  min-width: 64px; padding: 6px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lgm-primary), var(--lgm-primary-soft));
  color: #fff;
  font-family: var(--lgm-font-serif);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: .3px;
  box-shadow: 0 6px 16px var(--lgm-primary-glow);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .lgm-feature-num { min-width: 78px; padding: 8px 16px; font-size: 1.2rem; }
}

.lgm-step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lgm-primary-glow);
  color: var(--lgm-primary);
  font-family: var(--lgm-font-serif);
  font-weight: 700; font-size: .875rem;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .lgm-step-num { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 14px; }
}

/* Sector card icon + arrow */
.lgm-sector { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.lgm-sector-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(123,30,58,.10);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .lgm-sector-icon { width: 52px; height: 52px; font-size: 1.5rem; margin-bottom: 16px; }
}
.lgm-sector-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--lgm-primary);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform .25s ease;
}
.lgm-sector:hover .lgm-sector-arrow { transform: translateX(4px); }
.lgm-sector:hover {
  transform: translateY(-3px);
  box-shadow: var(--lgm-shadow-sm);
  border-color: rgba(123,30,58,.25);
}

/* Inline link helper */
.lgm-link {
  color: var(--lgm-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(123,30,58,.25);
  transition: border-color .2s, color .2s;
}
.lgm-link:hover { border-color: var(--lgm-primary); color: var(--lgm-primary-dark); }

/* Formulario de contacto */
.lgm-form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; }
.lgm-form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .lgm-form-row { grid-template-columns: 1fr 1fr; } }
.lgm-form label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; color: var(--lgm-text); }
.lgm-form label > span { font-weight: 600; color: var(--lgm-ink); font-size: .875rem; }
.lgm-form input, .lgm-form select, .lgm-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--lgm-line);
  border-radius: var(--lgm-radius-sm);
  background: #fff;
  color: var(--lgm-ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.lgm-form input:focus, .lgm-form select:focus, .lgm-form textarea:focus {
  outline: none;
  border-color: var(--lgm-primary);
  box-shadow: 0 0 0 4px var(--lgm-primary-glow);
}
.lgm-form textarea { resize: vertical; min-height: 120px; }
.lgm-form-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: .8125rem !important;
  color: var(--lgm-muted) !important;
}
.lgm-form-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.lgm-form-check span { font-weight: normal !important; color: var(--lgm-muted) !important; font-size: .8125rem !important; }
.lgm-form-check a { color: var(--lgm-primary); text-decoration: underline; }
.lgm-form .lgm-btn { align-self: flex-start; padding: 14px 28px; }
@media (max-width: 575px) {
  .lgm-form .lgm-btn { width: 100%; text-align: center; justify-content: center; }
}

/* Páginas legales */
.lgm-legal { max-width: 800px; margin: 0 auto; }
.lgm-legal-block { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--lgm-line); }
.lgm-legal-block:last-child { border-bottom: none; }
.lgm-legal-block h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--lgm-primary);
}
@media (min-width: 768px) { .lgm-legal-block h2 { font-size: 1.55rem; margin-bottom: 18px; } }
.lgm-legal-block p, .lgm-legal-block li {
  color: var(--lgm-text);
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.lgm-legal-block ul { padding-left: 22px; margin-bottom: 12px; }
.lgm-legal-block strong { color: var(--lgm-ink); }

/* Section cream variation que ya existía: aseguramos consistencia */
.lgm-section--cream { background: var(--lgm-cream); }
