/* ==========================================================================
   Home · texto LED (ps_customtext) — 2026-10-23
   Plantilla: themes/master_beta/modules/ps_customtext/ps_customtext.tpl · JS: assets/js/home-led.js
   Escala del sitio: título 24/200, textos 13–14 px. El contenido trae estilos en línea del editor del BO:
   aquí se neutralizan con !important donde hace falta.
   ========================================================================== */
.mlled {
  --mll-ink: #1b2140;
  --mll-soft: #4a5170;
  --mll-tone: #f2f4f8;
  --mll-tone-2: #e7ebf3;
  --mll-ink-2: #1b2140;
  --mll-soft-2: #4a5170;
  padding: 40px 0 48px;
}
.mlled__wrap { max-width: var(--ml-max, 1860px); margin-inline: auto; padding-inline: var(--ml-gutter, 16px); box-sizing: border-box; }
.mlled .mlled__content { color: var(--mll-soft); font-size: 14px; line-height: 1.6; }
.mlled .mlled__content h2 {
  margin: 0 !important; color: var(--mll-ink) !important; font-size: 24px !important; font-weight: 500 !important; /* 20/11/2026: 500 como el resto de la portada */
  line-height: 1.2; text-align: left !important;
}

.mlled .mlled__content > p, .mlled__left > p { color:var(--mll-soft-2) !important;margin: 8px 0 0 !important; text-align: left !important; font-size: 14px; max-width: 60ch; }
.mlled img[src*="lightbulb-icon"] { display: none; }
.mlled .mlled__content a { color: var(--mll-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Sin JS: los apartados uno debajo de otro */
.mlled .hometext { display: grid; gap: 16px; margin-top: 20px; }
.mlled .hometext .col { padding: 0; }
.mlled h3, .mlled h4 { color: var(--mll-ink) !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.35; margin: 0 0 6px !important; text-align: left !important; }
.mlled h3 span { color: inherit !important; }

/* Con JS: dos columnas */
.mlled.is-js .mlled__content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px 56px; align-items: start; }
@media (max-width: 991px) { .mlled.is-js .mlled__content { grid-template-columns: 1fr; } }
.mlled__left { display: grid; align-content: start; }

.mlled__watts {
  display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 4px 14px;
  margin-top: 20px; padding: 18px 20px; background: var(--mll-ink); color: #fff;
}
.mlled__watts[hidden] { display: none; }
.mlled__n { font-size: clamp(26px, 2.2vw, 34px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.mlled__n--old { color: rgba(255, 255, 255, .7); text-decoration: line-through; text-decoration-thickness: 2px; }
.mlled__arrow { margin-bottom: 4px; color: #ffd400; font-size: 20px; }
.mlled__cap { grid-column: 1 / -1; margin-top: 4px; color: rgba(255, 255, 255, .82); font-size: 13px; }
.mlled .mlled__q { margin: 16px 0 0 !important; color: var(--mll-ink); font-size: 16px; font-weight: 500; text-align: left !important; }
.mlled .mlled__q span { color: inherit !important; }

.mlled__acc { display: grid; gap: 6px; }
.mlled__acc details { background: var(--mll-tone); }
.mlled__acc summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.mlled__acc summary::-webkit-details-marker { display: none; }
.mlled__acc summary > * { margin: 0 !important; }
.mlled__acc summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--mll-ink); border-bottom: 2px solid var(--mll-ink);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.mlled__acc details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.mlled__acc summary:hover { background: var(--mll-tone-2); }
.mlled__acc summary:focus-visible { outline: 3px solid #2f6fd6; outline-offset: -3px; }
.mlled__body { padding: 0 16px 14px; max-width: 75ch; }
.mlled__body p { margin: 0 0 8px; }
section#custom-text .mlled__acc .mlled__body p,
section#custom-text .mlled__acc .mlled__body p *:not(.mlled__cta),
section#custom-text .mlled__acc .mlled__body li,
section#custom-text .mlled__acc .mlled__body li * { color: var(--mll-soft-2) !important; }
section#custom-text .mlled__acc .mlled__body a.mlled__cta,
section#custom-text .mlled__acc .mlled__body a.mlled__cta * { color: #111 !important; }
.mlled__body ul { margin: 0 0 8px; padding-left: 18px; }
@media (prefers-reduced-motion: reduce) { .mlled__acc summary::after { transition: none; } }

/* 20/11/2026 (Álvaro / Andrea): cifras de Masterled en la caja oscura, línea de compromisos y botón de registro PRO */
.mlled .mlled__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.mlled__stat { display: grid; gap: 6px; }
.mlled__stat .mlled__n { color: #fff; }
.mlled__lbl { color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.3; }
.mlled .mlled__q { font-size: 14px; color: var(--mll-soft); }
.mlled .mlled__body ul li { margin-bottom: 4px; }
.mlled .mlled__content a.mlled__cta {
  display: inline-flex; align-items: center; margin-top: 4px; padding: 10px 18px; border-radius: 999px;
  background: #c9d232; color: #111 !important; font-size: 13px; font-weight: 700; text-decoration: none;
}
.mlled .mlled__content a.mlled__cta:hover { background: #d6de4a; }
@media (max-width: 575px) { .mlled .mlled__stats { gap: 8px; } .mlled__lbl { font-size: 12px; } }

/* 23/11/2026 (Álvaro): los tres textos bajo las cifras más separados; enlaces del desplegable sin subrayar */
.mlled .mlled__q--list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.mlled .mlled__qsep { color: #b4bccb; }
.mlled .mlled__content .mlled__body a { text-decoration: none; }
.mlled .mlled__content .mlled__body a:hover { text-decoration: underline; }

/* 23/11/2026: maquetación móvil. custom.css daba 34 px laterales a #custom-text (más los 16 de la caja: 50 px) y texto
   justificado: el bloque se quedaba en 290 px, las cifras se pegaban y las etiquetas salían justificadas. Ahora margen
   estándar de 16 px, texto a la izquierda, cifras en 3 columnas holgadas y los tres textos como píldoras. */
@media (max-width: 767px) {
  section#custom-text.mlled { padding-left: 0 !important; padding-right: 0 !important; text-align: left !important; }
  .mlled .mlled__content p, .mlled .mlled__content li { text-align: left !important; }
  .mlled .mlled__stats { gap: 10px; margin-top: 18px; padding: 16px; }
  .mlled .mlled__stat { gap: 4px; }
  .mlled .mlled__stats .mlled__n { font-size: 26px; }
  .mlled .mlled__lbl { font-size: 12px; line-height: 1.3; }
  .mlled .mlled__q--list { gap: 8px; margin-top: 14px !important; }
  .mlled .mlled__q--list .mlled__qsep { display: none; }
  .mlled .mlled__q--list > span:not(.mlled__qsep) {
    padding: 6px 12px; border-radius: 999px; background: var(--mll-tone); color: var(--mll-ink); font-size: 12.5px; line-height: 1.2;
  }
}

/* 23/11/2026: enlaces del texto en azul, todos iguales (la negrita se mantiene en los que la llevan); el botón PRO aparte */
.mlled .mlled__content a:not(.mlled__cta) { color: #3750a3 !important; }
.mlled .mlled__content a:not(.mlled__cta) * { color: inherit !important; }
.mlled .mlled__content a:not(.mlled__cta):hover { color: #1d2a55 !important; text-decoration: underline; text-underline-offset: 3px; }
