/* prep-articulos.css */
:root {
    --azul: #1e90ff;
    --fondo: #0d1117;
    --texto: #e2e8f0;
    --gris: #c0c0c0;
    --borde: #1e90ff;
    --card-fondo: #0f172a;
    --card-borde: #1e293b;
    --sombra: rgba(30, 144, 255, 0.4);
    --fuente: 'Poppins', sans-serif;
    --purpura: #9a00f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fondo);
    font-family: var(--fuente);
    color: var(--texto);
    line-height: 1.6;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.hero-content .logo-img img {
    width: 80px;
    display: none;
}

.nav {
    background-color: #10172a;
    position: relative;
}

nav button img {
    border-radius: 8px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle img {
    width: 36px;
    height: 36px;
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
    gap: 1rem;
}

.nav a {
    color: var(--texto);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--azul);
}

.footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    background-color: #0d1224;
    color: var(--gris);
    margin-top: 3rem;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--azul);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links img.icono-red {
    width: 20px;
    height: 20px;
}

.article-container {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
}

.article-title {
    font-size: 2.5rem;
    color: var(--azul);
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--gris);
    text-align: center;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px #00000088;
    border: 1px solid var(--card-borde);
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section h2 {
    color: var(--azul);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.article-section h3 {
    color: var(--azul);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-borde);
}

.croquis-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
    align-items: center;
}

.croquis-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px #00000088;
    border: 1px solid var(--card-borde);
}

.croquis-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.croquis-title {
    font-size: 1.3rem;
    color: var(--azul);
    margin-bottom: 1rem;
    text-align: center;
}

.croquis-text {
    padding: 1rem;
    border-radius: 20px;
    color: var(--texto);
    text-align: center;
}

.feature-section {
    background-color: var(--card-fondo);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--card-borde);
    margin-bottom: 2rem;
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.code-example {
    background-color: #0d1224;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

.code-example h4 {
    color: var(--gris);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

pre,
code {
    font-family: 'Fira Code', monospace;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
}

pre {
    white-space: pre-wrap;
}

code {
    color: #f8f8f2;
    font-size: 0.9rem;
}

.feature-link {
    text-align: right;
    margin-top: 1rem;
}

.feature-link a {
    color: var(--azul);
    text-decoration: none;
    font-weight: bold;
}

.feature-link a:hover {
    text-decoration: underline;
}

.feature-list ul {
    list-style-type: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "→";
    color: var(--azul);
    position: absolute;
    left: 0;
}

.feature-list a {
    color: var(--borde);
    text-decoration: none;
}

.feature-list a:hover {
    color: var(--azul);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
    }


    .nav ul {
        display: none;
        flex-direction: column;
        background-color: #10172a;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .nav ul.show {
        display: flex;
    }

    .nav ul li {
        padding: 0.5rem 0;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .croquis-section {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: flex-start;
    }

    .croquis-content {
        align-items: flex-start;
        text-align: left;
        display: block;
    }

    .croquis-title {
        text-align: center;
    }

    .croquis-text {
        text-align: center;
    }

    .code-comparison {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .article-container {
        padding: 2rem 0;
    }
}

/* Estilos para que el logo en pantallas mayores a 768px se vea */
@media (min-width: 769px) {
    .hero-content .logo-img img {
        display: block;
    }
}

/* Eliminar bullets de todas las listas */
ul,
ol {
    list-style: none;
}