/* Landing page — light theme, independent from the panel's dark UI (main.css). */

:root {
    --lp-bg: #ffffff;
    /* Brand palette: #1D52F2 #1D64F2 #6B98F2 #F2EEEB #F26A4B */
    --lp-brand: #1d52f2;
    --lp-brand-light: #6b98f2;
    --lp-cream: #f2eeeb;
    --lp-surface: #f7f5f3;
    --lp-surface-2: #f2eeeb;
    --lp-ink: #111a3a;
    --lp-body: #4f5673;
    --lp-muted: #868ca3;
    --lp-line: #e8e3de;
    --lp-accent: #1d64f2;
    --lp-accent-dark: #1d52f2;
    --lp-accent-soft: #e3ebff;
    --lp-sky: #eef3ff;
    --lp-warm: #ff6b4a;
    --lp-warm-soft: #ffe6de;
    --lp-mint: #13c79a;
    --lp-mint-soft: #d9f7ee;
    --lp-sun: #ffc83d;
    --lp-sun-soft: #fff3cf;
    --lp-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --lp-text: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --lp-shadow: 0 24px 60px -20px rgba(17, 26, 58, 0.18);
    --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    .lp-body *,
    .lp-body *::before,
    .lp-body *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.lp-body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-body);
    font-family: var(--lp-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html:has(.lp-body) {
    scroll-padding-top: 90px;
}

.lp-body :focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.lp-body h1,
.lp-body h2,
.lp-body h3,
.lp-body h4 {
    font-family: var(--lp-display);
    color: var(--lp-ink);
    letter-spacing: -0.02em;
    margin: 0;
}

.lp-mono {
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.lp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */

.lp-nav {
    padding: 14px 0;
    transition: background 0.3s var(--lp-ease), box-shadow 0.3s var(--lp-ease), padding 0.3s var(--lp-ease);
}

.lp-nav.is-scrolled {
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 1px 0 var(--lp-line);
}

.lp-nav-inner {
    max-width: 1200px;
    padding: 0 24px;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--lp-ink);
}

.lp-brand-logo {
    display: block;
    height: 56px;
    width: auto;
    transition: height 0.3s var(--lp-ease);
}

.lp-nav.is-scrolled .lp-brand-logo {
    height: 46px;
}

.lp-brand-logo-lg {
    height: 96px;
}

.lp-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-brand);
    flex: 0 0 auto;
}

.lp-brand-mark img {
    width: 64%;
    height: auto;
    display: block;
}

.lp-nav-links {
    gap: 30px;
}

.lp-nav-links .nav-link {
    position: relative;
    padding: 6px 0;
    color: var(--lp-body);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s var(--lp-ease);
}

.lp-nav-links .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--lp-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--lp-ease);
}

.lp-nav-links .nav-link:hover,
.lp-nav-links .nav-link.is-current {
    color: var(--lp-ink);
}

.lp-nav-links .nav-link:hover::after,
.lp-nav-links .nav-link.is-current::after {
    transform: scaleX(1);
    transform-origin: left;
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-burger {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fff;
}

.lp-burger:focus {
    box-shadow: none;
}

.lp-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--lp-ink);
    transition: transform 0.3s var(--lp-ease), opacity 0.2s var(--lp-ease);
}

.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
    .lp-nav .navbar-collapse {
        margin-top: 12px;
        padding: 18px;
        border-radius: 22px;
        background: #fff;
        border: 1px solid var(--lp-line);
        box-shadow: var(--lp-shadow);
    }

    .lp-nav-links {
        gap: 4px;
        margin-bottom: 14px;
    }

    .lp-nav-links .nav-link {
        padding: 10px 4px;
        font-size: 16px;
    }

    .lp-nav-links .nav-link::after {
        display: none;
    }

    .lp-nav-actions .lp-btn {
        flex: 1;
    }
}

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: box-shadow 0.15s var(--lp-ease), background 0.15s var(--lp-ease), color 0.15s var(--lp-ease), border-color 0.15s var(--lp-ease);
    will-change: transform;
}

.lp-btn-arrow {
    display: inline-block;
    transition: transform 0.3s var(--lp-ease);
}

.lp-btn:hover .lp-btn-arrow {
    transform: translateX(4px);
}

.lp-btn:active {
    scale: 0.97;
}

.lp-btn-primary {
    background: var(--lp-brand);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(29, 82, 242, 0.45);
}

.lp-btn-primary:hover {
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 14px 30px -8px rgba(29, 100, 242, 0.5);
}

.lp-btn-ghost {
    background: transparent;
    color: var(--lp-ink);
    border-color: var(--lp-line);
}

.lp-btn-ghost:hover {
    border-color: var(--lp-ink);
}

.lp-btn-sm {
    padding: 9px 18px;
    font-size: 14px;
}

/* ---------- Hero ---------- */

.lp-hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(29, 82, 242, 0.14) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}

.lp-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lp-shape {
    position: absolute;
    display: block;
}

.lp-shape-blob {
    width: 560px;
    height: 560px;
    right: -120px;
    top: 70px;
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    background: var(--lp-accent-soft);
}

.lp-shape-sun {
    width: 96px;
    height: 96px;
    right: 44%;
    top: 130px;
    border-radius: 50%;
    background: var(--lp-sun);
}

.lp-shape-ring {
    width: 150px;
    height: 150px;
    right: 3%;
    bottom: 40px;
    border-radius: 50%;
    border: 18px solid var(--lp-warm);
}

.lp-shape-code {
    left: 3%;
    bottom: 48px;
    font: 800 64px/1 var(--lp-display);
    color: var(--lp-mint);
    transform: rotate(-8deg);
}

@media (max-width: 991px) {
    .lp-shape-sun { right: 8%; top: 96px; width: 64px; height: 64px; }
    .lp-shape-blob { top: auto; bottom: 0; right: -200px; }
    .lp-shape-code { display: none; }
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

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

.lp-hero-title {
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.06;
    max-width: 15ch;
}

.lp-hero-title .lp-line-mask {
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.lp-hero-sub {
    max-width: 46ch;
    margin: 22px 0 0;
    font-size: 17px;
    line-height: 1.65;
}

.lp-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

/* ---------- Hero image cards ---------- */

.lp-hero-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 96px;
}

.lp-image-card {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 5.2;
    border-radius: 36px;
    overflow: hidden;
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}

.lp-image-card-a {
    background: var(--lp-sun);
    --lp-card-circle: var(--lp-warm);
}

.lp-image-card-b {
    margin-top: 80px;
    background: var(--lp-brand);
    --lp-card-circle: #5b84ff;
}

.lp-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px -14px rgba(17, 26, 58, 0.35);
    font-size: 13.5px;
    color: var(--lp-ink);
    white-space: nowrap;
}

.lp-chip strong {
    font-weight: 700;
}

.lp-chip small {
    display: block;
    font-size: 12px;
    color: var(--lp-muted);
}

.lp-chip-live {
    top: 34px;
    left: -28px;
}

.lp-chip-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lp-warm);
}

.lp-chip-msg {
    right: -18px;
    bottom: 40px;
}

.lp-chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-mint);
    color: var(--lp-ink);
    font-weight: 800;
}

@media (max-width: 575px) {
    .lp-chip-live { left: 8px; top: -14px; }
    .lp-chip-msg { right: 8px; bottom: -18px; }
}

/* ---------- Tech marquee ---------- */

.lp-marquee {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 20px 0;
    background: var(--lp-brand);
}

.lp-marquee-track {
    display: flex;
    width: max-content;
}

.lp-marquee-group {
    display: flex;
    flex-shrink: 0;
}

.lp-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.lp-marquee-item::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--lp-sun);
    transform: rotate(45deg);
}

.lp-marquee-item:nth-child(3n+2)::after { background: var(--lp-warm); border-radius: 50%; }
.lp-marquee-item:nth-child(3n)::after { background: var(--lp-mint); }

.lp-image-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 30px 110px;
}

.lp-image-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    border-radius: 24px;
    color: var(--lp-ink);
    background: #fff;
}

.lp-image-caption strong {
    font-family: var(--lp-display);
    font-size: 17px;
    font-weight: 700;
}

.lp-image-caption span {
    font-size: 12.5px;
    color: var(--lp-body);
}

/* ---------- Section shell ---------- */

.lp-section {
    padding: 88px 0;
}

.lp-section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.lp-section-head h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.08;
}

.lp-section-head p {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
}

.lp-section-alt,
.lp-section-warm {
    border-radius: 48px;
    margin: 20px 20px;
}

.lp-section-alt {
    background: var(--lp-sky);
}

.lp-section-warm {
    background: var(--lp-warm-soft);
}

@media (min-width: 992px) {
    .lp-section-alt,
    .lp-section-warm {
        margin: 32px 40px;
    }
}

/* ---------- Bento blocks ---------- */

.lp-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lp-block {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lp-block-blue { background: var(--lp-brand); border-color: transparent; }
.lp-block-coral { background: var(--lp-warm); border-color: transparent; }
.lp-block-sun { background: var(--lp-sun); border-color: transparent; }
.lp-block-mint { background: var(--lp-mint); border-color: transparent; }

.lp-block-blue h3 { color: #fff; }
.lp-block.lp-block-blue p { color: rgba(255, 255, 255, 0.88); }
.lp-block.lp-block-coral p,
.lp-block.lp-block-sun p,
.lp-block.lp-block-mint p { color: var(--lp-ink); }

.lp-block-blue .lp-block-icon,
.lp-block-coral .lp-block-icon,
.lp-block-sun .lp-block-icon,
.lp-block-mint .lp-block-icon {
    background: #fff;
    color: var(--lp-ink);
}

.lp-block-wide {
    grid-column: span 4;
    padding: 34px 38px;
}

.lp-block-half {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .lp-bento { grid-template-columns: repeat(2, 1fr); }
    .lp-block-half { grid-column: span 2; }
}

@media (max-width: 575px) {
    .lp-bento { grid-template-columns: minmax(0, 1fr); }
    .lp-block-half, .lp-block-wide { grid-column: span 1; }
}

.lp-block h3 {
    font-size: 19px;
    font-weight: 700;
}

.lp-block p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--lp-body);
}

.lp-block-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.lp-icon-accent { background: var(--lp-accent-soft); color: var(--lp-accent-dark); }
.lp-icon-warm { background: var(--lp-warm-soft); color: #d2421f; }
.lp-icon-mint { background: var(--lp-mint-soft); color: #08795c; }

/* Roadmap diagram inside the wide block */

.lp-roadmap {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
}

@media (max-width: 575px) {
    .lp-roadmap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    .lp-roadmap-line { display: none; }
}

.lp-roadmap-line {
    position: absolute;
    top: 7px;
    left: 9px;
    right: 25%;
    height: 4px;
    background: var(--lp-line);
    border-radius: 4px;
    overflow: hidden;
}

.lp-roadmap-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lp-brand), var(--lp-warm), var(--lp-sun));
    transform: scaleX(1);
    transform-origin: left;
}

.lp-roadmap-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.lp-roadmap-node {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lp-node, var(--lp-brand));
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--lp-node, var(--lp-brand));
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.lp-roadmap-step:nth-child(3) { --lp-node: var(--lp-warm); }
.lp-roadmap-step:nth-child(4) { --lp-node: #f5a800; }
.lp-roadmap-step:nth-child(5) { --lp-node: var(--lp-mint); }

.lp-roadmap-step span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lp-ink);
}

.lp-roadmap-step small {
    display: block;
    font-size: 12.5px;
    color: var(--lp-muted);
    margin-top: 2px;
}

/* ---------- Course catalog ---------- */

.lp-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.lp-course {
    --lp-level: var(--lp-mint);
    --lp-level-soft: var(--lp-mint-soft);
    --lp-level-ink: #08795c;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-top: 6px solid var(--lp-level);
    border-radius: 22px;
    padding: 24px;
    transition: box-shadow 0.25s var(--lp-ease), border-color 0.25s var(--lp-ease);
    transform-style: preserve-3d;
    will-change: transform;
}

.lp-course[data-level="Intermedio"] {
    --lp-level: var(--lp-brand);
    --lp-level-soft: var(--lp-accent-soft);
    --lp-level-ink: var(--lp-brand);
}

.lp-course[data-level="Avanzado"] {
    --lp-level: var(--lp-warm);
    --lp-level-soft: var(--lp-warm-soft);
    --lp-level-ink: #c63d1e;
}

.lp-course:hover {
    box-shadow: var(--lp-shadow);
    border-color: transparent;
    border-top-color: var(--lp-level);
}

.lp-course.is-hidden {
    display: none;
}

/* Level filter pills (animated with GSAP Flip) */

.lp-filters {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    margin-bottom: 28px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid var(--lp-line);
}

.lp-filter {
    position: relative;
    z-index: 1;
    padding: 8px 18px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--lp-body);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s var(--lp-ease);
}

.lp-filter:hover {
    color: var(--lp-ink);
}

.lp-filter.is-active {
    color: #fff;
}

.lp-filter-pill {
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: 0;
    border-radius: 100px;
    background: var(--lp-brand);
}

.lp-course-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lp-course-code {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lp-level-ink, var(--lp-accent-dark));
    background: var(--lp-level-soft, var(--lp-accent-soft));
    padding: 4px 9px;
    border-radius: 8px;
}

.lp-course-level {
    font-size: 12px;
    font-weight: 700;
    color: var(--lp-level-ink, var(--lp-muted));
}

.lp-course h3 {
    margin-top: 14px;
    font-size: 16.5px;
    font-weight: 700;
}

.lp-course p {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--lp-body);
    line-height: 1.55;
}

.lp-course code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.92em;
    color: var(--lp-level-ink);
}

.lp-course-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--lp-line);
    font-size: 12.5px;
    color: var(--lp-muted);
    display: flex;
    justify-content: space-between;
}

/* ---------- Steps ---------- */

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: lp-step;
    position: relative;
}

.lp-steps-line {
    position: absolute;
    top: 16px;
    left: 17px;
    right: 17px;
    height: 2px;
    background: var(--lp-line);
    border-radius: 2px;
    overflow: hidden;
    list-style: none;
}

.lp-steps-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lp-brand), var(--lp-warm), var(--lp-sun), var(--lp-mint));
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 991px) {
    .lp-steps-line { display: none; }
}

@media (max-width: 991px) {
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .lp-steps { grid-template-columns: 1fr; }
}

.lp-step {
    counter-increment: lp-step;
    position: relative;
    padding-top: 46px;
}

.lp-step::before {
    content: counter(lp-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--lp-step, var(--lp-brand));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--lp-bg);
}

.lp-step:nth-child(3) { --lp-step: var(--lp-warm); }
.lp-step:nth-child(4) { --lp-step: #f5a800; }
.lp-step:nth-child(5) { --lp-step: var(--lp-mint); }

.lp-step h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.lp-step p {
    margin: 0;
    font-size: 14px;
    color: var(--lp-body);
    line-height: 1.6;
}

/* ---------- CTA band ---------- */

.lp-cta {
    position: relative;
    border-radius: 40px;
    padding: 64px 48px;
    background: var(--lp-brand);
    color: #fff;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.lp-cta::before,
.lp-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.lp-cta::before {
    width: 220px;
    height: 220px;
    left: -60px;
    bottom: -90px;
    background: var(--lp-sun);
}

.lp-cta::after {
    width: 160px;
    height: 160px;
    right: -30px;
    top: -50px;
    border: 22px solid var(--lp-warm);
}

.lp-cta h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
}

.lp-cta p {
    max-width: 50ch;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.lp-cta .lp-hero-actions {
    justify-content: center;
    margin-top: 30px;
}

.lp-cta .lp-btn-primary {
    background: #fff;
    color: var(--lp-ink);
    box-shadow: none;
}

.lp-cta .lp-btn-primary:hover {
    background: var(--lp-cream);
}

.lp-cta .lp-btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.lp-cta .lp-btn-ghost:hover {
    border-color: #fff;
}

/* ---------- FAQ (Bootstrap accordion) ---------- */

.lp-faq {
    --bs-accordion-bg: #fff;
    --bs-accordion-border-color: var(--lp-line);
    --bs-accordion-border-radius: 20px;
    --bs-accordion-inner-border-radius: 20px;
    --bs-accordion-btn-color: var(--lp-ink);
    --bs-accordion-active-color: var(--lp-ink);
    --bs-accordion-active-bg: #fff;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--lp-accent-soft);
    --bs-accordion-btn-padding-x: 24px;
    --bs-accordion-btn-padding-y: 20px;
    --bs-accordion-body-padding-x: 24px;
    --bs-accordion-body-padding-y: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-faq .accordion-item {
    border: 1px solid var(--lp-line);
    border-radius: 20px !important;
    overflow: hidden;
    transition: box-shadow 0.25s var(--lp-ease), border-color 0.25s var(--lp-ease);
}

.lp-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: transparent;
    box-shadow: var(--lp-shadow);
}

.lp-faq .accordion-button {
    font-size: 17px;
    font-weight: 600;
    border-radius: 20px !important;
}

.lp-faq .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.lp-faq .accordion-body {
    padding-bottom: 22px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--lp-body);
}

/* ---------- Footer ---------- */

.lp-footer {
    position: relative;
    margin-top: 40px;
    padding: 72px 0 32px;
    background: var(--lp-ink);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    overflow: hidden;
}

.lp-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--lp-brand) 0 25%, var(--lp-warm) 25% 50%, var(--lp-sun) 50% 75%, var(--lp-mint) 75%);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .lp-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.lp-footer-brand .lp-brand-logo {
    height: 64px;
}

.lp-footer-brand p {
    max-width: 36ch;
    margin: 18px 0 16px;
    line-height: 1.6;
}

.lp-footer-mail {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 100px;
    background: var(--lp-sun);
    color: var(--lp-ink);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s var(--lp-ease);
}

.lp-footer-mail:hover {
    background: #fff;
    color: var(--lp-ink);
}

.lp-footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.lp-body .lp-footer-col h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.lp-footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s var(--lp-ease);
}

.lp-footer-col a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lp-footer-col span {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
}

.lp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.lp-footer-bottom code {
    color: var(--lp-sun);
    font-size: 12.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .lp-hero-grid {
        grid-template-columns: 1fr;
    }

    .lp-hero-cards {
        margin-top: 8px;
        padding-bottom: 40px;
    }

    .lp-image-card-b {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .lp-hero { padding-top: 100px; }
    .lp-section { padding: 60px 0; }
    .lp-cta { padding: 44px 24px; }

    .lp-hero-cards {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .lp-image-card {
        aspect-ratio: 4 / 3.6;
    }

    .lp-image-media {
        padding: 16px 16px 96px;
    }

    .lp-image-card-b {
        margin-top: 0;
    }
}

/* ---------- Inner pages (como-funciona, comunidad, faq) ---------- */

.lp-page-hero {
    position: relative;
    padding: 150px 0 56px;
    overflow: hidden;
}

.lp-page-hero::before,
.lp-page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lp-page-hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: 40px;
    background: var(--lp-accent-soft);
}

.lp-page-hero::after {
    width: 90px;
    height: 90px;
    right: 18%;
    top: 120px;
    background: var(--lp-sun);
}

@media (max-width: 767px) {
    .lp-page-hero::before { width: 260px; height: 260px; right: -140px; }
    .lp-page-hero::after { width: 56px; height: 56px; right: 8%; top: 90px; }
}

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

.lp-page-title {
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    max-width: 20ch;
}

.lp-page-title .lp-line-mask {
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.lp-page-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.lp-page-toc a {
    padding: 8px 16px;
    border: 1px solid var(--lp-line);
    border-radius: 100px;
    background: #fff;
    color: var(--lp-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s var(--lp-ease), color 0.2s var(--lp-ease);
}

.lp-page-toc a:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent-dark);
}

/* Explore cards (home teaser, comunidad roles) */

.lp-explore {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .lp-explore { grid-template-columns: 1fr; }
}

.lp-explore-card {
    --lp-tone: var(--lp-brand);
    --lp-tone-soft: var(--lp-accent-soft);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 28px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s var(--lp-ease), box-shadow 0.3s var(--lp-ease), border-color 0.3s var(--lp-ease);
}

.lp-explore-card:nth-child(3n+2) { --lp-tone: var(--lp-warm); --lp-tone-soft: var(--lp-warm-soft); }
.lp-explore-card:nth-child(3n) { --lp-tone: var(--lp-mint); --lp-tone-soft: var(--lp-mint-soft); }

.lp-explore-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 150px;
    right: -50px;
    top: -50px;
    border-radius: 50%;
    background: var(--lp-tone-soft);
    transition: transform 0.4s var(--lp-ease);
}

a.lp-explore-card:hover {
    transform: translateY(-3px);
    border-color: var(--lp-tone);
    box-shadow: var(--lp-shadow);
    color: inherit;
}

a.lp-explore-card:hover::before {
    transform: scale(1.25);
}

.lp-explore-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.lp-explore-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

.lp-explore-link {
    margin-top: auto;
    padding-top: 6px;
    color: var(--lp-ink);
    font-weight: 600;
    font-size: 14.5px;
}

.lp-explore-link span {
    display: inline-block;
    transition: transform 0.25s var(--lp-ease);
}

a.lp-explore-card:hover .lp-explore-link span {
    transform: translateX(4px);
}

/* Como funciona: typical week */

.lp-week {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-week-day {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 14px;
}

.lp-week-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-muted);
}

.lp-week-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-left: 4px solid var(--lp-line);
    border-radius: 16px;
    font-size: 14px;
}

.lp-week-card strong {
    color: var(--lp-ink);
    font-size: 16px;
}

.lp-week-live { border-left-color: var(--lp-accent); }
.lp-week-chat { border-left-color: var(--lp-warm); }

/* Como funciona: levels */

.lp-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .lp-levels { grid-template-columns: 1fr; }
}

.lp-level {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px;
    background: var(--lp-mint-soft);
    border-radius: 24px;
}

.lp-level:nth-child(2) { background: var(--lp-accent-soft); }
.lp-level:nth-child(3) { background: var(--lp-warm-soft); }

.lp-level .lp-course-level {
    padding: 4px 12px;
    border-radius: 100px;
    background: #fff;
    color: var(--lp-ink);
}

.lp-level h3 {
    font-size: 19px;
    font-weight: 700;
}

.lp-level p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

.lp-level ul,
.lp-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--lp-ink);
}

.lp-checklist {
    margin-top: 24px;
    font-size: 15px;
}

.lp-level li,
.lp-checklist li {
    position: relative;
    padding-left: 26px;
}

.lp-level li::before,
.lp-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lp-mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.3 4.8-5' fill='none' stroke='%2314b892' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Comunidad: chat mockup */

.lp-chat {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 28px;
    box-shadow: var(--lp-shadow);
    overflow: hidden;
}

.lp-chat-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--lp-line);
    font-size: 14px;
}

.lp-chat-head strong {
    color: var(--lp-ink);
}

.lp-chat-online {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lp-muted);
}

.lp-chat-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
}

.lp-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lp-chat-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c);
    color: #fff;
    font-weight: 700;
}

.lp-chat-msg small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-muted);
    margin-bottom: 4px;
}

.lp-chat-msg p {
    margin: 0;
    padding: 10px 14px;
    background: var(--lp-surface);
    border-radius: 4px 16px 16px 16px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--lp-ink);
}

.lp-chat-msg-teacher p {
    background: var(--lp-accent-soft);
}

.lp-chat-msg code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--lp-accent-dark);
}

.lp-chat-typing {
    display: inline-flex;
    gap: 4px;
    margin-left: 48px;
    padding: 12px 14px;
    background: var(--lp-surface);
    border-radius: 16px;
    align-self: flex-start;
}

.lp-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-muted);
    animation: lp-typing 1.2s infinite ease-in-out;
}

.lp-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.lp-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes lp-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Comunidad: tips and rules */

.lp-tips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .lp-tips { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .lp-tips { grid-template-columns: 1fr; }
}

.lp-tip {
    padding: 26px;
    background: #fff;
    border-radius: 24px;
    border-top: 6px solid var(--lp-tip, var(--lp-warm));
}

.lp-tip:nth-child(2) { --lp-tip: var(--lp-brand); }
.lp-tip:nth-child(3) { --lp-tip: var(--lp-sun); }
.lp-tip:nth-child(4) { --lp-tip: var(--lp-mint); }

.lp-tip-num {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-warm);
}

.lp-tip h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.lp-tip p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.lp-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: lp-rule;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-rules li {
    counter-increment: lp-rule;
    position: relative;
    padding: 20px 24px 20px 70px;
    border: 1px solid var(--lp-line);
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.lp-rules li::before {
    content: counter(lp-rule);
    position: absolute;
    left: 22px;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--lp-brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-rules strong {
    color: var(--lp-ink);
}

/* FAQ page */

.lp-faq-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin-top: 32px;
    padding: 0 20px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 100px;
    color: var(--lp-muted);
    box-shadow: 0 12px 30px -18px rgba(17, 26, 58, 0.25);
    transition: border-color 0.2s var(--lp-ease), box-shadow 0.2s var(--lp-ease);
}

.lp-faq-search:focus-within {
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 4px var(--lp-accent-soft);
}

.lp-faq-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--lp-ink);
    font-size: 15px;
}

.lp-body .lp-faq-search input:focus-visible {
    outline: 0;
}

.lp-faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.lp-faq-nav {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-faq-nav a {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--lp-body);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s var(--lp-ease), color 0.2s var(--lp-ease);
}

.lp-faq-nav a:hover,
.lp-faq-nav a.is-current {
    background: var(--lp-surface);
    color: var(--lp-ink);
}

.lp-faq-nav a span {
    font-size: 12px;
    color: var(--lp-muted);
}

@media (max-width: 991px) {
    .lp-faq-layout { grid-template-columns: 1fr; gap: 24px; }
    .lp-faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .lp-faq-nav a { gap: 8px; border: 1px solid var(--lp-line); border-radius: 100px; }
}

.lp-faq-group + .lp-faq-group {
    margin-top: 48px;
}

.lp-faq-group h2 {
    margin-bottom: 18px !important;
    font-size: 24px;
    font-weight: 700;
}

.lp-faq-group[hidden],
.lp-faq-item[hidden] {
    display: none;
}

.lp-faq-empty {
    padding: 28px;
    border: 1px dashed var(--lp-line);
    border-radius: 20px;
    text-align: center;
}

@media (max-width: 575px) {
    .lp-page-hero { padding-top: 120px; }
}

/* ---------- Error page ---------- */

.lp-error {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.lp-error-code {
    display: flex;
    justify-content: center;
    gap: 0.04em;
    font-size: clamp(110px, 22vw, 220px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.lp-error-digit {
    display: inline-block;
    font-family: var(--lp-display);
    font-weight: 800;
    color: var(--lp-brand);
}

.lp-error-digit:nth-child(2) { color: var(--lp-warm); }
.lp-error-digit:nth-child(3) { color: var(--lp-mint); }

.lp-error-title {
    margin-top: 12px !important;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
}

.lp-error-text {
    max-width: 44ch;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.6;
}

.lp-error-meta {
    margin: 36px 0 0;
    font-size: 12px;
    color: var(--lp-muted);
}

.lp-legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

@media (max-width: 991px) {
    .lp-legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .lp-legal-layout .lp-faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

.lp-legal {
    max-width: 72ch;
    font-size: 16px;
    line-height: 1.75;
}

.lp-legal h2 {
    margin: 48px 0 12px;
    font-size: 24px;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.lp-legal h2:first-child {
    margin-top: 0;
}

.lp-legal h3 {
    margin: 28px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.lp-legal p,
.lp-legal ul {
    margin: 0 0 14px;
}

.lp-legal ul {
    padding-left: 22px;
}

.lp-legal li + li {
    margin-top: 6px;
}

.lp-legal a {
    color: var(--lp-brand);
    font-weight: 600;
}

.lp-legal strong {
    color: var(--lp-ink);
}

.lp-legal-note {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--lp-sun-soft);
    color: var(--lp-ink);
}

.lp-legal-table {
    width: 100%;
    margin: 8px 0 20px;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.5;
}

.lp-legal-table th,
.lp-legal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--lp-line);
    text-align: left;
    vertical-align: top;
}

.lp-legal-table th {
    background: var(--lp-sky);
    color: var(--lp-ink);
    font-weight: 700;
}

.lp-legal-table code {
    color: var(--lp-brand);
}

.lp-legal-table-wrap {
    overflow-x: auto;
}

.lp-legal-updated {
    margin-top: 18px;
    font-size: 14px;
    color: var(--lp-muted);
}

.lp-hero-sub a {
    color: var(--lp-brand);
    font-weight: 600;
}
