/* Tecnoklip – Guía Memoria RAM. Todo va bajo .tkgr para no chocar con el tema. */
.tkgr{
	--tk-blue:#2563eb; --tk-blue-d:#1d4ed8; --tk-navy:#0b1a33; --tk-navy-2:#132a4f;
	--tk-orange:#f97316; --tk-ink:#0f172a; --tk-muted:#475569; --tk-line:#e2e8f0;
	--tk-soft:#f1f5fb; --tk-green:#16a34a; --tk-red:#dc2626;
	--tk-radius:18px;
	max-width:1200px; margin:0 auto; color:var(--tk-ink);
	font-family:inherit; line-height:1.6; box-sizing:border-box;
}
.tkgr *, .tkgr *::before, .tkgr *::after{ box-sizing:border-box; }
.tkgr h1, .tkgr h2, .tkgr h3{ color:inherit; margin:0 0 .5em; line-height:1.2; letter-spacing:-.01em; }
.tkgr h1{ font-size:clamp(30px,4.6vw,52px); font-weight:800; }
.tkgr h2{ font-size:clamp(24px,3vw,36px); font-weight:800; }
.tkgr h3{ font-size:18px; font-weight:700; }
.tkgr p{ margin:0 0 1em; }
.tkgr ul, .tkgr ol{ margin:0; padding:0; list-style:none; }
.tkgr a{ text-decoration:none; }
.tkgr code{ background:#e0e7ff; color:#3730a3; padding:2px 6px; border-radius:6px; font-size:.9em; }
.tkgr-small{ font-size:13px; color:var(--tk-muted); }

/* ---------- Botones ---------- */
.tkgr-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 26px; border-radius:999px; font-weight:700; font-size:15px; transition:transform .15s, box-shadow .15s, background .15s; border:2px solid transparent; }
.tkgr-btn:hover{ transform:translateY(-2px); }
.tkgr-btn-primary{ background:var(--tk-blue); color:#fff !important; box-shadow:0 10px 24px -10px rgba(37,99,235,.7); }
.tkgr-btn-primary:hover{ background:var(--tk-blue-d); }
.tkgr-btn-ghost{ border-color:currentColor; color:inherit !important; }

/* ---------- Hero ---------- */
.tkgr-hero{
	display:grid; grid-template-columns:1.2fr 1fr; gap:40px; align-items:center;
	padding:clamp(32px,5vw,64px); border-radius:28px; color:#fff;
	background:radial-gradient(1200px 400px at 100% 0%, rgba(37,99,235,.55), transparent 60%),
		radial-gradient(600px 300px at 0% 100%, rgba(249,115,22,.25), transparent 60%),
		linear-gradient(135deg, var(--tk-navy), var(--tk-navy-2));
	overflow:hidden; position:relative;
}
.tkgr-badge{ display:inline-block; padding:6px 14px; border-radius:999px; background:rgba(249,115,22,.15); color:#fdba74; font-weight:700; font-size:13px; margin-bottom:18px; border:1px solid rgba(249,115,22,.4); }
.tkgr-lead{ font-size:18px; color:#cbd5e1; max-width:560px; }
.tkgr-hero-cta{ display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; }
.tkgr-hero-stats{ display:flex; gap:28px; flex-wrap:wrap; }
.tkgr-hero-stats li{ display:flex; flex-direction:column; }
.tkgr-hero-stats strong{ font-size:26px; color:#fff; }
.tkgr-hero-stats span{ font-size:13px; color:#94a3b8; }
.tkgr-ram-svg{ width:100%; height:auto; filter:drop-shadow(0 30px 40px rgba(0,0,0,.45)); animation:tkgr-float 6s ease-in-out infinite; }
.tkgr-pcb{ fill:#0f3d2e; stroke:#22c55e; stroke-width:1.5; }
.tkgr-chips rect{ fill:#111827; stroke:#374151; }
.tkgr-pmic{ fill:#1f2937; stroke:var(--tk-orange); }
.tkgr-pins rect{ fill:#eab308; }
.tkgr-svg-label{ fill:#93c5fd; font-size:13px; font-weight:700; font-family:inherit; }
@keyframes tkgr-float{ 0%,100%{ transform:translateY(0) rotate(-2deg);} 50%{ transform:translateY(-10px) rotate(-1deg);} }

/* ---------- Índice ---------- */
.tkgr-toc{
	position:sticky; top:0; z-index:20; display:flex; gap:6px; overflow-x:auto;
	margin:20px 0 10px; padding:10px; border-radius:999px;
	background:rgba(255,255,255,.92); backdrop-filter:blur(8px);
	border:1px solid var(--tk-line); box-shadow:0 8px 24px -16px rgba(15,23,42,.3);
	scrollbar-width:none;
}
.tkgr-toc::-webkit-scrollbar{ display:none; }
.tkgr-toc a{ white-space:nowrap; padding:8px 14px; border-radius:999px; font-size:14px; font-weight:600; color:var(--tk-muted); transition:background .15s,color .15s; }
.tkgr-toc a:hover{ background:var(--tk-soft); color:var(--tk-ink); }
.tkgr-toc a.is-active{ background:var(--tk-blue); color:#fff; }

/* ---------- Secciones ---------- */
.tkgr-section{ padding:clamp(36px,5vw,64px) clamp(18px,4vw,48px); border-radius:28px; margin:18px 0; scroll-margin-top:90px; }
.tkgr-soft{ background:var(--tk-soft); }
.tkgr-dark{ background:linear-gradient(135deg,var(--tk-navy),var(--tk-navy-2)); color:#fff; }
.tkgr-dark .tkgr-sub{ color:#cbd5e1; }
.tkgr-kicker{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--tk-orange); margin-bottom:8px; }
.tkgr-sub{ color:var(--tk-muted); font-size:17px; max-width:720px; }
.tkgr-reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.tkgr-reveal.is-visible{ opacity:1; transform:none; }

.tkgr-split{ display:grid; grid-template-columns:1.6fr 1fr; gap:32px; align-items:center; }
.tkgr-note{ background:#fff7ed; border:1px solid #fed7aa; border-left:5px solid var(--tk-orange); border-radius:14px; padding:22px; }
.tkgr-note strong{ color:#c2410c; display:block; margin-bottom:6px; }
.tkgr-note p{ margin:0; }

/* ---------- Tarjetas de capacidad ---------- */
.tkgr-cards-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin:28px 0; }
.tkgr-cap{ position:relative; background:#fff; border:1px solid var(--tk-line); border-radius:var(--tk-radius); padding:26px 22px; transition:transform .2s, box-shadow .2s; }
.tkgr-cap:hover{ transform:translateY(-4px); box-shadow:0 20px 40px -24px rgba(15,23,42,.35); }
.tkgr-cap-featured{ border:2px solid var(--tk-blue); box-shadow:0 20px 40px -24px rgba(37,99,235,.6); }
.tkgr-ribbon{ position:absolute; top:-12px; right:18px; background:var(--tk-orange); color:#fff; font-size:12px; font-weight:800; padding:4px 12px; border-radius:999px; }
.tkgr-cap-gb{ font-size:44px; font-weight:800; color:var(--tk-blue); line-height:1; }
.tkgr-cap-gb small{ font-size:18px; color:var(--tk-muted); }
.tkgr-cap-tag{ font-weight:700; margin:6px 0 12px; }
.tkgr-meter{ height:6px; border-radius:6px; background:var(--tk-line); overflow:hidden; margin-bottom:16px; }
.tkgr-meter span{ display:block; height:100%; background:linear-gradient(90deg,var(--tk-blue),var(--tk-orange)); border-radius:6px; }
.tkgr-cap li{ padding:5px 0 5px 22px; position:relative; font-size:14.5px; }
.tkgr-cap li::before{ content:"✓"; position:absolute; left:0; color:var(--tk-green); font-weight:800; }
.tkgr-cap-foot{ font-size:13px; color:var(--tk-muted); margin:14px 0 0; padding-top:12px; border-top:1px dashed var(--tk-line); }

/* ---------- Tabla ---------- */
.tkgr-table-wrap{ overflow-x:auto; }
.tkgr-table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--tk-line); border-radius:14px; overflow:hidden; margin:0 0 10px; }
.tkgr-table th{ background:var(--tk-navy); color:#fff; text-align:left; padding:14px 18px; font-size:14px; }
.tkgr-table td{ padding:13px 18px; border-top:1px solid var(--tk-line); font-size:15px; }
.tkgr-table tr:nth-child(even) td{ background:#f8fafc; }
.tkgr-table td:last-child{ font-weight:800; color:var(--tk-blue); }

/* ---------- Calculadora ---------- */
.tkgr-calc fieldset{ border:0; padding:0; margin:0 0 22px; }
.tkgr-calc legend{ font-weight:700; margin-bottom:10px; font-size:16px; color:#fff; }
.tkgr-options{ display:flex; flex-wrap:wrap; gap:10px; }
.tkgr-options button{
	appearance:none; cursor:pointer; padding:12px 18px; border-radius:12px; font:inherit; font-size:15px; font-weight:600;
	color:#e2e8f0; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18); transition:all .15s;
}
.tkgr-options button:hover{ background:rgba(255,255,255,.12); }
.tkgr-options button.is-active{ background:var(--tk-blue); border-color:#60a5fa; color:#fff; box-shadow:0 0 0 3px rgba(96,165,250,.3); }
.tkgr-result{ margin-top:10px; background:#fff; color:var(--tk-ink); border-radius:20px; padding:28px; display:grid; grid-template-columns:auto 1fr; gap:10px 32px; align-items:center; }
.tkgr-result[hidden]{ display:none; }
.tkgr-result.tkgr-pop{ animation:tkgr-pop .4s ease; }
@keyframes tkgr-pop{ from{ opacity:0; transform:scale(.97);} to{ opacity:1; transform:none;} }
.tkgr-result-label{ font-size:13px; font-weight:700; color:var(--tk-muted); text-transform:uppercase; letter-spacing:.08em; }
.tkgr-result-gb{ font-size:56px; font-weight:800; color:var(--tk-blue); line-height:1.05; }
.tkgr-result-config{ font-weight:700; color:var(--tk-orange); }
.tkgr-result-specs{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.tkgr-result-specs li{ background:var(--tk-soft); border-radius:12px; padding:10px 14px; display:flex; flex-direction:column; }
.tkgr-result-specs span{ font-size:12px; color:var(--tk-muted); }
.tkgr-result-note{ grid-column:1 / -1; margin:6px 0 0; color:var(--tk-muted); font-size:14.5px; }
.tkgr-result-link{ grid-column:1 / -1; justify-self:start; }

/* ---------- DDR4 vs DDR5 ---------- */
.tkgr-versus{ display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:stretch; margin:26px 0; }
.tkgr-vs-card{ background:#fff; border:1px solid var(--tk-line); border-radius:var(--tk-radius); padding:28px; }
.tkgr-vs-card h3{ font-size:28px; }
.tkgr-vs-new{ background:linear-gradient(160deg,#eff6ff,#fff); border-color:#bfdbfe; }
.tkgr-vs-new h3{ color:var(--tk-blue); }
.tkgr-vs{ align-self:center; width:56px; height:56px; border-radius:50%; background:var(--tk-orange); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -10px rgba(249,115,22,.8); }
.tkgr-checks li{ padding:6px 0 6px 28px; position:relative; }
.tkgr-checks li::before{ content:"✓"; position:absolute; left:0; top:6px; width:20px; height:20px; border-radius:50%; background:#dcfce7; color:var(--tk-green); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.tkgr-alert{ background:#fef2f2; border:1px solid #fecaca; border-left:5px solid var(--tk-red); border-radius:14px; padding:20px 24px; }
.tkgr-alert strong{ color:#b91c1c; }
.tkgr-alert p{ margin:6px 0 0; }

/* ---------- Pasos ---------- */
.tkgr-steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:26px; counter-reset:none; }
.tkgr-steps li{ background:#fff; border-radius:var(--tk-radius); padding:24px 20px; border:1px solid var(--tk-line); position:relative; }
.tkgr-steps li:not(:last-child)::after{ content:"→"; position:absolute; right:-14px; top:34px; color:var(--tk-blue); font-weight:800; z-index:1; }
.tkgr-step-n{ display:inline-flex; width:40px; height:40px; border-radius:12px; background:var(--tk-blue); color:#fff; font-weight:800; align-items:center; justify-content:center; margin-bottom:14px; }
.tkgr-steps p{ font-size:14.5px; color:var(--tk-muted); margin:0; }

/* ---------- Info cards ---------- */
.tkgr-cards-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:26px; }
.tkgr-info{ background:#fff; border:1px solid var(--tk-line); border-radius:var(--tk-radius); padding:28px; }
.tkgr-chips-row{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.tkgr-chips-row span{ padding:6px 12px; border-radius:999px; background:#eff6ff; color:var(--tk-blue-d); font-size:13px; font-weight:600; }
.tkgr-formula{ background:var(--tk-navy); color:#fff; border-radius:12px; padding:14px 18px; font-weight:700; text-align:center; margin:0 0 12px; }

/* ---------- Dual Channel ---------- */
.tkgr-dual{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; }
.tkgr-dual-opt{ background:#fff; border:1px solid var(--tk-line); border-radius:var(--tk-radius); padding:24px; text-align:center; display:flex; flex-direction:column; gap:6px; align-items:center; }
.tkgr-dual-good{ border:2px solid var(--tk-green); }
.tkgr-dual-opt span{ font-size:13.5px; color:var(--tk-muted); }
.tkgr-sticks{ display:flex; gap:10px; height:80px; align-items:flex-end; margin-bottom:6px; }
.tkgr-sticks i{ width:20px; height:80px; border-radius:4px; background:linear-gradient(180deg,#1f2937 0 70%,#eab308 70% 100%); box-shadow:inset 0 0 0 2px #22c55e; }
.tkgr-format{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:12px; }
.tkgr-format div{ background:var(--tk-soft); border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:4px; align-items:center; text-align:center; }
.tkgr-format small{ color:var(--tk-muted); }
.tkgr-dimm, .tkgr-sodimm{ display:block; height:26px; border-radius:4px; background:linear-gradient(90deg,#1f2937,#374151); border-bottom:6px solid #eab308; margin-bottom:8px; }
.tkgr-dimm{ width:100%; }
.tkgr-sodimm{ width:55%; }

/* ---------- Errores ---------- */
.tkgr-errors{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:24px; }
.tkgr-errors div{ background:#fff; border:1px solid #fecaca; border-radius:var(--tk-radius); padding:22px 18px; }
.tkgr-errors span{ display:inline-flex; width:34px; height:34px; border-radius:50%; background:#fee2e2; color:var(--tk-red); font-weight:800; align-items:center; justify-content:center; margin-bottom:10px; }
.tkgr-errors h3{ font-size:16px; }
.tkgr-errors p{ font-size:14px; color:var(--tk-muted); margin:0; }

/* ---------- Checklist ---------- */
.tkgr-progress{ display:flex; align-items:center; gap:14px; margin:16px 0 22px; }
.tkgr-progress-bar{ flex:1; height:10px; border-radius:10px; background:rgba(255,255,255,.15); overflow:hidden; }
.tkgr-progress-bar span{ display:block; height:100%; width:0; background:linear-gradient(90deg,#22c55e,#4ade80); transition:width .35s ease; }
.tkgr-progress-text{ font-weight:800; min-width:60px; text-align:right; }
.tkgr-checklist{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tkgr-checklist label{ display:flex; gap:12px; align-items:center; padding:14px 16px; border-radius:12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); cursor:pointer; transition:all .15s; }
.tkgr-checklist label:hover{ background:rgba(255,255,255,.1); }
.tkgr-checklist input{ width:20px; height:20px; accent-color:#22c55e; flex:0 0 auto; margin:0; }
.tkgr-checklist li.is-done label{ background:rgba(34,197,94,.15); border-color:rgba(34,197,94,.5); }
.tkgr-checklist li.is-done span{ text-decoration:line-through; opacity:.75; }
.tkgr-checklist-done{ margin:20px 0 0; padding:16px; border-radius:12px; background:rgba(34,197,94,.18); font-weight:700; text-align:center; }
.tkgr-checklist-done[hidden]{ display:none; }

/* ---------- FAQ ---------- */
.tkgr-faq{ display:grid; gap:10px; margin-top:20px; }
.tkgr-faq details{ background:#fff; border:1px solid var(--tk-line); border-radius:14px; padding:0 22px; transition:box-shadow .15s; }
.tkgr-faq details[open]{ box-shadow:0 14px 30px -20px rgba(15,23,42,.35); border-color:#bfdbfe; }
.tkgr-faq summary{ cursor:pointer; list-style:none; padding:18px 30px 18px 0; font-weight:700; position:relative; }
.tkgr-faq summary::-webkit-details-marker{ display:none; }
.tkgr-faq summary::after{ content:"+"; position:absolute; right:0; top:50%; transform:translateY(-50%); width:26px; height:26px; border-radius:50%; background:var(--tk-soft); color:var(--tk-blue); display:flex; align-items:center; justify-content:center; font-weight:800; transition:transform .2s; }
.tkgr-faq details[open] summary::after{ content:"−"; }
.tkgr-faq details p{ color:var(--tk-muted); padding-bottom:18px; margin:0; }

/* ---------- CTA ---------- */
.tkgr-cta{ text-align:center; padding:clamp(40px,6vw,72px) 24px; border-radius:28px; margin:18px 0 30px; color:#fff;
	background:linear-gradient(120deg,var(--tk-blue),#1e3a8a 60%,var(--tk-navy)); }
.tkgr-cta p{ color:#dbeafe; max-width:640px; margin:0 auto; }
.tkgr-cta .tkgr-hero-cta{ justify-content:center; }
.tkgr-cta .tkgr-btn-primary{ background:var(--tk-orange); box-shadow:0 10px 24px -10px rgba(249,115,22,.8); }
.tkgr-cta .tkgr-btn-primary:hover{ background:#ea580c; }

.tkgr-totop{ position:fixed; right:20px; bottom:20px; width:46px; height:46px; border-radius:50%; background:var(--tk-blue); color:#fff !important; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800; box-shadow:0 10px 24px -10px rgba(37,99,235,.8); opacity:0; pointer-events:none; transition:opacity .2s; z-index:50; }
.tkgr-totop.is-visible{ opacity:1; pointer-events:auto; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
	.tkgr-cards-4{ grid-template-columns:repeat(2,1fr); }
	.tkgr-steps{ grid-template-columns:repeat(2,1fr); }
	.tkgr-steps li::after{ display:none; }
	.tkgr-errors{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px){
	.tkgr-hero, .tkgr-split, .tkgr-cards-2, .tkgr-dual, .tkgr-checklist{ grid-template-columns:1fr; }
	.tkgr-hero-visual{ order:-1; max-width:320px; }
	.tkgr-versus{ grid-template-columns:1fr; }
	.tkgr-vs{ justify-self:center; }
	.tkgr-result{ grid-template-columns:1fr; }
	.tkgr-section, .tkgr-hero, .tkgr-cta{ border-radius:20px; }
	.tkgr-toc{ border-radius:14px; }
}
@media (max-width:520px){
	.tkgr-cards-4, .tkgr-steps, .tkgr-errors, .tkgr-format{ grid-template-columns:1fr; }
	.tkgr-result-specs{ grid-template-columns:1fr; }
	.tkgr-btn{ width:100%; }
}
@media (prefers-reduced-motion:reduce){
	.tkgr-ram-svg, .tkgr-result.tkgr-pop{ animation:none; }
	.tkgr-reveal{ opacity:1; transform:none; transition:none; }
}
