/* ============================================================
   BacaSoftware — Design System v2 (Modern)
   ============================================================ */

/* --- Variables --- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #60a5fa;
    --color-accent: #06b6d4;
    --color-accent-dark: #0891b2;
    --color-purple: #7c3aed;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-gray: #f8fafc;
    --color-bg-dark: #040d1a;
    --color-border: #e2e8f0;
    --color-border-dark: #cbd5e1;
    --color-success: #059669;
    --color-error: #dc2626;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, monospace;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 20px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    --shadow-glow: 0 0 0 3px rgba(37,99,235,.18);

    --max-width: 1200px;
    --max-width-narrow: 760px;

    --header-height: 68px;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #040d1a 0%, #0f172a 40%, #1e1b4b 80%, #0c1445 100%);
    --gradient-card: linear-gradient(135deg, rgba(37,99,235,.05) 0%, rgba(6,182,212,.05) 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-feature-settings: 'kern', 'liga', 'calt'; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 750;
    color: var(--color-text);
    letter-spacing: -.02em;
    margin-bottom: .5em;
}
h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.1rem; letter-spacing: -.01em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section--gray {
    background: var(--color-bg-gray);
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 1.75rem;
}

.grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .7rem 1.5rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 650;
    font-family: var(--font-sans);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    letter-spacing: -.01em;
}

.btn--primary {
    background: var(--gradient-primary);
    background-size: 150% 150%;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn--primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    box-shadow: 0 6px 20px rgba(37,99,235,.45);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* btn--secondary on dark backgrounds (hero) */
.hero .btn--secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.3);
    backdrop-filter: blur(8px);
}
.hero .btn--secondary:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

.btn--small {
    padding: .4rem 1rem;
    font-size: .82rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    padding: .6rem 1.3rem;
    border-radius: var(--radius);
    font-weight: 650;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(37,99,235,.3);
}
.btn-primary:hover {
    box-shadow: 0 5px 16px rgba(37,99,235,.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-muted);
    padding: .6rem 1.3rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1.5px solid var(--color-border-dark);
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
}
.btn-secondary:hover {
    background: var(--color-bg-gray);
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.btn-link {
    color: var(--color-primary-light);
    font-size: .85rem;
    text-decoration: underline;
    padding: .55rem .5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,.7);
    box-shadow: 0 1px 20px rgba(0,0,0,.06);
}

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

.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.03em;
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: .15rem;
}

#main-nav a {
    display: block;
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    font-weight: 550;
    font-size: .9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all .18s;
    position: relative;
}

#main-nav a:hover {
    color: var(--color-text);
    background: rgba(37,99,235,.06);
    text-decoration: none;
}

#main-nav a[aria-current="page"] {
    color: var(--color-primary);
    background: rgba(37,99,235,.08);
    font-weight: 650;
}
#main-nav a.nav-cta {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    padding: .35rem 1rem;
}
#main-nav a.nav-cta:hover { background: var(--color-primary-dark); color: #fff; }
#main-nav a.nav-cta[aria-current="page"] { background: var(--color-primary-dark); color: #fff; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 7px;
    background: none;
    border: 1.5px solid var(--color-border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: border-color .2s;
}
.nav-toggle:hover { border-color: var(--color-border-dark); }
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-bg-dark);
    color: #94a3b8;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), rgba(6,182,212,.4), transparent);
}

.site-footer .container {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: .85rem;
    letter-spacing: -.03em;
}

.footer-tagline {
    font-size: .82rem;
    line-height: 1.6;
    color: #64748b;
    margin: .5rem 0 1rem;
}

.footer-nav__subtitle { margin-top: 1.25rem !important; }
.footer-nav__group { margin-top: 1.25rem; }

.footer-link-more {
    color: #3b82f6 !important;
    font-size: .82rem !important;
}
.footer-link-more:hover { color: #60a5fa !important; }

.site-footer nav h3 {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #475569;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer nav ul {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.site-footer nav a {
    color: #64748b;
    font-size: .875rem;
    text-decoration: none;
    transition: color .15s;
    display: inline-flex;
    align-items: center;
}
.site-footer nav a:hover { color: #e2e8f0; }

.footer-bottom {
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: .78rem;
    color: #334155;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.footer-social__link {
    display: flex;
    align-items: center;
    color: #475569;
    transition: color .15s;
}
.footer-social__link:hover { color: #94a3b8; }

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(96,165,250,.18);
    color: #93c5fd;
    border: 1px solid rgba(96,165,250,.45);
    padding: .3rem .85rem;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(37,99,235,.25) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6,182,212,.4), transparent);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   HOME v2.0
   ============================================================ */

/* Hero */
.home-hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(37,99,235,.25) 0%, transparent 65%);
    pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero__badge {
    display: inline-block;
    background: rgba(37,99,235,.2);
    border: 1px solid rgba(96,165,250,.3);
    color: #93c5fd;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.home-hero__title {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.home-hero__title span {
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.home-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.home-hero__trust {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: #64748b;
    font-size: .85rem;
}
.home-hero__trust span { display: flex; align-items: center; gap: .3rem; }

/* Secciones compartidas */
.home-section__title { font-size: 1.6rem; margin-bottom: .5rem; color: var(--color-text); }
.home-section__sub { color: var(--color-text-muted); margin-bottom: 2.5rem; }
.home-section__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.75rem; flex-wrap: wrap; gap: .5rem; }
.home-section__link { font-size: .9rem; color: var(--color-primary); font-weight: 600; }

/* Propuesta de valor */
.home-value { padding: 4rem 0; background: var(--color-bg-gray); }
.home-value__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.home-value__item { text-align: center; padding: 2rem 1.5rem; }
.home-value__icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.home-value__item h2 { font-size: 1.1rem; color: var(--color-text); margin-bottom: .75rem; }
.home-value__item p { color: var(--color-text-muted); font-size: .95rem; line-height: 1.7; }
@media (max-width: 768px) { .home-value__grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Paquetes teaser */
.home-packages { padding: 4rem 0; }
.home-packages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.home-pkg {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}
.home-pkg:hover { box-shadow: 0 4px 16px rgba(37,99,235,.1); border-color: var(--color-primary-light); }
.home-pkg--featured {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    box-shadow: 0 0 0 2px var(--color-primary);
}
.home-pkg__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.home-pkg__name { font-size: .85rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.home-pkg__price { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: .5rem; line-height: 1; }
.home-pkg__desc { font-size: .8rem; color: var(--color-text-muted); line-height: 1.5; }
.home-packages__cta { text-align: center; }
@media (max-width: 900px) { .home-packages__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-packages__grid { grid-template-columns: 1fr; } }

/* Portfolio preview */
.home-portfolio { padding: 4rem 0; background: var(--color-bg-gray); }
.home-portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home-portfolio__card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s;
}
.home-portfolio__card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.home-portfolio__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.home-portfolio__body { padding: 1rem 1.25rem; }
.home-portfolio__sector { font-size: .75rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; }
.home-portfolio__body h3 { font-size: 1rem; margin: .3rem 0; color: var(--color-text); }
.home-portfolio__days { font-size: .8rem; color: var(--color-text-muted); }
@media (max-width: 768px) { .home-portfolio__grid { grid-template-columns: 1fr; } }

/* Testimonio mini */
.home-testimonial { padding: 3rem 0; background: var(--color-bg-dark); }
.home-testimonial__quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    font-style: italic;
    color: #94a3b8;
    line-height: 1.8;
    border: none;
    padding: 0;
}
.home-testimonial__quote footer { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; color: #475569; }

/* Blog compacto */
.home-blog { padding: 4rem 0; }
.home-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home-blog__card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .2s;
}
.home-blog__card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.home-blog__img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.home-blog__cat { font-size: .7rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: .25rem; }
.home-blog__body h3 { font-size: .9rem; margin: 0 0 .25rem; line-height: 1.4; }
.home-blog__body h3 a { color: var(--color-text); }
.home-blog__body h3 a:hover { color: var(--color-primary); }
.home-blog__body time { font-size: .75rem; color: var(--color-text-muted); }
@media (max-width: 900px) { .home-blog__grid { grid-template-columns: 1fr; } }

/* Cursos terciario */
.home-courses { padding: 4rem 0; background: var(--color-bg-gray); }
.home-courses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .home-courses__grid { grid-template-columns: 1fr; } }

/* CTA final home */
.home-cta-final {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
    text-align: center;
    color: #fff;
}
.home-cta-final h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.home-cta-final p { color: #94a3b8; margin-bottom: 2.5rem; font-size: 1.05rem; }
.home-cta-final__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HEADER (blog index, courses, category)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #1e3a8a 100%);
    color: #fff;
    padding: 3.5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.2) 0%, transparent 60%);
}

.page-header .container { position: relative; }

.page-header h1 {
    color: #fff;
    margin-bottom: .5rem;
}

.page-header p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* ============================================================
   CARDS (home featured section, courses index, category)
   ============================================================ */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    position: relative;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(37,99,235,.15);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .35s;
}
.card:hover .card__image { transform: scale(1.03); }

.card__body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}

.card__category {
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-primary);
}

.card__title {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -.015em;
}
.card__title a { color: var(--color-text); text-decoration: none; }
.card__title a:hover { color: var(--color-primary); }

.card__excerpt {
    font-size: .875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.card__date {
    font-size: .78rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.section__more {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================================
   BLOG INDEX — post-card list view
   ============================================================ */
.blog-layout { max-width: 100%; }

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.post-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    position: relative;
}
.post-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity .25s;
    border-radius: 0;
}
.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.18);
}
.post-card:hover::after { opacity: 1; }

.post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 50%, #0f2744 100%);
    position: relative;
    overflow: hidden;
}
.post-card__placeholder::after {
    content: '</>';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,.12);
    letter-spacing: .1em;
    font-family: monospace;
}

.post-card__image {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.post-card:hover .post-card__image { transform: scale(1.04); }

.post-card__body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.post-card__category {
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-primary);
    text-decoration: none;
}
.post-card__category:hover { text-decoration: underline; }

.post-card__title {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card__title a:hover { color: var(--color-primary); }

.post-card__excerpt {
    font-size: .875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--color-text-light);
    margin-top: .15rem;
}
.post-card__link {
    font-weight: 650;
    font-size: .82rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.post-card__link::after { content: '→'; transition: transform .2s; }
.post-card__link:hover { text-decoration: none; color: var(--color-primary-dark); }
.post-card__link:hover::after { transform: translateX(3px); }

/* KnpPaginator — div.pagination > span.{current|page|first|previous|next|last} */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.pagination span {
    display: inline-flex;
}

.pagination span a,
.pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .7rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    font-size: .875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all .18s;
    font-weight: 550;
    background: var(--color-bg);
}

.pagination span a:hover {
    background: rgba(37,99,235,.06);
    border-color: rgba(37,99,235,.3);
    color: var(--color-primary);
}

.pagination span.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(37,99,235,.35);
}

.pagination span.first a,
.pagination span.last a,
.pagination span.previous a,
.pagination span.next a {
    font-size: .8rem;
    letter-spacing: 0;
}

.pagination span.first a:hover,
.pagination span.last a:hover,
.pagination span.previous a:hover,
.pagination span.next a:hover {
    color: var(--color-primary);
    background: rgba(37,99,235,.06);
    border-color: rgba(37,99,235,.3);
}

/* ============================================================
   BLOG POST SINGLE
   ============================================================ */
.post-single {
    padding: 3.5rem 0 6rem;
}

.post-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.post-category {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-decoration: none;
    background: rgba(37,99,235,.08);
    padding: .3rem .8rem;
    border-radius: 100px;
    transition: background .18s;
}
.post-category:hover {
    background: rgba(37,99,235,.14);
    text-decoration: none;
}

.post-header h1 {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

.post-meta {
    margin-top: 1rem;
    font-size: .82rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.post-meta::before { content: '·'; display: none; }

.post-featured-image {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Post body typography */
.post-content {
    font-size: 1.07rem;
    line-height: 1.85;
    color: #1e293b;
}
.post-content > * + * { margin-top: 1.5em; }
.post-content h2 {
    font-size: 1.65rem;
    margin-top: 3rem;
    margin-bottom: .85rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--color-border);
    letter-spacing: -.025em;
}
.post-content h3 {
    font-size: 1.25rem;
    margin-top: 2.25rem;
    margin-bottom: .6rem;
    letter-spacing: -.02em;
}
.post-content h4 {
    font-size: 1.08rem;
    margin-top: 1.75rem;
    margin-bottom: .4rem;
}
.post-content p { margin-bottom: 0; }
.post-content ul, .post-content ol {
    margin: 0 0 0 1.5rem;
    padding: 0;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .45rem; }
.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(37,99,235,.35);
    text-underline-offset: 3px;
    transition: text-decoration-color .18s;
}
.post-content a:hover {
    color: var(--color-primary-dark);
    text-decoration-color: var(--color-primary-dark);
}
.post-content blockquote {
    border-left: 3px solid var(--color-accent);
    margin: 0;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(6,182,212,.05) 0%, rgba(37,99,235,.04) 100%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    color: #334155;
    font-style: italic;
    font-size: 1.05rem;
}
.post-content blockquote p { margin: 0; }
.post-content code {
    font-family: var(--font-mono);
    font-size: .85em;
    background: #f1f5f9;
    padding: .18em .5em;
    border-radius: var(--radius-sm);
    color: #c026d3;
    border: 1px solid #e2e8f0;
}
.post-content pre {
    background: #0d1117;
    color: #e2e8f0;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 0;
    font-size: .875rem;
    line-height: 1.7;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--shadow-lg);
}
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    border: none;
    font-size: inherit;
}
.post-content img {
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 100%;
    box-shadow: var(--shadow);
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: .9rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.post-content th, .post-content td {
    padding: .7rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.post-content th {
    background: var(--color-bg-gray);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: #f8fafc; }

/* Post tags */
.post-tags {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .875rem;
    color: var(--color-text-muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    background: rgba(37,99,235,.07);
    color: var(--color-primary);
    border: 1px solid rgba(37,99,235,.15);
    padding: .25rem .75rem;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    transition: background .15s, border-color .15s;
}
.tag:hover {
    background: rgba(37,99,235,.12);
    border-color: rgba(37,99,235,.25);
}

/* ============================================================
   COURSE SINGLE
   ============================================================ */
.course-single {
    padding: 3.5rem 0 6rem;
}

.course-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.course-header h1 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

.course-header__description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.course-featured-image {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.course-featured-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.course-content {
    font-size: 1.07rem;
    line-height: 1.85;
    color: #1e293b;
}
.course-content > * + * { margin-top: 1.5em; }
.course-content h2 { font-size: 1.65rem; margin-top: 3rem; margin-bottom: .85rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-border); letter-spacing: -.025em; }
.course-content h3 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.course-content p { margin-bottom: 0; }
.course-content ul, .course-content ol { margin: 0 0 0 1.5rem; }
.course-content ul { list-style: disc; }
.course-content ol { list-style: decimal; }
.course-content li { margin-bottom: .45rem; }
.course-content a { color: var(--color-primary); text-decoration: underline; text-decoration-color: rgba(37,99,235,.35); text-underline-offset: 3px; }
.course-content a:hover { color: var(--color-primary-dark); text-decoration-color: var(--color-primary-dark); }
.course-content code { font-family: var(--font-mono); font-size: .85em; background: #f1f5f9; padding: .18em .5em; border-radius: var(--radius-sm); color: #c026d3; border: 1px solid #e2e8f0; }
.course-content pre { background: #0d1117; color: #e2e8f0; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); overflow-x: auto; margin: 0; font-size: .875rem; line-height: 1.7; border: 1px solid rgba(255,255,255,.06); }
.course-content pre code { background: none; color: inherit; padding: 0; border: none; }
.course-content img { border-radius: var(--radius-lg); margin: 0 auto; box-shadow: var(--shadow); }
.course-content blockquote { border-left: 3px solid var(--color-accent); margin: 0; padding: 1.25rem 1.75rem; background: linear-gradient(135deg, rgba(6,182,212,.05) 0%, rgba(37,99,235,.04) 100%); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: #334155; font-style: italic; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
/* Contacto v2 */
.contact-v2 {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-v2__sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-sidebar__box {
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-sidebar__box h2 { font-size: 1rem; margin-bottom: 1.25rem; color: var(--color-text); }
.contact-sidebar__box h3 { font-size: .9rem; margin-bottom: 1rem; color: var(--color-text); }
.contact-sidebar__box--light { background: #fff; }
.contact-sidebar__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-sidebar__list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-sidebar__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.contact-sidebar__list strong { display: block; font-size: .9rem; color: var(--color-text); }
.contact-sidebar__list span { font-size: .8rem; color: var(--color-text-muted); }
.contact-sidebar__cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-sidebar__cta-label { color: #93c5fd; font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
.contact-sidebar__cta-sub { color: #64748b; font-size: .75rem; margin-top: .75rem; text-align: center; }
.contact-sidebar__services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.contact-sidebar__services li a { font-size: .9rem; color: var(--color-text-muted); display: flex; gap: .5rem; align-items: center; }
.contact-sidebar__services li a:hover { color: var(--color-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group select {
    width: 100%;
    padding: .75rem 1.1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color .2s;
    outline: none;
    cursor: pointer;
}
.form-group select:focus { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
@media (max-width: 900px) { .contact-v2 { grid-template-columns: 1fr; } .contact-v2__sidebar { order: 2; } .contact-v2__form { order: 1; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-layout {
    max-width: 620px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--color-text);
    letter-spacing: -.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: .75rem 1.1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.form-group textarea { resize: vertical; min-height: 148px; }

.form-group--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-weight: 400;
    font-size: .875rem;
    cursor: pointer;
    line-height: 1.55;
}
.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}
.alert--success {
    background: #f0fdf4;
    color: #14532d;
    border: 1.5px solid #86efac;
}
.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}

/* ============================================================
   ADSENSE BLOCKS
   ============================================================ */
.adsense-block {
    margin: 2.5rem 0;
    text-align: center;
    min-height: 90px;
    background: var(--color-bg-gray);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-border);
}
.adsense-top { margin-top: 2rem; margin-bottom: 2.5rem; }
.adsense-bottom { margin-top: 2.5rem; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 999;
    background: rgba(4,13,26,.95);
    color: #e2e8f0;
    box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner__content p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.65;
    flex: 1;
    min-width: 240px;
    color: #94a3b8;
}

.cookie-banner__content a { color: #60a5fa; text-decoration: underline; }

.cookie-banner__actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .post-card {
        grid-template-columns: 200px 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 640px) {
    :root { --header-height: 58px; }

    .nav-toggle { display: flex; }

    #main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: .75rem 1.25rem 1.25rem;
    }
    #main-nav.is-open { display: block; }
    #main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    #main-nav a { padding: .7rem .85rem; font-size: .95rem; text-align: left; }
    #main-nav a.nav-cta { text-align: center; margin-top: .4rem; }

    .site-header { position: sticky; overflow: visible; }

    .hero { padding: 4rem 0 3.5rem; }
    .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

    .section { padding-top: 3rem; padding-bottom: 3rem; }

    .post-card {
        grid-template-columns: 1fr;
    }
    .post-card__image {
        min-height: 200px;
        max-height: 240px;
        width: 100%;
    }
    .post-card__body { padding: 1.25rem; }
    .post-card::after { display: none; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: 1; }
    .footer-grid > div:last-child { grid-column: 1; display: block; }

    .grid--3 { grid-template-columns: 1fr; }

    .cookie-banner {
        bottom: .75rem;
        left: .75rem;
        right: .75rem;
        width: calc(100% - 1.5rem);
        border-radius: var(--radius-lg);
        padding: 1rem 1.1rem;
    }
    .cookie-banner__content { flex-direction: column; gap: .9rem; }
    .cookie-banner__actions { width: 100%; justify-content: stretch; flex-direction: column; }
    .cookie-banner__actions .btn-primary,
    .cookie-banner__actions .btn-secondary,
    .cookie-banner__actions .btn-link { width: 100%; text-align: center; }

    .post-single, .course-single { padding: 2.5rem 0 4rem; }
    .contact-layout { max-width: 100%; }

    .about-cta { flex-direction: column; }
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,.04) 0%, transparent 65%);
}

.error-page__content {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
}

.error-page__code {
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
    letter-spacing: -.04em;
}

.error-page__content h1 {
    font-size: 1.75rem;
    margin-bottom: .85rem;
}

.error-page__content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SERVICIOS PAGE
   ============================================================ */
/* Bloque diferenciador servicios dev */
.services-differentiator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.services-differentiator__col {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.services-differentiator__col--highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-right: 1px solid var(--color-border);
}
.services-differentiator__icon { font-size: 2rem; }
.services-differentiator__col h2 { font-size: 1.1rem; color: var(--color-text); margin: 0; }
.services-differentiator__col p { color: var(--color-text-muted); font-size: .9rem; line-height: 1.6; margin: 0; }
.services-differentiator__note { font-size: .85rem !important; color: var(--color-text) !important; }
@media (max-width: 768px) { .services-differentiator { grid-template-columns: 1fr; } .services-differentiator__col--highlight { border-right: none; border-bottom: 1px solid var(--color-border); } }

.services-intro {
    max-width: 680px;
    margin: 0 auto 3.5rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(37,99,235,.2);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h2 {
    font-size: 1.1rem;
    margin-bottom: .65rem;
    border: none;
    padding: 0;
    letter-spacing: -.02em;
}

.service-card p {
    font-size: .875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.service-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-card li {
    font-size: .855rem;
    color: var(--color-text-muted);
    padding: .22rem 0 .22rem 1.2rem;
    position: relative;
}
.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: .8rem;
}

.services-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(37,99,235,.05) 0%, rgba(6,182,212,.05) 100%);
    border: 1.5px solid rgba(37,99,235,.15);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
}
.services-cta h2 { margin-bottom: .6rem; border: none; padding: 0; }
.services-cta p { color: var(--color-text-muted); margin-bottom: 1.75rem; }

/* ============================================================
   SOBRE MI PAGE
   ============================================================ */
.about-layout {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 1.45rem;
    margin-top: 2.75rem;
    margin-bottom: .85rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--color-border);
    letter-spacing: -.025em;
}
.about-content h2:first-child { margin-top: 0; }

.about-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1e293b;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 1.5rem;
}

.skill-badge {
    background: rgba(37,99,235,.07);
    color: var(--color-primary);
    border: 1.5px solid rgba(37,99,235,.18);
    padding: .35rem .9rem;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: -.01em;
    transition: background .15s, border-color .15s;
}
.skill-badge:hover {
    background: rgba(37,99,235,.13);
    border-color: rgba(37,99,235,.3);
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: .975rem;
    line-height: 1.85;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2.75rem;
    margin-bottom: .7rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--color-border);
    letter-spacing: -.02em;
}

.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 1.75rem;
    margin-bottom: .4rem;
}

.legal-content ul {
    margin: .75rem 0 1rem 1.5rem;
    list-style: disc;
}

.legal-content li { margin-bottom: .4rem; }

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-update {
    margin-top: 3.5rem;
    font-size: .82rem;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

/* Cookies table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .875rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.cookies-table th, .cookies-table td {
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
.cookies-table th {
    background: var(--color-bg-gray);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.cookies-table tr:last-child td { border-bottom: none; }
.cookies-table code {
    font-family: var(--font-mono);
    font-size: .82em;
    background: #f1f5f9;
    padding: .1em .4em;
    border-radius: 3px;
    border: 1px solid var(--color-border);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SERVICIOS WEB v2.0
   ============================================================ */

/* Hero */
.sw-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1e1b4b 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}
.sw-hero__badge {
    display: inline-block;
    background: rgba(96,165,250,.15);
    color: #93c5fd;
    border: 1px solid rgba(96,165,250,.3);
    padding: .35rem 1rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: 1.5rem;
}
.sw-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.sw-hero__subtitle {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}
.sw-hero__subtitle strong { color: #60a5fa; }
.sw-hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats */
.sw-stats {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 2rem 0;
}
.sw-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.sw-stats__num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #60a5fa;
}
.sw-stats__label { font-size: .85rem; color: #64748b; }

/* Section titles */
.sw-section__title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: .75rem;
}
/* Secciones con fondo oscuro: título en claro */
.sw-process .sw-section__title,
.sw-sectores .sw-section__title,
.sw-faq .sw-section__title,
.sw-cta-final .sw-section__title { color: #f1f5f9; }
.sw-section__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}
.sw-process .sw-section__subtitle,
.sw-sectores .sw-section__subtitle,
.sw-faq .sw-section__subtitle,
.sw-cta-final .sw-section__subtitle { color: #94a3b8; }

/* Packages */
.sw-packages { padding: 4rem 0; }
.sw-packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.sw-package {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.sw-package--featured {
    border-color: #3b82f6;
    background: linear-gradient(160deg, #1e3a5f 0%, #1e293b 100%);
}
.sw-package__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .85rem;
    border-radius: 100px;
    white-space: nowrap;
}
.sw-package__header h3 { font-size: 1.2rem; color: #f1f5f9; margin-bottom: .5rem; }
.sw-package__price { font-size: 2.2rem; font-weight: 800; color: #60a5fa; margin: .25rem 0; }
.sw-package__price span { font-size: 2.4rem; }
.sw-package__header p { font-size: .85rem; color: #94a3b8; }
.sw-package__features { list-style: none; padding: 0; margin: 0; flex: 1; }
.sw-package__features li { color: #cbd5e1; font-size: .9rem; padding: .3rem 0; border-bottom: 1px solid #1e293b; }
.sw-package__features li:last-child { border: none; }
.sw-packages__cta { text-align: center; color: #94a3b8; }
.sw-packages__cta a { color: #60a5fa; }

/* Buttons extra sizes */
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }
.btn--ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}
.btn--ghost:hover { border-color: #60a5fa; color: #60a5fa; }
.btn--outline {
    background: transparent;
    color: #60a5fa;
    border: 1px solid #3b82f6;
}
.btn--outline:hover { background: #3b82f6; color: #fff; }

/* Process */
.sw-process { background: #0f172a; padding: 4rem 0; }
.sw-process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.sw-process__step { text-align: center; }
.sw-process__num {
    display: inline-block;
    width: 48px; height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #1e3a5f;
    border: 2px solid #3b82f6;
    color: #60a5fa;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.sw-process__step h3 { color: #f1f5f9; font-size: 1.05rem; margin-bottom: .5rem; }
.sw-process__step p { color: #94a3b8; font-size: .9rem; }

/* Why */
.sw-why { padding: 4rem 0; }
.sw-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.sw-why__item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1.5rem;
}
.sw-why__icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.sw-why__item h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: .5rem; }
.sw-why__item p { color: #94a3b8; font-size: .9rem; }

/* Tecnologías */
.sw-tech { padding: 4rem 0; background: var(--color-bg-gray); }
.sw-tech__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.sw-tech__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: box-shadow .2s;
}
.sw-tech__item:hover { box-shadow: 0 4px 16px rgba(37,99,235,.1); border-color: var(--color-primary-light); }
.sw-tech__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -.5px;
}
@media (max-width: 768px) { .sw-tech__grid { grid-template-columns: repeat(4, 1fr); gap: .75rem; } }
@media (max-width: 480px) { .sw-tech__grid { grid-template-columns: repeat(4, 1fr); } .sw-tech__item { padding: 1rem .5rem; font-size: .75rem; } .sw-tech__logo { width: 36px; height: 36px; font-size: .65rem; } }

/* Testimonios */
.sw-testimonials { padding: 4rem 0; }
.sw-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.sw-testimonial {
    background: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin: 0;
}
.sw-testimonial p {
    color: var(--color-text);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    font-style: italic;
}
.sw-testimonial footer { display: flex; flex-direction: column; gap: .25rem; }
.sw-testimonial footer strong { font-size: .9rem; color: var(--color-text); }
.sw-testimonial footer span { font-size: .8rem; color: var(--color-text-muted); }
@media (max-width: 768px) { .sw-testimonials__grid { grid-template-columns: 1fr; } }

/* Sectores */
.sw-sectores { background: #0f172a; padding: 4rem 0; }
.sw-sectores__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.sw-sector__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.25rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.sw-sector__card:hover { border-color: #3b82f6; transform: translateY(-2px); }
.sw-sector__icon { font-size: 1.8rem; }
.sw-sector__label { font-size: .85rem; color: #cbd5e1; text-align: center; }

/* Maintenance */
.sw-maintenance { padding: 4rem 0; }
.sw-maintenance__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.sw-mplan {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}
.sw-mplan h3 { color: #f1f5f9; margin-bottom: .5rem; }
.sw-mplan__price { font-size: 1.8rem; font-weight: 800; color: #60a5fa; margin: .5rem 0; }
.sw-mplan__price span { font-size: 2rem; }
.sw-mplan p { color: #94a3b8; font-size: .85rem; }

/* FAQ */
.sw-faq { background: #0f172a; padding: 4rem 0; }
.sw-faq__list { max-width: 760px; margin: 2rem auto 0; }
.sw-faq__item {
    border-bottom: 1px solid #1e293b;
    padding: 1.25rem 0;
}
.sw-faq__item h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: .5rem; cursor: default; }
.sw-faq__item p { color: #94a3b8; font-size: .9rem; }

/* CTA final */
.sw-cta-final {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 100%);
}
.sw-cta-final h2 { color: #f1f5f9; font-size: 2rem; margin-bottom: 1rem; }
.sw-cta-final p { color: #94a3b8; margin-bottom: 2rem; }
.sw-cta-final__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sector intro */
.sw-sector-intro {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #94a3b8;
}
.sw-sector-cta {
    background: #1e293b;
    border: 1px solid #3b82f6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}
.sw-sector-cta h2 { color: #f1f5f9; margin-bottom: .5rem; }
.sw-sector-cta p { color: #94a3b8; margin-bottom: 1.5rem; }

/* ── CONFIGURADOR ── */
.configurador { max-width: 860px; margin: 0 auto; }
.conf-step {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.conf-step__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.conf-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1e3a5f;
    border: 2px solid #3b82f6;
    color: #60a5fa;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}
.conf-step__header h2 { color: #f1f5f9; font-size: 1.15rem; margin: 0; }
.conf-step__opt { color: #64748b; font-size: .85rem; font-weight: 400; }

/* Paquetes del configurador */
.conf-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.conf-package {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1.25rem 1rem;
    border: 2px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s;
    position: relative;
}
.conf-package:has(.conf-package__radio:checked) { border-color: #3b82f6; background: #1e3a5f; }
.conf-package--popular { border-color: #3b82f6; }
.conf-package__badge {
    position: absolute;
    top: -10px;
    font-size: .7rem;
    background: #3b82f6;
    color: #fff;
    padding: .15rem .6rem;
    border-radius: 100px;
    font-weight: 700;
}
.conf-package__radio { display: none; }
.conf-package__name { color: #f1f5f9; font-weight: 600; font-size: .95rem; }
.conf-package__price { color: #60a5fa; font-size: 1.3rem; font-weight: 800; }

/* Extras */
.conf-extras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}
.conf-extra {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s;
}
.conf-extra:has(.conf-extra__check:checked) { border-color: #3b82f6; background: rgba(59,130,246,.08); }
.conf-extra__check { accent-color: #3b82f6; width: 16px; height: 16px; flex-shrink: 0; }
.conf-extra__label { color: #cbd5e1; font-size: .9rem; flex: 1; }
.conf-extra__price { color: #60a5fa; font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* Monthly */
.conf-monthly { display: flex; flex-direction: column; gap: .75rem; }
.conf-mplan {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    flex-wrap: wrap;
}
.conf-mplan:has(.conf-mplan__radio:checked) { border-color: #3b82f6; background: rgba(59,130,246,.08); }
.conf-mplan__radio { accent-color: #3b82f6; }
.conf-mplan__name { color: #f1f5f9; font-weight: 600; font-size: .95rem; flex: 1; }
.conf-mplan__price { color: #60a5fa; font-weight: 700; }
.conf-mplan__desc { width: 100%; color: #64748b; font-size: .8rem; padding-left: 1.5rem; }

/* Resumen */
.conf-summary {
    background: linear-gradient(135deg, #1e3a5f, #1e1b4b);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.conf-summary__total { display: flex; align-items: baseline; justify-content: center; gap: .75rem; }
.conf-summary__total span { color: #94a3b8; font-size: 1.1rem; }
.conf-summary__total strong { color: #60a5fa; font-size: 2.5rem; font-weight: 800; }
.conf-summary__monthly { color: #94a3b8; font-size: .9rem; margin-top: .25rem; }

/* Contacto del configurador */
.conf-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.conf-field { display: flex; flex-direction: column; gap: .4rem; }
.conf-field--full { grid-column: 1 / -1; }
.conf-field label { color: #94a3b8; font-size: .85rem; }
.conf-field input,
.conf-field textarea {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    padding: .65rem 1rem;
    font-size: .95rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.conf-field input:focus,
.conf-field textarea:focus { outline: none; border-color: #3b82f6; }
.conf-check { display: flex; align-items: flex-start; gap: .6rem; color: #94a3b8; font-size: .85rem; cursor: pointer; }
.conf-check a { color: #60a5fa; }

.conf-submit { text-align: center; margin-top: 1rem; }
.conf-submit__note { color: #64748b; font-size: .85rem; margin-top: .75rem; }

/* Breadcrumb */
.breadcrumb { color: #64748b; font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb a { color: #60a5fa; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: #25d366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,.6);
}

/* CTA servicios en blog */
.blog-cta-services {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 100%);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    text-align: center;
    margin: 2rem 0;
}
.blog-cta-services__label {
    color: #93c5fd;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.blog-cta-services h3 {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin: .25rem 0 1rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.portfolio-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.portfolio-card__img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0f172a;
}
.portfolio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.portfolio-card:hover .portfolio-card__img img { transform: scale(1.04); }
.portfolio-card__visit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.75);
    color: #60a5fa;
    font-weight: 700;
    opacity: 0;
    transition: opacity .2s;
    text-decoration: none;
}
.portfolio-card:hover .portfolio-card__visit { opacity: 1; }
.portfolio-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.portfolio-card__sector {
    display: inline-block;
    background: rgba(59,130,246,.15);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.3);
    padding: .2rem .7rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
}
.portfolio-card__title { color: #f1f5f9; font-size: 1.1rem; margin: 0; }
.portfolio-card__desc { color: #94a3b8; font-size: .9rem; flex: 1; }
.portfolio-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.portfolio-card__tech { display: flex; flex-wrap: wrap; gap: .4rem; }
.portfolio-card__tag {
    background: #0f172a;
    color: #64748b;
    border: 1px solid #1e293b;
    padding: .15rem .55rem;
    border-radius: 4px;
    font-size: .75rem;
}
.portfolio-card__delivery { color: #60a5fa; font-size: .8rem; font-weight: 600; margin-left: auto; }
.portfolio-empty { text-align: center; padding: 3rem; color: #94a3b8; }
.portfolio-empty p { margin-bottom: 1.5rem; }

/* Responsive servicios */
@media (max-width: 640px) {
    .sw-hero { padding: 3rem 0 2.5rem; }
    .sw-hero__ctas { flex-direction: column; align-items: center; }
    .sw-cta-final__btns { flex-direction: column; align-items: center; }
    .conf-contact { grid-template-columns: 1fr; }
    .conf-field--full { grid-column: 1; }
}

/* ══════════════════════════════════════
   SECTOR PAGES — copy específico v2.0
   ══════════════════════════════════════ */
.sector-intro {
    background: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
}
.sector-features {
    margin-bottom: 2.5rem;
}
.sector-features h2 { margin-bottom: 1.25rem; }
.sector-features__list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .75rem;
}
.sector-features__list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .85rem 1.1rem;
    font-size: .95rem;
    color: #1e293b;
}
.sector-pages {
    margin-bottom: 2.5rem;
}
.sector-pages h2 { margin-bottom: 1rem; }
.sector-pages__grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.sector-pages__item {
    background: #1e293b;
    color: #e2e8f0;
    padding: .4rem 1rem;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 500;
}
.sector-packages {
    margin-bottom: 3rem;
}
.sector-packages h2 { margin-bottom: 1.5rem; }
.sector-faq {
    margin-bottom: 2.5rem;
}
.sector-faq h2 { margin-bottom: 1.25rem; }
.sector-otros {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.sector-otros h2 { margin-bottom: 1.25rem; font-size: 1.1rem; color: #64748b; }

/* Sector cities badge */
.sector-cities {
    font-size: .85rem;
    color: #94a3b8;
    margin-top: .5rem;
    letter-spacing: .02em;
}

/* ── Landing Pages (Google Ads / LP) ───────────────────── */
.lp-body { background: #fff; }

.lp-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.lp-header .container { display: flex; align-items: center; justify-content: space-between; }
.lp-logo { font-size: 1.2rem; font-weight: 700; color: var(--color-text); text-decoration: none; }

.lp-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
}
.lp-hero__badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 99px;
    padding: .3rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lp-hero__title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.lp-hero__title span { color: var(--color-primary); }
.lp-hero__sub { font-size: 1.1rem; color: var(--color-text-muted); max-width: 540px; margin: 0 auto 2rem; }
.lp-hero__cta { display: inline-block; margin-bottom: 2rem; }
.lp-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: center;
    font-size: .85rem;
    color: var(--color-text-muted);
}

.lp-benefits { padding: 3rem 0; background: var(--color-bg-gray); }
.lp-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}
.lp-benefit {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}
.lp-benefit__icon { font-size: 2rem; margin-bottom: .75rem; }
.lp-benefit h2 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.lp-benefit p { font-size: .9rem; color: var(--color-text-muted); line-height: 1.5; }

.lp-packages { padding: 3rem 0; text-align: center; }
.lp-packages h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; }
.lp-packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.lp-pkg {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    position: relative;
    text-align: center;
}
.lp-pkg--featured { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); }
.lp-pkg__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .75rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.lp-pkg__name { font-weight: 700; margin-bottom: .25rem; }
.lp-pkg__price { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); margin-bottom: .5rem; }
.lp-pkg__desc { font-size: .8rem; color: var(--color-text-muted); margin-bottom: 1rem; min-height: 2.5rem; }
.lp-packages__note { font-size: .9rem; color: var(--color-text-muted); }

.lp-testimonial {
    background: var(--color-bg-dark);
    padding: 3rem 0;
    text-align: center;
}
.lp-testimonial blockquote { max-width: 600px; margin: 0 auto; }
.lp-testimonial blockquote p {
    font-size: 1.15rem;
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.lp-testimonial blockquote footer { color: #94a3b8; font-size: .9rem; }

.lp-cta {
    padding: 3.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}
.lp-cta h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: .75rem; }
.lp-cta p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.lp-cta__btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.lp-footer {
    background: var(--color-bg-gray);
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .8rem;
    color: var(--color-text-muted);
}
.lp-footer a { color: var(--color-text-muted); text-decoration: underline; }

/* ── Lead Capture Popup ─────────────────────────────────── */
.lead-popup { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lead-popup[hidden] { display: none; }
.lead-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.lead-popup__box {
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.lead-popup__close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: .25rem .5rem;
    border-radius: 4px;
}
.lead-popup__close:hover { background: var(--color-bg-gray); }
.lead-popup__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.lead-popup__title { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; color: var(--color-text); }
.lead-popup__sub { font-size: .9rem; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 1.25rem; }
.lead-popup__form { display: flex; flex-direction: column; gap: .75rem; }
.lead-popup__input {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: 1rem;
    outline: none;
    width: 100%;
    transition: border-color .15s;
}
.lead-popup__input:focus { border-color: var(--color-primary); }
.lead-popup__submit { width: 100%; }
.lead-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .78rem;
    color: var(--color-text-muted);
    text-align: left;
    margin-top: .25rem;
    cursor: pointer;
}
.lead-popup__consent input { margin-top: 2px; flex-shrink: 0; }
.lead-popup__consent a { color: var(--color-primary); }
.lead-popup__legal { font-size: .72rem; color: var(--color-text-light); margin-top: .25rem; }
.lead-popup__success { color: var(--color-success); font-weight: 600; margin-top: .5rem; }
.lead-popup__error { color: var(--color-error); font-size: .85rem; margin-top: .25rem; }

/* ── Guía Brief ─────────────────────────────────────────── */
.guia-intro {
    background: var(--color-bg-gray);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}
.guia-section {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.guia-num {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}
.guia-section h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.guia-section p, .guia-section ul { font-size: .95rem; line-height: 1.7; color: var(--color-text); margin-bottom: .75rem; }
.guia-section ul { padding-left: 1.25rem; }
.guia-section ul li { margin-bottom: .4rem; }
.guia-tip {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: .875rem;
    line-height: 1.6;
    margin-top: .75rem;
    margin-bottom: 0;
}
.guia-cta {
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    margin-top: 2rem;
}
.guia-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.guia-cta p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   AUTH PAGES (login, registro, reset) — B19
   ============================================================ */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--color-bg-alt);
}
.auth-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.auth-card__brand {
    display: inline-block;
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.auth-card__title { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; }
.auth-card__sub   { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-card__alt   { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--color-text-muted); }
.auth-form        { display: flex; flex-direction: column; gap: 1rem; }
.form-group--inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.checkbox-label   { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; cursor: pointer; line-height: 1.5; }
.checkbox-label input[type=checkbox] { margin-top: .2rem; flex-shrink: 0; }
.auth-link        { font-size: .82rem; color: var(--color-primary); white-space: nowrap; }
.btn--full        { width: 100%; }

/* ============================================================
   CLIENT PORTAL LAYOUT — B19
   ============================================================ */
.client-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - var(--header-height));
}
.client-sidebar {
    background: var(--color-bg-dark);
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    border-right: 1px solid rgba(255,255,255,.06);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.client-sidebar__brand {
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.client-sidebar__brand a {
    font-weight: 800;
    font-size: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.client-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem .75rem;
    flex: 1;
}
.client-sidebar__link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .15s;
}
.client-sidebar__link:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.client-sidebar__link.active { background: rgba(37,99,235,.18); color: #93c5fd; }
.client-sidebar__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.client-sidebar__email  { display: block; font-size: .75rem; color: #475569; margin-bottom: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-sidebar__logout { background: none; border: none; color: #ef4444; font-size: .8rem; cursor: pointer; padding: 0; }
.client-sidebar__logout:hover { text-decoration: underline; }
.client-main {
    padding: 2rem 2.5rem;
    background: var(--color-bg-alt);
}
.client-page-header { margin-bottom: 2rem; }
.client-page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .25rem; }
.client-page-sub { color: var(--color-text-muted); }
.client-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.client-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}
.client-card--empty { text-align: center; }
.client-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.client-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.client-card p { font-size: .875rem; color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.6; }
.client-info-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}
.client-info-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.client-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.client-info-grid div { display: flex; flex-direction: column; gap: .2rem; }
.client-info-grid span { font-size: .75rem; color: var(--color-text-muted); }
.client-info-grid strong { font-size: .9rem; }
.client-form-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 560px;
}
.client-form-section { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--color-border); }

.alert {
    padding: .85rem 1.25rem;
    border-radius: var(--radius);
    font-size: .875rem;
    margin-bottom: 1rem;
}
.alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Client portal v3 — real data components */
.client-section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0 0 .75rem; }
.client-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; }
.client-kpi__val { font-size: 2rem; font-weight: 700; color: #1e293b; line-height: 1; }
.client-kpi__label { font-size: .8rem; color: #64748b; margin-top: .25rem; }

.client-project-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; margin-bottom: .75rem; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.client-project-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.client-project-card__title { font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; color: #1e293b; }
.client-project-timeline { display: flex; gap: 0; align-items: center; }
.client-project-timeline__step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; font-size: .7rem; color: #94a3b8; text-align: center; }
.client-project-timeline__step::before { content: ''; position: absolute; top: 8px; left: 0; right: 50%; height: 2px; background: #e2e8f0; }
.client-project-timeline__step:first-child::before { display: none; }
.client-project-timeline__step::after { content: ''; position: absolute; top: 8px; left: 50%; right: 0; height: 2px; background: #e2e8f0; }
.client-project-timeline__step:last-child::after { display: none; }
.client-project-timeline__step.done::before, .client-project-timeline__step.done::after { background: #6366f1; }
.client-project-timeline__dot { width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; border: 2px solid #cbd5e1; z-index: 1; margin-bottom: .3rem; }
.client-project-timeline__step.done .client-project-timeline__dot { background: #6366f1; border-color: #6366f1; }
.client-project-timeline__step.active .client-project-timeline__dot { background: #fff; border: 3px solid #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.client-project-timeline__step.active { color: #6366f1; font-weight: 700; }
.client-project-timeline--large .client-project-timeline__dot { width: 20px; height: 20px; }

.client-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.client-table th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; padding: .6rem 1rem; text-align: left; }
.client-table td { padding: .7rem 1rem; border-top: 1px solid #f1f5f9; font-size: .875rem; }

.client-badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.client-badge--red     { background: #fee2e2; color: #b91c1c; }
.client-badge--yellow  { background: #fef3c7; color: #92400e; }
.client-badge--green   { background: #dcfce7; color: #15803d; }
.client-badge--grey    { background: #f1f5f9; color: #64748b; }
.client-badge--done    { background: #dcfce7; color: #15803d; }
.client-badge--pending { background: #eff6ff; color: #1d4ed8; }

.client-empty-state { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 2rem; text-align: center; color: #64748b; }
.client-empty-state p { margin-bottom: .75rem; }

@media (max-width: 900px) {
    .client-layout { grid-template-columns: 1fr; }
    .client-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 1rem; gap: .5rem; }
    .client-sidebar__nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
    .client-sidebar__footer { border-top: none; border-left: 1px solid rgba(255,255,255,.06); padding: 0 0 0 1rem; margin-left: auto; }
    .client-main { padding: 1.5rem 1rem; }
    .client-cards { grid-template-columns: 1fr; }
    .client-info-grid { grid-template-columns: 1fr 1fr; }
    .client-project-timeline span { display: none; }
}

/* ===== LMS ===== */
.course-enroll-box { background: linear-gradient(135deg,#eff6ff,#eef2ff); border: 1px solid #c7d2fe; border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.lms-lesson-list { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin: 1.5rem 0; }
.lms-lesson-item { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.25rem; border-top: 1px solid #f1f5f9; font-size: .9rem; }
.lms-lesson-item:first-child { border-top: none; }
.lms-lesson-item.done { background: #f0fdf4; }
.lms-lesson-item__num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.lms-lesson-item.done .lms-lesson-item__num { background: #22c55e; color: #fff; }
.lms-lesson-item__title { flex: 1; color: #1e293b; text-decoration: none; }
.lms-lesson-item__title:hover { color: #6366f1; }
.lms-lesson-item__duration { font-size: .75rem; color: #94a3b8; flex-shrink: 0; }
.lms-progress-bar { background: #e2e8f0; border-radius: 999px; height: 8px; overflow: hidden; }
.lms-progress-bar__fill { background: linear-gradient(90deg,#6366f1,#8b5cf6); height: 100%; border-radius: 999px; transition: width .3s; }
.course-meta-strip { display: flex; gap: .5rem; font-size: .85rem; color: #64748b; flex-wrap: wrap; margin-top: .5rem; }

/* LMS lesson layout */
.lms-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.lms-sidebar { background: #1e293b; color: #cbd5e1; padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lms-sidebar__back { display: block; color: #94a3b8; font-size: .8rem; text-decoration: none; margin-bottom: 1rem; }
.lms-sidebar__back:hover { color: #fff; }
.lms-sidebar__lesson { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: #94a3b8; font-size: .85rem; line-height: 1.3; margin-bottom: .2rem; transition: background .15s; }
.lms-sidebar__lesson:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.lms-sidebar__lesson.active { background: rgba(99,102,241,.25); color: #fff; }
.lms-sidebar__lesson.done { color: #86efac; }
.lms-sidebar__check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: .7rem; font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
.lms-sidebar__lesson.done .lms-sidebar__check { background: #22c55e; color: #fff; }
.lms-sidebar__dur { margin-left: auto; font-size: .7rem; color: #64748b; flex-shrink: 0; }
.lms-main { padding: 2rem; }
.lms-main__inner { max-width: 800px; margin: 0 auto; }
.lms-lesson-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.lms-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; margin-bottom: 2rem; background: #000; }
.lms-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.lms-actions { display: flex; gap: 1rem; align-items: center; margin: 2rem 0; padding: 1.5rem; background: #f8fafc; border-radius: 10px; flex-wrap: wrap; }
.lms-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; gap: 1rem; }
.lms-nav__btn { display: inline-block; padding: .6rem 1.25rem; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #374151; font-size: .875rem; transition: border-color .15s; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lms-nav__btn:hover { border-color: #6366f1; color: #6366f1; }

/* "Mis cursos" page */
.lms-my-courses { display: grid; gap: 1.25rem; }
.lms-course-card { display: flex; gap: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.lms-course-card__img { width: 180px; object-fit: cover; flex-shrink: 0; }
.lms-course-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.lms-course-card__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lms-course-card__cat { font-size: .72rem; font-weight: 700; color: #6366f1; text-transform: uppercase; letter-spacing: .05em; }
.lms-course-card__title { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 0; }
.lms-course-card__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: auto; }

@media (max-width: 768px) {
    .lms-layout { grid-template-columns: 1fr; }
    .lms-sidebar { position: static; height: auto; }
    .lms-main { padding: 1.25rem 1rem; }
    .lms-course-card { flex-direction: column; }
    .lms-course-card__img { width: 100%; height: 160px; }
}
