/* ==========================================================
   ECC Ayuda · Centro de ayuda (estética de las calculadoras)
   ========================================================== */
.eccy{
  --ink:#1a2233; --muted:#5f6b7d; --line:#e1e6ed; --bg:#f6f8fb;
  --accent:#0b6bcb; --accent2:#3b8ff0; --soft:#e7f1fd; --orange:#ff8a00;
  color:var(--ink); font-size:16px; line-height:1.6;
}
.eccy *, .eccy *::before, .eccy *::after{box-sizing:border-box}
.eccy a{text-decoration:none}
.eccy-h2{font-size:22px;font-weight:800;margin:0 0 14px;color:var(--ink);display:flex;align-items:center;gap:10px;flex-wrap:wrap;line-height:1.3}
.eccy-count{font-size:13px;font-weight:700;background:var(--soft);color:var(--accent);border-radius:999px;padding:2px 10px}
.eccy-section{margin:30px 0}
.eccy-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--orange);color:#fff !important;font-weight:700;border:0;border-radius:12px;padding:10px 18px;cursor:pointer;font-size:15px;line-height:1.2;transition:filter .15s,transform .15s}
.eccy-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
.eccy-btn--full{width:100%}
.eccy-btn--light{background:#fff;color:var(--accent) !important;border:2px solid var(--line)}
.eccy-link{color:var(--accent);font-weight:700}
.eccy-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:700;background:color-mix(in srgb,var(--c,#0b6bcb) 12%,#fff);color:var(--c,#0b6bcb);border:1px solid color-mix(in srgb,var(--c,#0b6bcb) 30%,#fff);line-height:1.4}
.eccy-pill--light{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.35)}

/* ---------- Portada ---------- */
.eccy-hero{--c:#0b6bcb;background:linear-gradient(135deg,var(--c),color-mix(in srgb,var(--c) 60%,#3b8ff0));border-radius:22px;color:#fff;padding:38px 28px;margin:6px 0 22px;position:relative;overflow:hidden}
.eccy-hero::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.08)}
.eccy-hero-in{position:relative;z-index:1;max-width:760px;margin:0 auto;text-align:center}
.eccy-hero-title{color:#fff;font-size:clamp(26px,4vw,38px);font-weight:800;margin:0 0 8px;line-height:1.15}
.eccy-hero-ico{display:inline-block}
.eccy-hero-intro{font-size:17px;opacity:.92;margin:0 0 20px}
.eccy-back{display:inline-block;color:#fff;opacity:.85;font-weight:600;margin-bottom:8px}
.eccy-back:hover{opacity:1;color:#fff}
.eccy-search{display:flex;align-items:center;background:#fff;border-radius:16px;padding:6px;box-shadow:0 10px 30px rgba(0,0,0,.18);max-width:680px;margin:0 auto}
.eccy-search-ico{padding:0 8px 0 10px;font-size:18px}
.eccy-search input{flex:1;min-width:0;border:0;outline:none;font-size:16px;padding:10px 4px;color:var(--ink);background:transparent;box-shadow:none}
.eccy-search button{background:var(--orange);color:#fff;border:0;border-radius:12px;padding:11px 20px;font-weight:700;cursor:pointer;font-size:15px}
.eccy-search button:hover{filter:brightness(1.06)}

.eccy-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-bottom:10px}
.eccy-cat{display:flex;align-items:center;gap:12px;background:#fff;border:2px solid var(--line);border-left:6px solid var(--c);border-radius:16px;padding:14px 16px;color:var(--ink);transition:transform .15s,box-shadow .15s}
.eccy-cat:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(20,40,80,.1);color:var(--ink)}
.eccy-cat-ico{font-size:28px;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 12%,#fff);flex:0 0 auto}
.eccy-cat-txt b{display:block;font-size:15px;line-height:1.25}
.eccy-cat-txt small{color:var(--muted);font-size:13px}
.eccy-cats--small{margin-top:30px}

.eccy-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.eccy-toolbar .eccy-h2{margin:0}
.eccy-filters{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.eccy-chip{border:2px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font-size:13.5px;font-weight:600;color:var(--ink)}
.eccy-chip:hover{border-color:#b7c6d9;color:var(--ink)}
.eccy-chip.on{border-color:var(--accent);background:var(--soft);color:var(--accent)}
.eccy-order select{border:2px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13.5px;font-weight:600;background:#fff;color:var(--ink);cursor:pointer}

.eccy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.eccy-grid--compact{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.eccy-card{--c:#0b6bcb;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 6px 24px rgba(20,40,80,.07);color:var(--ink);transition:transform .18s,box-shadow .18s}
.eccy-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(20,40,80,.13);color:var(--ink)}
.eccy-card-media{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,color-mix(in srgb,var(--c) 18%,#fff),color-mix(in srgb,var(--c) 6%,#fff));display:block}
.eccy-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.eccy-card-ph{position:absolute;inset:0;display:grid;place-items:center;font-size:52px}
.eccy-card-star{position:absolute;top:10px;left:10px;background:#fff;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.eccy-card-body{display:flex;flex-direction:column;gap:8px;padding:14px 16px 16px;flex:1}
.eccy-card-body .eccy-pill{align-self:flex-start}
.eccy-card-title{font-size:17px;font-weight:800;line-height:1.3}
.eccy-card-sum{font-size:14px;color:var(--muted);line-height:1.5}
.eccy-card-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:6px;font-size:12.5px;color:var(--muted);font-weight:600}
.eccy-grid--featured .eccy-card{border:2px solid color-mix(in srgb,var(--c) 40%,#fff)}

.eccy-empty{text-align:center;background:#fff;border:2px dashed var(--line);border-radius:18px;padding:34px 20px}
.eccy-empty span{font-size:44px}
.eccy-pag{display:flex;justify-content:center;gap:6px;margin-top:22px;flex-wrap:wrap}
.eccy-pag a,.eccy-pag span{min-width:40px;height:40px;display:grid;place-items:center;border-radius:12px;border:2px solid var(--line);background:#fff;font-weight:700;color:var(--ink);padding:0 10px}
.eccy-pag a.on{background:var(--accent);border-color:var(--accent);color:#fff}

/* ---------- Guía ---------- */
.eccy-preview{background:#fff8eb;border:1px solid #f3d9a4;color:#6b4300;border-radius:14px;padding:10px 14px;margin:8px 0 14px;font-weight:600}
.eccy-ghead{--c:#0b6bcb;display:grid;grid-template-columns:1.25fr 1fr;gap:24px;align-items:center;background:linear-gradient(135deg,var(--c),color-mix(in srgb,var(--c) 60%,#3b8ff0));color:#fff;border-radius:22px;padding:30px;margin:6px 0 26px;overflow:hidden}
.eccy-ghead-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.eccy-gtitle{color:#fff;font-size:clamp(26px,3.6vw,38px);font-weight:800;line-height:1.15;margin:0 0 10px}
.eccy-gsum{font-size:17px;opacity:.93;margin:0 0 14px}
.eccy-gmeta{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;opacity:.9;font-weight:600}
.eccy-ghead-img img{width:100%;border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.25);display:block;aspect-ratio:16/9;object-fit:cover;background:#fff}
.eccy-ghead:not(:has(.eccy-ghead-img)){grid-template-columns:1fr}

.eccy-glayout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}
.eccy-gmain{min-width:0}
.eccy-gside{position:sticky;top:90px;display:flex;flex-direction:column;gap:14px}
.eccy-side-title{font-weight:800;font-size:14px;margin-bottom:8px}
.eccy-toc,.eccy-side-products{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 6px 24px rgba(20,40,80,.06)}
.eccy-toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.eccy-toc li a{display:block;padding:5px 0 5px 12px;margin-left:-2px;border-left:2px solid transparent;color:var(--muted);font-size:14px;line-height:1.35}
.eccy-toc li.lvl3 a{padding-left:24px;font-size:13px}
.eccy-toc li a:hover{color:var(--accent)}
.eccy-toc li a.on{color:var(--accent);border-left-color:var(--accent);font-weight:700}
.eccy-sprod{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line);color:var(--ink)}
.eccy-sprod:first-of-type{border-top:0}
.eccy-sprod img{width:46px;height:46px;object-fit:contain;border-radius:10px;border:1px solid var(--line);background:#fff;flex:0 0 auto}
.eccy-sprod b{display:block;font-size:13px;line-height:1.3}
.eccy-sprod small{color:var(--orange);font-weight:800;font-size:13px}
.eccy-side-more{display:block;margin-top:8px;font-weight:700;color:var(--accent);font-size:13px}
.eccy-share{border:2px dashed var(--line);background:#fff;border-radius:14px;padding:10px;font-weight:700;color:var(--accent);cursor:pointer;font-size:14px}

/* Contenido */
.eccy-content{font-size:16.5px;line-height:1.7}
.eccy-content h2{font-size:24px;font-weight:800;margin:34px 0 12px;padding-bottom:6px;border-bottom:3px solid var(--soft);scroll-margin-top:100px}
.eccy-content h3{font-size:19px;font-weight:800;margin:24px 0 8px;scroll-margin-top:100px}
.eccy-content p{margin:0 0 14px}
.eccy-content ul,.eccy-content ol{margin:0 0 16px;padding-left:24px}
.eccy-content li{margin-bottom:6px}
.eccy-content ul{list-style:disc}
.eccy-content ol{list-style:decimal}
.eccy-content img{max-width:100%;height:auto;border-radius:14px}
.eccy-content a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.eccy-content table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:15px;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.eccy-content th{background:var(--soft);color:var(--accent);text-align:left;font-weight:800}
.eccy-content th,.eccy-content td{padding:9px 12px;border-bottom:1px solid var(--line)}
.eccy-content blockquote{margin:0 0 16px;padding:12px 16px;border-left:5px solid var(--accent);background:var(--bg);border-radius:0 12px 12px 0}
.eccy-content code{background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:1px 6px;font-size:.9em;font-family:Consolas,"Fira Code",Menlo,monospace}
.eccy-content iframe{max-width:100%;border-radius:14px}
.eccy-content .ecc-calc{margin:20px 0}
.eccy-gsec{margin-top:34px;scroll-margin-top:100px}

/* Cajas de aviso */
.eccy-callout{display:flex;gap:12px;align-items:flex-start;border-radius:16px;padding:14px 16px;margin:0 0 16px;border:1px solid;border-left-width:6px}
.eccy-callout-ico{font-size:22px;line-height:1.2}
.eccy-callout--tip{background:#f1fbf3;border-color:#c9ebd2;border-left-color:#2a9d3f}
.eccy-callout--warn{background:#fff7ee;border-color:#ffd9a8;border-left-color:#f77f00}
.eccy-callout--danger{background:#fdf0f0;border-color:#f3c4c4;border-left-color:#d62828}
.eccy-callout--note{background:#f2f7ff;border-color:#d6e6fb;border-left-color:#0b6bcb}

/* Bloque de código */
.eccy-code{margin:0 0 20px;border-radius:16px;overflow:hidden;background:#0f1a2e;box-shadow:0 10px 28px rgba(15,26,46,.22)}
.eccy-code-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#16243d;color:#cfd9e6;padding:9px 12px;font-size:13px}
.eccy-code-dots{display:inline-flex;gap:5px}
.eccy-code-dots i{width:11px;height:11px;border-radius:50%;background:#ff5f57}
.eccy-code-dots i:nth-child(2){background:#febc2e}
.eccy-code-dots i:nth-child(3){background:#28c840}
.eccy-code-name{font-weight:700;color:#fff}
.eccy-code-lang{background:#0b6bcb;color:#fff;border-radius:999px;padding:1px 9px;font-size:11.5px;font-weight:700}
.eccy-code-file{color:#9fb0c6;font-family:Consolas,Menlo,monospace;font-size:12px}
.eccy-code-actions{margin-left:auto;display:flex;gap:6px}
.eccy-code-actions button{background:#24375a;color:#fff;border:0;border-radius:8px;padding:5px 10px;font-size:12.5px;font-weight:700;cursor:pointer}
.eccy-code-actions button:hover{background:#2f4a78}
.eccy-code-actions button.ok{background:#2a9d3f}
.eccy-pre{margin:0;padding:0;background:transparent;border:0;overflow:auto;max-height:620px}
.eccy-pre code{display:block;padding:14px 0;font-family:Consolas,"Fira Code","JetBrains Mono",Menlo,monospace;font-size:13.5px;line-height:1.6;color:#e6edf6;background:transparent;border:0;white-space:pre;tab-size:4;counter-reset:ln}
.eccy-pre .ln{display:block;padding:0 16px 0 0}
.eccy-pre .ln::before{counter-increment:ln;content:counter(ln);display:inline-block;width:3.2em;padding-right:1em;margin-right:.6em;text-align:right;color:#4d6080;border-right:1px solid #22324f;user-select:none}
.eccy-pre .t-c{color:#7f8ea8;font-style:italic}
.eccy-pre .t-s{color:#a5e075}
.eccy-pre .t-n{color:#f7a76c}
.eccy-pre .t-k{color:#c792ea;font-weight:600}
.eccy-pre .t-t{color:#5fd7ff}
.eccy-pre .t-p{color:#ff6b9a}
.eccy-pre .t-f{color:#82aaff}
.eccy-pre .t-a{color:#ffcb6b}

/* Descargas */
.eccy-files{display:grid;gap:10px}
.eccy-file{display:flex;align-items:center;gap:14px;background:#fff;border:2px solid var(--line);border-radius:16px;padding:12px 14px;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.eccy-file:hover{border-color:var(--accent);box-shadow:0 8px 20px rgba(20,40,80,.08);color:var(--ink)}
.eccy-file-ext{min-width:54px;height:54px;border-radius:14px;background:linear-gradient(135deg,#0b6bcb,#3b8ff0);color:#fff;font-weight:800;display:grid;place-items:center;font-size:13px;padding:0 6px}
.eccy-file-txt{flex:1;min-width:0}
.eccy-file-txt b{display:block}
.eccy-file-txt small{color:var(--muted)}
.eccy-file-dl{font-size:22px}

/* Productos */
.eccy-pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.eccy-pcard{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:0 6px 24px rgba(20,40,80,.06)}
.eccy-pcard-img{display:block;aspect-ratio:1;border-radius:12px;background:#fff;overflow:hidden;border:1px solid var(--line);margin-bottom:4px}
.eccy-pcard-img img{width:100%;height:100%;object-fit:contain}
.eccy-pcard-img span{display:grid;place-items:center;height:100%;font-size:40px}
.eccy-pcard-name{font-weight:700;font-size:14px;line-height:1.35;color:var(--ink);min-height:2.7em}
.eccy-pcard-price{font-size:19px;font-weight:800;color:var(--orange)}
.eccy-pcard-form{margin:4px 0 0}
.eccy-stock{font-size:12.5px;font-weight:700}
.eccy-stock.is-in{color:#1f8a43}
.eccy-stock.is-out{color:#b26a00}
.eccy-pinline{display:flex;align-items:center;gap:14px;background:#fff;border:2px solid var(--line);border-left:6px solid var(--orange);border-radius:16px;padding:12px 14px;margin:0 0 16px}
.eccy-pinline-img{width:72px;height:72px;flex:0 0 auto;border-radius:12px;overflow:hidden;border:1px solid var(--line);display:grid;place-items:center;font-size:30px;background:#fff}
.eccy-pinline-img img{width:100%;height:100%;object-fit:contain}
.eccy-pinline-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.eccy-content .eccy-pinline-name{color:var(--ink);text-decoration:none;font-weight:800}
.eccy-pinline-price{font-weight:800;color:var(--orange);font-size:17px}

.eccy-helpbox{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f2f7ff;border:1px solid #d6e6fb;border-radius:18px;padding:16px 18px;margin-top:34px}
.eccy-helpbox-ico{font-size:34px}
.eccy-helpbox div{flex:1;min-width:200px}

/* ---------- Ficha de producto ---------- */
.eccy-prodblock{margin:30px 0}
.eccy-prodblock-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.eccy-prodblock-head .eccy-h2{margin:0}
.eccy-badge{display:flex;align-items:center;gap:10px;background:#f2f7ff;border:1px solid #d6e6fb;border-left:5px solid #0b6bcb;border-radius:12px;padding:9px 12px;margin:12px 0;color:#1a2233;font-size:14px;line-height:1.4;text-decoration:none}
.eccy-badge:hover{background:#e7f1fd;color:#1a2233}
.eccy-badge span:first-child{font-size:20px}

@media (max-width:991px){
  .eccy-glayout{grid-template-columns:1fr}
  .eccy-gside{position:static;order:-1}
  .eccy-gside .eccy-side-products,.eccy-share{display:none}
  .eccy-ghead{grid-template-columns:1fr;padding:22px}
  .eccy-ghead-img{order:-1}
}
@media (max-width:575px){
  .eccy-hero{padding:26px 16px;border-radius:18px}
  .eccy-search button{padding:10px 14px}
  .eccy-pinline{flex-wrap:wrap}
  .eccy-pinline .eccy-btn{width:100%}
  .eccy-code-actions{margin-left:0;width:100%}
}
.eccy-content .eccy-btn,.eccy-content .eccy-btn:hover{text-decoration:none;color:#fff}
.eccy-content .eccy-pinline-name:hover{color:var(--accent)}

/* Carrusel de productos (4 a la vez) */
.eccy-carousel{position:relative;padding:0 6px}
.eccy-car-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:4px 2px 12px}
.eccy-car-track::-webkit-scrollbar{display:none}
.eccy-car-item{flex:0 0 calc((100% - 42px) / 4);scroll-snap-align:start;display:flex}
.eccy-car-item .eccy-pcard{width:100%}
.eccy-car-btn{position:absolute;top:38%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;border:2px solid var(--line);background:#fff;color:var(--accent);font-size:28px;line-height:1;font-weight:700;cursor:pointer;box-shadow:0 6px 18px rgba(20,40,80,.15);display:grid;place-items:center;padding:0 0 4px;transition:opacity .15s,background .15s}
.eccy-car-btn:hover{background:var(--soft)}
.eccy-car-prev{left:-14px}
.eccy-car-next{right:-14px}
.eccy-car-btn[disabled]{opacity:0;pointer-events:none}
.eccy-carousel.is-static .eccy-car-btn{display:none}
@media (max-width:991px){.eccy-car-item{flex-basis:calc((100% - 28px) / 3)}}
@media (max-width:640px){.eccy-car-item{flex-basis:calc((100% - 14px) / 2)}.eccy-car-prev{left:-6px}.eccy-car-next{right:-6px}}

/* Cuadro de guías junto al botón de compra */
/* bloque de ficha de producto: estilos en product_side.tpl */
