/*
Theme Name: EnGuillem V2
Theme URI: https://enguillem.es
Author: Guillem Mateu
Description: Tema oscuro minimalista — Linux, DevOps, IA
Version: 2.0
Text Domain: enguillem-v2
*/

/* =========================================================
   VARIABLES & RESET
   ========================================================= */

:root {
    --bg-base:     #0d1117;
    --bg-card:     #161b22;
    --bg-elevated: #21262d;
    --border:      #30363d;

    --text:        #e6edf3;
    --text-muted:  #8b949e;
    --text-faint:  #484f58;

    --accent:      #ff5b00;
    --accent-dim:  rgba(255, 91, 0, 0.08);
    --accent-glow: rgba(255, 91, 0, 0.25);
    --green:       #3fb950;
    --green-dim:   rgba(63, 185, 80, 0.15);
    --link:        #58a6ff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius:    6px;
    --radius-lg: 10px;
    --container: 1200px;
    --header-h:  64px;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg-base); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* =========================================================
   LAYOUT
   ========================================================= */

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 700; line-height: 1.3; color: var(--text); }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.section-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-title span { color: var(--accent); }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 38px; width: auto; transition: opacity var(--transition); }
.site-logo:hover img { opacity: 0.8; }

.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover, .site-nav a.current-menu-item > a { color: var(--text); background: var(--bg-elevated); }

.nav-social {
    display: flex; align-items: center; gap: 6px;
    margin-left: 12px; padding-left: 12px;
    border-left: 1px solid var(--border);
}

.nav-social a {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: var(--radius);
    color: var(--text-muted); padding: 0;
    transition: color var(--transition), background var(--transition);
}

.nav-social a:hover { color: var(--text); background: var(--bg-elevated); }
.nav-social svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* =========================================================
   HERO — TERMINAL STYLE
   ========================================================= */

.site-hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse 70% 40% at 50% -5%, rgba(255,91,0,0.05), transparent);
}

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.hero-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.terminal-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red   { background: #ff5f57; }
.terminal-dot.amber { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title { font-size: 0.72rem; color: var(--text-faint); margin-left: 6px; }

.terminal-body { padding: 22px 24px 26px; line-height: 2; }
.terminal-line { display: flex; gap: 10px; }
.terminal-prompt { color: var(--green); user-select: none; }
.terminal-cmd { color: var(--text); }
.terminal-output { color: var(--text-muted); padding-left: 20px; }
.terminal-output.accent { color: var(--accent); }
.terminal-output.green  { color: var(--green); }
.terminal-cursor { display: inline-block; width: 8px; height: 1em; background: var(--accent); vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   BOTONES
   ========================================================= */

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; white-space: nowrap; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 18px var(--accent-glow); }
.btn-primary:hover { background: #e54d00; color: #fff; transform: translateY(-1px); box-shadow: 0 0 26px var(--accent-glow); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-elevated); color: var(--text); }

.btn-green { background: var(--green); color: #0d1117; font-weight: 700; box-shadow: 0 0 18px var(--green-dim); }
.btn-green:hover { background: #2da843; color: #0d1117; transform: translateY(-1px); }

/* =========================================================
   CARDS
   ========================================================= */

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-dim); }

.card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }

.card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #161b22 0%, #0d1117 100%); font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; color: var(--accent); text-align: center; padding: 16px; border-bottom: 1px solid var(--border); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }

.card-tag { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }

.card-title { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.72rem; color: var(--text-faint); font-family: var(--font-mono); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.card-views { margin-left: auto; color: var(--text-faint); }

/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin: 56px 0;
}
.cta-banner-text h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cta-banner-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   POST LIST (home.php)
   ========================================================= */

.post-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.post-row:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.post-row-thumb { overflow: hidden; background: var(--bg-elevated); }
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-row:hover .post-row-thumb img { transform: scale(1.04); }
.post-row-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.post-row-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.post-row-title { font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.post-row-title a { color: inherit; }
.post-row-title a:hover { color: var(--accent); }
.post-row-excerpt { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); display: flex; gap: 14px; margin-top: 4px; }

/* =========================================================
   SINGLE POST
   ========================================================= */

.single-header { padding: 52px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.single-tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.single-title { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.single-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.single-thumb { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 44px; }

.entry-content { max-width: 760px; font-size: 1.02rem; line-height: 1.85; }
.entry-content h2 { font-size: 1.4rem; margin: 2.4em 0 0.7em; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.entry-content h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.entry-content p  { margin-bottom: 1.3em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.3em 1.4em; list-style: initial; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a  { color: var(--link); border-bottom: 1px solid rgba(88,166,255,0.3); }
.entry-content a:hover { border-bottom-color: var(--link); color: var(--link); }
.copy-btn { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-faint); cursor: pointer; opacity: 0; transition: opacity var(--transition), background var(--transition), color var(--transition); }
.copy-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: var(--bg-base); color: var(--text); border-color: var(--text-faint); }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #0d1117; opacity: 1; }

.entry-content pre { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; margin: 1.5em 0; }
.entry-content code { font-family: var(--font-mono); font-size: 0.86em; background: var(--bg-elevated); color: var(--accent); padding: 2px 6px; border-radius: 4px; }
.entry-content pre code { background: none; color: var(--text); padding: 0; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 12px 18px; margin: 1.5em 0; background: var(--accent-dim); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-muted); font-style: italic; }
.entry-content img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--bg-elevated); color: var(--text); font-family: var(--font-mono); font-size: 0.8rem; }

/* =========================================================
   PAGE
   ========================================================= */

.page-header { padding: 52px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }

/* =========================================================
   TUTORIALES — SEARCH & FILTER
   ========================================================= */

.search-tutorials { display: flex; gap: 8px; margin-bottom: 24px; }
.search-tutorials input { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text); font-family: var(--font-mono); font-size: 0.86rem; outline: none; transition: border-color var(--transition); }
.search-tutorials input:focus { border-color: var(--accent); }
.search-tutorials input::placeholder { color: var(--text-faint); }
.search-tutorials button { background: var(--accent); color: #fff; border: none; border-radius: var(--radius); padding: 10px 18px; font-family: var(--font-mono); font-size: 0.86rem; cursor: pointer; transition: background var(--transition); }
.search-tutorials button:hover { background: #e54d00; }

.filter-bar { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { font-family: var(--font-mono); font-size: 0.76rem; padding: 6px 13px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); cursor: pointer; transition: all var(--transition); letter-spacing: 0.03em; }
.filter-btn:hover, .filter-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination { display: flex; gap: 5px; justify-content: center; padding: 44px 0 20px; flex-wrap: wrap; }
.pagination a, .pagination span { font-family: var(--font-mono); font-size: 0.8rem; padding: 7px 13px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); transition: all var(--transition); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =========================================================
   ADMIN HELPERS
   ========================================================= */

.admin-views { font-family: var(--font-mono); font-size: 0.76rem; background: var(--bg-elevated); border: 1px solid var(--border); border-left: 3px solid var(--accent); color: var(--text-muted); padding: 7px 14px; border-radius: var(--radius); display: inline-block; margin-bottom: 20px; }
.admin-views strong { color: var(--accent); }

/* =========================================================
   SINGLE — HERO
   ========================================================= */

.single-hero {
    position: relative;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.single-hero-img {
    position: absolute;
    inset: 0;
}

.single-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,17,23,0.98) 0%, rgba(13,17,23,0.5) 60%, transparent 100%);
}

.single-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 44px;
}

/* =========================================================
   SINGLE — LAYOUT 2 COLUMNAS
   ========================================================= */

.single-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
    align-items: start;
}

/* Contenido principal */
.single-content { min-width: 0; }

/* Nav prev/next */
.single-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.single-nav-prev, .single-nav-next { flex: 1; }
.single-nav-next { text-align: right; }

.single-nav-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    display: block;
    margin-bottom: 4px;
}

.single-nav a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.single-nav a:hover { color: var(--accent); }

/* =========================================================
   SINGLE — SIDEBAR
   ========================================================= */

.single-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-widget-title {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

/* TOC */
#toc-nav { padding: 10px 0; }
#toc-nav a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 6px 18px;
    border-left: 2px solid transparent;
    transition: all var(--transition);
    line-height: 1.4;
}
#toc-nav a:hover, #toc-nav a.toc-active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-dim);
}
#toc-nav a.toc-h3 { padding-left: 32px; font-size: 0.78rem; }

/* Related list */
.related-list { padding: 8px 0; }

.related-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: var(--bg-elevated); }

.related-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-elevated);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }

.related-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-title:hover { color: var(--accent); }

/* Share buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.share-btn {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
}
.share-btn:last-child { border-bottom: none; }
.share-x  { color: var(--text-muted); }
.share-li { color: #58a6ff; }
.share-wa { color: var(--green); }
.share-btn:hover { background: var(--bg-elevated); color: var(--text); }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 36px 0; margin-top: 72px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-copy { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.footer-links a:hover { color: var(--text-muted); }

/* =========================================================
   WP ADMIN BAR FIX
   ========================================================= */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-terminal { display: none; }
    .single-wrap { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }
    #toc-widget { display: none !important; }
}

@media (max-width: 768px) {
    .site-header { position: sticky; }
    .site-nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 2px; z-index: 99; }
    .site-nav.open { display: flex; }
    .site-nav a { font-size: 0.88rem; padding: 10px 14px; width: 100%; }
    .nav-social { margin-left: 0; padding-left: 14px; margin-top: 8px; padding-top: 8px; border-left: none; border-top: 1px solid var(--border); width: 100%; }
    .nav-toggle { display: flex; }
    .post-row { grid-template-columns: 1fr; }
    .post-row-thumb { height: 160px; }
    .cta-banner { flex-direction: column; }
    .section { padding: 48px 0; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* =========================================================
   UTILITY (reemplaza Bootstrap helpers usados en la landing)
   ========================================================= */

.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.mt-4         { margin-top: 1.5rem; }
.d-inline-block { display: inline-block; }

/* =========================================================
   LANDING CURSO IA
   ========================================================= */

.lc-admin-bar { background: var(--bg-elevated); border-bottom: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; font-family: var(--font-mono); font-size: 0.76rem; }
.lc-wrap { background: var(--bg-base); }
.lc-section { padding: 72px 0; }
.lc-bg-white { background: #f6f8fa; color: #24292f; }
.lc-bg-white h2, .lc-bg-white p, .lc-bg-white li { color: #24292f; }
.lc-bg-light { background: #edf0f3; color: #24292f; }
.lc-bg-light h2, .lc-bg-light p, .lc-bg-light li { color: #24292f; }
.lc-bg-dark  { background: #080c10; }
.lc-bg-navy  { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lc-hero { background: linear-gradient(135deg, #080c10 0%, #111826 100%); padding: 80px 0; border-bottom: 1px solid var(--border); }
.lc-hero-title { font-family: var(--font-sans); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--text); margin-bottom: 24px; text-align: center; }
.lc-hero-title span { color: var(--accent); }
.lc-hero-bullets { list-style: none; padding: 0; max-width: 660px; margin: 0 auto 32px; font-size: 1rem; line-height: 2.2; color: var(--text-muted); text-align: center; }
.lc-btn-cta { display: inline-block; background: var(--green); color: #0d1117 !important; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800; padding: 15px 34px; border-radius: var(--radius); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; transition: all var(--transition); box-shadow: 0 0 22px var(--green-dim); }
.lc-btn-cta:hover { background: #2da843; transform: translateY(-2px); color: #0d1117 !important; }
.lc-btn-cta-outline { display: inline-block; background: transparent; color: #24292f !important; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; padding: 13px 30px; border-radius: var(--radius); border: 2px solid #24292f; text-decoration: none; text-transform: uppercase; transition: all var(--transition); }
.lc-btn-cta-outline:hover { background: #24292f; color: #fff !important; }
.lc-lead { font-size: 1.05rem; max-width: 700px; margin: 0 auto 18px; }
.lc-video-wrap { position: relative; max-width: 780px; margin: 26px auto 0; padding-bottom: 56.25%; height: 0; }
.lc-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.lc-checklist { list-style: none; padding: 0; max-width: 660px; margin: 18px auto; font-size: 0.97rem; line-height: 2.2; }
.lc-checklist-center { text-align: center; }
.lc-checklist-light { color: var(--text-muted); }
.lc-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-top: 26px; }
.lc-module { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 16px; border-radius: var(--radius); }
.lc-module-icon { font-size: 1.3rem; flex-shrink: 0; }
.lc-module h4 { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; margin: 0 0 4px; text-transform: none; display: block; overflow: visible; -webkit-line-clamp: unset; }
.lc-module h4 small { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.lc-module p { font-size: 0.82rem; margin: 0; color: var(--text-muted); }
.lc-wrap h2 { font-family: var(--font-sans); font-size: 1.7rem; font-weight: 800; margin-bottom: 18px; }
