:root {
    --lk-green: #336e48;
    --lk-green-dark: #245136;
    --lk-sand: #f7f4ee;
    --lk-ink: #222;
    --lk-muted: #6b7280;
    --lk-line: #e6e2da;
}

body {
    color: var(--lk-ink);
    background: #fff;
}

a {
    color: var(--lk-green);
}

a:hover,
a:focus {
    color: var(--lk-green-dark);
}


.lk-section {
    padding: 62px 0;
}

.lk-section-tight {
    padding: 38px 0;
}

.lk-section-sand {
    background: var(--lk-sand);
}

/* Contraste AA sobre fondo arena (texto gris 500 no llega a 4.5:1). */
.lk-section-sand .lk-lead {
    color: #3f4753;
}

.lk-eyebrow {
    color: var(--lk-green);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lk-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.lk-lead {
    color: var(--lk-muted);
    font-size: 17px;
    line-height: 1.6;
}

.lk-card {
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.lk-card:hover {
    transform: translateY(-3px);
    border-color: #cfd8cc;
    box-shadow: 0 12px 28px rgba(36, 81, 54, .12);
}

.lk-card .lk-card-media {
    position: relative;
    display: flex;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid var(--lk-line);
    padding: 24px 16px;
}

.lk-card .lk-card-media img {
    height: 230px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
    transition: transform .25s ease;
}

.lk-card:hover .lk-card-media img {
    transform: scale(1.03) rotate(-.5deg);
}

.lk-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f1f1f1;
}

.lk-badge-float {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

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

.lk-card-cat {
    color: var(--lk-green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.lk-card-body h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.lk-card-body h3 a {
    color: var(--lk-ink);
    text-decoration: none;
}

.lk-card-body h3 a:hover {
    color: var(--lk-green-dark);
}

.lk-card-body p {
    color: var(--lk-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

.lk-card-foot {
    margin-top: auto;
    padding-top: 14px;
}

/* Card de producto horizontal: foto vertical a la izquierda, texto al lado. */
.lk-card-row {
    flex-direction: row;
    align-items: stretch;
}

.lk-card-row > .lk-card-media {
    width: 132px;
    flex: none;
    position: relative;
    border-bottom: 0;
    padding: 0;
    min-height: 153px;
    background: #fff;
    align-items: stretch;
}

.lk-card-row > .lk-card-media:not(.lk-media-logo) img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.lk-card-row > .lk-card-body {
    padding: 12px 16px;
}

.lk-card-row > .lk-card-body h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.lk-card-row > .lk-card-body p {
    font-size: 12px;
    line-height: 1.5;
}

.lk-card-row .lk-price {
    font-size: 18px;
    margin-bottom: 6px;
}

.lk-card-row .lk-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #d9d4c7;
    color: #555 !important;
}

.lk-card-row .lk-card-btn:hover {
    background: #faf9f6;
    border-color: #999;
    color: #222 !important;
}

.lk-card-row .lk-card-btn.lk-btn-zinc {
    background: #27272a;
    border-color: #27272a;
    color: #fff !important;
}

.lk-card-row .lk-card-btn.lk-btn-zinc:hover {
    background: #18181b;
    border-color: #18181b;
    color: #fff !important;
}

.lk-card-row .lk-card-btn .fa {
    font-size: 11px;
}

.lk-card-row .lk-card-foot {
    margin-top: auto;
    padding-top: 10px;
}

.lk-card-media.lk-media-contain img {
    object-fit: contain;
}

/* Media de logo: fondo blanco, logo a mitad de tamaño centrado + epígrafe. */
.lk-card-row > .lk-card-media.lk-media-logo {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 0;
    background: #fff;
}

.lk-card-row > .lk-card-media.lk-media-logo img {
    object-fit: contain;
    height: auto;
    min-height: 0;
    width: 52%;
    border-radius: 0;
    box-shadow: none;
}

.lk-card-row > .lk-card-media.lk-media-logo img:hover {
    transform: none;
}

.lk-media-caption {
    display: block;
    font-size: 10px;
    line-height: 1.45;
    color: var(--lk-muted);
    text-align: center;
    padding: 0 6px;
}

.lk-news-more {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    font-weight: 700;
}

/* Ficha del modelo dentro del hero. */
.lk-hero-model {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    animation: lk-rise .7s ease both;
}

.lk-hero-model-cover img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.lk-hero-model h1 {
    margin-top: 10px;
}

.lk-hero-model-buy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
}

.lk-hero-model-buy .lk-price {
    margin-bottom: 0;
    font-size: 26px;
}

@media (max-width: 767px) {
    .lk-hero-model {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 18px;
    }
}

.lk-index-title {
    font-size: 20px;
    margin: 0 0 6px;
}

.lk-index-title small {
    color: var(--lk-muted);
    font-size: 13px;
    font-weight: 400;
}

/* Cuadernos institucionales: marco contenido para la foto y lista de beneficios. */
.lk-fig-frame {
    max-width: 320px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(36, 81, 54, .10);
}

.lk-fig-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lk-fig-frame figcaption {
    padding-top: 10px;
    font-size: 12.5px;
    color: var(--lk-muted);
    text-align: center;
}

.lk-check {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.lk-check li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 15px;
}

.lk-check li > i.fa {
    color: var(--lk-green);
    flex: none;
}

.lk-step {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--lk-green);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 2px;
}

/* Imagen en tonos de grises. */
.lk-gray {
    filter: grayscale(1);
}

.lk-media-gray img {
    filter: grayscale(1);
}

/* Variante compacta: escala contenida para secciones institucionales. */
.lk-compact .lk-title {
    font-size: 23px;
    margin-bottom: 8px;
}

.lk-compact .lk-fig-frame {
    max-width: 240px;
    padding: 10px;
}

.lk-fig-plain {
    max-width: 240px;
    margin: 0 auto;
}

.lk-fig-plain img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.lk-fig-plain figcaption {
    padding-top: 10px;
    font-size: 12.5px;
    color: var(--lk-muted);
    text-align: center;
}

.lk-compact .lk-check {
    margin-bottom: 12px;
}

.lk-compact .lk-check li {
    font-size: 13.5px;
    margin-bottom: 7px;
}

.lk-compact p.text-muted {
    font-size: 13px;
}

/* Mini cards de contenidos + link volver. */
.lk-mini-thumb {
    flex: none;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.lk-mini-meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--lk-muted);
}

.lk-mini-meta a {
    font-weight: 700;
    white-space: nowrap;
}

.lk-back {
    display: inline-block;
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--lk-green-dark);
    text-decoration: none;
}

.lk-back:hover {
    color: var(--lk-green);
    text-decoration: underline;
}

/* Chips de pertenencia en el hero + galería de páginas escaneadas. */
.lk-hero-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.lk-flag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    transition: background .15s ease;
}

.lk-flag:hover {
    color: #fff;
    background: rgba(255, 255, 255, .22);
    text-decoration: none;
}

.lk-pages {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.lk-page {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lk-line);
}

.lk-page img {
    display: block;
    width: 100%;
    height: auto;
}

.lk-page span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border-radius: 5px;
    padding: 2px 8px;
}

@media (max-width: 991px) {
    .lk-pages {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lk-pages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    padding: 24px;
    cursor: zoom-out;
}

.lk-lightbox[hidden] {
    display: none;
}

.lk-lightbox img {
    max-width: min(900px, 100%);
    max-height: 90vh;
    background: #fff;
    border-radius: 4px;
}

/* Grilla de novedades con más aire. */
.lk-news-grid {
    margin-left: -22px;
    margin-right: -22px;
}

.lk-news-grid > div {
    padding-left: 22px;
    padding-right: 22px;
}
.lk-data {
    margin: 0;
}

.lk-data > div {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--lk-line);
    font-size: 13.5px;
}

.lk-data > div:last-child {
    border-bottom: 0;
}

.lk-data dt {
    flex: none;
    width: 76px;
    color: var(--lk-muted);
    font-weight: 400;
}

.lk-data dd {
    margin: 0;
}
.lk-mini {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
}

.lk-mini-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf3ec;
    color: var(--lk-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.lk-mini h4 {
    margin: 2px 0 4px;
    font-size: 15px;
}

.lk-mini p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--lk-muted);
}
.lk-topic-index {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    counter-reset: lk-topic;
}

.lk-topic-index li {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.lk-topic-index li:hover,
.lk-topic-index li:focus-within,
.lk-topic-index li.lk-open {
    border-color: var(--lk-green);
    z-index: 20;
}

.lk-topic-index li.lk-disabled {
    background: #f4f4f3;
    border-color: #e4e4e2;
    color: #a3a3a3;
}

.lk-topic-index li > a {
    color: inherit;
    text-decoration: none;
}

.lk-topic-index li > a:hover {
    color: var(--lk-green-dark);
    text-decoration: underline;
}

.lk-topic-index li.lk-disabled:hover,
.lk-topic-index li.lk-disabled:focus-within,
.lk-topic-index li.lk-disabled.lk-open {
    border-color: #b9b9b7;
}

.lk-topic-index li.lk-disabled .lk-topic-code {
    color: #8a8a8a;
    background: #e4e4e2;
}

/* Título de materia en listados simples de temas. */
.lk-subject-title {
    font-size: 19px;
    color: var(--lk-green-dark);
    margin: 36px 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #cfe4d8;
    text-transform: capitalize;
}

/* Lista simple de todos los temas: solo nombres, compacta, sin negritas. */
.lk-topic-index.lk-topic-plain li {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 3px 6px;
    font-size: 12.5px;
    font-weight: 400;
}

.lk-topic-index.lk-topic-plain li:hover,
.lk-topic-index.lk-topic-plain li:focus-within,
.lk-topic-index.lk-topic-plain li.lk-open {
    border-color: transparent;
    background: #fff;
    border-radius: 6px;
}

.lk-topic-index.lk-topic-plain .lk-topic-code {
    background: none;
    padding: 0;
    min-width: 0;
    border-radius: 0;
}

.lk-topic-index.lk-topic-plain li.lk-disabled {
    background: none;
}

.lk-topic-index.lk-topic-plain li.lk-disabled .lk-topic-code {
    background: none;
}

/* Lista en columnas: usa grid (no multicolumna CSS) para que los
   tooltips absolutos no se fragmenten ni se recorten en la columna vecina. */
.lk-topic-index.lk-topic-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
}

.lk-topic-index.lk-topic-cols > li {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .lk-topic-index.lk-topic-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lk-topic-index.lk-topic-cols {
        grid-template-columns: 1fr;
    }
}

/* Tooltip HTML del tema: título + código + descripción. */
.lk-tip {
    display: block;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: min(280px, calc(100vw - 32px));
    background: #1d1d1f;
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 50;
    text-align: left;
}

.lk-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: #1d1d1f;
}

.lk-topic-index li:hover > .lk-tip,
.lk-topic-index li:focus-within > .lk-tip,
.lk-topic-index li.lk-open > .lk-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lk-tip-head {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.lk-tip-code {
    display: inline-block;
    font-size: 11px;
    background: var(--lk-green);
    border-radius: 5px;
    padding: 2px 7px;
    margin-right: 6px;
    vertical-align: 1px;
}

.lk-tip-body {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
}

/* Si no hay lugar arriba, el tooltip se muestra debajo del item. */
.lk-topic-index .lk-tip.lk-tip-below {
    top: calc(100% + 10px);
    bottom: auto;
}

.lk-topic-index .lk-tip.lk-tip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1d1d1f;
}

/* En columnas laterales el tooltip se alinea al borde para no salir de pantalla. */
@media (min-width: 992px) {
    .lk-topic-index li:nth-child(4n+1) > .lk-tip {
        left: 0;
        transform: translateX(0) translateY(4px);
    }

    .lk-topic-index li:nth-child(4n+1) > .lk-tip::after {
        left: 24px;
        margin-left: 0;
    }

    .lk-topic-index li:nth-child(4n+1):hover > .lk-tip,
    .lk-topic-index li:nth-child(4n+1):focus-within > .lk-tip,
    .lk-topic-index li:nth-child(4n+1).lk-open > .lk-tip {
        transform: translateX(0) translateY(0);
    }

    .lk-topic-index li:nth-child(4n) > .lk-tip {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(4px);
    }

    .lk-topic-index li:nth-child(4n) > .lk-tip::after {
        left: auto;
        right: 24px;
        margin-left: 0;
    }

    .lk-topic-index li:nth-child(4n):hover > .lk-tip,
    .lk-topic-index li:nth-child(4n):focus-within > .lk-tip,
    .lk-topic-index li:nth-child(4n).lk-open > .lk-tip {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .lk-topic-index li:nth-child(2n+1) > .lk-tip {
        left: 0;
        transform: translateX(0) translateY(4px);
    }

    .lk-topic-index li:nth-child(2n+1) > .lk-tip::after {
        left: 24px;
        margin-left: 0;
    }

    .lk-topic-index li:nth-child(2n+1):hover > .lk-tip,
    .lk-topic-index li:nth-child(2n+1):focus-within > .lk-tip,
    .lk-topic-index li:nth-child(2n+1).lk-open > .lk-tip {
        transform: translateX(0) translateY(0);
    }

    .lk-topic-index li:nth-child(2n) > .lk-tip {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(4px);
    }

    .lk-topic-index li:nth-child(2n) > .lk-tip::after {
        left: auto;
        right: 24px;
        margin-left: 0;
    }

    .lk-topic-index li:nth-child(2n):hover > .lk-tip,
    .lk-topic-index li:nth-child(2n):focus-within > .lk-tip,
    .lk-topic-index li:nth-child(2n).lk-open > .lk-tip {
        transform: translateX(0) translateY(0);
    }
}

/* Variante de 3 columnas: resetea el pin lateral de 4n y realinea bordes en 3n. */
@media (min-width: 992px) {
    .lk-topic-index.lk-topic-3cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lk-topic-index.lk-topic-3cols li > .lk-tip {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(4px);
    }

    .lk-topic-index.lk-topic-3cols li > .lk-tip::after {
        left: 50%;
        right: auto;
        margin-left: -7px;
    }

    .lk-topic-index.lk-topic-3cols li:hover > .lk-tip,
    .lk-topic-index.lk-topic-3cols li:focus-within > .lk-tip,
    .lk-topic-index.lk-topic-3cols li.lk-open > .lk-tip {
        transform: translateX(-50%) translateY(0);
    }

    .lk-topic-index.lk-topic-3cols li:nth-child(3n+1) > .lk-tip {
        left: 0;
        right: auto;
        transform: translateX(0) translateY(4px);
    }

    .lk-topic-index.lk-topic-3cols li:nth-child(3n+1) > .lk-tip::after {
        left: 24px;
        right: auto;
        margin-left: 0;
    }

    .lk-topic-index.lk-topic-3cols li:nth-child(3n+1):hover > .lk-tip,
    .lk-topic-index.lk-topic-3cols li:nth-child(3n+1):focus-within > .lk-tip,
    .lk-topic-index.lk-topic-3cols li:nth-child(3n+1).lk-open > .lk-tip {
        transform: translateX(0) translateY(0);
    }

    .lk-topic-index.lk-topic-3cols li:nth-child(3n) > .lk-tip {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(4px);
    }

    .lk-topic-index.lk-topic-3cols li:nth-child(3n) > .lk-tip::after {
        left: auto;
        right: 24px;
        margin-left: 0;
    }

    .lk-topic-index.lk-topic-3cols li:nth-child(3n):hover > .lk-tip,
    .lk-topic-index.lk-topic-3cols li:nth-child(3n):focus-within > .lk-tip,
    .lk-topic-index.lk-topic-3cols li:nth-child(3n).lk-open > .lk-tip {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 991px) {
    .lk-topic-index.lk-topic-3cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lk-topic-index.lk-topic-3cols {
        grid-template-columns: 1fr;
    }
}

.lk-topic-code {
    flex: none;
    min-width: 34px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--lk-green-dark);
    background: #eaf3ec;
    border-radius: 6px;
    padding: 3px 8px;
}

@media (max-width: 991px) {
    .lk-topic-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lk-topic-index {
        grid-template-columns: 1fr;
    }
}

.lk-card-btn {
    display: block;
    text-align: center;
    background: var(--lk-green);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 11px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s ease;
}

.lk-card-btn:hover {
    background: var(--lk-green-dark);
    color: #fff !important;
    text-decoration: none;
}

.lk-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--lk-green);
    margin-bottom: 10px;
}

.lk-price small {
    color: var(--lk-muted);
    font-size: 12px;
    font-weight: 400;
}

/* Grilla de cards con igual altura (Bootstrap 3 usa floats). */
.lk-products-grid {
    display: flex;
    flex-wrap: wrap;
}

.lk-products-grid > [class*="col-"] {
    float: none;
    display: flex;
}

.lk-products-grid .lk-card {
    flex: 1 1 auto;
    width: 100%;
}

.lk-badge {
    display: inline-block;
    background: #eaf3ec;
    color: var(--lk-green-dark);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.lk-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lk-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--lk-line);
    border-top: 3px solid var(--lk-green);
    border-radius: 0 0 10px 10px;
    padding: 16px 16px 14px;
    box-shadow: 0 2px 10px rgba(36, 81, 54, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lk-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(36, 81, 54, .13);
}

.lk-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf3ec;
    color: var(--lk-green-dark);
    font-size: 18px;
}

.lk-info-text {
    min-width: 0;
}

.lk-info-item h2 {
    font-size: 13px;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lk-info-item p {
    color: var(--lk-muted);
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.lk-info-item-contact .lk-wa,
.lk-info-item-contact .lk-tel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.lk-info-item-contact .lk-wa {
    background: var(--lk-green);
    color: #fff !important;
}

.lk-info-item-contact .lk-wa:hover {
    background: var(--lk-green-dark);
    color: #fff !important;
}

.lk-info-item-contact .lk-wa .fa-whatsapp {
    font-size: 15px;
}

.lk-info-item-contact .lk-tel {
    margin-left: 8px;
    border: 2px solid var(--lk-green);
    color: var(--lk-green-dark);
    padding: 6px 12px;
}

.lk-info-item-contact .lk-tel:hover {
    background: #eef6f1;
    color: var(--lk-green-dark);
}

.lk-info-item-contact .lk-tel .fa-phone {
    font-size: 13px;
}

.lk-info-item-contact small {
    display: block;
    margin-top: 5px;
    color: var(--lk-muted);
    font-size: 11px;
}

.lk-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

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

.lk-table th {
    background: #faf9f6;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lk-table tr:last-child td {
    border-bottom: 0;
}

.lk-form-section {
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.lk-form-section h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Migas de pan en heroes oscuros. */
.lk-crumb {
    position: relative;
    z-index: 3;
    margin-bottom: 10px;
    font-size: 13px;
}

.lk-crumb a {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 2px 0;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    cursor: pointer;
}

.lk-crumb a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Artículo de novedades: texto libre sin recuadro. */
.lk-article {
    font-size: 15.5px;
    line-height: 1.7;
}

.lk-article > :first-child {
    margin-top: 0;
}

.lk-article h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.lk-article h3 {
    font-size: 20px;
    margin: 26px 0 10px;
}

.lk-article h4 {
    font-size: 16px;
    margin: 20px 0 8px;
}

.lk-article .btn {
    margin: 0 12px 18px 0;
}

/* Variante plana: sin bordes en contenedores ni botones. */
.lk-flat .lk-mini {
    display: block;
    border: 0;
    box-shadow: none;
    background: none;
    padding-left: 0;
}

.lk-flat .lk-mini-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--lk-muted);
}

.lk-flat .lk-mini > p.lk-mini-price {
    margin: 2px 0 4px;
    padding-left: 28px;
    font-size: 13px;
    color: var(--lk-ink);
}

.lk-flat .lk-mini-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

.lk-flat .lk-mini-head h4 {
    margin: 0;
    font-size: 15px;
}

.lk-flat .lk-mini > p {
    margin: 28px 0 4px;
    padding-left: 28px;
}

.lk-flat .lk-mini-icon {
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    color: #3a3a3a;
    font-size: 18px;
    line-height: 1.4;
}

.lk-flat .btn-default {
    border-color: transparent;
    box-shadow: none;
    background: #f4f4f5;
}

.lk-flat .btn-default:hover {
    border-color: transparent;
    background: #e4e4e7;
}

.lk-pay-compact .radio-inline {
    margin-right: 18px;
    font-weight: 400;
}

.lk-pay-compact .lk-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--lk-ink);
    cursor: pointer;
}

.lk-pay-compact .lk-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 0;
    accent-color: var(--lk-green);
    cursor: pointer;
}

.lk-pay-compact .btn {
    margin-top: 12px;
}

/* El tema legacy oculta los inputs nativos esperando un <i> decorativo:
   en el formulario de pedido se usan los nativos. */
#lk-order-form .radio input,
#lk-order-form .checkbox input {
    position: static;
    margin-right: 6px;
}

.lk-medida-head {
    margin-bottom: 10px;
}

.lk-medida-head h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.lk-medida-head .lk-help {
    margin: 0;
}

.lk-form-section .form-group > label {
    font-weight: 600;
}

.lk-help {
    color: var(--lk-muted);
    font-size: 12px;
    margin-top: 5px;
}

.lk-order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.lk-summary {
    position: sticky;
    top: 110px;
    background: var(--lk-sand);
    border: 1px solid var(--lk-line);
    border-radius: 8px;
    padding: 22px;
}

.lk-summary h3 {
    margin-top: 0;
}

.lk-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--lk-line);
    font-size: 14px;
}

.lk-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--lk-green);
}

.lk-topic-box {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: none;
}

.lk-topic-subject {
    margin-bottom: 14px;
}

.lk-topic-subject h4 {
    font-size: 14px;
    margin: 8px 0;
}

.lk-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lk-topic-list label {
    font-weight: 400;
    font-size: 12px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.lk-topic-list input {
    margin-top: 3px;
}

.lk-alert {
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.lk-alert-danger {
    background: #fdecea;
    border: 1px solid #f5c6c3;
    color: #8a1f17;
}

.lk-alert-info {
    background: #eef6f1;
    border: 1px solid #cfe4d8;
    color: var(--lk-green-dark);
}

.lk-footer-cta {
    display: block;
    background: var(--lk-green);
    color: #fff;
    text-align: center;
    padding: 26px 18px;
    font-size: 22px;
    font-weight: 300;
    text-decoration: none;
}

.lk-footer-cta:hover {
    background: var(--lk-green-dark);
    color: #fff;
}

/* Hero de páginas internas con malla de fondo. */
.lk-hero-ai.lk-hero-ai-page {
    background: linear-gradient(90deg, #131316 0%, #27272a 100%);
}

.lk-hero-ai-page .lk-hero-ai-inner {
    padding: 36px 0 48px;
}

.lk-hero-ai-page .lk-price {
    color: #fff;
}

.lk-hero-ai-page .text-muted {
    color: rgba(255, 255, 255, .65);
}

.lk-hero-ai-page .lk-btn + .lk-btn {
    margin-left: 8px;
}

/* Hero home: malla 3D de fondo. */
.lk-hero-ai {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 0;
    padding: 0;
    color: #fff;
    background: linear-gradient(90deg, #08170f 0%, #0a1f15 55%, #0d2a1c 100%);
}

.lk-hero-grid {
    display: block;
}

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

.lk-hero-ai-inner {
    max-width: 1020px;
    padding: 40px 0 54px;
    animation: lk-rise .7s ease both;
}

/* Malla 3D como fondo de todo el hero. */
.lk-terrain-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

.lk-terrain-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /* El desborde lateral se funde suave en los bordes del hero. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* Velo sutil para legibilidad del texto: no tapa la malla de la izquierda. */
.lk-hero-shade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(8, 23, 15, .62) 0%, rgba(8, 23, 15, .28) 38%, rgba(8, 23, 15, .05) 70%);
    pointer-events: none;
}

.lk-hero-ai-eyebrow {
    color: #9fd8b8;
    margin-bottom: 12px;
}

.lk-hero-ai h1 {
    color: #fff;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 8px;
}

.lk-hero-ai-sub {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}

.lk-hero-ai-lead {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.55;
    max-width: 680px;
    margin: 0;
}

.lk-hero-ai-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lk-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .2s ease;
}

/* Botones Bootstrap con verde de marca (nada de verde flúor ni azul). */
.btn-success {
    background-color: var(--lk-green);
    border-color: var(--lk-green);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
    background-color: var(--lk-green-dark);
    border-color: var(--lk-green-dark);
}

.btn-primary {
    background-color: var(--lk-green);
    border-color: var(--lk-green);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: var(--lk-green-dark);
    border-color: var(--lk-green-dark);
}

.lk-btn .fa {
    margin-right: 8px;
}

.lk-btn-primary {
    background: #336e48;
    color: #fff !important;
}

.lk-btn-primary:hover {
    background: #245136;
    color: #fff !important;
}

.lk-btn-ghost {
    border-color: rgba(255, 255, 255, .7);
    color: #fff !important;
}

.lk-btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
}

@keyframes lk-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lk-hero-ai-inner {
        animation: none;
    }
}



/* Megamenu Productos: panel angosto, estructurado y serio. */
@media (min-width: 992px) {
    #topNav #topMain > li.dropdown.mega-menu {
        position: relative;
    }

    #topNav #topMain > li.dropdown.mega-menu > ul.dropdown-menu.lk-mega {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 780px;
        max-width: none;
        padding: 0;
        margin: 0;
        background: #fff;
        border: 1px solid #e2ddd2;
        border-top: 3px solid var(--lk-green);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 30px 60px rgba(20, 40, 28, .22);
        overflow: hidden;
    }

    #topNav .lk-mega > li {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #topNav .lk-mega-grid {
        display: grid;
        grid-template-columns: 1.1fr 1fr 1.1fr 200px;
    }

    #topNav .lk-mega-col {
        padding: 20px 16px 16px;
    }

    #topNav .lk-mega-col + .lk-mega-col {
        border-left: 1px solid #ece7dc;
    }

    #topNav .lk-mega-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--lk-green-dark);
        padding-bottom: 10px;
        margin-bottom: 8px;
        border-bottom: 1px solid #ece7dc;
    }

    #topNav .lk-mega-title > i.fa {
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        font-size: 12px;
        color: var(--lk-green-dark);
        background: #eaf3ec;
        border-radius: 6px;
        flex: none;
    }

    /* El link interno del título copia el estilo exacto de .lk-mega-title
       (gana a #topNav ul.dropdown-menu li a del tema legacy). */
    #topNav ul.dropdown-menu li .lk-mega-title > a,
    #topNav ul.dropdown-menu li .lk-mega-title > a:hover,
    #topNav ul.dropdown-menu li .lk-mega-title > a:focus,
    #topNav ul.dropdown-menu li .lk-mega-title > a:visited {
        display: contents;
        margin: 0;
        padding: 0;
        font-size: 11px;
        font-weight: 700;
        line-height: inherit;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--lk-green-dark);
        text-decoration: none;
        background-color: transparent;
    }

    #topNav .lk-mega-title-gap {
        margin-top: 16px;
    }

    #topNav .lk-mega-col ul {
        margin: 0;
        padding: 0;
    }

    #topNav .lk-mega-col ul > li > a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 7px 10px;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        color: #3a3a3a;
        border-radius: 6px;
        text-decoration: none;
        transition: background .15s ease, color .15s ease;
    }

    #topNav .lk-mega-col ul > li > a > i.fa {
        width: 18px;
        text-align: center;
        font-size: 13px;
        color: #8aa896;
        flex: none;
        transition: color .15s ease;
    }

    #topNav .lk-mega-col ul > li > a:hover {
        background: #eef6f1;
        color: var(--lk-green-dark);
    }

    #topNav .lk-mega-col ul > li > a:hover > i.fa {
        color: var(--lk-green-dark);
    }

    #topNav .lk-mega-side {
        background: var(--lk-sand);
        display: flex;
        align-items: stretch;
    }

    #topNav .lk-mega-side-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
        width: 100%;
        padding: 20px 18px;
        text-align: left;
    }

    #topNav .lk-mega-side-box > i.fa {
        font-size: 22px;
        color: var(--lk-green);
        margin-bottom: 4px;
    }

    #topNav .lk-mega-side-box > strong {
        font-size: 14px;
        color: var(--lk-ink);
    }

    #topNav .lk-mega-side-box > p {
        font-size: 12px;
        line-height: 1.5;
        color: var(--lk-muted);
        margin: 0 0 8px;
    }

    #topNav ul.dropdown-menu .lk-mega-side-box > a.lk-mega-cta {
        display: inline-block;
        background: var(--lk-green);
        color: #fff !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        line-height: 1.4;
        padding: 9px 16px;
        margin: 0;
        border-radius: 6px;
        text-decoration: none;
    }

    #topNav ul.dropdown-menu .lk-mega-side-box > a.lk-mega-cta:hover {
        background: var(--lk-green-dark);
        color: #fff !important;
    }

    #topNav ul.dropdown-menu > li > a.lk-mega-foot {
        display: block;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        line-height: 1.4;
        color: var(--lk-green-dark);
        background: #f1efe8;
        border-top: 1px solid #e2ddd2;
        padding: 12px;
        margin: 0;
        text-decoration: none;
    }

    #topNav ul.dropdown-menu > li > a.lk-mega-foot:hover {
        background: #e9e5d8;
        color: var(--lk-green-dark);
    }
}

/* Megamenu en mobile: apilado simple. */
@media (max-width: 991px) {
    #topNav .lk-mega-grid {
        display: block;
    }

    #topNav .lk-mega-col + .lk-mega-col {
        border-left: 0;
        border-top: 1px solid #ece7dc;
    }

    #topNav .lk-mega-side {
        display: none;
    }

    #topNav .lk-mega-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--lk-green-dark);
        padding: 12px 40px 4px;
    }

    #topNav .lk-mega-title > i.fa {
        color: var(--lk-green);
    }

    #topNav .lk-mega-col ul > li > a {
        display: block;
        padding: 7px 40px 7px 62px;
        font-size: 13px;
        color: #333;
    }

    #topNav .lk-mega-col ul > li > a > i.fa {
        margin-right: 8px;
        color: var(--lk-green);
    }

    #topNav .lk-mega-foot {
        display: block;
        padding: 10px 40px;
        font-size: 13px;
        font-weight: 700;
        color: var(--lk-green-dark);
    }
}

/* Desplegables simples (Contenidos, Novedades): misma estetica que el megamenu. */
@media (min-width: 992px) {
    #topNav ul.dropdown-menu.lk-drop {
        min-width: 280px;
        padding: 8px;
        background: #fff;
        border: 1px solid #e2ddd2;
        border-top: 3px solid var(--lk-green);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 24px 48px rgba(20, 40, 28, .20);
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-head {
        padding: 12px 10px 0;
        margin: 0;
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-head > span {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--lk-green-dark);
        padding-bottom: 10px;
        margin-bottom: 8px;
        border-bottom: 1px solid #ece7dc;
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-head > span > i.fa {
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        font-size: 12px;
        color: var(--lk-green-dark);
        background: #eaf3ec;
        border-radius: 6px;
        flex: none;
        margin: 0;
    }

    #topNav ul.dropdown-menu.lk-drop > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        line-height: 1.4;
        color: #3a3a3a;
        border-radius: 6px;
        text-decoration: none;
    }

    #topNav ul.dropdown-menu.lk-drop > li > a > i.fa {
        width: 26px;
        height: 26px;
        line-height: 26px;
        text-align: center;
        flex: none;
        font-size: 12px;
        color: var(--lk-green-dark);
        background: #eaf3ec;
        border-radius: 6px;
        margin: 0;
    }

    #topNav ul.dropdown-menu.lk-drop > li > a:hover {
        background: #eef6f1;
        color: var(--lk-green-dark);
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-foot {
        margin-top: 6px;
        border-top: 1px solid #ece7dc;
        padding-top: 6px;
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-foot > a {
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--lk-green-dark);
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-foot > a > i.fa {
        background: none;
        width: auto;
        height: auto;
        line-height: 1;
    }
}

/* Desplegables simples en mobile. */
@media (max-width: 991px) {
    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-head > span {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 40px 8px;
        margin-bottom: 6px;
        border-bottom: 1px solid #ece7dc;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--lk-green-dark);
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-head > span > i.fa {
        color: var(--lk-green);
    }

    #topNav ul.dropdown-menu.lk-drop > li > a > i.fa {
        margin-right: 8px;
        color: var(--lk-green);
    }

    #topNav ul.dropdown-menu.lk-drop > li.lk-drop-foot > a {
        font-weight: 700;
        color: var(--lk-green-dark);
    }
}

/* Navbar: tipografia normal (no todo mayusculas) + iconos */
#topNav #topMain > li > a {
    text-transform: none;
    letter-spacing: .01em;
    font-size: 14px;
    font-weight: 600;
}

#topNav #topMain > li > a > i.fa {
    margin-right: 6px;
    font-size: 14px;
    opacity: .65;
}

#topNav #topMain ul.dropdown-menu > li > a,
#topNav #topMain ul li a {
    text-transform: none;
    letter-spacing: .01em;
}

/* Dropdowns en mobile (sin jQuery): los abre la clase .open del script del layout. */
@media (max-width: 991px) {
    #topNav nav.nav-main li.dropdown.open > ul.dropdown-menu {
        display: block !important;
        position: static;
        float: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: #fff;
    }
    #topNav nav.nav-main li.dropdown.open > ul.dropdown-menu li a {
        padding-left: 40px;
    }
}

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

    .lk-hero-ai-inner {
        max-width: 720px;
        padding: 30px 0 34px;
    }

    .lk-order-grid {
        grid-template-columns: 1fr;
    }

    .lk-summary {
        position: static;
    }

    .lk-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .lk-hero-ai {
        padding: 0;
    }

    .lk-hero-ai h1 {
        font-size: 32px;
    }

    .lk-hero-ai-sub {
        font-size: 18px;
    }

        .lk-title {
        font-size: 26px;
    }

    .lk-topic-list {
        grid-template-columns: 1fr;
    }

    .lk-section {
        padding: 42px 0;
    }

    .lk-card img {
        height: 160px;
    }
}

/* Radio apenas mayor en todos los botones. */
.btn,
.lk-btn,
.lk-card-btn {
    border-radius: 8px;
}

#topNav ul.dropdown-menu .lk-mega-side-box > a.lk-mega-cta {
    border-radius: 8px;
}

/* Secundarios planos: borde fino y claro. */
.btn-default {
    border: 1px solid #e2e2e2;
    background: #fff;
    color: var(--lk-ink);
    box-shadow: none;
    text-shadow: none;
}

.btn-default:hover,
.btn-default:focus {
    border-color: #d4d4d4;
    background: #f4f4f5;
    color: var(--lk-ink);
    box-shadow: none;
}

/* Visor compacto de páginas del tema. */
.lk-viewer {
    margin-top: 20px;
}

.lk-viewer-stage {
    position: relative;
    margin: 0;
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    justify-content: center;
    min-height: 320px;
}

.lk-viewer-stage img {
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    cursor: zoom-in;
    border-radius: 3px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.lk-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--lk-line);
    background: rgba(255, 255, 255, .95);
    color: var(--lk-green-dark);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    z-index: 2;
}

.lk-viewer-nav:hover {
    background: var(--lk-green);
    border-color: var(--lk-green);
    color: #fff;
}

.lk-viewer-prev { left: 14px; }
.lk-viewer-next { right: 14px; }

.lk-viewer-count {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border-radius: 6px;
    padding: 3px 10px;
}

.lk-viewer-body {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.lk-viewer-stage { flex: 1; min-width: 0; }

.lk-viewer-thumbs {
    flex: none;
    width: 148px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-content: start;
}

.lk-viewer-thumbs--lg {
    width: 212px;
    grid-template-columns: repeat(3, 1fr);
}

.lk-viewer-thumbs--xl {
    width: 276px;
    grid-template-columns: repeat(4, 1fr);
}

.lk-viewer-thumbs button {
    flex: none;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    opacity: .75;
}

.lk-viewer-thumbs button img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.lk-viewer-thumbs button:hover { opacity: 1; }

.lk-viewer-thumbs button.is-active {
    border-color: var(--lk-green);
    opacity: 1;
}

.lk-viewer-hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--lk-muted);
}

.lk-lightbox .lk-viewer-nav {
    position: static;
    transform: none;
    flex: none;
}

.lk-lightbox {
    gap: 14px;
}

/* Contenido IA del tema: sobrio, con la paleta del sitio. */
.lk-ai-theory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.lk-ai-card {
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 10px;
    padding: 15px 18px 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.lk-ai-card-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lk-ai-index {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--lk-green);
}

.lk-ai-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}



.lk-ai-chips { margin: 7px 0 0 30px; }

.lk-ai-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #5b665c;
    background: #f4f6f4;
    border: 1px solid var(--lk-line);
    border-radius: 4px;
    padding: 1px 8px;
    margin: 0 5px 4px 0;
}

.lk-ai-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.lk-ai-box {
    border: 1px solid var(--lk-line);
    border-left: 3px solid #c6cdc6;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    background: #fff;
}

.lk-ai-box h4 {
    margin: 0 0 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lk-muted);
}

.lk-ai-box p { margin: 0; font-size: 13.5px; line-height: 1.6; }

.lk-ai-box--ia {
    background: #fbfdfb;
    border-color: var(--lk-line);
    border-left-color: var(--lk-green);
}

.lk-ai-box--ia h4 { color: var(--lk-green-dark); }

.lk-ai-block { margin-top: 34px; }

.lk-ai-block-title {
    font-size: 21px;
    margin: 0 0 12px;
}

.lk-ai-block-title small {
    color: var(--lk-muted);
    font-weight: 400;
    font-size: 14px;
}

.lk-ai-tandas dt {
    width: 44px;
    font-size: 16px;
    font-weight: 700;
    color: var(--lk-green-dark);
}

.lk-ai-details {
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.lk-ai-details summary {
    cursor: pointer;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    list-style: none;
}

.lk-ai-details summary::-webkit-details-marker { display: none; }

.lk-ai-details summary::before {
    content: '+';
    display: inline-block;
    width: 22px;
    color: var(--lk-green);
    font-weight: 700;
}

.lk-ai-details[open] summary::before { content: '–'; }

.lk-ai-details summary:hover { background: #faf9f6; }

.lk-ai-details > p {
    margin: 0;
    padding: 0 16px 14px 38px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #3a3a3a;
}

.lk-ai-num {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--lk-green);
    border-radius: 50%;
    margin-right: 8px;
}

.lk-ai-verdict {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 12px;
}

.lk-ai-verdict--true {
    color: #245136;
    background: #e2efe5;
    border: 1px solid #bcd4c1;
}

.lk-ai-verdict--false {
    color: #8a2f2f;
    background: #f9e9e9;
    border: 1px solid #e3c4c4;
}

.lk-ai-guide-label {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--lk-muted);
    font-weight: 700;
}

@media (max-width: 767px) {
    .lk-ai-cols { grid-template-columns: 1fr; }
    .lk-viewer-nav { width: 38px; height: 38px; }
    .lk-viewer-stage { padding: 10px; min-height: 220px; }
}

/* Tarjeta CTA al costado del visor. */
.lk-cta-card {
    background: var(--lk-sand);
    border: 1px solid var(--lk-line);
    border-radius: 10px;
    padding: 24px;
    margin-top: 52px;
}

@media (max-width: 991px) {
    .lk-cta-card { margin-top: 24px; }
}

/* Tandas de ejercicios: mini cards en grid compacto. */
.lk-ai-tgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.lk-ai-tcard {
    background: #fff;
    border: 1px solid var(--lk-line);
    border-radius: 8px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lk-ai-tcard-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lk-ai-tcard-head strong {
    font-size: 13px;
    line-height: 1.35;
}

.lk-ai-tcard span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--lk-muted);
}

.lk-ai-tcount {
    align-self: flex-start;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #5b665c !important;
    background: #f4f6f4;
    border: 1px solid var(--lk-line);
    border-radius: 4px;
    padding: 0 8px;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .lk-ai-theory-grid { grid-template-columns: 1fr; }
    .lk-viewer-body { flex-direction: column; }
    .lk-viewer-thumbs {
        width: auto;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .lk-viewer-thumbs button { width: 64px; flex: none; }
}

/* WebP con fallback: el picture hereda el layout del visor. */
.lk-viewer-stage picture { display: flex; justify-content: center; width: 100%; }
.lk-viewer-thumbs picture { display: block; }

/* Títulos del footer: el legacy no trae regla para h4 (vive en layout.css sin cargar). */
#footer h4 {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Footer: contraste AA sobre fondo oscuro + globe ya restaurado en legacy. */
#footer a { color: rgba(255, 255, 255, .85); }
#footer a:hover { color: #a4d65e; }
#footer address, #footer p { color: rgba(255, 255, 255, .8); }

/* Footer: subir el texto base (legacy lo trae en 60%, no llega a AA). */
#footer,
#footer ul.footer-posts > li > small,
#footer .copyright { color: rgba(255, 255, 255, .8); }
