:root {
    /* ============================
   ALL COLOR VARIANCE
   ============================ */
    --font-family: "Poppins", sans-serif;

    /*Neutral Scale*/
    --color-neutral-10: #FAFAFA;
    --color-neutral-20: #F2F2F2;
    --color-neutral-30: #E5E5E5;
    --color-neutral-40: #D4D4D4;
    --color-neutral-50: #A3A3A3;
    --color-neutral-60: #737373;
    --color-neutral-70: #525252;
    --color-neutral-80: #404040;
    --color-neutral-90: #262626;
    --color-neutral-100: #171717;
    --color-neutral-110: #000000;

    /* ============================
   SEMANTIC TOKENS - COLORS
   ============================ */

    /* Surface and Backgrounds */
    --background-dark: var(--color-neutral-90);
    --background-basic: radial-gradient(circle farthest-corner,
            var(--color-neutral-60) 0%,
            var(--color-neutral-100) 100%);


    --color-link: var(--color-neutral-70);
    --color-button-neutral: var(--color-neutral-60);
    --color-button-orange: var(--color-orange-80);
    /* Text */
    --color-text-primary: var(--color-neutral-10);
    --color-text-secondary: var(--color-neutral-40);

    /* Accent and Interactive Elements */
    --color-accent-base: var(--color-orange-50);
    --color-accent-secondary: var(--color-neutral-50);

    /* Borders and Dividers */
    --color-black-subtle: rgba(0, 0, 0, 0.5);

    /* Status Messages */
    --color-status-error: var(--color-red-hard);
    --color-status-success: var(--color-green-hard);

    /* ============================
   TYPOGRAPHY TOKENS
   ============================ */

    /*Figma size 100 ---> Css size 70px --> 100 * 0.7 = 70px*/
    --line-height-lg: 64px;
    --line-height-md: 48px;
    --line-height-sm: 24px;
    --letter-spacing-sm: 0px;
    --letter-spacing-lg: -0.25px;

    /* ============================
   SPACING SCALE
   ============================ */

    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 32px;
    --space-xl: 64px;

    /* ============================
   OTHER TOKENS
   ============================ */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 80px;

    /* Shadows */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 4px 4px 1px rgba(0, 0, 0, 0.4);
    --shadow-button-hover: 0 0 0.625em var(--color-neutral-10);

    /* Border Width */
    --border-sm: 1px;
    --border-md: 2px;

    /* Transition Durations */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

.body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--background-dark);


    scrollbar-width: thin;
    scrollbar-color: var(--color-neutral-20) var(--color-neutral-90);
}

.main {
    height: 100%;
    width: 100%;
    padding-bottom: var(--space-l);
}

a {
    text-decoration: none;
}

.main-basic {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-dark);
    height: auto;
    color: var(--color-neutral-10);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.main-basic.hero {
    min-height: 0;
    height: 50vh;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.main-basic.hero .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.footer {
    color: var(--color-neutral-10);
    padding: var(--space-l);
    gap: var(--space-s);
    background: var(--background-basic);
}

.footer p {
    line-height: var(--line-height-lg);
}

.icon {
    width: 60px;
}

.icon-sm {
    width: 40px;
}

.img-header {
    border-radius: 0;
    position: relative;
    left: 0px;
    bottom: var(--space-l);
    margin-inline: var(--space-l);
}

/* Variantes de peso */
.text--thin {
    font-weight: 100;
}

.text--light {
    font-weight: 300;
}

.text--normal {
    font-weight: 400;
}

.text--medium {
    font-weight: 500;
}

.text--semibold {
    font-weight: 600;
}

.text--bold {
    font-weight: 700;
}

.text--italic {
    font-style: italic;
}

/* ============================
   HEADINGS AS OOCSS OBJECTS
   ============================ */

.heading--thin {
    font-weight: 100;
}

.heading--light {
    font-weight: 300;
}

.heading--normal {
    font-weight: 400;
}

.heading--medium {
    font-weight: 500;
}

.heading--semibold {
    font-weight: 600;
}

.heading--bold {
    font-weight: 700;
}

.heading--italic {
    font-style: italic;
}

.header {
    width: 100%;
    min-height: 10vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: var(--space-s);
    position: relative;
}

.header-dark {
    background-color: var(--background-dark);
}

.header-white {
    background-color: var(--color-neutral-10);
}

.header-basic {
    background: var(--background-basic);
}

.header-landing {
    background: var(--background-basic);
    flex-direction: row;
    gap: var(--space-m);
    height: 26vh;
}

.header-secondary {
    background: var(--background-basic);
    flex-direction: row;
    gap: var(--space-m);
    border-bottom: 2px solid var(--color-neutral-10);
    height: 25vh;
}

.text {
    font-family: var(--font-family);
    line-height: var(--line-height-sm);
    letter-spacing: var(--letter-spacing-sm);
}

.text-semibold {
    font-weight: 700;
}

.text-bold {
    font-weight: 800;
}

.hgroup {
    width: 90vw;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    margin-top: var(--space-l);
}

a.card {
    color: var(--color-neutral-10);
}

.underline {
    border-bottom: 2px solid var(--color-neutral-10);
    padding-bottom: var(--space-s);
}


.title-lg {
    font-size: 50px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: var(--line-height-lg);
    letter-spacing: var(--letter-spacing-lg);
    text-shadow: var(--shadow-md);
    margin: 0;
}

.title-md {
    font-size: 45px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: var(--line-height-lg);
    letter-spacing: var(--letter-spacing-sm);
    text-shadow: var(--shadow-md);
    margin: 0;
}

.title-sm {
    font-size: 35px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: var(--line-height-md);
    letter-spacing: var(--letter-spacing-sm);
    margin: 0;
}

.subtitle-lg {
    font-size: 22.4px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: var(--line-height-sm);
    letter-spacing: var(--letter-spacing-lg);
    margin: 0;
}

.subtitle-md {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: var(--line-height-sm);
    margin: 0;
}

.text-body {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: var(--line-height-sm);
    letter-spacing: var(--letter-spacing-sm);
}

.title-md-secondary {
    color: var(--color-text-secondary);
}

.list-unstyled,
.list-ordered {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-neutral-10);
    line-height: var(--line-height-sm);
    padding-left: var(--space-l);
    list-style-position: outside;
}

.list-unstyled li,
.list-ordered li {
    padding-block: var(--space-xs);
}

.list-unstyled {
    list-style-type: disc;
}

.list-ordered {
    list-style-type: decimal;
}

.nav {
    padding: var(--space-xs);
    background-color: var(--color-neutral-100);
}

.preview-container {
    width: 480px;
    height: 180px;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    overflow: hidden;
    /* recorta la imagen */
    padding: var(--space-m);
    background-color: var(--color-neutral-110);
    align-items: center;
}

/* Contenedor que posiciona todo */
.image-preview {
    position: relative;
    width: 450px;
    height: 100%;
    align-items: center;
}

/* La imagen se comporta como background */
.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    /* evita deformación */
    z-index: 1;
    /* detrás del texto */
}

.preview-text {
    font-family: var(--font-family);
    width: 100%;
    padding-left: var(--space-m);
    font-size: 16px;
}

.preview-title {
    position: absolute;
    width: 90%;
    z-index: 2;
    /* por encima de la imagen */
    top: 10px;
    left: var(--space-m);
    padding-top: var(--space-m);
    background-color: var(--color-black-subtle);
    color: var(--color-neutral-10);
    font-size: 22px;
    font-family: var(--font-family);
    font-weight: 400;
}

.carousel {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 1em;
    border-top: 1px solid var(--color-neutral-10);
    border-bottom: 1px solid var(--color-neutral-10);
    gap: var(--space-s);
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-l);
    background-color: var(--color-neutral-100);
    padding: var(--space-xs) var(--space-s);
    font-family: var(--font-family);
    position: relative;
}

.hamburger-btn {
    display: none;
    /* solo aparece en móvil */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: var(--space-s);
    background-color: var(--color-neutral-100);
    padding: var(--space-m);
    position: absolute;
    top: 100%;
    right: var(--space-s);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.nav .menu-row {
    background-color: var(--color-neutral-100);
}

.nav-link {
    position: relative;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 2px 2px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-neutral-10);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--color-neutral-10);
}


.main-menu {
    position: fixed;
    bottom: 0;
}

.input {
    max-width: 100%;
    font-family: var(--font-family);
    height: 40px;
    padding-block: var(--space-s);
    padding-inline: var(--space-l);
    background-color: var(--color-neutral-10);
    border: var(--border-md) solid var(--color-neutral-100);
    border-radius: var(--radius-md);
}

.input::placeholder {
    color: var(--color-neutral-60);
    font-weight: 500;
}

.header .input {
    width: 500px;
}

.img {
    border: none;
}

.img-profile {
    flex: 0 0 auto;
    width: 30px;
    border-radius: var(--radius-full);
}

.card .user-label>.img.img-profile {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    flex: 0 0 auto;
}

.card .big .user-label>.img.img-profile {
    width: 50px;
    height: 50px;
}

.header .img-profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}


.button {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--font-family);
    height: 40px;
    min-width: 125px;
    font-weight: 700;
    border: var(--border-md) solid var(--color-black-subtle);
    border-radius: 10px;
    padding-inline: var(--space-s);
    transition: var(--transition-base);
    gap: var(--space-xs);
}

.button .img {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
}

.button:hover {
    color: var(--color-neutral-10);
    border: 1px solid var(--color-neutral-10);
    box-shadow: var(--shadow-button-hover);
}

.button-error {
    color: var(--color-neutral-10);
    background-color: var(--color-status-error);
}

.button-error:hover {
    background-color: var(--color-red-light);
}

.button-green {
    color: var(--color-neutral-10);
    background-color: var(--color-status-success);
}

.button-green:hover {
    background-color: var(--color-green-light);
}

.button-unactive {
    color: var(--color-neutral-10);
    border: none;
    background-color: var(--color-neutral-60);
}

.button-unactive:hover {
    color: var(--color-neutral-10);
    box-shadow: none;
}

.button-primary {
    color: var(--color-neutral-10);
    background-color: var(--color-orange-80);
}

.button-primary-static {
    color: var(--color-neutral-10);
    background-color: var(--color-orange-80);
}

.button-primary:hover {
    background-color: var(--color-accent-base);
}

.button-secondary {
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background-color: var(--color-button-primary);
}

.button-secondary:hover {
    background-color: var(--color-accent-secondary);
}

.header .button-corner {
    position: absolute;
    right: var(--space-l);
    top: var(--space-l);
}

.code {
    background-color: #1e1e1e;
    color: #dcdcdc;
    align-items: center;
    padding-inline: var(--space-l);
    display: block;
    font-family: "Courier New", monospace;
    font-size: 14px;
    overflow-x: auto;
    margin-block: var(--space-l);
}

.section {
    color: var(--color-neutral-10);
    padding: var(--space-l);
    width: 100%;
}

.section-list {
    align-items: center;
    width: 50%;
}

.section-typography>div {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    margin-bottom: var(--space-l);
}

.section-cards {
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    gap: var(--space-m);
    padding-top: var(--space-l);
}

.section-typography h1,
.section-typography h2,
.section-typography h3,
.section-typography h4,
.section-typography h5,
.section-typography h6,
.section-typography p,
.section-typography ul,
.section-typography ol {
    margin: 0;
}

.background-neutral-dark {
    width: 100%;
    padding: var(--space-l);
    color: var(--color-neutral-10);
    background-color: var(--color-neutral-60);
}

.row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-xs);
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-xs);
}

.card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    width: 160px;
    height: 180px;
    background-color: var(--color-neutral-110);
    padding-block: var(--space-m);
    padding-inline: var(--space-xs);
    margin-bottom: var(--space-s);
    gap: var(--space-xs);
}
.card:target {
    background-color: var(--color-neutral-80); 
}
.card img {
    width: 100%;
    height: 300px;
    /* ajusta según tu diseño */
    width: auto;
    height: auto;
    object-fit: cover;
    overflow: hidden;
    margin-bottom: var(--space-s);
    border-radius: var(--radius-lg);
    display: block;
}

.card-big {
    width: 430px;
    height: 430px;
    object-fit: cover;
}

.card-long {
    width: 500px;
    height: 240px;
    object-fit: cover;
}

.card-long img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-big img {
    height: 380px;
}

.form {
    display: flex;
    flex-direction: column;
    width: 40%;
    border-radius: var(--radius-lg);
    min-height: 200px;
    background-color: var(--color-neutral-70);
    max-width: 500px;
    margin-block: var(--space-l);
    gap: var(--space-xs);
    padding: var(--space-l);
}

.form .hgroup {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form .section {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.form .form-button {
    width: 100%;
}

.user-label {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-block: 0;
    gap: var(--space-s);
}

.label {
    display: flex;
    flex-direction: row;
    gap: var(--space-l);
    font-size: 13px;
    padding-left: var(--space-s);
    font-weight: 600;
    color: var(--color-orange-40);
    align-items: center;
}

.user-label .text {
    padding: var(--space-s);
}


.header .paragraph {
    width: 80%;
}

.paragraph-image {
    width: 85%;
    display: flex;
    flex-direction: row;
    background-color: var(--color-neutral-110);
    border-top: 1px solid var(--color-neutral-10);
    border-bottom: 1px solid var(--color-neutral-10);
    padding: var(--space-m);
}

.big-image {
    width: 85%;
}

.medium-image {
    width: 30%;
}

.img-post {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    height: auto;
}

.card .section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
}


.link {
    color: #7EA3BD;
    transition: var(--transition-base);
}

.link:visited {
    color: var(--color-neutral-60);
}

.link:hover {
    cursor: pointer;
    text-decoration: underline;
}

.link:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-accent-secondary);
    outline-offset: 2px;
}

.link:active {
    color: var(--color-accent-base);
    transform: translateY(1px);
}



/* Links Section */
.section-links {
    width: 80%;
    max-width: 1200px;
    padding-top: 50px;
    margin-bottom: 100px;
}

.link-states-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-state-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.link-state-item p {
    margin: 0;
    min-width: 150px;
}

/*ONLY FOR DEMO PURPOSES*/
.link-default-demo {
    /* Aplica los mismos estilos que .link */
    color: var(--color-text-secondary) !important;
    text-decoration: underline !important;
}

.link-hover-demo {
    /* Aplica los mismos estilos que .link:hover */
    color: var(--color-accent-secondary) !important;
    text-decoration: none !important;
    cursor: default;
    /* Evita que el cursor cambie mientras está en estado estático */
}

.link-active-demo {
    /* Aplica los mismos estilos que .link:active */
    color: var(--color-accent-base) !important;
    transform: scale(0.98);
}

.link-visited-demo {
    /* Aplica los mismos estilos que .link:visited */
    color: var(--color-neutral-60) !important;
    text-decoration: none !important;
}

.link-focus-demo {
    /* Aplica los mismos estilos que .link:focus */
    color: var(--color-accent-secondary) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px var(--color-accent-secondary);
    outline-offset: 2px;
}

.outline {
    color: var(--color-neutral-30);
    font-style: normal;
    text-decoration: underline;
    transition: var(--transition-base);
}

.outline:hover {
    cursor: pointer;
    color: var(--color-neutral-100);
    background-color: var(--color-orange-30);
}

/* Color Palette Section */
.section-colors {
    padding-top: var(--space-xl);
    width: 80%;
    max-width: 1200px;
}

.section-colors .title-md {
    margin-bottom: var(--space-l);
}

.color-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-l);
    margin-bottom: var(--space-xl);
}

.color-item {
    display: flex;
    flex-direction: column;
    width: 130px;
    gap: var(--space-s);
    transition: transform var(--transition-fast);
}

.color-item:hover {
    transform: translateY(-4px);
}

.color-swatch {
    width: 100%;
    height: 80px;
    background-color: var(--color-value);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.color-label {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-neutral-40);
    line-height: 1.2;
    display: block;
    word-break: break-all;
}

/* Token Demonstration Container */
.section-tokens {
    padding-top: var(--space-xl);
    width: 80%;
    max-width: 1200px;
}


.section-tokens .title-md {
    margin-bottom: var(--space-m);
}

.tokens-group {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 50px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* --- SPACING DEMO --- */
.spacing-demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* The gap is set inline */
}

.spacing-card {
    width: 100px;
    height: 25px;
    background-color: var(--color-accent-secondary);
    border-radius: 4px;
}

/* --- RADIUS DEMO --- */
.radius-demo-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radius-box {
    width: 80px;
    height: 80px;
    background-color: var(--color-orange-50);
}

/* --- SHADOW DEMO --- */
.shadow-demo-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shadow-box {
    width: 80px;
    height: 80px;
    background-color: var(--color-neutral-10);
    /* Light background for shadow visibility */
    border-radius: var(--radius-sm);
}

/* --- BORDER DEMO --- */
.border-demo-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.border-box {
    width: 80px;
    height: 80px;
    background-color: var(--color-neutral-10);
    border: solid var(--color-neutral-40);
    border-radius: var(--radius-sm);
}

.transition-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 1200px) {

    .section,
    .section-links,
    .section-colors,
    .section-tokens {
        width: 95%;
    }

    .form {
        width: 60%;
    }
}

@media (max-width: 992px) {

    .form {
        width: 80%;
    }

    .section-list {
        width: 70%;
    }

    .hgroup::after {
        width: calc(100% + 10px);
    }
}

@media (max-width: 768px) {
    .hgroup::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-neutral-40);
    }


    .card {
        width: 180px;
        height: 200px;
    }

    .card img {
        margin-bottom: var(--space-s);
    }

    .card-big {
        
        width: 380px;
        height: 380px;
        object-fit: cover;
    }

    .card-long {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .card-long img {
        width: 100%;
        height: 120px;
        margin-bottom: var(--space-s);
        object-fit: cover;
    }

    .card-big img {
        margin-bottom: var(--space-s);
        width: 100%;
        height: 380px;
    }

    .paragraph-image {
        width: 100%;
    }

    .big-image {
        width: 100%;
    }

    .text {
        font-size: 0.8em;
        line-height: 1.2em;
    }

    .body {
        flex-direction: column;
    }

    .menu-row {
        flex-direction: row;
    }

    .menu-row>.nav-link:not(:first-child) {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .hamburger-menu.open {
        display: flex;
    }

    .hamburger-btn {
        display: block;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        font-size: var(--space-m);
        color: var(--color-neutral-10);
        background-color: var(--color-neutral-80);
        border-radius: var(--radius-full);
        padding: 0.5em;
    }

    .hamburger-btn.open {
        background-color: var(--color-neutral-10);
        color: var(--color-neutral-80);
    }

    .hamburger-menu {
        position: absolute;
        top: 53vh;
        right: 0;
        font-family: var(--font-family);
        background-color: var(--color-neutral-80);
        width: 100%;
        height: 100%;
        text-align: right;
        display: none;
        flex-direction: column;
        padding: var(--space-m);
        gap: var(--space-s);
        box-shadow: var(--shadow-md);
    }

    .menu-toggle:checked~.hamburger-menu .nav-link {
        pointer-events: auto;
    }

    .hamburger-menu .nav-link {
        pointer-events: auto;
    }

    .hamburger-menu .nav-link:active {
        /* al hacer clic, desmarca el checkbox */
        /* truco nativo sin JS */
    }

    .menu-toggle:checked~.hamburger-menu {
        display: flex;
    }

    .hamburger-menu:focus-within {
        display: none;
        /* se cierra al hacer clic en cualquier enlace */
    }

    .hamburger-menu.open {
        display: flex;
    }

    .main-basic.hero {
        height: 20vh;
    }

    .nav {
        gap: var(--space-s);
    }

    .form {
        width: 100%;
    }

    .section-list {
        width: 100%;
    }

    .title-lg {
        font-size: 45px;
    }

    .title-md {
        font-size: 28px;
    }

    .title-sm {
        font-size: 22px;
    }

    .subtitle-lg,
    .subtitle-md,
    .text-body {
        font-size: 14px;
    }

    .icon {
        width: 40px;
    }

    .icon-sm {
        width: 30px;
    }

    .header .img-profile {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        overflow: hidden;
    }

    .preview-container {
        width: 400px;
        height: 120px;
        padding: var(--space-m);
    }

    .preview-text {
        font-size: 14px;
    }

    .preview-title {
        font-size: 18px;
    }

}

@media (max-width: 576px) {
    .section-cards {
        gap: 0.2em;
    }

    .hgroup {
        margin-top: var(--space-m);
    }

    .card {
        width: 140px;
        height: 150px;
    }

    .card img {
        margin-bottom: var(--space-s);
    }

    .card-big {
        width: 300px;
        height: 300px;
        object-fit: cover;
    }

    .card-long {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .card-long img {
        width: 100%;
        height: 120px;
        margin-bottom: var(--space-s);
        object-fit: cover;
    }

    .card-big img {
        margin-bottom: var(--space-s);
        width: 300px;
        height: 300px;
    }

    .header-landing {
        height: 20vh;
    }


    .text {
        font-size: 0.8em;
        line-height: 1.2em;
    }

    .main-basic.hero {
        min-height: 0;
        height: 30vh;
        padding: 0;
        overflow: hidden;
        position: relative;
    }

    .title-lg {
        font-size: 28px;
    }

    .title-md {
        font-size: 22px;
    }

    .title-sm {
        font-size: 18px;
    }

    .subtitle-lg,
    .subtitle-md,
    .text-body {
        font-size: 12px;
    }

    .hamburger-menu {
        top: 43vh;
    }

    .button {
        min-width: 100px;
        height: 35px;
        font-size: 14px;
    }

    .button .img {
        width: 24px;
        height: 24px;
    }

    .img-profile {
        width: 40px;
        height: 40px;
    }

    .section,
    .section-links,
    .section-colors,
    .section-tokens {
        width: 100%;
        padding: var(--space-s);
    }
}

@media (max-width: 300px) {
    .title-lg {
        font-size: 22px;
        line-height: var(--line-height-sm);
    }

    .preview-container {
        width: 300px;
        height: 100px;
        padding: var(--space-m);
    }

    .hamburger-menu {
        top: 44vh;
    }
}