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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #202124;
    line-height: 1.6;
}

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

.container {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =========================
   CONTENIDO CENTRADO FEROAPLI
========================= */

.page-content,
.article-page,
.article-body,
.article-description,
.article-list,
.job-list {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.article-body,
.article-description {
    max-width: 820px;
}

.article-body img,
.article-description img {
    max-width: 100%;
    height: auto;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body h2,
.article-body h3,
.article-description p {
    max-width: 100%;
}

/* =========================
   HEADER
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

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

.logo {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.logo span {
    color: #087cf2;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: #555555;
    font-size: 15px;
}

.main-nav a:hover {
    color: #111111;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

/* =========================
   PORTADA
========================= */

.intro {
    text-align: center;
    padding: 75px 20px 60px;
}

.intro h1 {
    font-size: 54px;
    line-height: 1.1;
    letter-spacing: -1.8px;
    margin-bottom: 18px;
}

.intro p {
    max-width: 650px;
    margin: auto;
    color: #666666;
    font-size: 18px;
}

/* =========================
   ARTÍCULOS
========================= */

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 25px;
    padding-bottom: 85px;
}

.article-card {
    min-width: 0;
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f2f3f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content h2 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 9px;
}

.article-content p {
    color: #666666;
    font-size: 15px;
}

/* =========================
   PÁGINAS Y CATEGORÍAS
========================= */

.page-content {
    padding: 70px 0 90px;
}

.page-content > h1 {
    font-size: 42px;
    margin-bottom: 40px;
}

.article-list {
    display: flex;
    flex-direction: column;
}

.article-list a {
    padding: 22px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 20px;
    font-weight: 600;
}

.article-list a:hover {
    color: #087cf2;
}

.box {
    max-width: 780px;
    margin: 0 auto;
}

/* =========================
   ARTÍCULO
========================= */

.article-page {
    max-width: 780px;
    padding-top: 70px;
    padding-bottom: 90px;
}

.article-page h1 {
    font-size: 46px;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.article-description {
    color: #666666;
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.article-meta,
.meta {
    color: #888888;
    font-size: 14px;
    margin-bottom: 50px;
}

.article-body {
    font-size: 18px;
    line-height: 1.85;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    font-size: 28px;
    margin: 45px 0 18px;
}

.article-body h3 {
    font-size: 22px;
    margin: 35px 0 14px;
}

.category {
    display: inline-block;
    color: #087cf2;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.back {
    display: inline-block;
    margin-top: 35px;
    color: #087cf2;
    font-weight: 700;
}

/* =========================
   CABECERA ESPECIAL DE ARTÍCULO
========================= */

.article {
    max-width: 780px;
    margin: 0 auto;
}

.hero {
    background: #f5f7fa;
    border-radius: 14px;
    padding: 45px 35px;
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
}

.hero-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero p {
    color: #666666;
}

/* =========================
   CONTENIDO ESPECIAL
========================= */

.feature,
.case,
.setting,
.function {
    margin: 45px 0;
}

.feature-title,
.case-title,
.setting-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.feature-title h2,
.case-title h2,
.setting-title h2 {
    margin: 0;
    font-size: 26px;
}

.icon {
    font-size: 27px;
    flex-shrink: 0;
}

.function-number,
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f6fb;
    color: #087cf2;
    font-weight: 700;
}

/* =========================
   PASOS
========================= */

.steps,
.step {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 22px;
    margin: 22px 0;
}

.steps ol,
.steps ul {
    margin: 12px 0 0 22px;
}

.steps li {
    margin: 8px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-number {
    flex-shrink: 0;
}

/* =========================
   AVISOS
========================= */

.solution,
.tip,
.warning,
.problem,
.result {
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.solution {
    background: #f1f8f3;
}

.tip {
    background: #fff8e8;
}

.warning {
    background: #fff3f0;
}

.problem {
    background: #f5f5f5;
}

.result {
    background: #f1f6fb;
}

.solution p,
.tip p,
.warning p,
.problem p,
.result p {
    margin-top: 8px;
}

/* =========================
   IMÁGENES / ANUNCIOS
========================= */

.image-placeholder {
    min-height: 180px;
    background: #f2f3f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777777;
    padding: 25px;
    margin: 25px 0;
}

.ad-space {
    min-height: 90px;
    margin: 30px 0;
}

/* =========================
   ÍNDICE / RESUMEN
========================= */

.toc,
.summary {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.toc ul,
.summary ul {
    margin: 12px 0 0 22px;
}

.toc li,
.summary li {
    margin: 8px 0;
}

/* =========================
   TABLAS
========================= */

.compare {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.compare th,
.compare td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.compare th {
    background: #f7f8fa;
}

/* =========================
   EMPLEOS
========================= */

.job-list {
    display: flex;
    flex-direction: column;
}

.job-list article {
    padding: 25px 0;
    border-bottom: 1px solid #eeeeee;
}

.job-list h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.job-list p {
    color: #666666;
}

/* =========================
   FOOTER
========================= */

.site-footer,
footer {
    border-top: 1px solid #eeeeee;
    padding: 38px 0;
    text-align: center;
    color: #777777;
    font-size: 14px;
    margin-top: 30px;
}

.footer-title {
    color: #202124;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* =========================
   MÓVIL
========================= */

@media (max-width: 800px) {

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

    .intro h1 {
        font-size: 45px;
    }

    .article-page h1 {
        font-size: 38px;
    }

}


@media (max-width: 560px) {
    .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-body,
    .article-description,
    .page-content {
        width: 100%;
    }



    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 70px;
        left: 15px;
        right: 15px;
        padding: 10px 0;
        background: #ffffff;
        border: 1px solid #e2e6eb;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 100;
    }

    .main-nav.open a {
        padding: 12px 18px;
    }



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

    .main-nav {
        gap: 20px;
    }

    .intro {
        padding: 55px 15px 45px;
    }

    .intro h1 {
        font-size: 38px;
    }

    .intro p {
        font-size: 16px;
    }

    .articles {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-content {
        padding-top: 50px;
    }

    .article-page {
        padding-top: 50px;
    }

    .article-page h1 {
        font-size: 34px;
    }

    .article-body {
        font-size: 17px;
    }

    .hero {
        padding: 32px 22px;
    }

    .feature-title h2,
    .case-title h2,
    .setting-title h2 {
        font-size: 22px;
    }

}

/* =========================================================
   FEROAPLI — AJUSTE VISUAL ESTILO HAPPYTUTOS
========================================================= */

/* CONTENEDORES */
.container {
    width: min(1080px, calc(100% - 40px));
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* CABECERA */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9edf2;
}

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

/* PORTADA */
.intro {
    max-width: 850px;
    margin: 0 auto;
    padding: 85px 20px 65px;
}

.intro h1 {
    margin-bottom: 14px;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.intro p {
    max-width: 680px;
    margin: 0 auto;
    color: #68707a;
    font-size: 18px;
    line-height: 1.7;
}

/* TARJETAS DE ARTÍCULOS */
.articles {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 0 75px;
    gap: 32px;
}

.article-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(20, 30, 40, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 28px rgba(20, 30, 40, 0.09);
}

.article-image {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
}

.article-content {
    padding: 22px 23px 25px;
}

.article-content h2 {
    margin-bottom: 9px;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.article-content p {
    color: #68707a;
    font-size: 15px;
    line-height: 1.65;
}

/* PÁGINAS */
.page-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 20px 80px;
}

.page-content h1 {
    margin-bottom: 25px;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.page-content h2 {
    margin-top: 34px;
    margin-bottom: 12px;
}

.page-content p,
.page-content li {
    color: #454b52;
    line-height: 1.8;
}

/* ARTÍCULOS */
.article-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 20px 85px;
}

.article-page h1 {
    max-width: 850px;
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1.14;
    letter-spacing: -1.2px;
}

.article-description {
    max-width: 760px;
    margin-bottom: 22px;
    color: #68707a;
    font-size: 18px;
    line-height: 1.75;
}

.article-meta {
    margin-bottom: 38px;
    color: #7a828b;
    font-size: 14px;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.85;
}

.article-body h2 {
    margin-top: 42px;
    margin-bottom: 15px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -.5px;
}

.article-body h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 21px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 25px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

/* CAJAS DESTACADAS */
.box,
.tip,
.warning,
.problem,
.solution,
.result,
.summary,
.compare {
    margin: 28px 0;
    padding: 22px 24px;
    border-radius: 10px;
}

.box {
    border: 1px solid #e4e9ee;
    background: #f8fafc;
}

.tip {
    background: #f3f9ff;
    border: 1px solid #dceeff;
}

.warning {
    background: #fff9ed;
    border: 1px solid #f5e2b7;
}

.problem {
    background: #fff5f5;
    border: 1px solid #f0dada;
}

.solution,
.result {
    background: #f5fbf7;
    border: 1px solid #dceee2;
}

/* PASOS */
.steps {
    margin: 30px 0;
}

.step {
    margin-bottom: 22px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 30, 40, .04);
}

.step-number,
.function-number {
    font-weight: 700;
}

/* LISTADOS */
.article-list,
.job-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.article-list > *,
.job-list > * {
    margin-bottom: 16px;
}

/* ENLACE VOLVER */
.back {
    display: inline-block;
    margin-bottom: 25px;
    color: #087cf2;
    font-weight: 600;
}

/* FOOTER */
.site-footer {
    margin-top: 40px;
    padding: 45px 20px;
    border-top: 1px solid #e9edf2;
    background: #fafbfc;
    color: #6c737c;
}

.footer-title {
    color: #202124;
    font-weight: 700;
}

/* MÓVIL */
@media (max-width: 800px) {
    .container {
        width: min(100% - 32px, 1080px);
    }

    .articles {
        gap: 22px;
    }

    .intro {
        padding: 65px 15px 50px;
    }

    .intro h1 {
        font-size: 44px;
    }

    .article-page h1 {
        font-size: 36px;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 28px);
        padding-left: 0;
        padding-right: 0;
    }

    .intro {
        padding: 50px 10px 40px;
    }

    .intro h1 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .intro p {
        font-size: 16px;
    }

    .articles {
        width: calc(100% - 28px);
        gap: 20px;
        padding-bottom: 50px;
    }

    .article-image {
        min-height: 145px;
    }

    .article-content {
        padding: 19px 19px 22px;
    }

    .article-page,
    .page-content {
        padding: 45px 14px 60px;
    }

    .article-page h1,
    .page-content h1 {
        font-size: 32px;
    }

    .article-description {
        font-size: 16px;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.75;
    }

    .article-body h2 {
        font-size: 25px;
    }

    .box,
    .tip,
    .warning,
    .problem,
    .solution,
    .result,
    .summary,
    .compare,
    .step {
        padding: 18px;
    }
}

