/* ==========================================================================
   Reformas FGL — Estilos del blog
   Se apoya en las variables y tipografías del tema (Yantramanav / Archivo).
   Paleta: azul corporativo #234289 · acento #8fc1c1
   ========================================================================== */

:root {
    --blog-accent: #8fc1c1;
    --blog-brand: #234289;
    --blog-ink: #171717;
    --blog-muted: #575f66;
    --blog-line: rgba(23, 23, 23, .12);
    --blog-soft: #f5f6f8;
}

/* --------------------------------------------------------------------------
   Layout del artículo
   -------------------------------------------------------------------------- */
.post-area {
    background: #fff;
    padding: 80px 0 90px;
}

.post-body {
    font-family: Archivo, sans-serif;
    font-size: 17px;
    line-height: 32px;
    color: #3d444a;
}

.post-body > p {
    margin-bottom: 22px;
}

.post-lead {
    font-size: 20px !important;
    line-height: 36px;
    color: var(--blog-ink);
    font-weight: 500;
    padding-bottom: 8px;
}

.post-body h2 {
    font-size: 32px;
    line-height: 42px;
    color: var(--blog-ink);
    font-weight: 700;
    font-family: Yantramanav, sans-serif;
    margin: 52px 0 20px;
    padding-top: 6px;
}

.post-body h3 {
    font-size: 23px;
    line-height: 32px;
    color: var(--blog-ink);
    font-weight: 700;
    font-family: Yantramanav, sans-serif;
    margin: 34px 0 14px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
}

.post-body ul > li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 11px;
}

.post-body ul > li:before {
    position: absolute;
    content: "";
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--blog-accent);
}

.post-body ol {
    counter-reset: postlist;
}

.post-body ol > li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 13px;
    counter-increment: postlist;
}

.post-body ol > li:before {
    position: absolute;
    content: counter(postlist);
    left: 0;
    top: 3px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: var(--blog-brand);
    color: #fff;
    font-family: Yantramanav, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.post-body strong {
    color: var(--blog-ink);
    font-weight: 700;
}

.post-body a:not(.post-cta-btn) {
    color: var(--blog-brand);
    font-weight: 500;
    border-bottom: 1px solid rgba(35, 66, 137, .35);
    transition: .3s;
}

.post-body a:not(.post-cta-btn):hover {
    color: var(--blog-accent);
    border-bottom-color: var(--blog-accent);
}

/* --------------------------------------------------------------------------
   Cabecera: meta, imagen destacada
   -------------------------------------------------------------------------- */
.post-meta-bar {
    border-bottom: 1px solid var(--blog-line);
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.post-meta-bar span {
    display: inline-block;
    font-family: Yantramanav, sans-serif;
    font-size: 15px;
    color: var(--blog-muted);
    margin-right: 26px;
}

.post-meta-bar span i {
    color: var(--blog-accent);
    margin-right: 8px;
}

.post-featured {
    margin-bottom: 34px;
}

.post-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.post-featured figcaption {
    font-family: Archivo, sans-serif;
    font-size: 14px;
    color: var(--blog-muted);
    padding-top: 10px;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Índice de contenidos
   -------------------------------------------------------------------------- */
.post-toc {
    background: var(--blog-soft);
    border-left: 4px solid var(--blog-brand);
    padding: 26px 30px 20px;
    margin-bottom: 40px;
}

.post-toc h2 {
    font-size: 19px !important;
    font-family: Yantramanav, sans-serif;
    font-weight: 700;
    color: var(--blog-ink);
    margin: 0 0 14px !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.post-toc ol {
    margin-bottom: 0;
    counter-reset: toc;
}

.post-toc ol > li {
    padding-left: 26px;
    margin-bottom: 8px;
    counter-increment: toc;
}

.post-toc ol > li:before {
    content: counter(toc) ".";
    background: none;
    color: var(--blog-accent);
    width: auto;
    height: auto;
    font-size: 15px;
    top: 0;
}

.post-toc a {
    font-family: Archivo, sans-serif;
    font-size: 16px;
    color: #3d444a !important;
    border-bottom: none !important;
}

.post-toc a:hover {
    color: var(--blog-brand) !important;
}

/* --------------------------------------------------------------------------
   Tablas de precios — con scroll horizontal propio en móvil
   -------------------------------------------------------------------------- */
.table-scroll {
    overflow-x: auto;
    margin: 0 0 14px;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-family: Archivo, sans-serif;
    font-size: 16px;
}

.price-table caption {
    caption-side: top;
    font-family: Yantramanav, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--blog-ink);
    text-align: left;
    padding: 0 0 10px;
}

.price-table th {
    background: var(--blog-brand);
    color: #fff;
    font-family: Yantramanav, sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    padding: 13px 16px;
    border: none;
}

.price-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--blog-line);
    color: #3d444a;
}

.price-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.price-table tbody tr:hover {
    background: #f0f5f5;
}

.price-table td:first-child {
    font-weight: 600;
    color: var(--blog-ink);
}

.table-note {
    font-family: Archivo, sans-serif;
    font-size: 14px;
    color: var(--blog-muted);
    font-style: italic;
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Dato destacado
   -------------------------------------------------------------------------- */
.post-callout {
    background: var(--blog-soft);
    border-left: 4px solid var(--blog-accent);
    padding: 24px 30px;
    margin: 32px 0;
}

.post-callout p {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 30px;
}

.post-callout p + p {
    margin-top: 12px;
}

.post-callout strong {
    color: var(--blog-brand);
}

/* --------------------------------------------------------------------------
   Caja de conversión
   -------------------------------------------------------------------------- */
.post-cta {
    background: var(--blog-brand);
    padding: 40px 42px;
    margin: 48px 0;
    text-align: center;
}

.post-cta h2 {
    color: #fff !important;
    font-size: 27px !important;
    line-height: 36px;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.post-cta p {
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 24px;
}

.post-cta-btn {
    display: inline-block;
    background: var(--blog-accent);
    color: #fff !important;
    font-family: Yantramanav, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 15px 34px;
    transition: .4s;
    border: none !important;
}

.post-cta-btn:hover {
    background: #fff;
    color: var(--blog-brand) !important;
}

.post-cta-phone {
    display: block;
    margin-top: 16px;
    font-family: Yantramanav, sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, .8);
}

.post-cta-phone a {
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, .4) !important;
}

/* --------------------------------------------------------------------------
   FAQ (details/summary, sin JS)
   -------------------------------------------------------------------------- */
.post-faq {
    margin-top: 24px;
}

.post-faq details {
    border-bottom: 1px solid var(--blog-line);
    padding: 0;
}

.post-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 40px 20px 0;
    position: relative;
    font-family: Yantramanav, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--blog-ink);
    transition: .3s;
}

.post-faq summary::-webkit-details-marker {
    display: none;
}

.post-faq summary:hover {
    color: var(--blog-brand);
}

.post-faq summary:after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 16px;
    font-size: 26px;
    font-weight: 400;
    color: var(--blog-accent);
    line-height: 1;
}

.post-faq details[open] summary:after {
    content: "\2013";
}

.post-faq details > p {
    padding: 0 0 22px;
    margin: 0;
    font-size: 16px;
    line-height: 30px;
}

/* --------------------------------------------------------------------------
   Pie del artículo y enlaces relacionados
   -------------------------------------------------------------------------- */
.post-footer {
    border-top: 1px solid var(--blog-line);
    margin-top: 50px;
    padding-top: 28px;
}

.post-tags span {
    font-family: Yantramanav, sans-serif;
    font-size: 15px;
    color: var(--blog-muted);
    background: var(--blog-soft);
    padding: 7px 15px;
    display: inline-block;
    margin: 0 6px 8px 0;
}

/* --------------------------------------------------------------------------
   Listado del blog
   -------------------------------------------------------------------------- */
.post-card {
    background: #fff;
    border-bottom: 4px solid var(--blog-accent);
    filter: drop-shadow(0px 10px 20px rgba(137, 137, 137, .15));
    margin-bottom: 30px;
    transition: .5s;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
}

/* Proporción fija: las miniaturas se alinean aunque las fuentes tengan
   distinto formato. Sin esto, una imagen cuadrada y una apaisada
   descuadran las tarjetas de la fila. */
.post-card-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.post-card-thumb a {
    display: block;
    height: 100%;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .6s;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 26px 30px 30px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.post-card-date {
    font-family: Yantramanav, sans-serif;
    font-size: 14px;
    color: var(--blog-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}

.post-card-body h2 {
    font-size: 22px;
    line-height: 30px;
    font-family: Yantramanav, sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-card-body h2 a {
    color: var(--blog-ink);
    transition: .4s;
}

.post-card-body h2 a:hover {
    color: var(--blog-accent);
}

.post-card-body p {
    font-family: Archivo, sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: var(--blog-muted);
    margin-bottom: 20px;
}

.post-card-link {
    margin-top: auto;
    font-family: Yantramanav, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--blog-accent);
    display: inline-block;
}

.post-card-link i {
    margin-left: 9px;
    transition: .3s;
}

.post-card-link:hover {
    color: var(--blog-brand);
}

.post-card-link:hover i {
    margin-left: 14px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .post-area {
        padding: 60px 0 70px;
    }

    .post-body h2 {
        font-size: 27px;
        line-height: 36px;
        margin: 42px 0 16px;
    }

    .post-body h3 {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .post-body {
        font-size: 16px;
        line-height: 30px;
    }

    .post-lead {
        font-size: 18px !important;
        line-height: 32px;
    }

    .post-body h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .post-toc,
    .post-callout {
        padding: 20px 22px;
    }

    .post-cta {
        padding: 32px 24px;
    }

    .post-cta h2 {
        font-size: 23px !important;
        line-height: 31px;
    }

    .post-meta-bar span {
        margin-right: 16px;
        font-size: 14px;
    }

    .post-card-body {
        padding: 22px 24px 26px;
    }
}
