/* ==========================================================================
   ARMELEC — Configurador de armarios a medida
   Usa las variables del tema (style.css): --armelec-red, --ink, --paper-*, --text*
   Todo va bajo .cfg para no afectar al resto del sitio.
   ========================================================================== */
.cfg { --cfg-line: rgba(20,21,26,.12); --cfg-line-soft: rgba(20,21,26,.07); --cfg-red-soft: #fbeeee; --cfg-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace; color: var(--text); }
.cfg *, .cfg *::before, .cfg *::after { box-sizing: border-box; }
.cfg h1, .cfg h2, .cfg h3 { margin: 0; text-wrap: balance; }
.cfg p { margin: 0; }
.cfg a:focus-visible, .cfg button:focus-visible, .cfg input:focus-visible, .cfg select:focus-visible, .cfg textarea:focus-visible, .cfg summary:focus-visible { outline: 2px solid var(--armelec-red); outline-offset: 2px; }
.cfg .mono { font-family: var(--cfg-mono); font-variant-numeric: tabular-nums; }
.cfg .caps { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* Botones (mismo lenguaje que el resto del tema: píldora roja) */
.cfg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: 14px; font-weight: 600; padding: 12px 24px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .3s, box-shadow .3s, background .3s, color .3s, border-color .3s; line-height: 1.2; }
.cfg .btn-red { background: var(--armelec-red); color: #fff; }
.cfg .btn-red:hover { background: var(--armelec-red-bright); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(174,10,9,.6); }
.cfg .btn-line { background: #fff; color: var(--text); border-color: rgba(174,10,9,.5); }
.cfg .btn-line:hover { border-color: var(--armelec-red); color: var(--armelec-red); }
.cfg .btn-ghost-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.cfg .btn-ghost-dark:hover { background: rgba(255,255,255,.2); }
.cfg .btn svg { width: 16px; height: 16px; }

/* Migas */
.cfg-crumbs { background: #fff; border-bottom: 1px solid var(--cfg-line-soft); font-size: 12.5px; color: var(--text-muted); }
.cfg-crumbs .shell { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 12px; padding-bottom: 12px; }
.cfg-crumbs a { text-decoration: none; }
.cfg-crumbs a:hover { color: var(--armelec-red); }

/* Hero + caja de descripción */
.cfg-hero { background: #f5f5f5; padding: 48px 0 40px; text-align: center; }
.cfg-hero .lead { max-width: 1000px; margin: 16px auto 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: #3b3d44; }
.cfg-hero h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.08; max-width: none; margin-top: 10px; }
.cfg-hero h1 .red { color: var(--armelec-red); }
.cfg-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cfg-fact { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--cfg-line-soft); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; }
.cfg-fact i { width: 7px; height: 7px; border-radius: 50%; background: var(--armelec-red); }

.cfg-prompt { margin-top: 28px; background: #fff; border: 1px solid var(--cfg-line); border-radius: 20px; padding: 18px; box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.cfg-prompt label.big { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.cfg-prompt textarea { width: 100%; min-height: 108px; resize: vertical; border: 1px solid var(--cfg-line); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5; background: var(--paper-3); color: var(--text); }
.cfg-prompt textarea:focus { outline: none; border-color: var(--armelec-red); background: #fff; box-shadow: 0 0 0 3px rgba(174,10,9,.12); }
.cfg-prompt-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-top: 12px; }
.cfg-prompt-row .hint { font-size: 12.5px; color: var(--text-muted); max-width: 52ch; }
.cfg-ex { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.cfg-ex .caps { margin-right: 2px; }
.cfg-ex button { font: inherit; font-size: 12.5px; text-align: left; background: #fff; border: 1px solid var(--cfg-line); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--text); transition: border-color .2s, color .2s; }
.cfg-ex button:hover { border-color: var(--armelec-red); color: var(--armelec-red); }

.cfg-understood { margin-top: 16px; border: 1px solid var(--cfg-line-soft); border-radius: 14px; background: var(--paper-3); padding: 14px 16px; }
.cfg-understood[hidden] { display: none; }
.cfg-understood h2 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.cfg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-tag { display: inline-flex; gap: 6px; align-items: baseline; background: #fff; border: 1px solid var(--cfg-line); border-radius: 8px; padding: 5px 10px; font-size: 13px; }
.cfg-tag b { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.cfg-tag.assumed { border-style: dashed; }
.cfg-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cfg-note { background: #fff4d6; color: #7a4a00; border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.4; }
.cfg-note.info { background: var(--cfg-red-soft); color: #7a0b0a; }

/* Mesa de trabajo */
.cfg-work { padding: 36px 0 24px; background: #fff; }
.cfg-work-head { margin-bottom: 20px; }
.cfg-work-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.cfg-work-head p { margin-top: 8px; color: var(--text-muted); max-width: 1040px; font-size: 15px; }
.cfg-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .cfg-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; } }
.cfg-viewcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1024px) { .cfg-viewcol { position: sticky; top: 88px; align-self: start; } }
.cfg-viewport { position: relative; background: var(--ink-2); border-radius: 20px; overflow: hidden; height: clamp(380px, 62vh, 640px); touch-action: none; }
.cfg-viewport::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
#cfgCanvas { position: absolute; inset: 0; }
#cfgCanvas canvas { display: block; width: 100%; height: 100%; }
.cfg-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 14px; text-align: center; padding: 24px; }
.cfg-hud { position: absolute; display: flex; gap: 6px; z-index: 2; }
.cfg-hud.tl { top: 12px; left: 12px; flex-direction: column; align-items: flex-start; max-width: calc(100% - 24px); }
.cfg-hud.tr { top: 12px; right: 12px; flex-direction: column; align-items: flex-end; }
.cfg-hud.bl { bottom: 12px; left: 12px; right: 12px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.cfg-glass { background: rgba(11,12,15,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #eceef2; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.cfg-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; }
.cfg-seg button, .cfg-hudbtn { border: 0; background: transparent; color: #a3a7b0; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 9px; cursor: pointer; }
.cfg-seg button:hover, .cfg-hudbtn:hover { color: #fff; }
.cfg-seg button[aria-pressed="true"] { background: var(--armelec-red); color: #fff; }
.cfg-hudbtn.solid { background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 8px 14px; }
.cfg-hudbtn.solid:hover { background: #fff; color: var(--armelec-red); }
.cfg-tagchip { display: flex; align-items: center; gap: 8px; padding: 6px 11px; font-size: 12px; font-weight: 600; }
.cfg-tagchip i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.cfg-cotas { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 14px; font-family: var(--cfg-mono); font-size: 12px; font-weight: 600; }
.cfg-cotas span { color: #ff8a80; } .cfg-cotas b { color: #fff; font-weight: 700; }
.cfg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cfg-tile { background: var(--paper-3); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.cfg-tile .v { font-family: var(--cfg-mono); font-weight: 700; font-size: 19px; margin-top: 3px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cfg-tile .v small { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.cfg-hint { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 560px) { .cfg-hud.tr { display: none; } }
@media (max-width: 520px) { .cfg-tiles { grid-template-columns: 1fr 1fr; } .cfg-tiles .cfg-tile:last-child { grid-column: 1 / -1; } }

/* Pasos */
.cfg-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfg-step { background: #fff; border: 1px solid var(--cfg-line); border-radius: 20px; min-width: 0; overflow: hidden; }
.cfg-step > header { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--paper-3); border-bottom: 1px solid var(--cfg-line-soft); }
.cfg-num { display: grid; place-items: center; width: 28px; height: 28px; background: var(--armelec-red); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; flex: none; }
.cfg-step h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.cfg-step header p { font-size: 12.5px; color: var(--text-muted); }
.cfg-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.cfg-grp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cfg-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.cfg-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfg-opt { position: relative; text-align: left; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--cfg-line); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0; transition: border-color .2s, background .2s; }
.cfg-opt:hover:not(:disabled) { border-color: var(--armelec-red); }
.cfg-opt b { font-size: 13.5px; font-weight: 700; padding-right: 16px; }
.cfg-opt small { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; }
.cfg-opt[aria-pressed="true"] { border: 2px solid var(--armelec-red); padding: 9px 11px; background: var(--cfg-red-soft); }
.cfg-opt[aria-pressed="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--armelec-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; }
.cfg-opt:disabled { opacity: .4; cursor: not-allowed; }
.cfg-sw { display: flex; align-items: center; gap: 9px; }
.cfg-sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(20,21,26,.3); flex: none; }
.cfg-sw span { display: flex; flex-direction: column; min-width: 0; }
.cfg-dimrow { display: flex; flex-direction: column; gap: 8px; }
.cfg-dimrow .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cfg-stepper { display: flex; align-items: center; border: 1px solid var(--cfg-line); border-radius: 999px; background: var(--paper-3); height: 38px; overflow: hidden; }
.cfg-stepper button { width: 34px; height: 100%; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--text); }
.cfg-stepper button:hover { background: var(--paper-2); color: var(--armelec-red); }
.cfg-stepper input { width: 70px; border: 0; background: transparent; text-align: right; font-family: var(--cfg-mono); font-weight: 700; font-size: 14px; padding: 0 2px; -moz-appearance: textfield; color: var(--text); }
.cfg-stepper input::-webkit-outer-spin-button, .cfg-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-stepper input:focus-visible { outline: none; }
.cfg-stepper:focus-within { border-color: var(--armelec-red); box-shadow: 0 0 0 3px rgba(174,10,9,.14); }
.cfg-stepper em { font-style: normal; font-family: var(--cfg-mono); font-size: 11px; color: var(--text-muted); padding: 0 10px 0 3px; }
.cfg input[type=range] { width: 100%; accent-color: var(--armelec-red); margin: 0; }
.cfg-ticks { display: flex; justify-content: space-between; font-family: var(--cfg-mono); font-size: 10.5px; color: var(--text-muted); }
.cfg-sel { height: 40px; border: 1px solid var(--cfg-line); background: var(--paper-3); border-radius: 12px; padding: 0 12px; width: 100%; font: inherit; color: var(--text); }
.cfg-chk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--cfg-line-soft); border-radius: 12px; cursor: pointer; background: #fff; }
.cfg-chk:hover { border-color: var(--cfg-line); }
.cfg-chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--armelec-red); flex: none; }
.cfg-chk b { display: block; font-size: 13.5px; }
.cfg-chk small { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.3; }
.cfg-chk.off { opacity: .45; cursor: not-allowed; }
.cfg-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cfg-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cfg-field input, .cfg-field textarea { border: 1px solid var(--cfg-line); background: #fff; border-radius: 12px; padding: 10px 14px; min-width: 0; width: 100%; font: inherit; font-size: 14px; color: var(--text); }
.cfg-field input { height: 44px; }
.cfg-field textarea { min-height: 96px; resize: vertical; }
.cfg-field input:focus, .cfg-field textarea:focus { outline: none; border-color: var(--armelec-red); box-shadow: 0 0 0 3px rgba(174,10,9,.12); }
.cfg-jump { display: flex; justify-content: center; }

/* Cómo funciona / bloques SEO */
.cfg-sec { padding: 72px 0; background: #fff; }
.cfg-sec.alt { background: var(--paper-3); }
.cfg-sec.dark { background: var(--ink); color: #fff; }
@media (max-width: 768px) { .cfg-sec { padding: 52px 0; } }
.cfg-sec h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.08; }
.cfg-sec .sub { margin-top: 12px; max-width: 1040px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.cfg-sec.dark .sub { color: rgba(255,255,255,.72); }
.cfg-sec .sub a, .cfg-prose a, .cfg-faq a { color: var(--armelec-red); text-decoration: underline; text-underline-offset: 3px; }
.cfg-sec .sub a:hover, .cfg-prose a:hover, .cfg-faq a:hover { color: var(--armelec-red-bright); }
.cfg-steps3 { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .cfg-steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cfg-card { background: #fff; border: 1px solid var(--cfg-line-soft); border-radius: 20px; padding: 24px; min-width: 0; }
.cfg-sec.alt .cfg-card { border-color: transparent; }
.cfg-card h3 { font-size: 19px; font-weight: 700; margin-top: 14px; }
.cfg-card p { margin-top: 8px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.cfg-card .more { display: inline-flex; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--armelec-red); text-decoration: none; }
.cfg-card .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.cfg-bignum { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--armelec-red); color: #fff; font-weight: 700; }
.cfg-series { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cfg-serie { display: block; text-decoration: none; color: inherit; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--cfg-line-soft); }
.cfg-serie .ph { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.cfg-serie .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.cfg-serie:hover .ph img { transform: scale(1.05); }
.cfg-serie .tx { padding: 18px; }
.cfg-serie h3 { font-size: 17px; font-weight: 700; }
.cfg-serie p { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.cfg-serie .go { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--armelec-red); }
.cfg-cap { display: grid; gap: 1px; margin-top: 32px; background: var(--cfg-line-soft); border: 1px solid var(--cfg-line-soft); border-radius: 20px; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cfg-cap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cfg-cap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cfg-cap div { background: #fff; padding: 20px 22px; }
.cfg-cap dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--armelec-red); }
.cfg-cap dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.cfg-cap dd span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.cfg-two { display: grid; gap: 32px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cfg-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.cfg-prose h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cfg-prose p { color: #3b3d44; font-size: 15.5px; line-height: 1.7; }
.cfg-prose p + p, .cfg-prose h3 + p + h3 { margin-top: 12px; }
.cfg-prose ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cfg-prose li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: #3b3d44; }
.cfg-prose li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--armelec-red); flex: none; }
.cfg-iptable { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.cfg-iptable th, .cfg-iptable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cfg-line-soft); vertical-align: top; }
.cfg-iptable th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.cfg-iptable td:first-child { font-family: var(--cfg-mono); font-weight: 700; white-space: nowrap; }
.cfg-tablewrap { overflow-x: auto; }

/* Ficha + formulario */
.cfg-quote { padding: 72px 0; background: var(--paper-3); }
.cfg-quote-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 960px) { .cfg-quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.cfg-panel { background: #fff; border-radius: 20px; min-width: 0; overflow: hidden; }
.cfg-panel > header { padding: 18px 22px; border-bottom: 1px solid var(--cfg-line-soft); }
.cfg-panel h3 { font-size: 20px; font-weight: 700; }
.cfg-panel .pad { padding: 20px 22px; }
.cfg-ref { display: inline-flex; gap: 8px; align-items: center; background: var(--paper-2); border-radius: 999px; padding: 4px 12px; font-family: var(--cfg-mono); font-size: 12px; font-weight: 700; margin-top: 8px; }
.cfg-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.cfg-spec th, .cfg-spec td { padding: 10px 4px; border-bottom: 1px solid var(--cfg-line-soft); text-align: left; vertical-align: top; }
.cfg-spec th { width: 38%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding-right: 12px; }
.cfg-spec td { font-weight: 600; overflow-wrap: anywhere; }
.cfg-form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfg-form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .cfg-form { grid-template-columns: 1fr; } }
.cfg-legal { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); }
.cfg-legal input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--armelec-red); flex: none; }
.cfg-legal a { color: var(--armelec-red); }
.cfg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cfg-msg .ok { background: #e8f6ec; color: #14532d; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.cfg-msg .err { background: #fdecec; color: #7a0b0a; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.cfg-alt { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--text-muted); }
.cfg-alt a { color: var(--text); font-weight: 600; text-decoration: none; }
.cfg-alt a:hover { color: var(--armelec-red); }

/* FAQ */
.cfg-faq { margin-top: 28px; display: grid; gap: 10px; max-width: 880px; }
.cfg-faq details { background: #fff; border: 1px solid var(--cfg-line-soft); border-radius: 16px; }
.cfg-faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.cfg-faq summary::-webkit-details-marker { display: none; }
.cfg-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--armelec-red); line-height: 1; flex: none; }
.cfg-faq details[open] summary::after { content: "−"; }
.cfg-faq .ans { padding: 0 22px 20px; color: #3b3d44; font-size: 15px; line-height: 1.7; }

/* Banda final */
.cfg-final { background: var(--ink); color: #fff; padding: 64px 0; }
.cfg-final .in { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .cfg-final .in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.cfg-final h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.cfg-final p { margin-top: 12px; color: rgba(255,255,255,.72); max-width: 56ch; line-height: 1.6; }
.cfg-final .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-final .tel { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.7); }
.cfg-final .tel a { color: #fff; font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .cfg * { transition: none !important; } }

/* Ajustes de robustez (independientes del reset de Tailwind) */
.cfg-facts { margin-left: 0; padding: 0; list-style: none; }
.cfg-work-head a { color: var(--armelec-red); text-decoration: underline; text-underline-offset: 3px; }
.cfg-opt b, .cfg-opt small { overflow-wrap: anywhere; }
.cfg-step .cfg-num + div h3 { margin: 0; }

.cfg-prompt { text-align: left; }
.cfg-specs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
@media (max-width: 560px) { .cfg-hero h1 br { display: none; } }

/* Hero con imagen de fondo discreta */
.cfg-hero { position: relative; isolation: isolate; background: #0b111b var(--cfg-hero-img) center / cover no-repeat; padding: 64px 0 56px; color: #fff; }
.cfg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,12,20,.55) 0%, rgba(8,12,20,.35) 55%, rgba(8,12,20,.6) 100%); }
.cfg-hero h1 { color: #fff; }
.cfg-hero h1 .red { color: #ff4743; }
.cfg-hero .eyebrow { color: #ff6d69; }
.cfg-hero .lead { color: rgba(255,255,255,.88); }
.cfg-hero .lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.6); }
.cfg-hero .lead a:hover { color: #ff6d69; }
.cfg-hero .cfg-prompt { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
@media (max-width: 768px) { .cfg-hero { padding: 44px 0 36px; } }
.cfg-hero .cfg-prompt { color: var(--text); }
.cfg-hero .cfg-prompt .cfg-understood { color: var(--text); }

/* ==========================================================================
   Us del rack y accesorios
   ========================================================================== */
.cfg-rackoff { margin-top: 28px; background: var(--paper-3); border: 1px dashed var(--cfg-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.cfg-rackgrid { display: grid; gap: 24px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .cfg-rackgrid { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 32px; } }
.cfg-rackgrid[hidden], .cfg-rackoff[hidden] { display: none; }
.cfg-rackview { background: var(--ink); border-radius: 20px; padding: 14px; color: #fff; min-width: 0; }
.cfg-racktools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 4px 12px; }
.cfg-rackinfo { font-size: 13px; color: #a3a7b0; }
.cfg-rackinfo b { color: #fff; font-family: var(--cfg-mono); font-size: 15px; }
.cfg-rackbtns { display: flex; gap: 2px; background: rgba(255,255,255,.07); border-radius: 10px; padding: 3px; }
.cfg-rackbtns button { border: 0; background: transparent; color: #cfd2d8; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
.cfg-rackbtns button:hover { background: rgba(255,255,255,.14); color: #fff; }
.cfg-rackscroll { max-height: min(640px, 72vh); overflow: auto; border-radius: 12px; background: #0b0d10; border: 1px solid rgba(255,255,255,.08); }
.cfg-rackframe { --u: 30px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; }
.cfg-unums { background: linear-gradient(90deg, #2a2f36, #1c2026); display: flex; flex-direction: column; }
.cfg-unums span { height: var(--u); display: flex; align-items: center; justify-content: center; font-family: var(--cfg-mono); font-size: clamp(9px, calc(var(--u) * .4), 13px); font-weight: 700; color: #c4c9d0; border-bottom: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.cfg-uslots { position: relative; background: #12151a; }
.cfg-uslot { display: block; width: 100%; height: var(--u); padding: 0; border: 0; border-bottom: 1px dashed rgba(255,255,255,.13); background: transparent; cursor: pointer; position: relative; }
.cfg-uslot:hover { background: rgba(255,255,255,.06); }
.cfg-uslot.drop { background: rgba(193,19,25,.35); }
.cfg-uslot.sel { background: rgba(193,19,25,.22); box-shadow: inset 0 0 0 2px var(--armelec-red); }
.cfg-uslot.sel::after { content: "Aquí"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.cfg-ritem { position: absolute; left: 3px; right: 3px; border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.25); overflow: hidden; display: flex; align-items: center; }
.cfg-ritem .lbl { position: relative; z-index: 1; margin-left: 6px; max-width: calc(100% - 38px); padding: 2px 7px; border-radius: 6px; background: rgba(11,12,15,.82); color: #fff; font-size: clamp(9px, calc(var(--u) * .36), 12px); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-ritem .x { position: absolute; z-index: 2; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11,12,15,.85); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cfg-ritem .x:hover { background: var(--armelec-red); }
.cfg-rackfoot { padding: 12px 4px 2px; display: flex; flex-direction: column; gap: 12px; }
.cfg-rackmsg { font-size: 12.5px; color: #a3a7b0; line-height: 1.45; }
.cfg-rackacts { display: flex; gap: 8px; flex-wrap: wrap; }
.cfg-rackacts .btn { padding: 8px 16px; font-size: 13px; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.cfg-rackacts .btn:hover { background: rgba(255,255,255,.18); color: #fff; transform: none; box-shadow: none; }
.cfg-racklist h3 { font-size: 21px; font-weight: 700; }
.cfg-racklist .cfg-hint { margin-top: 6px; }
.cfg-racklist ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .cfg-racklist ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfg-rcard { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cfg-line); border-radius: 14px; padding: 10px 12px; cursor: grab; min-width: 0; }
.cfg-rcard:hover { border-color: var(--armelec-red); }
.cfg-rcard .rk { flex: none; width: 76px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.cfg-rcard .t { flex: 1; min-width: 0; }
.cfg-rcard .t b { display: block; font-size: 13.5px; line-height: 1.25; }
.cfg-rcard .t small { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }
.cfg-rcard button { flex: none; border: 1px solid rgba(174,10,9,.5); background: #fff; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.cfg-rcard button:hover { background: var(--armelec-red); border-color: var(--armelec-red); color: #fff; }

/* Aspecto de cada accesorio en el rack (frontal visto de cara) */
.rk { background: #d5d9dc; }
.rk-guide { background: radial-gradient(circle, #fff 28%, #6f767d 32%, transparent 38%) 0 50% / 12% 100% repeat-x, #c4c9ce; }
.rk-brush { background: linear-gradient(#d3d8dc 0 22%, #14161a 22% 78%, #d3d8dc 78%); }
.rk-comb { background: linear-gradient(90deg, transparent 6%, #646a72 6% 30%, transparent 30% 36%, #646a72 36% 62%, transparent 62% 68%, #646a72 68% 94%, transparent 94%) 0 50% / 100% 45% no-repeat, #17191d; }
.rk-blank { background: linear-gradient(#e0e3e6, #cdd2d6); }
.rk-rail { background: linear-gradient(#e4e7ea 0 28%, #8d969f 28% 72%, #e4e7ea 72%); }
.rk-slot { background: repeating-linear-gradient(90deg, #0d0f12 0 7px, #2d3238 7px 10px) 0 50% / 100% 58% no-repeat, #1c1f23; }
.rk-thermo { background: #1a1c20; }
.rk-thermo::before, .rk-thermo::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); height: 42%; min-height: 6px; }
.rk-thermo::before { left: 22%; width: 7%; background: #2f7fd4; border-radius: 2px; }
.rk-thermo::after { left: 40%; width: 5%; background: #d22a22; border-radius: 2px; }
.rk-patch { background: repeating-linear-gradient(90deg, #2a2e33 0 5px, transparent 5px 8.3%) 4% 50% / 92% 46% no-repeat, #d3d7da; }
.rk-ports { background: repeating-linear-gradient(90deg, #2a2e33 0 8px, transparent 8px 12%) 4% 50% / 92% 46% no-repeat, #d8dcdf; }
.rk-fiber { background: repeating-linear-gradient(90deg, #2b6cb0 0 8px, transparent 8px 16%) 6% 50% / 88% 40% no-repeat, #d8dcdf; }
.rk-tray { background: radial-gradient(circle, #4b5258 1.3px, transparent 1.8px) 0 0 / 8px 8px, #98a0a7; }
.rk-power { background: repeating-linear-gradient(90deg, #eceef0 0 9px, transparent 9px 14%) 6% 50% / 88% 46% no-repeat, #17191d; }
.rk-earth { background: linear-gradient(#d3d8dc, #9aa3ab); }
.cfg-rcard .rk { position: relative; }
