/* ==========================================================
   Calculadora de código de colores de resistencias
   ElectroComponentes.es · EasyBlog → Ajustes → Diseño y temas → CSS
   Todo va dentro de .ecc-calc para no chocar con la plantilla.
   ========================================================== */
.ecc-calc{
  --ecc-ink:#1a2233; --ecc-muted:#5f6b7d; --ecc-line:#e1e6ed; --ecc-bg:#f6f8fb;
  --ecc-accent:#0b6bcb; --ecc-accent-d:#0957a6; --ecc-soft:#e7f1fd; --ecc-dark:#13233d; --ecc-orange:#ff8a00;
  color:var(--ecc-ink); font-size:15px; line-height:1.5; text-align:left; margin:8px 0 28px;
}
.ecc-calc *, .ecc-calc *::before, .ecc-calc *::after{box-sizing:border-box}
.ecc-calc p, .ecc-calc h3, .ecc-calc table{margin:0}
.ecc-calc button{
  font:inherit; line-height:1.2; text-transform:none; letter-spacing:normal; text-shadow:none;
  min-height:0; min-width:0; margin:0; box-shadow:none; color:var(--ecc-ink); cursor:pointer;
}
.ecc-calc button:focus-visible, .ecc-calc input:focus-visible{outline:2px solid var(--ecc-accent); outline-offset:2px}

/* Paneles */
.ecc-calc .ecc-panel{background:#fff;border:1px solid var(--ecc-line);border-radius:18px;box-shadow:0 6px 24px rgba(20,40,80,.08);padding:20px;margin:0 0 16px}
.ecc-calc .ecc-step{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-weight:700;font-size:16px;margin:0 0 14px;color:var(--ecc-ink)}
.ecc-calc .ecc-step b{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--ecc-accent);color:#fff;font-size:14px;font-weight:700}
.ecc-calc .ecc-sub{font-weight:400;font-size:14px;color:var(--ecc-muted)}

/* Número de bandas */
.ecc-calc .ecc-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.ecc-calc .ecc-seg button{border:2px solid var(--ecc-line);background:#fff;border-radius:14px;padding:10px 6px;text-align:center;transition:border-color .15s,background .15s}
.ecc-calc .ecc-seg button strong{display:block;font-size:20px;font-weight:700}
.ecc-calc .ecc-seg button span{display:block;font-size:12px;color:var(--ecc-muted);margin-top:2px}
.ecc-calc .ecc-seg button:hover{border-color:#b7c6d9}
.ecc-calc .ecc-seg button.on{border-color:var(--ecc-accent);background:var(--ecc-soft)}
.ecc-calc .ecc-seg button.on strong{color:var(--ecc-accent)}

/* Resistencia */
.ecc-calc .ecc-stage{background:linear-gradient(180deg,#eaf3ff 0%,#f9fbff 100%);border:0;border-radius:14px;padding:10px 6px 4px}
.ecc-calc .ecc-stage svg{display:block;width:100%;height:auto;max-height:220px}
.ecc-calc .ecc-band{cursor:pointer}
.ecc-calc .ecc-band:hover{opacity:.85}
.ecc-calc .ecc-hint{text-align:center;color:var(--ecc-muted);font-size:13px;margin:4px 0 2px}

/* Resultado */
.ecc-calc .ecc-result{display:grid;grid-template-columns:1.15fr 1fr;gap:14px;margin-top:16px}
.ecc-calc .ecc-big{background:linear-gradient(135deg,#0b6bcb,#3b8ff0);color:#fff;border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;justify-content:center}
.ecc-calc .ecc-big small{display:block;color:rgba(255,255,255,.85);font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.ecc-calc .ecc-val{font-size:clamp(34px,6.5vw,52px);font-weight:800;line-height:1.1;margin:6px 0 2px;color:#fff;letter-spacing:-.01em}
.ecc-calc .ecc-full{color:rgba(255,255,255,.9);font-size:15px}
.ecc-calc a.ecc-shop{align-self:flex-start;margin-top:14px;background:#fff;color:var(--ecc-accent);font-weight:700;font-size:14px;text-decoration:none;padding:8px 12px;border-radius:10px}
.ecc-calc a.ecc-shop:hover{background:#eef5ff;color:var(--ecc-accent);text-decoration:none}
.ecc-calc .ecc-facts{border:1px solid var(--ecc-line);background:#f7f9fc;border-radius:16px;padding:2px 16px;align-self:start}
.ecc-calc .ecc-fact{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--ecc-line)}
.ecc-calc .ecc-fact:last-child{border-bottom:0}
.ecc-calc .ecc-lbl{font-size:13px;color:var(--ecc-muted);white-space:nowrap}
.ecc-calc .ecc-txt{font-weight:600;text-align:right;display:flex;align-items:center;gap:6px;justify-content:flex-end}
.ecc-calc .ecc-mini{display:inline-flex;gap:4px}
.ecc-calc .ecc-dot{display:inline-block;width:28px;height:28px;border-radius:50%;border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 -4px 7px rgba(0,0,0,.22),0 1px 2px rgba(0,0,0,.15);flex:0 0 auto}
.ecc-calc .ecc-dot.ecc-dot-s{width:16px;height:16px;box-shadow:none}

/* Tarjetas de bandas */
.ecc-calc .ecc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px}
.ecc-calc .ecc-card{border:2px solid var(--ecc-line);border-radius:16px;padding:12px;background:#fff;transition:border-color .15s,box-shadow .15s;scroll-margin:90px}
.ecc-calc .ecc-card.on{border-color:var(--ecc-accent);box-shadow:0 0 0 4px var(--ecc-soft)}
.ecc-calc .ecc-card h3{margin:0 0 8px;font-size:14px;font-weight:700;display:flex;align-items:center;gap:8px;color:var(--ecc-ink);text-transform:none;letter-spacing:normal;line-height:1.3}
.ecc-calc .ecc-card h3 .ecc-num{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:var(--ecc-bg);border:1px solid var(--ecc-line);font-size:12px}
.ecc-calc .ecc-card h3 .ecc-cur{margin-left:auto;font-size:13px;color:var(--ecc-accent)}
.ecc-calc .ecc-sws{display:flex;flex-wrap:wrap;gap:2px}
.ecc-calc .ecc-sw{display:flex;flex-direction:column;align-items:center;gap:3px;width:52px;padding:6px 2px;background:none;border:2px solid transparent;border-radius:12px}
.ecc-calc .ecc-sw:hover{background:var(--ecc-bg)}
.ecc-calc .ecc-sw.on{border-color:var(--ecc-accent);background:var(--ecc-soft)}
.ecc-calc .ecc-sw .ecc-n{font-size:10.5px;line-height:1.1}
.ecc-calc .ecc-sw .ecc-v{font-size:11.5px;font-weight:700}

/* Del valor a los colores */
.ecc-calc .ecc-rev{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
.ecc-calc .ecc-rev label{font-size:13px;color:var(--ecc-muted);display:block;margin:0 0 5px;font-weight:400}
.ecc-calc .ecc-rev input{width:100%;font:inherit;font-size:20px;line-height:1.3;height:auto;padding:10px 14px;border:2px solid var(--ecc-line);border-radius:12px;outline:none;background:#fff;color:var(--ecc-ink);box-shadow:none;margin:0}
.ecc-calc .ecc-rev input:focus{border-color:var(--ecc-accent);box-shadow:0 0 0 3px var(--ecc-soft)}
.ecc-calc .ecc-seg2{display:flex;gap:6px}
.ecc-calc .ecc-seg2 button{border:2px solid var(--ecc-line);background:#fff;border-radius:12px;padding:10px 16px;font-weight:700}
.ecc-calc .ecc-seg2 button.on{border-color:var(--ecc-accent);background:var(--ecc-soft);color:var(--ecc-accent)}
.ecc-calc .ecc-revout{margin-top:14px;min-height:40px}
.ecc-calc .ecc-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ecc-calc .ecc-chip{display:flex;align-items:center;gap:6px;background:#f7f9fc;border:1px solid var(--ecc-line);border-radius:999px;padding:4px 12px 4px 4px;font-size:13px;font-weight:600}
.ecc-calc .ecc-chip .ecc-dot{width:22px;height:22px}
.ecc-calc .ecc-chip em{font-style:normal;color:var(--ecc-muted);font-weight:400}
.ecc-calc .ecc-msg{border-radius:8px;padding:10px 12px;font-size:14px;margin-top:10px}
.ecc-calc .ecc-msg.warn{background:#fff8eb;color:#6b4300;border:1px solid #f3d9a4}
.ecc-calc .ecc-msg.err{background:#fdf0f0;color:#7d1d1d;border:1px solid #efc4c4}
.ecc-calc .ecc-tip{font-size:13px;color:var(--ecc-muted);margin-top:10px}
.ecc-calc button.ecc-btn{margin-top:12px;background:var(--ecc-orange);color:#fff;border:0;border-radius:12px;padding:10px 16px;font-weight:700}
.ecc-calc button.ecc-btn:hover{filter:brightness(1.05);color:#fff}

/* Tabla de referencia */
.ecc-calc details summary{cursor:pointer;font-weight:700;font-size:16px;list-style:none;display:flex;align-items:center;gap:10px}
.ecc-calc details summary::-webkit-details-marker{display:none}
.ecc-calc details summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--ecc-muted);border-bottom:2px solid var(--ecc-muted);transform:rotate(45deg);transition:transform .2s}
.ecc-calc details[open] summary::after{transform:rotate(225deg)}
.ecc-calc .ecc-tablewrap{overflow-x:auto;margin-top:12px}
.ecc-calc table{width:100%;border-collapse:collapse;font-size:14px;border:0;background:none}
.ecc-calc th, .ecc-calc td{padding:8px;border:0;border-bottom:1px solid var(--ecc-line);text-align:center;background:none;vertical-align:middle}
.ecc-calc th{font-size:12px;color:var(--ecc-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.ecc-calc td.ecc-cname{text-align:left;font-weight:600;white-space:nowrap}
.ecc-calc td.ecc-cname .ecc-dot{width:18px;height:18px;vertical-align:middle;margin-right:8px;box-shadow:none}

@media (max-width:680px){
  .ecc-calc .ecc-result{grid-template-columns:1fr}
  .ecc-calc .ecc-seg button span{display:none}
  .ecc-calc .ecc-rev{grid-template-columns:1fr}
  .ecc-calc .ecc-panel{padding:14px}
}

/* ==========================================================
   Cajas informativas del artículo (debajo de la calculadora)
   ========================================================== */
.ecc-info{display:grid;grid-template-columns:1fr;gap:14px;margin:6px 0 10px}
.ecc-info .ecc-box:last-child:nth-child(odd){grid-column:1/-1}
.ecc-box{border-radius:16px;padding:16px 18px;border:1px solid #e2e8f1;border-left:6px solid #0b6bcb;background:#f2f7ff}
.ecc-box h2{font-size:18px;line-height:1.3;margin:0 0 8px}
.ecc-box p{margin:0 0 8px}
.ecc-box ul{margin:0 0 8px;padding-left:18px}
.ecc-box li{margin:0 0 4px}
.ecc-box p:last-child, .ecc-box ul:last-child{margin-bottom:0}
.ecc-box--azul{border-left-color:#0b6bcb;background:#f2f7ff}
.ecc-box--naranja{border-left-color:#f77f00;background:#fff7ee}
.ecc-box--verde{border-left-color:#2a9d3f;background:#f1fbf3}
.ecc-box--violeta{border-left-color:#7b3fbf;background:#f7f2fd}
.ecc-box--amarillo{border-left-color:#e0b800;background:#fffbe6}
.ecc-cta{text-align:center;margin:22px 0 6px}
.ecc-cta a{display:inline-block;background:#ff8a00;color:#fff !important;font-weight:700;padding:12px 26px;border-radius:12px;text-decoration:none !important}
.ecc-cta a:hover{filter:brightness(1.05)}

/* Ajustes frente a los estilos de la plantilla del blog */
.ecc-info .ecc-box h2{margin-top:0 !important}
.ecc-info .ecc-box p, .ecc-info .ecc-box li{font-size:15px !important;line-height:1.55 !important;color:#2a3343 !important}
.ecc-info .ecc-box p{margin:0 0 8px !important}
.ecc-info .ecc-box p:last-child{margin-bottom:0 !important}
.ecc-info .ecc-box ul{list-style:disc !important;padding-left:20px !important;margin:0 0 8px !important}
.ecc-info .ecc-box li{display:list-item !important;margin:0 0 4px !important}
/* ==========================================================
   Calculadora de resistencia para LED (complemento)
   Pegar DEBAJO del CSS de la calculadora de colores.
   ========================================================== */
.ecc-calc .ecl-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}
.ecc-calc .ecl-field{min-width:0}
.ecc-calc .ecl-field label{display:block;font-size:14px;font-weight:700;margin:0 0 6px;color:var(--ecc-ink)}
.ecc-calc .ecl-full{margin-bottom:14px}
.ecc-calc .ecl-input{display:flex;align-items:center;border:2px solid var(--ecc-line);border-radius:12px;background:#fff;overflow:hidden}
.ecc-calc .ecl-input:focus-within{border-color:var(--ecc-accent);box-shadow:0 0 0 3px var(--ecc-soft)}
.ecc-calc .ecl-input input{flex:1;min-width:0;width:100%;border:0;outline:none;font:inherit;font-size:20px;padding:9px 12px;background:transparent;color:var(--ecc-ink);box-shadow:none;height:auto;margin:0}
.ecc-calc .ecl-input span{padding:0 14px;font-weight:700;color:var(--ecc-muted);background:var(--ecc-bg);align-self:stretch;display:flex;align-items:center;border-left:1px solid var(--ecc-line)}
.ecc-calc .ecl-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ecc-calc button.ecl-chip{border:2px solid var(--ecc-line);background:#fff;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:600}
.ecc-calc button.ecl-chip:hover{border-color:#b7c6d9}
.ecc-calc button.ecl-chip.on{border-color:var(--ecc-accent);background:var(--ecc-soft);color:var(--ecc-accent)}
.ecc-calc .ecl-leds{display:flex;flex-wrap:wrap;gap:6px}
.ecc-calc button.ecl-led{display:flex;flex-direction:column;align-items:center;gap:3px;width:78px;padding:8px 4px;border:2px solid var(--ecc-line);background:#fff;border-radius:12px}
.ecc-calc button.ecl-led:hover{border-color:#b7c6d9}
.ecc-calc button.ecl-led.on{border-color:var(--ecc-accent);background:var(--ecc-soft)}
.ecc-calc .ecl-ledc{width:24px;height:24px;border-radius:50% 50% 45% 45%;border:1px solid rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.1),inset 0 -3px 5px rgba(0,0,0,.18)}
.ecc-calc button.ecl-led.on .ecl-ledc{box-shadow:0 0 14px 3px currentColor,inset 0 -3px 5px rgba(0,0,0,.18)}
.ecc-calc .ecl-ln{font-size:12px;font-weight:600;line-height:1.1}
.ecc-calc .ecl-lv{font-size:11px;color:var(--ecc-muted)}
.ecc-calc .ecl-stepper{display:inline-flex;align-items:center;border:2px solid var(--ecc-line);border-radius:12px;overflow:hidden;background:#fff}
.ecc-calc .ecl-stepper button{width:46px;height:46px;border:0;background:var(--ecc-bg);font-size:22px;font-weight:700;color:var(--ecc-accent)}
.ecc-calc .ecl-stepper button:hover{background:var(--ecc-soft)}
.ecc-calc .ecl-stepper span{min-width:56px;text-align:center;font-size:20px;font-weight:700}
.ecc-calc .ecl-circuit{background:linear-gradient(180deg,#eaf3ff 0%,#f9fbff 100%);border-radius:14px;padding:10px;margin-bottom:14px}
.ecc-calc .ecl-circuit svg{display:block;width:100%;height:auto;max-height:200px;font-family:inherit}
.ecc-calc .ecl-stock{margin-top:12px;padding:10px 14px;border-radius:12px;background:#f1fbf3;border:1px solid #c9ebd2;font-size:14px}
.ecc-calc .ecl-stock a{font-weight:700;color:#1f7a3a}
.ecc-calc .ecc-tip sub{font-size:10px}
@media (max-width:680px){
  .ecc-calc .ecl-grid{grid-template-columns:1fr}
  .ecc-calc button.ecl-led{width:calc(33.33% - 4px)}
  .ecc-calc .ecl-circuit svg{min-height:150px}
}
.ecc-loading{color:#5f6b7d;font-style:italic}

/* Cajas informativas dentro de una guía del centro de ayuda */
.eccy-content .ecc-info{margin:6px 0 18px}
.eccy-content .ecc-box h2,.eccy-content .ecc-box h3{font-size:18px;margin:0 0 8px;padding:0;border:0;line-height:1.3}
.eccy-content .ecc-box p,.eccy-content .ecc-box li{font-size:15.5px;line-height:1.6}
.eccy-content .ecc-box ul{margin:0 0 8px;padding-left:20px;list-style:disc}

/* ===== Calculadora NE555 (1.5.0) ===== */
.ecc-calc .ec5-seg{grid-template-columns:1fr 1fr}
.ecc-calc .ec5-seg button strong{font-size:17px}
.ecc-calc .ec5-mode{flex-wrap:wrap}
.ecc-calc .ec5-mode button{flex:1 1 200px}
.ecc-calc .ec5-input select{border:0;border-left:1px solid var(--ecc-line);background:var(--ecc-bg);font:inherit;font-weight:700;color:var(--ecc-muted);padding:0 10px;align-self:stretch;height:auto;min-height:0;margin:0;box-shadow:none;cursor:pointer;width:auto;-webkit-appearance:menulist;appearance:auto}
.ecc-calc label.ec5-check{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;border:2px solid var(--ecc-line);border-radius:12px;padding:12px;background:#fff;cursor:pointer;margin:0}
.ecc-calc label.ec5-check input{width:20px;height:20px;margin:0;flex:0 0 20px;accent-color:var(--ecc-accent)}
.ecc-calc .ec5-wave{background:linear-gradient(180deg,#eaf3ff 0%,#f9fbff 100%);border-radius:14px;padding:10px;margin-top:14px}
.ecc-calc .ec5-wave svg{display:block;width:100%;height:auto;font-family:inherit}
.ecc-calc .ec5-demo{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:14px;color:rgba(255,255,255,.95)}
.ecc-calc .ec5-led{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#5a1414;border:2px solid rgba(255,255,255,.7);transition:background .05s,box-shadow .05s}
.ecc-calc .ec5-led.on{background:#ff3b30;box-shadow:0 0 14px 5px rgba(255,80,60,.85)}
.ecc-calc button.ec5-try{background:#ff8a00;color:#fff;border:0;border-radius:10px;padding:7px 14px;font-weight:700;font-size:14px}
.ecc-calc button.ec5-try:disabled{opacity:.85;cursor:default}
.ecc-calc a.ec5-buy{color:var(--ecc-accent);font-weight:700;text-decoration:none;white-space:nowrap}
.ecc-calc .ecc-msg.ec5-info{background:#eef6ff;border-color:#b9d8fb;color:#0b4f9c}
.ecc-calc .ec5-optt{font-weight:700;margin:16px 0 8px;font-size:14px}
.ecc-calc .ec5-opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.ecc-calc button.ec5-opt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:2px solid var(--ecc-line);border-radius:14px;padding:10px 12px;background:#fff}
.ecc-calc button.ec5-opt:hover{border-color:#b7c6d9}
.ecc-calc button.ec5-opt.on{border-color:var(--ecc-accent);background:var(--ecc-soft)}
.ecc-calc button.ec5-opt strong{font-size:16px;color:var(--ecc-ink)}
.ecc-calc button.ec5-opt span{font-size:13px;color:var(--ecc-muted)}
.ecc-calc button.ec5-opt em{font-style:normal;font-size:12px;font-weight:700;color:#1f7a3a}
@media (max-width:640px){.ecc-calc .ec5-seg{grid-template-columns:1fr}}

/* ===== Reguladores, filtro RC y divisor (1.6.0) ===== */
.ecc-calc .ecr-regs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ecc-calc button.ecr-reg{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:2px solid var(--ecc-line);background:#fff;border-radius:14px;padding:10px 12px;transition:border-color .15s,background .15s}
.ecc-calc button.ecr-reg:hover{border-color:#b7c6d9}
.ecc-calc button.ecr-reg.on{border-color:var(--ecc-accent);background:var(--ecc-soft)}
.ecc-calc button.ecr-reg strong{font-size:16px;font-weight:800;color:var(--ecc-ink)}
.ecc-calc .ecr-badge{font-size:12px;font-weight:700;border-radius:999px;padding:1px 8px}
.ecc-calc button.ecr-reg em{font-style:normal;font-size:12px;color:var(--ecc-muted)}
.ecc-calc .ecr-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;font-size:13px;color:var(--ecc-muted)}
.ecc-calc .ecf-pics{display:grid;grid-template-columns:1.6fr 1fr;gap:12px;align-items:stretch}
.ecc-calc .ecf-pics .ec5-wave{display:flex;align-items:center}
.ecc-calc .ecd-presets{margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ecc-calc .ecd-presets .ecl-chips{margin-top:0}
.ecc-calc .ecd-svg svg{max-height:260px}
@media (max-width:820px){.ecc-calc .ecr-regs{grid-template-columns:repeat(2,1fr)}.ecc-calc .ecf-pics{grid-template-columns:1fr}}
