/*
Theme Name: InvertirDesde0
Theme URI: https://invertirdesde0.com
Author: InvertirDesde0
Description: Tema personalizado para invertirdesde0.com
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: invertirdesde0
*/

:root {
  --gold: #c9a84c;
  --gold-light: #e0bc5e;
  --bg: #0a0a0a;
  --bg2: #0f0f0f;
  --bg3: #141414;
  --border: #1e1e1e;
  --border2: #2a2a2a;
  --text: #e0e0e0;
  --text2: #888;
  --text3: #555;
  --text4: #333;
  --green: #4caf70;
  --red: #ef5350;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { background:var(--bg); color:var(--text); font-family:'DM Sans',system-ui,sans-serif; line-height:1.7; }
h1,h2,h3,h4 { font-family:'Playfair Display',serif; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; }

/* NAV */
.site-header {
  position:sticky; top:0; z-index:200;
  background:rgba(10,10,10,0.96);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  padding:0 5%;
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.site-logo { font-family:'Playfair Display',serif; font-size:17px; font-weight:800; color:var(--text); }
.site-logo span { color:var(--gold); }
.main-nav { display:flex; gap:4px; list-style:none; align-items:center; }
.main-nav a { display:block; padding:8px 12px; border-radius:7px; color:var(--text3); font-size:13px; font-weight:500; transition:all 0.2s; }
.main-nav a:hover, .main-nav .current-menu-item a { color:var(--text); background:var(--bg3); }
.nav-cta { background:var(--gold) !important; color:var(--bg) !important; font-weight:700 !important; border-radius:7px; }
.nav-cta:hover { background:var(--gold-light) !important; }

/* HERO */
.hero { padding:7rem 5% 5rem; text-align:center; background:radial-gradient(ellipse at 50% -10%, #1a1500 0%, var(--bg) 65%); }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:var(--bg2); border:1px solid var(--border2); color:var(--text2); font-size:12px; padding:6px 18px; border-radius:100px; margin-bottom:2rem; }
.badge-dot { width:7px; height:7px; border-radius:50%; background:var(--green); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
.hero h1 { font-size:clamp(2.4rem,5vw,4rem); line-height:1.12; color:#f5f5f5; letter-spacing:-1.5px; margin-bottom:1.25rem; }
.hero h1 em { font-style:normal; color:var(--gold); }
.hero-desc { font-size:1.05rem; color:var(--text3); max-width:560px; margin:0 auto 2.5rem; }
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:3rem; }
.btn-primary { background:var(--gold); color:var(--bg); font-weight:700; font-size:14px; padding:13px 28px; border-radius:8px; border:none; transition:all 0.2s; display:inline-block; cursor:pointer; }
.btn-primary:hover { background:var(--gold-light); }
.btn-ghost { color:var(--text3); font-size:14px; padding:13px 22px; border:1px solid var(--border2); border-radius:8px; display:inline-block; transition:all 0.2s; }
.btn-ghost:hover { border-color:#444; color:var(--text); }
.hero-cats { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.cat-pill { background:var(--bg2); border:1px solid var(--border); color:var(--text3); font-size:12px; padding:6px 14px; border-radius:100px; transition:all 0.2s; }
.cat-pill:hover { border-color:rgba(201,168,76,0.3); color:var(--gold); }

/* FONDOS */
.fondos-strip { background:#0c0c0c; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:2.5rem 5%; }
.fondos-inner { max-width:1100px; margin:0 auto; }
.strip-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.25rem; }
.strip-label { font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); font-weight:700; }
.strip-update { font-size:11px; color:var(--text4); display:flex; align-items:center; gap:6px; }
.update-dot { width:5px; height:5px; border-radius:50%; background:var(--green); }
.fondos-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; }
.fondo-card { background:var(--bg2); border:1px solid var(--border); border-radius:10px; padding:1rem 1.1rem; transition:all 0.2s; }
.fondo-card:hover { border-color:rgba(201,168,76,0.25); transform:translateY(-1px); }
.fondo-name { font-size:13px; font-weight:700; color:var(--text); margin-bottom:2px; }
.fondo-ticker { font-size:10px; color:var(--text4); margin-bottom:10px; }
.fondo-row { display:flex; justify-content:space-between; align-items:flex-end; }
.fondo-price { font-size:17px; font-weight:800; color:#f5f5f5; }
.fondo-chg { font-size:11px; font-weight:700; padding:3px 8px; border-radius:100px; }
.chg-up { background:rgba(76,175,112,0.12); color:var(--green); }
.chg-dn { background:rgba(239,83,80,0.12); color:var(--red); }
.fondo-ytd { font-size:11px; color:var(--text4); margin-top:6px; }

/* LAYOUT */
.container { max-width:1100px; margin:0 auto; padding:5rem 5%; }
.section-label { font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:0.6rem; }
.section-title { font-size:clamp(1.8rem,3vw,2.4rem); color:#f5f5f5; letter-spacing:-0.5px; margin-bottom:0.4rem; }
.section-sub { font-size:0.95rem; color:var(--text3); }
.section-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:2.5rem; flex-wrap:wrap; gap:1rem; }
.divider { border:none; border-top:1px solid var(--border); margin:0; }
.link-more { font-size:13px; color:var(--text3); padding:7px 16px; border:1px solid var(--border); border-radius:100px; transition:all 0.2s; }
.link-more:hover { color:var(--gold); border-color:rgba(201,168,76,0.3); }

/* BLOG */
.blog-featured { display:grid; grid-template-columns:1.65fr 1fr; gap:14px; }
.blog-stack { display:flex; flex-direction:column; gap:14px; }
.blog-card-lg { background:var(--bg2); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:border-color 0.2s; display:block; }
.blog-card-lg:hover { border-color:var(--border2); }
.blog-card-lg .thumb { height:240px; overflow:hidden; position:relative; }
.blog-card-lg .thumb img { width:100%; height:100%; object-fit:cover; }
.blog-card-sm { background:var(--bg2); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:border-color 0.2s; display:flex; }
.blog-card-sm:hover { border-color:var(--border2); }
.blog-card-sm .thumb { width:130px; flex-shrink:0; position:relative; }
.blog-card-sm .thumb img { width:100%; height:100%; object-fit:cover; }
.blog-body-lg { padding:1.5rem; }
.blog-body-sm { padding:1.1rem; flex:1; }
.blog-cat { font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold); font-weight:700; margin-bottom:0.35rem; }
.blog-card-lg h2 { font-size:1.3rem; color:#f0f0f0; line-height:1.35; margin-bottom:0.5rem; }
.blog-card-sm h2 { font-size:0.88rem; font-weight:600; color:#e0e0e0; line-height:1.4; margin-bottom:0.3rem; font-family:'DM Sans',system-ui,sans-serif; }
.blog-card-lg p { font-size:13px; color:var(--text3); margin-bottom:0.75rem; }
.blog-meta { font-size:11px; color:var(--text4); display:flex; gap:10px; }
.thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3rem; }
.t1 { background:linear-gradient(135deg,#0d2010,#1a4020); }
.t2 { background:linear-gradient(135deg,#0a0d1f,#141f3a); }
.t3 { background:linear-gradient(135deg,#1a0800,#2d1200); }
.t4 { background:linear-gradient(135deg,#080d14,#0f1c2e); }
.t5 { background:linear-gradient(135deg,#0d1408,#1c2e10); }

/* BLOG GRID */
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:20px; margin-top:2rem; }
.blog-card-full { background:var(--bg2); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:all 0.2s; display:flex; flex-direction:column; }
.blog-card-full:hover { border-color:var(--border2); transform:translateY(-2px); }
.blog-card-full .thumb { height:180px; }
.blog-card-full .thumb img { width:100%; height:100%; object-fit:cover; }
.blog-card-full .body { padding:1.4rem; flex:1; display:flex; flex-direction:column; }
.blog-card-full h2 { font-size:1.05rem; color:#f0f0f0; line-height:1.4; margin-bottom:0.5rem; flex:1; font-family:'Playfair Display',serif; }
.blog-card-full p { font-size:12px; color:var(--text3); margin-bottom:0.75rem; }

/* SINGLE POST */
.single-hero { padding:4rem 5% 3rem; background:radial-gradient(ellipse at 50% 0%, #161200 0%, var(--bg) 70%); }
.single-hero .blog-cat { margin-bottom:1rem; }
.single-hero h1 { font-size:clamp(1.8rem,4vw,3rem); color:#f5f5f5; letter-spacing:-1px; line-height:1.2; margin-bottom:1.5rem; }
.single-thumb { width:100%; max-width:860px; height:380px; margin:0 auto 3rem; border-radius:16px; overflow:hidden; }
.single-thumb img { width:100%; height:100%; object-fit:cover; }
.single-content { max-width:720px; margin:0 auto; }
.single-content h2 { font-size:1.5rem; color:#f0f0f0; margin:2.5rem 0 1rem; }
.single-content h3 { font-size:1.15rem; color:#f0f0f0; margin:2rem 0 0.75rem; }
.single-content p { font-size:15px; color:#aaa; line-height:1.85; margin-bottom:1.2rem; }
.single-content ul, .single-content ol { padding-left:1.5rem; margin-bottom:1.2rem; }
.single-content li { font-size:15px; color:#aaa; line-height:1.85; margin-bottom:0.5rem; }
.single-content strong { color:var(--text); }
.single-content a { color:var(--gold); }
.callout { background:var(--bg2); border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:0 8px 8px 0; padding:1.25rem 1.5rem; margin:2rem 0; }
.callout p { font-size:14px; color:var(--text2); margin:0; }

/* CURSOS */
.courses-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.course-card { background:var(--bg2); border:1px solid var(--border); border-radius:14px; padding:1.5rem; position:relative; transition:all 0.2s; display:flex; flex-direction:column; }
.course-card:hover { border-color:var(--border2); transform:translateY(-2px); }
.course-card.featured { border-color:rgba(201,168,76,0.25); }
.top-badge { position:absolute; top:-1px; left:1.5rem; background:var(--gold); color:var(--bg); font-size:10px; font-weight:800; letter-spacing:1px; text-transform:uppercase; padding:4px 10px; border-radius:0 0 6px 6px; }
.course-platform { font-size:10px; color:var(--text4); font-weight:600; letter-spacing:1px; text-transform:uppercase; margin-bottom:0.5rem; margin-top:0.2rem; }
.course-card h3 { font-size:1rem; font-weight:700; color:#e8e8e8; margin-bottom:0.4rem; line-height:1.4; font-family:'DM Sans',system-ui,sans-serif; }
.course-tag { display:inline-block; font-size:10px; background:var(--bg3); color:var(--text3); padding:3px 10px; border-radius:100px; margin-bottom:0.75rem; }
.score-row { display:flex; align-items:center; gap:10px; margin:6px 0 1rem; }
.score-num { font-size:1.5rem; font-weight:800; color:#f5f5f5; }
.score-bar-wrap { flex:1; height:3px; background:var(--bg3); border-radius:100px; overflow:hidden; }
.score-bar { height:100%; background:linear-gradient(90deg,var(--gold),var(--gold-light)); border-radius:100px; }
.course-desc { font-size:13px; color:var(--text3); margin-bottom:1.25rem; flex:1; line-height:1.65; }
.course-footer { display:flex; justify-content:space-between; align-items:center; }
.course-price { font-size:1.15rem; font-weight:800; color:var(--gold); }
.course-price small { font-size:10px; color:var(--text4); font-weight:400; display:block; }
.btn-sm { background:transparent; border:1px solid var(--border2); color:var(--text2); font-size:12px; font-weight:600; padding:8px 16px; border-radius:7px; transition:all 0.2s; font-family:inherit; cursor:pointer; }
.btn-sm:hover { border-color:rgba(201,168,76,0.4); color:var(--gold); }
.aff-note { font-size:10px; color:var(--text4); margin-top:10px; font-style:italic; }

/* TABLE */
.table-wrap { overflow-x:auto; margin-top:2rem; }
table { width:100%; border-collapse:collapse; font-size:13px; }
thead tr { border-bottom:1px solid var(--border2); }
th { text-align:left; padding:12px 16px; color:var(--text3); font-weight:600; font-size:10px; letter-spacing:1px; text-transform:uppercase; }
tbody tr { border-bottom:1px solid var(--border); transition:background 0.12s; }
tbody tr:hover { background:var(--bg2); }
td { padding:14px 16px; color:var(--text2); vertical-align:middle; }
td:first-child { color:var(--text); font-weight:600; }
.td-score { color:var(--gold); font-weight:800; }
.td-pill { display:inline-block; background:var(--bg3); padding:3px 10px; border-radius:100px; font-size:11px; }
.td-yes { color:var(--green); }
.td-no { color:var(--border2); }

/* FOOTER */
footer { border-top:1px solid var(--border); padding:3rem 5% 2rem; margin-top:6rem; }
.footer-inner { max-width:1100px; margin:0 auto; }
.footer-top { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-logo { font-family:'Playfair Display',serif; font-size:20px; font-weight:800; color:var(--text); display:block; margin-bottom:0.75rem; }
.footer-logo span { color:var(--gold); }
.footer-brand p { font-size:13px; color:var(--text4); line-height:1.7; max-width:220px; }
.footer-col h5 { font-size:12px; font-weight:700; color:var(--text2); letter-spacing:1.5px; text-transform:uppercase; margin-bottom:1rem; }
.footer-col a { display:block; font-size:13px; color:var(--text4); margin-bottom:8px; transition:color 0.2s; }
.footer-col a:hover { color:var(--text2); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:2rem; border-top:1px solid var(--border); flex-wrap:wrap; gap:1rem; }
.footer-copy { font-size:12px; color:var(--text4); }
.footer-legal { display:flex; gap:20px; }
.footer-legal a { font-size:12px; color:var(--text4); transition:color 0.2s; }
.footer-legal a:hover { color:var(--text2); }

/* ABOUT */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; margin-top:2rem; }
.about-text h3 { font-size:1.4rem; color:#f5f5f5; margin-bottom:0.75rem; }
.about-text p { font-size:14px; color:var(--text3); margin-bottom:0.9rem; line-height:1.8; }
.pillars { display:flex; flex-direction:column; gap:10px; }
.pillar { display:flex; gap:12px; background:var(--bg3); border:1px solid var(--border); border-radius:10px; padding:1rem; }
.pillar-icon { font-size:1.1rem; flex-shrink:0; margin-top:2px; }
.pillar strong { font-size:13px; color:var(--gold); display:block; margin-bottom:2px; }
.pillar span { font-size:12px; color:var(--text3); }

/* PAGE TITLES */
.page-hero { padding:4rem 5% 2rem; background:radial-gradient(ellipse at 50% 0%, #161200 0%, var(--bg) 60%); }
.page-hero .section-title { font-size:2.5rem; }

@media(max-width:768px) {
  .blog-featured { grid-template-columns:1fr; }
  .blog-card-sm { flex-direction:column; }
  .blog-card-sm .thumb { width:100%; height:140px; }
  .about-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr 1fr; }
  .main-nav { display:none; }
  .single-thumb { height:220px; }
}
