/* =============================================================
   LG — estilos propios de la página madre /marcas/lg/
   Se carga DESPUÉS de /styles.css y solo añade/ajusta lo específico de LG.
   Variaciones elegidas (distintas de Samsung y KitchenAid):
     Hero ............ B  apilado editorial centrado + plano técnico de fondo
     Selector ........ pestañas interactivas (no bento)
     Placa de servicio  banda ancha con remaches en el hero + miniplaca por pestaña
     Ilustración ..... arte técnico en línea (SVG), sin fotos
   ============================================================= */

:root {
  /* Paleta propia de LG: grafito frío + acento rosa-carmesí (guiño al rojo de la marca).
     Redefine los tokens de /styles.css solo dentro del silo LG; Samsung (latón) y
     KitchenAid (claro) no se ven afectadas. */
  --bg: #0D0E12;
  --bg-deep: #07080A;
  --surface: #16181E;
  --surface-2: #1E2129;
  --ink: #F1F2F5;
  --ink-soft: #B3B8C4;
  --ink-mute: #7A8090;
  --line: #2B2F39;
  --line-soft: #1F222A;
  --brass: #E5486D;
  --brass-deep: #B02A4C;
  --brass-bright: #FF7C99;
  --brass-tint: #2A1119;
  --lg-rose: #A50034;
  --lg-rose-soft: rgba(229, 72, 109, .22);
}

/* ---------- Hero B: apilado editorial ---------- */
.lg-hero {
  position: relative; isolation: isolate; overflow: clip;
  margin: 0 calc(50% - 50vw); padding: 64px 0 0; text-align: center;
}
.lg-hero::before {                       /* plano técnico: cuadrícula fina */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(229,72,109,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,72,109,.075) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 38%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 38%, #000 25%, transparent 78%);
}
.lg-hero::after {                        /* resplandor rosa LG + latón */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 0%, var(--lg-rose-soft), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(229,72,109,.10), transparent 75%);
}
.lg-hero-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.lg-hero .eyebrow { color: var(--brass-bright); justify-content: center; }
.lg-hero .eyebrow::before { background: var(--brass-bright); }
.lg-hero .eyebrow::after { content: ""; width: 16px; height: 1px; background: var(--brass-bright); display: inline-block; }
.lg-hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 15ch; margin: 0 auto 22px; font-weight: 700;
}
.lg-hero h1 .lg-h1-sub {
  display: block; margin-top: 18px; font-size: clamp(1.05rem, .95rem + .6vw, 1.45rem);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--brass-bright);
  max-width: none;
}
.lg-hero .lede { font-size: 17.5px; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 34px; }
.lg-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* arte técnico flanqueando el titular */
.lg-hero-art {
  position: absolute; top: 96px; width: 230px; color: var(--brass-bright);
  opacity: .34; pointer-events: none; z-index: -1;
}
.lg-hero-art svg { width: 100%; height: auto; overflow: visible; }
.lg-hero-art-l { left: max(16px, calc(50% - 720px)); transform: rotate(-3deg); }
.lg-hero-art-r { right: max(16px, calc(50% - 720px)); transform: rotate(3deg); top: 150px; }
@media (max-width: 1180px) { .lg-hero-art { display: none; } }

/* Placa de servicio ancha (elemento distintivo) */
.lg-plate-wrap { margin-top: 56px; padding-bottom: 8px; }
.lg-plate {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(30,33,41,.92), rgba(22,24,30,.92));
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: left; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,124,153,.10);
}
.lg-plate .rivet { position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-bright), var(--brass-deep) 70%); opacity: .8; }
.lg-plate .rivet.tl { top: 10px; left: 10px; } .lg-plate .rivet.tr { top: 10px; right: 10px; }
.lg-plate .rivet.bl { bottom: 10px; left: 10px; } .lg-plate .rivet.br { bottom: 10px; right: 10px; }
.lg-plate-item { padding: 30px 28px 28px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.lg-plate-item:first-child { border-left: none; }
.lg-plate-item .ficha-value { font-size: clamp(1rem, .9rem + .35vw, 1.15rem); line-height: 1.2; }
.lg-plate-item .ficha-value.accent { color: var(--brass-bright); }
@media (max-width: 860px) {
  .lg-plate { grid-template-columns: 1fr 1fr; }
  .lg-plate-item { border-left: none; border-top: 1px solid var(--line-soft); padding: 22px 22px 20px; }
  .lg-plate-item:nth-child(-n+2) { border-top: none; }
  .lg-plate-item:nth-child(even) { border-left: 1px solid var(--line-soft); }
}
.lg-hero-fade { height: 56px; background: linear-gradient(180deg, transparent, var(--bg)); margin-top: -1px; }

/* ---------- Selector por pestañas ---------- */
.lg-tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.lg-tablist { display: flex; flex-direction: column; gap: 10px; }
.lg-tab {
  text-align: left; width: 100%; padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s var(--ease-out);
}
.lg-tab:hover { border-color: rgba(229,72,109,.55); color: var(--ink); }
.lg-tab .idx { grid-row: 1 / 3; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: .08em; }
.lg-tab .name { font-family: var(--display); font-weight: 600; font-size: 17px; color: inherit; }
.lg-tab .hint { font-size: 12.5px; color: var(--ink-mute); line-height: 1.35; }
.lg-tab[aria-selected="true"] {
  border-color: var(--brass); background: linear-gradient(100deg, var(--brass-tint), rgba(42,17,25,.25));
  color: var(--ink); transform: translateX(6px);
}
.lg-tab[aria-selected="true"] .idx { color: var(--brass-bright); }
.lg-tab[aria-selected="true"] .hint { color: var(--ink-soft); }

.lg-panels { position: relative; }
.lg-panel {
  display: grid; grid-template-columns: .9fr 1.1fr; min-height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: clip;
  background: radial-gradient(circle at 20% 15%, rgba(229,72,109,.10), transparent 55%), var(--surface);
}
.lg-panel + .lg-panel { margin-top: 16px; }
.js .lg-panel + .lg-panel { margin-top: 0; }
.js .lg-panel[hidden] { display: none; }
.js .lg-panel { animation: lgPanelIn .45s var(--ease-out); }
@keyframes lgPanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.lg-panel-art {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 34px 24px;
  border-right: 1px solid var(--line); color: var(--brass-bright);
  background:
    linear-gradient(rgba(229,72,109,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(229,72,109,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-deep);
}
.lg-panel-art svg { width: min(100%, 230px); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(229,72,109,.18)); }
.lg-panel-copy { padding: 34px 34px 30px; display: flex; flex-direction: column; }
.lg-panel-copy h3 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); margin: 0 0 10px; }
.lg-panel-copy > p { color: var(--ink-soft); font-size: 15px; max-width: 46ch; margin: 0 0 18px; }
.lg-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-chips li {
  font-family: var(--mono); font-size: 11.5px; color: var(--brass-bright);
  border: 1px solid rgba(229,72,109,.3); background: rgba(42,17,25,.5); padding: 6px 12px; border-radius: 99px;
}
.lg-panel-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(243,240,230,.12); }
.lg-miniplate { display: flex; gap: 24px; }
.lg-miniplate div { display: flex; flex-direction: column; gap: 3px; }
.lg-miniplate .ficha-value { font-size: 15px; }
.lg-miniplate .ficha-value.accent { color: var(--brass-bright); }
.lg-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--brass-bright);
  padding: 11px 18px; border: 1px solid rgba(229,72,109,.45); border-radius: 99px;
  transition: background .2s ease, color .2s ease, transform .25s var(--ease-out);
}
.lg-link:hover { background: var(--brass); color: #1A0A10; transform: translateX(3px); }
@media (max-width: 960px) {
  .lg-tabs { grid-template-columns: 1fr; }
  .lg-tablist { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .lg-tab { min-width: 180px; scroll-snap-align: start; }
  .lg-tab[aria-selected="true"] { transform: none; }
  .lg-tab .hint { display: none; }
}
@media (max-width: 680px) {
  .lg-panel { grid-template-columns: 1fr; }
  .lg-panel-art { border-right: none; border-bottom: 1px solid var(--line); padding: 26px; }
  .lg-panel-art svg { width: 150px; }
  .lg-panel-copy { padding: 26px 22px 24px; }
}

/* pulso en el punto de diagnóstico de las ilustraciones */
.ill-ping { transform-box: fill-box; transform-origin: center; animation: lgPing 2.6s ease-out infinite; }
@keyframes lgPing { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ill-ping { animation: none; opacity: .0; } .js .lg-panel { animation: none; } }

/* ---------- Cómo trabajamos: línea de tiempo ---------- */
.lg-steps-head { text-align: center; margin-bottom: 48px; }
.lg-steps-head h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.lg-steps-head .section-sub { margin: 0 auto; }
.lg-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: s; }
.lg-steps::before {
  content: ""; position: absolute; top: 31px; left: calc(16.66% + 6px); right: calc(16.66% + 6px); height: 0;
  border-top: 1px dashed rgba(229,72,109,.5);
}
.lg-step { text-align: center; padding: 0 22px; position: relative; }
.lg-step-num {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--brass-bright);
  background: var(--bg); border: 1px solid var(--brass-deep); box-shadow: 0 0 0 6px var(--bg), 0 0 28px -4px rgba(229,72,109,.35);
}
.lg-step h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.lg-step p { font-size: 14.5px; color: var(--ink-soft); max-width: 30ch; margin: 0 auto; }
@media (max-width: 820px) {
  .lg-steps { grid-template-columns: 1fr; gap: 34px; }
  .lg-steps::before { top: 31px; bottom: 31px; left: 31px; right: auto; height: auto; width: 0; border-top: none; border-left: 1px dashed rgba(229,72,109,.5); }
  .lg-step { text-align: left; padding: 0 0 0 86px; min-height: 62px; }
  .lg-step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .lg-step p { margin: 0; max-width: 40ch; }
}

/* ---------- Tabla de fallas ---------- */
.lg-faults { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; background: var(--surface); }
.lg-faults caption { text-align: left; padding: 0 0 14px; font-size: 13px; color: var(--ink-mute); caption-side: bottom; padding-top: 14px; }
.lg-faults th, .lg-faults td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; vertical-align: top; }
.lg-faults thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-deep); font-weight: 500; }
.lg-faults tbody tr:last-child th, .lg-faults tbody tr:last-child td { border-bottom: none; }
.lg-faults tbody th { font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--ink); width: 34%; }
.lg-faults td { color: var(--ink-soft); }
.lg-faults td:last-child { text-align: right; white-space: nowrap; }
.lg-faults tbody tr { transition: background .2s ease; }
.lg-faults tbody tr:hover { background: rgba(42,17,25,.35); }
.lg-faults .go { color: var(--brass-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .lg-faults, .lg-faults tbody, .lg-faults tr, .lg-faults th, .lg-faults td { display: block; width: 100% !important; }
  .lg-faults thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .lg-faults tbody tr { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
  .lg-faults tbody tr:last-child { border-bottom: none; }
  .lg-faults th, .lg-faults td { padding: 0; border: none !important; }
  .lg-faults tbody th { margin-bottom: 6px; }
  .lg-faults td:last-child { text-align: left; margin-top: 10px; }
}

/* ---------- Otras marcas: enlaces aún sin publicar ---------- */
.other-brands-links a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.other-brands-links a[aria-disabled="true"]:hover { border-color: var(--line); color: inherit; }

/* ---------- Ritmo vertical: .wrap pisa el padding de section, se restituye aquí ---------- */
main > section.lg-sec { padding-top: 64px; padding-bottom: 8px; }
main > section.lg-sec.lg-sec-lg { padding-top: 88px; }
@media (max-width: 640px) { main > section.lg-sec { padding-top: 48px; } main > section.lg-sec.lg-sec-lg { padding-top: 60px; } }

/* ---------- Barra fija móvil: que el texto no se recorte en pantallas angostas ---------- */
.sticky-cta .btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.25; padding: 13px 16px; font-size: 14px; }
