:root {
    --lf-green: #009f4d;
    --lf-green-dark: #007a3a;
    --lf-green-soft: #e9f7ef;
    --lf-ink: #14231b;
    --lf-muted: #5a6b61;
    --lf-line: #d6e4dc;
    --lf-surface: #f6fbf8;
    --lf-card: #ffffff;
    --lf-warn: #b46900;
    --lf-blue: #1f5c8a;
    --lf-shadow: 0 18px 50px rgba(20, 35, 27, 0.08);
    --header-height: 74px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--lf-ink);
    background: var(--lf-surface);
    font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    background: #eef6f1;
    color: var(--lf-green-dark);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.92em;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--lf-line);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(var(--max-width), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: fit-content;
}

.brand__image {
    height: 38px;
    width: auto;
    max-width: 220px;
    display: block;
}

.brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lf-green);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__text strong {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.brand__text small {
    color: var(--lf-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-title {
    flex: 1;
    padding-left: 22px;
    border-left: 1px solid var(--lf-line);
    color: var(--lf-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--lf-muted);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--lf-green-dark);
    background: var(--lf-green-soft);
}

/* GENERAL */

.site-main {
    min-height: calc(100vh - var(--header-height));
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--lf-green-dark);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rule {
    width: 48px;
    height: 3px;
    margin: 20px 0;
    border-radius: 999px;
    background: var(--lf-green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.btn--primary {
    background: var(--lf-green);
    color: white;
    box-shadow: 0 12px 30px rgba(0, 159, 77, 0.22);
}

.btn--primary:hover {
    background: var(--lf-green-dark);
}

.btn--secondary {
    background: white;
    color: var(--lf-green-dark);
    border-color: var(--lf-line);
}

.btn--secondary:hover {
    border-color: var(--lf-green);
    box-shadow: 0 10px 28px rgba(20, 35, 27, 0.08);
}

/* HOME */

.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 44px;
    align-items: center;
    padding: 72px max(32px, calc((100vw - var(--max-width)) / 2)) 64px;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 159, 77, 0.18), transparent 30%),
        linear-gradient(115deg, #ffffff 0%, #f7fbf8 46%, #eaf6ef 100%);
    border-bottom: 1px solid var(--lf-line);
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(0, 159, 77, 0.08);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero__lead {
    max-width: 620px;
    margin-bottom: 20px;
    color: var(--lf-green-dark);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.32;
    font-weight: 600;
}

.hero p:not(.eyebrow):not(.hero__lead),
.section__head p,
.viewer-head p {
    color: var(--lf-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__visual {
    position: relative;
    z-index: 2;
    min-height: 390px;
}

.visual-grid {
    position: absolute;
    inset: 28px 0 0 28px;
    border-radius: 2rem;
    border: 1px solid rgba(0, 159, 77, 0.25);
    background:
        linear-gradient(rgba(0, 159, 77, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 159, 77, 0.08) 1px, transparent 1px),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(233, 247, 239, 0.9));
    background-size: 34px 34px, 34px 34px, 100% 100%;
    box-shadow: var(--lf-shadow);
}

.visual-card {
    position: absolute;
    z-index: 3;
    width: 250px;
    padding: 22px;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--lf-line);
    box-shadow: var(--lf-shadow);
}

.visual-card--one {
    left: 0;
    top: 64px;
}

.visual-card--two {
    right: 30px;
    bottom: 34px;
}

.visual-card .material-symbols-outlined {
    color: var(--lf-green);
    font-size: 2.2rem;
}

.visual-card strong,
.visual-card small {
    display: block;
}

.visual-card strong {
    margin: 12px 0 4px;
    font-size: 1.05rem;
}

.visual-card small {
    color: var(--lf-muted);
}

/* SECCIONES */

.section {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 72px;
}

.section--narrow {
    max-width: 760px;
}

.section__head {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 28px;
}

.section h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

/* TARJETAS DEL ÍNDICE */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.plan-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--lf-card);
    border: 1px solid var(--lf-line);
    border-radius: 1.1rem;
    box-shadow: 0 8px 28px rgba(20, 35, 27, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 159, 77, 0.45);
    box-shadow: var(--lf-shadow);
}

.plan-card__cover {
    position: relative;
    height: 190px;
    background: #ecf5ef;
    overflow: hidden;
}

.plan-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.plan-card:hover .plan-card__cover img {
    transform: scale(1.04);
}

.status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-card__cover .status {
    position: absolute;
    left: 12px;
    bottom: 12px;
}

.status--progress {
    color: #ffffff;
    background: var(--lf-green-dark);
}

.status--draft {
    color: #4b3300;
    background: #ffe2a8;
}

.status--review {
    color: #0f3552;
    background: #cce8ff;
}

.status--done {
    color: #ffffff;
    background: var(--lf-green);
}

.status--archived {
    color: #ffffff;
    background: #69756d;
}

.plan-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.plan-card__topline {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: var(--lf-green-dark);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-card h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.plan-card h3 a:hover {
    color: var(--lf-green-dark);
}

.plan-card__subtitle {
    margin-bottom: 10px;
    color: var(--lf-green-dark) !important;
    font-weight: 700;
}

.plan-card p {
    color: var(--lf-muted);
    line-height: 1.5;
}

.plan-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eef4f0;
    color: var(--lf-muted);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.82rem;
}

.plan-card__footer a {
    color: var(--lf-green-dark);
    font-weight: 800;
}

/* ESTADOS VACÍOS */

.empty-state {
    padding: 48px;
    text-align: center;
    background: white;
    border: 1px dashed rgba(0, 159, 77, 0.45);
    border-radius: 1.2rem;
}

.empty-state .material-symbols-outlined {
    color: var(--lf-green);
    font-size: 3rem;
}

.empty-state h1,
.empty-state h3 {
    margin: 12px 0 8px;
}

.empty-state p {
    color: var(--lf-muted);
    line-height: 1.55;
}

/* PÁGINA INDIVIDUAL */

.context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px max(32px, calc((100vw - var(--max-width)) / 2));
    background: #ffffff;
    border-bottom: 1px solid var(--lf-line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--lf-muted);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--lf-green-dark);
    font-weight: 700;
}

.breadcrumb strong {
    color: var(--lf-ink);
}

.context-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lf-muted);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.84rem;
    white-space: nowrap;
}

.viewer-head {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
}

.viewer-head h1 {
    max-width: 900px;
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.viewer-head p {
    max-width: 820px;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.45;
}

.infografia-shell {
    width: 100%;
    padding: 0 0 56px;
}

.infografia-shell iframe {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    background: white;
}

/* FOOTER */

.site-footer {
    color: #effaf4;
    background: linear-gradient(135deg, #06351e, #005b2c);
}

.site-footer__inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 260px 1fr 270px;
    gap: 28px;
    align-items: center;
}

.site-footer .brand__image {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.site-footer .brand__mark {
    background: #ffffff;
    color: var(--lf-green-dark);
}

.site-footer .brand__text strong,
.site-footer .brand__text small {
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    line-height: 1.5;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.78);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9rem;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 159, 77, 0.16), transparent 35%),
        linear-gradient(135deg, #ffffff, #edf8f2);
}

.login-wrap {
    width: min(100%, 470px);
}

.login-card {
    padding: 34px;
    border: 1px solid var(--lf-line);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--lf-shadow);
    backdrop-filter: blur(14px);
}

.login-brand {
    margin-bottom: 28px;
}

.login-card h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.login-card p {
    color: var(--lf-muted);
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.login-form label {
    color: var(--lf-muted);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--lf-line);
    border-radius: 0.75rem;
    color: var(--lf-ink);
    background: #ffffff;
    font: inherit;
    outline: 0;
}

.login-form input:focus {
    border-color: var(--lf-green);
    box-shadow: 0 0 0 4px rgba(0, 159, 77, 0.12);
}

.login-form button {
    margin-top: 8px;
}

.alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 0.75rem;
    color: #7f1d1d;
    background: #fee2e2;
    border: 1px solid #fecaca;
    font-weight: 700;
}

.login-note {
    margin-top: 22px !important;
    font-size: 0.86rem;
}

/* TABLET */

@media (max-width: 980px) {
    .site-header__inner {
        gap: 14px;
    }

    .site-title {
        padding-left: 14px;
        font-size: 1rem;
    }

    .main-nav a {
        padding: 8px 9px;
        font-size: 0.84rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 54px;
    }

    .hero__visual {
        min-height: 300px;
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section__head,
    .viewer-head,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .viewer-head {
        align-items: start;
    }

    .context-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .context-meta {
        flex-wrap: wrap;
        white-space: normal;
    }
}

/* MÓVIL */

@media (max-width: 680px) {
    :root {
        --header-height: auto;
    }

    .site-header {
        position: relative;
        top: auto;
        height: auto;
        background: #ffffff;
        backdrop-filter: none;
    }

    .site-header__inner {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 12px 18px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(118px, 148px);
        grid-template-rows: auto auto;
        gap: 10px 12px;
        align-items: center;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
    }

    .brand__image {
        height: 34px;
        width: auto;
        max-width: 185px;
    }

    .brand__text small {
        display: none;
    }

    .site-title {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        width: 100%;
        padding: 0 0 0 12px;
        border-left: 1px solid var(--lf-line);
        border-top: 0;
        font-size: 0.9rem;
        line-height: 1.12;
        text-align: left;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 2px 0 0;
        padding-top: 10px;
        border-top: 1px solid var(--lf-line);
        display: flex;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        padding: 8px 11px;
        font-size: 0.82rem;
        flex: 0 0 auto;
    }

    .hero,
    .section,
    .viewer-head,
    .context-bar {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .hero h1 {
        font-size: 2.35rem;
        line-height: 0.98;
    }

    .hero__lead {
        font-size: 1.05rem;
    }

    .hero__visual {
        display: none;
    }

    .section {
        padding-top: 46px;
        padding-bottom: 54px;
    }

    .section h2 {
        font-size: 2.05rem;
    }

    .section__head {
        gap: 14px;
        margin-bottom: 22px;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-card__cover {
        height: 170px;
    }

    .context-bar {
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .breadcrumb {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .context-meta {
        font-size: 0.82rem;
    }

    .viewer-head {
        padding-top: 42px;
        padding-bottom: 30px;
        gap: 22px;
    }

    .viewer-head h1 {
        font-size: 2.15rem;
        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .viewer-head p {
        font-size: 1rem;
        line-height: 1.48;
    }

    .viewer-head .btn {
        width: 100%;
    }

    .infografia-shell iframe {
        min-height: 680px;
    }

    .site-footer__inner {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: left;
    }

    .site-footer .brand__image {
        height: 32px;
        max-width: 180px;
    }

    .login-card {
        padding: 26px;
    }

    .login-card h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 390px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) minmax(106px, 132px);
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand__image {
        height: 31px;
        max-width: 165px;
    }

    .site-title {
        font-size: 0.82rem;
    }

    .hero h1,
    .viewer-head h1 {
        font-size: 2rem;
    }
}