/* ============ TuProgramador — Design System ============ */
:root{
  --tp-bg:#070b12;
  --tp-bg-2:#0c121d;
  --tp-surface:#111a28;
  --tp-surface-2:#162133;
  --tp-border:rgba(120,200,255,.14);
  --tp-fg:#e8f1fb;
  --tp-muted:#93a6bd;
  --tp-primary:#22d3ee;
  --tp-primary-2:#0ea5e9;
  --tp-accent:#34d399;
  --tp-warning:#fbbf24;
  --tp-grad:linear-gradient(115deg,var(--tp-primary),var(--tp-primary-2) 55%,var(--tp-accent));
  --tp-glow:0 24px 60px -24px rgba(34,211,238,.55);
  --tp-radius:18px;
  --tp-font:'Sora',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --tp-font-body:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --tp-max:1180px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--tp-bg);color:var(--tp-fg);font-family:var(--tp-font-body);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--tp-primary);text-decoration:none}
h1,h2,h3,h4{font-family:var(--tp-font);line-height:1.12;margin:0 0 .5em;letter-spacing:-.02em}
h1{font-size:clamp(2.4rem,5.2vw,4rem);font-weight:700}
h2{font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:700}
h3{font-size:1.2rem;font-weight:600}
p{margin:0 0 1rem}
.tp-container{width:100%;max-width:var(--tp-max);margin:0 auto;padding:0 22px}
.tp-section{padding:96px 0;position:relative}
.tp-section--alt{background:linear-gradient(180deg,var(--tp-bg),var(--tp-bg-2))}
.tp-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tp-primary);font-weight:700;margin-bottom:14px}
.tp-eyebrow::before{content:"";width:26px;height:2px;background:var(--tp-grad);border-radius:2px}
.tp-lead{color:var(--tp-muted);font-size:1.06rem;max-width:62ch}
.tp-head{max-width:720px;margin-bottom:52px}
.tp-grad-text{background:var(--tp-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
/* Buttons */
.tp-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 26px;border-radius:999px;font-weight:700;font-family:var(--tp-font);font-size:.95rem;border:1px solid transparent;cursor:pointer;transition:transform .2s ease,box-shadow .25s ease,background .25s ease}
.tp-btn--primary{background:var(--tp-grad);color:#04121a;box-shadow:var(--tp-glow)}
.tp-btn--primary:hover{transform:translateY(-2px)}
.tp-btn--ghost{border-color:var(--tp-border);color:var(--tp-fg);background:rgba(255,255,255,.03)}
.tp-btn--ghost:hover{border-color:var(--tp-primary);color:var(--tp-primary)}
.tp-btn--sm{padding:10px 18px;font-size:.85rem}
/* Header */
.tp-header{position:sticky;top:0;z-index:60;backdrop-filter:blur(14px);background:rgba(7,11,18,.78);border-bottom:1px solid var(--tp-border)}
.tp-header__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:74px}
.tp-brand{display:flex;align-items:center;gap:11px;font-family:var(--tp-font);font-weight:700;font-size:1.12rem;color:var(--tp-fg);letter-spacing:-.02em}
.tp-brand__mark{width:36px;height:36px;border-radius:11px;background:var(--tp-grad);display:grid;place-items:center;color:#04121a;font-weight:800;font-size:.95rem;box-shadow:var(--tp-glow)}
.tp-brand small{display:block;font-size:.68rem;color:var(--tp-muted);font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.tp-nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.tp-nav a{color:var(--tp-muted);font-weight:600;font-size:.93rem;transition:color .2s}
.tp-nav a:hover,.tp-nav .current-menu-item>a{color:var(--tp-fg)}
.tp-header__cta{display:flex;align-items:center;gap:12px}
.tp-burger{display:none;background:none;border:1px solid var(--tp-border);border-radius:11px;padding:9px 11px;color:var(--tp-fg)}
.tp-burger span{display:block;width:20px;height:2px;background:currentColor;margin:4px 0;border-radius:2px}
/* Hero */
.tp-hero{position:relative;overflow:hidden;padding:110px 0 96px}
.tp-hero::before{content:"";position:absolute;inset:-30% 40% 30% -20%;background:radial-gradient(circle at 30% 30%,rgba(34,211,238,.22),transparent 62%);pointer-events:none}
.tp-hero::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(circle at 60% 30%,#000,transparent 72%);pointer-events:none}
.tp-hero__grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.tp-badge{display:inline-flex;align-items:center;gap:9px;padding:7px 15px;border-radius:999px;border:1px solid var(--tp-border);background:rgba(34,211,238,.08);color:var(--tp-primary);font-size:.8rem;font-weight:700;margin-bottom:22px}
.tp-badge i{width:7px;height:7px;border-radius:50%;background:var(--tp-accent);box-shadow:0 0 0 4px rgba(52,211,153,.18)}
.tp-hero p.tp-lead{font-size:1.14rem;margin-bottom:30px}
.tp-hero__actions{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:34px}
.tp-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:520px}
.tp-stats div{border-left:2px solid rgba(34,211,238,.35);padding-left:14px}
.tp-stats strong{display:block;font-family:var(--tp-font);font-size:1.6rem;color:var(--tp-fg)}
.tp-stats span{font-size:.82rem;color:var(--tp-muted)}
/* Code card */
.tp-codecard{background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius);box-shadow:0 40px 80px -40px rgba(0,0,0,.9);overflow:hidden}
.tp-codecard__bar{display:flex;align-items:center;gap:7px;padding:13px 16px;background:var(--tp-surface-2);border-bottom:1px solid var(--tp-border)}
.tp-codecard__bar i{width:11px;height:11px;border-radius:50%;background:#37485f}
.tp-codecard__bar i:first-child{background:#ff5f57}.tp-codecard__bar i:nth-child(2){background:#febc2e}.tp-codecard__bar i:nth-child(3){background:#28c840}
.tp-codecard__bar em{margin-left:10px;font-style:normal;font-size:.78rem;color:var(--tp-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-codecard pre{margin:0;padding:22px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.83rem;line-height:1.85;color:#cbd9ea;overflow-x:auto}
.tp-c-key{color:#7dd3fc}.tp-c-str{color:#6ee7b7}.tp-c-com{color:#5d7186}.tp-c-fn{color:#fbbf24}
/* Marquee */
.tp-marquee{border-block:1px solid var(--tp-border);background:var(--tp-bg-2);padding:18px 0;overflow:hidden}
.tp-marquee ul{display:flex;gap:52px;list-style:none;margin:0;padding:0;animation:tp-scroll 26s linear infinite;white-space:nowrap;min-width:200%}
.tp-marquee li{color:var(--tp-muted);font-family:var(--tp-font);font-weight:600;font-size:.95rem;letter-spacing:.04em}
@keyframes tp-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* Cards */
.tp-grid{display:grid;gap:22px}
.tp-grid--3{grid-template-columns:repeat(3,1fr)}
.tp-grid--2{grid-template-columns:repeat(2,1fr)}
.tp-grid--4{grid-template-columns:repeat(4,1fr)}
.tp-card{background:linear-gradient(160deg,var(--tp-surface),var(--tp-bg-2));border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:30px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;position:relative;overflow:hidden}
.tp-card:hover{transform:translateY(-6px);border-color:rgba(34,211,238,.4);box-shadow:var(--tp-glow)}
.tp-card__icon{width:48px;height:48px;border-radius:14px;background:rgba(34,211,238,.12);border:1px solid var(--tp-border);display:grid;place-items:center;margin-bottom:18px;color:var(--tp-primary)}
.tp-card p{color:var(--tp-muted);font-size:.96rem;margin-bottom:0}
.tp-card ul{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.tp-card ul li{color:var(--tp-muted);font-size:.9rem;padding-left:22px;position:relative}
.tp-card ul li::before{content:"";position:absolute;left:0;top:.55em;width:9px;height:9px;border-radius:3px;background:var(--tp-grad)}
/* Products */
.tp-product{background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius);overflow:hidden;transition:transform .25s,border-color .25s}
.tp-product:hover{transform:translateY(-6px);border-color:rgba(52,211,153,.42)}
.tp-product__media{aspect-ratio:4/3;background:radial-gradient(circle at 50% 40%,rgba(34,211,238,.18),var(--tp-bg-2));display:grid;place-items:center;color:var(--tp-primary);border-bottom:1px solid var(--tp-border)}
.tp-product__body{padding:20px}
.tp-product__body h3{font-size:1.02rem;margin-bottom:4px;min-height:2.5em}
.tp-product__body span{color:var(--tp-muted);font-size:.85rem}
.tp-product__price{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.tp-product__price b{font-family:var(--tp-font);font-size:1.15rem;color:var(--tp-accent)}
/* Pricing */
.tp-plan{background:linear-gradient(170deg,var(--tp-surface),var(--tp-bg-2));border:1px solid var(--tp-border);border-radius:22px;padding:34px;display:flex;flex-direction:column}
.tp-plan--featured{border-color:rgba(34,211,238,.5);box-shadow:var(--tp-glow);position:relative}
.tp-plan--featured::after{content:"Más elegido";position:absolute;top:18px;right:18px;font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#04121a;background:var(--tp-grad);padding:5px 11px;border-radius:999px}
.tp-plan__price{font-family:var(--tp-font);font-size:clamp(1.7rem,2.6vw,2.3rem);font-weight:700;margin:10px 0 4px;line-height:1.1}
.tp-plan__price small{display:block;font-size:.85rem;color:var(--tp-muted);font-weight:500;margin-top:4px}
.tp-plan ul{list-style:none;margin:22px 0;padding:0;display:grid;gap:11px;flex:1}
.tp-plan ul li{font-size:.93rem;color:var(--tp-muted);padding-left:26px;position:relative}
.tp-plan ul li::before{content:"✓";position:absolute;left:0;color:var(--tp-accent);font-weight:800}
/* Process */
.tp-step{position:relative;padding:28px;border:1px dashed var(--tp-border);border-radius:var(--tp-radius);background:rgba(255,255,255,.02)}
.tp-step b{font-family:var(--tp-font);font-size:2.1rem;background:var(--tp-grad);-webkit-background-clip:text;background-clip:text;color:transparent;display:block;line-height:1}
.tp-step h3{margin:8px 0 6px;font-size:1.05rem}
.tp-step p{color:var(--tp-muted);font-size:.9rem;margin:0}
/* Testimonials */
.tp-quote{background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:28px}
.tp-quote p{font-size:1rem;color:var(--tp-fg)}
.tp-quote footer{display:flex;align-items:center;gap:12px;margin-top:18px}
.tp-quote footer .tp-quote__avatar{width:40px;height:40px;flex:none;border-radius:50%;background:var(--tp-grad);display:grid;place-items:center;color:#04121a;font-weight:800}
.tp-quote footer .tp-quote__who{text-align:left}
.tp-quote footer strong{display:block;font-size:.92rem}
.tp-quote footer span{font-size:.8rem;color:var(--tp-muted)}
/* CTA */
.tp-cta{background:linear-gradient(120deg,rgba(34,211,238,.14),rgba(52,211,153,.1));border:1px solid var(--tp-border);border-radius:28px;padding:56px;text-align:center;position:relative;overflow:hidden}
.tp-cta h2{max-width:18ch;margin-inline:auto}
.tp-cta .tp-lead{margin:0 auto 28px}
/* Contact */
.tp-contact{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.tp-form{display:grid;gap:14px;background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:30px}
.tp-form label{font-size:.83rem;font-weight:700;color:var(--tp-muted);display:block;margin-bottom:6px}
.tp-form input,.tp-form select,.tp-form textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--tp-border);background:var(--tp-bg);color:var(--tp-fg);font-family:inherit;font-size:.95rem}
.tp-form input:focus,.tp-form select:focus,.tp-form textarea:focus{outline:2px solid rgba(34,211,238,.45);border-color:transparent}
.tp-form textarea{min-height:120px;resize:vertical}
.tp-info li{list-style:none;display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--tp-border)}
.tp-info ul{padding:0;margin:0}
.tp-info strong{display:block;font-size:.95rem}
.tp-info span{color:var(--tp-muted);font-size:.9rem}
.tp-info__ico{width:42px;height:42px;flex:none;border-radius:12px;background:rgba(34,211,238,.1);display:grid;place-items:center;color:var(--tp-primary)}
/* FAQ */
.tp-faq details{border:1px solid var(--tp-border);border-radius:14px;padding:18px 22px;background:var(--tp-surface);margin-bottom:12px}
.tp-faq summary{cursor:pointer;font-weight:700;font-family:var(--tp-font);list-style:none}
.tp-faq summary::-webkit-details-marker{display:none}
.tp-faq summary::after{content:"+";float:right;color:var(--tp-primary)}
.tp-faq details[open] summary::after{content:"–"}
.tp-faq p{color:var(--tp-muted);margin:12px 0 0;font-size:.94rem}
/* Footer */
.tp-footer{background:var(--tp-bg-2);border-top:1px solid var(--tp-border);padding:64px 0 26px}
.tp-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.tp-footer h4{font-size:.82rem;text-transform:uppercase;letter-spacing:.14em;color:var(--tp-muted)}
.tp-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}
.tp-footer a{color:var(--tp-fg);font-size:.93rem;opacity:.8}
.tp-footer a:hover{opacity:1;color:var(--tp-primary)}
.tp-footer__bottom{margin-top:44px;padding-top:20px;border-top:1px solid var(--tp-border);display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:var(--tp-muted);font-size:.85rem}
/* WP content */
.tp-page{padding:70px 0 90px}
.tp-entry{max-width:760px;margin:0 auto}
.tp-entry img{border-radius:14px;margin:20px 0}
.tp-entry a{text-decoration:underline}
.tp-entry blockquote{border-left:3px solid var(--tp-primary);margin:0;padding-left:18px;color:var(--tp-muted)}
.tp-postcard{display:block;background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:24px;color:inherit}
.tp-postcard:hover{border-color:rgba(34,211,238,.4)}
.tp-postcard time{font-size:.8rem;color:var(--tp-muted)}
.tp-pagination{display:flex;gap:10px;justify-content:center;margin-top:34px}
.tp-pagination .page-numbers{padding:8px 14px;border:1px solid var(--tp-border);border-radius:10px;color:var(--tp-muted)}
.tp-pagination .current{background:var(--tp-grad);color:#04121a;font-weight:700}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.tp-whatsapp{position:fixed;right:20px;bottom:20px;z-index:80;width:56px;height:56px;border-radius:50%;background:#25d366;display:grid;place-items:center;color:#04121a;box-shadow:0 14px 30px -10px rgba(37,211,102,.7)}
/* Responsive */
@media(max-width:1024px){
  .tp-hero__grid{grid-template-columns:1fr;gap:40px}
  .tp-grid--4{grid-template-columns:repeat(2,1fr)}
  .tp-footer__grid{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .tp-nav{display:none;position:absolute;top:74px;left:0;right:0;background:var(--tp-bg-2);border-bottom:1px solid var(--tp-border);padding:18px 22px}
  .tp-nav.is-open{display:block}
  .tp-nav ul{flex-direction:column;gap:14px}
  .tp-burger{display:block}
  .tp-header__cta .tp-btn{display:none}
  .tp-grid--3,.tp-grid--2,.tp-contact{grid-template-columns:1fr}
  .tp-section{padding:70px 0}
  .tp-cta{padding:36px 22px}
  .tp-stats{grid-template-columns:1fr 1fr}
}
