:root {
    --bg: #f7f3ec;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --surface-soft: #f1ece3;
    --text: #20282a;
    --muted: #687174;
    --soft-muted: #89908f;
    --line: rgba(93, 86, 72, 0.16);
    --line-strong: rgba(93, 86, 72, 0.28);
    --accent: #245d4d;
    --accent-dark: #174437;
    --accent-soft: #e7efe9;
    --shadow: 0 14px 40px rgba(32, 40, 42, 0.06);
    --shadow-lg: 0 26px 68px rgba(32, 40, 42, 0.10);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1160px;

    /* Tipografías de sistema con mejor comportamiento editorial sin depender de fuentes externas */
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-sans: "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(36, 93, 77, 0.055), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.30), transparent 260px),
        var(--bg);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: -0.005em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.058em;
    text-wrap: balance;
}

h1 {
    max-width: 860px;
    font-size: clamp(3.25rem, 7.4vw, 6.25rem);
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.052em;
}

h3 {
    font-size: clamp(1.32rem, 2vw, 1.55rem);
    line-height: 1.12;
    letter-spacing: -0.038em;
}

strong,
b {
    font-weight: 760;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    max-width: 780px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: white;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(247, 243, 236, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(93, 86, 72, 0.08);
}

.header-inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.045em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 560;
    letter-spacing: -0.012em;
}

.main-nav a {
    position: relative;
    padding: 0.42rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.is-active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--text);
}

.hero {
    padding: clamp(4.7rem, 8vw, 8.6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 7rem);
}

.hero-copy > p:not(.eyebrow) {
    max-width: 570px;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    line-height: 1.82;
    letter-spacing: -0.012em;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.1rem;
}

.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.32rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -0.012em;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-dark);
}

.btn-outline {
    border-color: rgba(36, 93, 77, 0.46);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.34);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
}

.hero-art {
    display: flex;
    justify-content: center;
}

.hero-sketch-image,
.hero-editorial-image {
    width: min(100%, 724px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: multiply;
}

.section {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-tight {
    padding-top: 1.6rem;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.65rem;
}

.text-link {
    color: var(--accent);
    font-weight: 760;
    text-underline-offset: 4px;
}

.text-link:hover,
.text-link:focus {
    text-decoration: underline;
}

.card-grid,
.project-grid,
.topic-list {
    display: grid;
    gap: 1rem;
}

.notes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.note-card,
.project-card,
.topic-pill,
.idea-board article,
.list-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    backdrop-filter: blur(10px);
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.note-card:hover,
.project-card:hover,
.topic-pill:hover,
.idea-board article:hover,
.list-card:hover {
    transform: translateY(-3px);
    border-color: rgba(36, 93, 77, 0.32);
    box-shadow: var(--shadow);
}

.card-link {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 1.55rem;
}

.card-link p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.68;
    letter-spacing: -0.008em;
}

.card-link footer {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--soft-muted);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid-large {
    align-items: stretch;
}

.project-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.15rem;
    padding: 1.55rem;
}

.project-card img {
    padding: 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
}

.project-card p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.topic-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.topic-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 58px;
    padding: 0.7rem 0.9rem;
    color: var(--muted);
    font-weight: 760;
    letter-spacing: -0.01em;
}

.topic-pill img {
    width: 24px;
    height: 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.about-grid p {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.78;
}

.about-sketch-image,
.about-editorial-image {
    width: min(100%, 360px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: multiply;
}

.about-strip,
.cv-strip {
    position: relative;
}

.about-strip::before,
.cv-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.quote-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(231, 239, 233, 0.90), rgba(255, 255, 255, 0.78));
}

.quote-box span {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 4.4rem;
    line-height: 1;
}

.quote-box p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.35;
    font-style: italic;
    letter-spacing: -0.025em;
}

.page-hero {
    padding: clamp(4.3rem, 7vw, 6.4rem) 0 2rem;
}

.page-hero h1 {
    margin-bottom: 1.05rem;
}

.page-hero p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.78;
    letter-spacing: -0.01em;
}

.list-layout {
    display: grid;
    gap: 1rem;
}

.list-card a {
    display: block;
    padding: 1.55rem;
}

.list-card span {
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 780;
    letter-spacing: 0.01em;
}

.list-card h2 {
    margin-top: 0.62rem;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.list-card p {
    max-width: 720px;
    margin-top: 0.95rem;
    color: var(--muted);
    line-height: 1.72;
}

.idea-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.idea-board article {
    padding: 1.55rem;
}

.idea-board p {
    color: var(--muted);
    line-height: 1.7;
}

.idea-board-public article {
    position: relative;
}

.idea-status {
    display: inline-flex;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.77rem;
    font-weight: 820;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.7rem;
}

.idea-board-public a {
    display: inline-flex;
    margin-top: 0.5rem;
}

.content-page,
.post-content {
    font-size: 1.12rem;
    line-height: 1.9;
}

.content-page p,
.post-content p {
    margin-bottom: 1.45rem;
    color: var(--muted);
}

.post-header {
    padding: clamp(4rem, 7vw, 6.2rem) 0 2rem;
}

.post-header .text-link {
    display: inline-block;
    margin-bottom: 2rem;
}

.post-header h1 {
    margin-bottom: 1.05rem;
}

.post-header p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.78;
}

.idea-page .post-header .eyebrow {
    color: var(--accent);
}

.muted {
    color: var(--muted);
}

.site-footer {
    margin-top: 3.25rem;
    border-top: 1px solid var(--line);
    padding: 1.8rem 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.93rem;
    line-height: 1.6;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--accent);
    font-weight: 760;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-cv {
    border: 1px solid rgba(36, 93, 77, 0.34);
    border-radius: 999px;
    padding: 0.38rem 0.88rem !important;
    color: var(--accent) !important;
    font-weight: 780;
}

.nav-cv::after {
    display: none;
}

.nav-cv:hover,
.nav-cv:focus {
    background: var(--accent-soft);
    text-decoration: none;
}

.cv-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(231, 239, 233, 0.86), rgba(255, 255, 255, 0.72));
}

.cv-card p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.project-card-public {
    overflow: hidden;
}

.project-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 180px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 220ms ease;
}

.project-thumb:hover img,
.project-thumb:focus img {
    transform: scale(1.035);
}

.project-thumb-small {
    min-height: 72px;
}

.project-thumb-small img {
    min-height: 72px;
}

.project-video-badge {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    border-radius: 999px;
    background: rgba(32, 40, 42, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 820;
    padding: 0.25rem 0.65rem;
}

.project-detail {
    display: grid;
    gap: 1.5rem;
}

.project-media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.project-media img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.video-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.note-card h3,
.project-card h3,
.list-card h2,
.idea-board h2 {
    text-wrap: balance;
}

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

    .hero-art {
        order: -1;
        max-width: 720px;
        margin-inline: auto;
    }

    .notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid,
    .idea-board {
        grid-template-columns: 1fr;
    }

    .topic-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        min-height: 76px;
    }

    .brand {
        font-size: 1.62rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface-strong);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.9rem 1rem;
        border-radius: 10px;
    }

    .main-nav a:hover,
    .main-nav a:focus,
    .main-nav a.is-active {
        background: var(--accent-soft);
    }

    .main-nav a::after {
        display: none;
    }

    h1 {
        font-size: clamp(2.85rem, 13vw, 4.35rem);
        letter-spacing: -0.06em;
    }

    h2 {
        font-size: clamp(1.85rem, 9vw, 2.45rem);
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-copy > p:not(.eyebrow),
    .page-hero p:not(.eyebrow),
    .post-header p:not(.eyebrow) {
        font-size: 1.02rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .about-grid img {
        width: min(100%, 320px);
    }

    .project-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .project-thumb,
    .project-thumb img {
        min-height: 220px;
    }

    .project-thumb-small,
    .project-thumb-small img {
        min-height: 80px;
    }

    .cv-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-cv {
        display: inline-flex;
        justify-content: center;
        margin-top: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* v1.5.3 - Ajuste de proporción del hero y reducción de aire superior */
.hero {
    padding-top: clamp(2.1rem, 4.2vw, 4.2rem);
    padding-bottom: clamp(2.4rem, 5vw, 4.2rem);
}

.hero-grid {
    align-items: center;
}

.hero-copy h1 {
    max-width: 680px;
    font-size: clamp(3.4rem, 5.7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 1rem;
    font-size: 1.06rem;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 1.55rem;
}

.hero-art {
    align-self: center;
}

.hero-sketch-image,
.hero-editorial-image {
    width: min(100%, 640px);
    mix-blend-mode: multiply;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.site-header + .hero {
    margin-top: 0;
}

@media (min-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.9fr);
    }

    .hero-copy h1 {
        font-size: clamp(3.7rem, 5vw, 5.35rem);
    }
}

@media (max-width: 980px) {
    .hero {
        padding-top: 2.4rem;
    }

    .hero-copy h1 {
        max-width: 760px;
        font-size: clamp(3.2rem, 9vw, 5rem);
    }

    .hero-sketch-image,
    .hero-editorial-image {
        width: min(100%, 680px);
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 1.8rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 11.5vw, 4.2rem);
        line-height: 1.02;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: 1rem;
    }
}


/* v1.5.4 - Ajuste visual solicitado: botones rectangulares, sin CV visible y tarjetas más legibles */

/* Botones como el mockup: rectangulares con borde suavemente redondeado, no tipo píldora */
.btn {
    min-height: 48px;
    border-radius: 7px;
    padding: 0.78rem 1.25rem;
    font-weight: 700;
}

.nav-cv,
.cv-strip {
    display: none !important;
}

/* Hero más cercano al mockup: menos aire y texto más proporcionado */
.hero {
    padding-top: clamp(1.45rem, 3vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3.4rem);
}

.hero-copy h1 {
    max-width: 720px;
    font-size: clamp(3.05rem, 4.9vw, 5.05rem);
    line-height: 1.03;
    letter-spacing: -0.052em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 560px;
    margin-top: 1.05rem;
    font-size: 1.02rem;
    line-height: 1.78;
}

.hero-actions {
    margin-top: 1.45rem;
}

/* Imagen tipo boceto integrada al fondo, sin marco rectangular */
.hero-sketch-image,
.hero-editorial-image {
    width: min(100%, 620px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: multiply;
}

/* Tarjetas con mejor interlineado y ritmo visual */
.note-card,
.project-card,
.topic-pill,
.idea-board article,
.list-card {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.card-link {
    min-height: 210px;
    padding: 1.28rem 1.35rem;
}

.card-link h3,
.project-card h3,
.idea-board h2,
.list-card h2 {
    line-height: 1.22;
}

.card-link p,
.project-card p,
.idea-board p,
.list-card p {
    line-height: 1.62;
}

.card-link footer {
    line-height: 1.4;
}

/* Temas: más aire interno y mejor lectura si el texto parte en dos líneas */
.topic-list {
    gap: 0.95rem;
}

.topic-pill {
    min-height: 62px;
    padding: 0.85rem 1rem;
    line-height: 1.35;
    text-align: center;
}

/* Secciones posteriores a temas: menos sensación de bloque separado */
.about-strip {
    padding-top: clamp(2rem, 4vw, 3.2rem);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(1.3rem, 3vw, 2.6rem);
}

.about-sketch-image {
    width: min(100%, 320px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: multiply;
}

.quote-box {
    border-radius: 8px;
}

@media (min-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
    }

    .hero-copy h1 {
        font-size: clamp(3.25rem, 4.55vw, 4.85rem);
    }
}

@media (max-width: 980px) {
    .hero {
        padding-top: 1.6rem;
    }

    .hero-copy h1 {
        max-width: 760px;
        font-size: clamp(3rem, 8.2vw, 4.7rem);
    }

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

@media (max-width: 720px) {
    .hero {
        padding-top: 1.3rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 10.5vw, 3.75rem);
        line-height: 1.04;
    }

    .btn {
        border-radius: 7px;
    }

    .topic-pill {
        justify-content: flex-start;
        text-align: left;
    }
}


/* ==========================================================
   v2.0.0 - Responsive principal
   Objetivo: escritorio, tablet y móvil sin romper URLs/admin.
   ========================================================== */

html {
    scroll-behavior: smooth;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.container {
    width: min(var(--container, 1160px), calc(100% - clamp(2rem, 6vw, 4rem)));
}

.site-header {
    width: 100%;
}

.header-inner {
    min-height: clamp(72px, 8vw, 92px);
}

.brand {
    white-space: nowrap;
}

.main-nav {
    gap: clamp(0.85rem, 2vw, 2rem);
}

.main-nav a {
    white-space: nowrap;
}

.hero {
    min-height: auto;
    padding-top: clamp(1.5rem, 4vw, 3.6rem);
    padding-bottom: clamp(2.2rem, 5vw, 4rem);
}

.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: clamp(2rem, 5vw, 5.5rem);
}

.hero-copy h1 {
    max-width: 720px;
    font-size: clamp(3rem, 5vw, 5.15rem);
    line-height: 1.04;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-sketch-image {
    display: block;
    width: min(100%, 620px);
    height: auto;
    object-fit: contain;
}

.note-grid,
.project-grid,
.project-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.idea-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.about-sketch-image {
    display: block;
    width: min(100%, 320px);
    height: auto;
}

/* Tablet horizontal y pantallas medianas */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
        gap: clamp(1.5rem, 4vw, 3.5rem);
    }

    .hero-copy h1 {
        font-size: clamp(2.85rem, 5.4vw, 4.6rem);
    }

    .note-grid,
    .project-grid,
    .project-grid-large,
    .idea-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet vertical */
@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: thin;
    }

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

    .hero-art {
        order: -1;
        justify-content: flex-start;
        max-width: 680px;
    }

    .hero-sketch-image {
        width: min(100%, 620px);
    }

    .hero-copy h1 {
        max-width: 760px;
        font-size: clamp(3rem, 9vw, 4.6rem);
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .about-sketch-image {
        width: min(100%, 280px);
    }

    .quote-box {
        align-items: flex-start;
    }
}

/* Móvil */
@media (max-width: 680px) {
    .container {
        width: min(100% - 1.4rem, var(--container, 1160px));
    }

    body {
        font-size: 16px;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        min-height: auto;
        padding: 0.9rem 0;
    }

    .brand {
        font-size: 1.55rem;
    }

    .main-nav {
        gap: 1rem;
        font-size: 0.94rem;
    }

    .hero {
        padding-top: 1.1rem;
        padding-bottom: 2rem;
    }

    .hero-art {
        justify-content: center;
    }

    .hero-sketch-image {
        width: min(100%, 440px);
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .hero-copy h1,
    .page-hero h1,
    .post-header h1 {
        font-size: clamp(2.35rem, 12vw, 3.45rem);
        line-height: 1.06;
        letter-spacing: -0.048em;
    }

    .hero-copy > p:not(.eyebrow),
    .page-hero p:not(.eyebrow),
    .post-header p:not(.eyebrow) {
        font-size: 1rem;
        line-height: 1.72;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 340px;
    }

    .btn {
        width: 100%;
    }

    .note-grid,
    .project-grid,
    .project-grid-large,
    .idea-board,
    .topic-list {
        grid-template-columns: 1fr;
    }

    .card-link {
        min-height: auto;
    }

    .project-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 0.9rem;
    }

    .project-card img {
        width: 52px;
        height: 52px;
    }

    .topic-pill {
        justify-content: flex-start;
        min-height: 54px;
        text-align: left;
    }

    .about-strip {
        padding-top: 2rem;
    }

    .about-sketch-image {
        width: min(100%, 220px);
    }

    .quote-box {
        padding: 1.2rem;
    }

    .quote-box img {
        width: 42px;
        height: 42px;
    }

    .quote-box p {
        font-size: 1.16rem;
    }

    .site-footer {
        margin-top: 2rem;
        padding: 1.3rem 0;
    }
}

/* Móvil pequeño */
@media (max-width: 420px) {
    .container {
        width: min(100% - 1rem, var(--container, 1160px));
    }

    .brand {
        font-size: 1.38rem;
    }

    .main-nav {
        gap: 0.85rem;
        font-size: 0.9rem;
    }

    .hero-copy h1,
    .page-hero h1,
    .post-header h1 {
        font-size: clamp(2.15rem, 13vw, 3rem);
    }

    .hero-sketch-image {
        width: min(100%, 360px);
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card img {
        width: 56px;
        height: 56px;
    }
}


/* ==========================================================
   v2.0.1 - Ajuste de espaciado entre títulos y tarjetas
   ========================================================== */

/* Más aire entre títulos de sección y sus tarjetas */
.section-header {
    margin-bottom: clamp(1.35rem, 2.2vw, 2rem);
}

.section-header h2,
.section > .container > h2,
.section h2:first-child {
    margin-bottom: clamp(1.1rem, 2vw, 1.65rem);
}

/* Evitar que una sección quede visualmente pegada a la anterior */
.section {
    padding-top: clamp(3.4rem, 5.5vw, 5.6rem);
    padding-bottom: clamp(3.2rem, 5vw, 5rem);
}

/* Separación específica después de proyectos destacados */
.project-grid + *,
.note-grid + *,
.topic-list + *,
.idea-board + * {
    margin-top: 2rem;
}

/* Proyectos destacados: si hay pocos elementos, no estirar toda la grilla */
.project-grid {
    align-items: stretch;
}

/* Temas: en desktop deben verse más pequeños y simétricos en un solo renglón */
.topic-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
}

.topic-pill {
    min-height: 52px;
    padding: 0.72rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.22;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.topic-pill img,
.topic-pill svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* En pantallas medianas pasamos a tres columnas equilibradas */
@media (max-width: 1100px) {
    .topic-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .topic-pill {
        white-space: normal;
    }
}

/* En móvil, lectura cómoda en una columna */
@media (max-width: 680px) {
    .section {
        padding-top: 2.6rem;
        padding-bottom: 2.6rem;
    }

    .section-header,
    .section-header h2,
    .section > .container > h2,
    .section h2:first-child {
        margin-bottom: 1rem;
    }

    .topic-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .topic-pill {
        min-height: 50px;
        justify-content: flex-start;
        padding: 0.78rem 0.95rem;
        text-align: left;
        white-space: normal;
    }
}


/* ==========================================================
   v2.0.2 - Reducción conservadora de espacios entre secciones
   ========================================================== */

/* Reduce el espacio vertical global entre bloques del home */
.section {
    padding-top: clamp(2rem, 3.2vw, 3.4rem);
    padding-bottom: clamp(2rem, 3.2vw, 3.4rem);
}

/* Si una sección viene marcada como compacta, se reduce un poco más */
.section-tight {
    padding-top: clamp(1.5rem, 2.4vw, 2.4rem);
    padding-bottom: clamp(1.5rem, 2.4vw, 2.4rem);
}

/* Reduce distancia entre título de sección y tarjetas */
.section-header {
    margin-bottom: clamp(0.85rem, 1.4vw, 1.25rem);
}

.section-header h2,
.section > .container > h2,
.section h2:first-child {
    margin-bottom: clamp(0.75rem, 1.2vw, 1.1rem);
}

/* Reduce margen artificial entre grillas y el siguiente bloque */
.project-grid + *,
.note-grid + *,
.topic-list + *,
.idea-board + * {
    margin-top: 1.25rem;
}

/* Ajuste puntual para la sección de temas, que visualmente estaba muy separada */
.topic-list {
    margin-top: 0.2rem;
}

/* Ajuste móvil: mantener compacto sin quedar apretado */
@media (max-width: 680px) {
    .section {
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }

    .section-tight {
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
    }

    .section-header,
    .section-header h2,
    .section > .container > h2,
    .section h2:first-child {
        margin-bottom: 0.8rem;
    }
}


/* ==========================================================
   v2.1.5 - Menú móvil corregido
   ========================================================== */

/* Centrar botones del hero en responsive */
@media (max-width: 900px) {
    .hero-copy {
        text-align: center;
    }

    .hero-copy > p:not(.eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Escritorio: mantener header arriba y menú horizontal normal */
@media (min-width: 681px) {
    .site-header {
        position: sticky;
        top: 0;
        bottom: auto;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        padding: 0;
    }
}

/* Móvil: barra inferior + botón con estilo anterior + panel que abre arriba/izquierda */
@media (max-width: 680px) {
    body {
        padding-bottom: 82px;
    }

    .site-header {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        border-top: 1px solid var(--line);
        border-bottom: 0;
        background: rgba(247, 243, 236, 0.94);
        backdrop-filter: blur(18px);
    }

    .header-inner {
        position: relative;
        min-height: 68px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 0;
    }

    .brand {
        max-width: calc(100% - 76px);
        overflow: hidden;
        font-size: 1.22rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Conserva el estilo del botón anterior:
       cuadrado redondeado, verde, tres líneas blancas */
    .nav-toggle,
    .mobile-menu-toggle {
        display: inline-flex !important;
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 140;
        width: 52px;
        height: 52px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid var(--line-strong);
        border-radius: 14px;
        background: var(--accent);
        box-shadow: var(--shadow);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle span,
    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(1),
    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.mobile-nav-open .nav-toggle span:nth-child(2),
    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(3),
    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Panel: aparece sobre el botón y se extiende hacia la izquierda */
    .main-nav {
        position: fixed !important;
        right: 1rem;
        left: auto;
        bottom: 4.85rem;
        z-index: 130;
        display: grid !important;
        width: min(290px, calc(100vw - 2rem));
        max-height: min(420px, calc(100vh - 7.5rem));
        overflow-y: auto;
        gap: 0.35rem;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(12px, 18px) scale(0.92);
        transform-origin: bottom right;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    body.mobile-nav-open .main-nav,
    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(0, 0) scale(1);
    }

    .main-nav::after {
        content: "";
        position: absolute;
        right: 18px;
        bottom: -8px;
        width: 16px;
        height: 16px;
        background: rgba(255, 255, 255, 0.98);
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        transform: rotate(45deg);
    }

    .main-nav a {
        position: relative;
        z-index: 1;
        display: block;
        padding: 0.8rem 0.95rem;
        border-radius: 10px;
        color: var(--text);
        font-size: 0.98rem;
        line-height: 1.25;
        text-align: left;
        white-space: normal;
    }

    .main-nav a.is-active,
    .main-nav a:hover,
    .main-nav a:focus {
        background: var(--accent-soft);
        color: var(--accent);
    }

    .hero-actions {
        align-items: center;
        max-width: 340px;
    }
}


/* ==========================================================
   v2.1.8 - Menú móvil overlay robusto
   ========================================================== */

@media (min-width: 681px) {
    .mobile-menu-panel {
        display: none !important;
    }
}

@media (max-width: 680px) {
    body {
        padding-bottom: 70px;
    }

    .site-header {
        position: fixed !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 9000 !important;
        min-height: 62px !important;
        border-top: 1px solid var(--line) !important;
        border-bottom: 0 !important;
        background: rgba(247, 243, 236, 0.94) !important;
        backdrop-filter: blur(18px) !important;
    }

    .header-inner {
        min-height: 62px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .brand {
        max-width: calc(100% - 76px) !important;
        overflow: hidden !important;
        font-size: 1.16rem !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Ocultar el nav original en móvil.
       El menú visible será .mobile-menu-panel creado por JS fuera del header. */
    .site-header .main-nav {
        display: none !important;
    }

    .nav-toggle,
    .mobile-menu-toggle {
        display: inline-flex !important;
        position: fixed !important;
        right: 0.85rem !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.55rem) !important;
        z-index: 10002 !important;
        width: 46px !important;
        height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, 0.28) !important;
        border-radius: 999px !important;
        background: var(--accent) !important;
        box-shadow: 0 10px 26px rgba(31, 37, 40, 0.20) !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-toggle span,
    .mobile-menu-toggle span {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        border-radius: 999px !important;
        background: #fff !important;
        transform-origin: center !important;
        transition: transform 180ms ease, opacity 180ms ease, width 180ms ease !important;
    }

    /* Estado cerrado: hamburguesa */
    .nav-toggle span:nth-child(1),
    .mobile-menu-toggle span:nth-child(1) {
        transform: translate(-50%, calc(-50% - 7px)) !important;
    }

    .nav-toggle span:nth-child(2),
    .mobile-menu-toggle span:nth-child(2) {
        transform: translate(-50%, -50%) !important;
    }

    .nav-toggle span:nth-child(3),
    .mobile-menu-toggle span:nth-child(3) {
        transform: translate(-50%, calc(-50% + 7px)) !important;
    }

    /* Estado abierto: flecha hacia arriba clara */
    body.mobile-nav-open .nav-toggle span:nth-child(1),
    .nav-toggle.is-open span:nth-child(1),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(1),
    .mobile-menu-toggle.is-open span:nth-child(1) {
        width: 14px !important;
        transform: translate(calc(-50% - 5px), calc(-50% - 4px)) rotate(-45deg) !important;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(2),
    .nav-toggle.is-open span:nth-child(2),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(2),
    .mobile-menu-toggle.is-open span:nth-child(2) {
        width: 24px !important;
        transform: translate(-50%, -50%) rotate(90deg) !important;
        opacity: 1 !important;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(3),
    .nav-toggle.is-open span:nth-child(3),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(3),
    .mobile-menu-toggle.is-open span:nth-child(3) {
        width: 14px !important;
        transform: translate(calc(-50% + 5px), calc(-50% - 4px)) rotate(45deg) !important;
    }

    /* Panel visible fuera del header.
       Crece desde la esquina inferior derecha hacia arriba e izquierda. */
    .mobile-menu-panel {
        position: fixed !important;
        right: 0.85rem !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 4.05rem) !important;
        z-index: 10001 !important;
        display: grid !important;
        width: min(275px, calc(100vw - 1.7rem)) !important;
        max-height: min(410px, calc(100vh - 8rem)) !important;
        overflow-y: auto !important;
        gap: 0.35rem !important;
        padding: 0.72rem !important;
        border: 1px solid var(--line) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.985) !important;
        box-shadow: 0 18px 55px rgba(31, 37, 40, 0.20) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform-origin: 100% 100% !important;
        transform: scale(0.08) !important;
        transition: opacity 170ms ease, transform 190ms ease, visibility 170ms ease !important;
    }

    body.mobile-nav-open .mobile-menu-panel,
    .mobile-menu-panel.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: scale(1) !important;
    }

    .mobile-menu-panel::after {
        content: "" !important;
        position: absolute !important;
        right: 16px !important;
        bottom: -8px !important;
        width: 16px !important;
        height: 16px !important;
        background: rgba(255, 255, 255, 0.985) !important;
        border-right: 1px solid var(--line) !important;
        border-bottom: 1px solid var(--line) !important;
        transform: rotate(45deg) !important;
    }

    .mobile-menu-panel a {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        padding: 0.78rem 0.92rem !important;
        border-radius: 12px !important;
        color: var(--text) !important;
        font-size: 0.98rem !important;
        line-height: 1.25 !important;
        text-align: left !important;
        white-space: normal !important;
        text-decoration: none !important;
    }

    .mobile-menu-panel a.is-active,
    .mobile-menu-panel a:hover,
    .mobile-menu-panel a:focus {
        background: var(--accent-soft) !important;
        color: var(--accent) !important;
    }
}


/* ==========================================================
   v2.1.9 - Centrado del ícono del botón móvil
   ========================================================== */

@media (max-width: 680px) {
    .nav-toggle,
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    .nav-toggle span,
    .mobile-menu-toggle span {
        left: 50% !important;
        top: 50% !important;
        margin: 0 !important;
        transform-origin: center center !important;
    }

    /* Estado cerrado: tres líneas perfectamente centradas */
    .nav-toggle span:nth-child(1),
    .mobile-menu-toggle span:nth-child(1) {
        transform: translate(-50%, calc(-50% - 7px)) !important;
    }

    .nav-toggle span:nth-child(2),
    .mobile-menu-toggle span:nth-child(2) {
        transform: translate(-50%, -50%) !important;
    }

    .nav-toggle span:nth-child(3),
    .mobile-menu-toggle span:nth-child(3) {
        transform: translate(-50%, calc(-50% + 7px)) !important;
    }

    /* Estado abierto: flecha hacia arriba centrada dentro del círculo */
    body.mobile-nav-open .nav-toggle span:nth-child(1),
    .nav-toggle.is-open span:nth-child(1),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(1),
    .mobile-menu-toggle.is-open span:nth-child(1) {
        width: 14px !important;
        transform: translate(calc(-50% - 5px), calc(-50% - 3px)) rotate(-45deg) !important;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(2),
    .nav-toggle.is-open span:nth-child(2),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(2),
    .mobile-menu-toggle.is-open span:nth-child(2) {
        width: 24px !important;
        opacity: 1 !important;
        transform: translate(-50%, -50%) rotate(90deg) !important;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(3),
    .nav-toggle.is-open span:nth-child(3),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(3),
    .mobile-menu-toggle.is-open span:nth-child(3) {
        width: 14px !important;
        transform: translate(calc(-50% + 5px), calc(-50% - 3px)) rotate(45deg) !important;
    }
}


/* ==========================================================
   v2.1.10 - Flecha móvil limpia y tarjeta sin scroll
   ========================================================== */

@media (max-width: 680px) {
    /* Tarjeta más alta/ancha para evitar scroll interno con el menú actual */
    .mobile-menu-panel {
        width: min(300px, calc(100vw - 1.4rem)) !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.9rem !important;
        border-radius: 20px !important;
    }

    .mobile-menu-panel a {
        padding: 0.86rem 1rem !important;
        line-height: 1.25 !important;
    }

    /* Flecha abierta más limpia:
       - span 2 = cuerpo vertical
       - span 1 y 3 = punta
       - se evita que el cuerpo atraviese visualmente la punta */
    body.mobile-nav-open .nav-toggle span:nth-child(1),
    .nav-toggle.is-open span:nth-child(1),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(1),
    .mobile-menu-toggle.is-open span:nth-child(1) {
        width: 14px !important;
        transform: translate(calc(-50% - 4px), calc(-50% - 7px)) rotate(-45deg) !important;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(2),
    .nav-toggle.is-open span:nth-child(2),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(2),
    .mobile-menu-toggle.is-open span:nth-child(2) {
        width: 23px !important;
        opacity: 1 !important;
        transform: translate(-50%, calc(-50% + 4px)) rotate(90deg) !important;
    }

    body.mobile-nav-open .nav-toggle span:nth-child(3),
    .nav-toggle.is-open span:nth-child(3),
    body.mobile-nav-open .mobile-menu-toggle span:nth-child(3),
    .mobile-menu-toggle.is-open span:nth-child(3) {
        width: 14px !important;
        transform: translate(calc(-50% + 4px), calc(-50% - 7px)) rotate(45deg) !important;
    }
}


/* ==========================================================
   v2.2.0 - Categorías transversales
   ========================================================== */

.card-category,
.detail-category {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 0.36rem 0.68rem;
    text-transform: uppercase;
}

.card-category {
    margin: 0 0 0.75rem;
}

.detail-category {
    margin: 0 0 1rem;
}
