/* Entrada individual del blog — Figma 416:4798 */

body.single-post {
    background-color: #f8f8f8;
}

body.single-post .profic-menu-wrapper::before {
    display: none;
}

body.single-post .elementor-location-header .profic-header-wrap {
    background: transparent !important;
}

.profic-post {
    --pp-ink: #090511;
    --pp-violet: #5d0fec;
    --pp-cta: #4f10cd;
    font-family: 'Amsi Pro', sans-serif;
    color: var(--pp-ink);
    background: #f8f8f8;
}

.profic-post *,
.profic-post *::before,
.profic-post *::after {
    box-sizing: border-box;
}

.profic-post-narrow {
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
}

/* Hero */
.profic-post-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 46px;
    padding: 180px 120px 20px;
}

.profic-post-hero .profic-post-narrow {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.profic-post-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.38;
    color: var(--pp-ink);
    text-decoration: none;
}

.profic-post-back:hover {
    color: var(--pp-violet);
}

.profic-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: -7px;
    font-size: 13px;
    line-height: 1.38;
}

.profic-post-meta-author,
.profic-post-meta-date {
    display: inline-flex;
    align-items: center;
}

.profic-post-meta-author {
    gap: 10px;
}

.profic-post-meta-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.profic-post-meta-date {
    gap: 5px;
}

.profic-post-meta-cat {
    padding: 3px 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.14);
    color: var(--pp-violet);
    letter-spacing: 0.78px;
}

.profic-post-title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pp-ink);
}

.profic-post-lead {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

.profic-post-cover {
    width: 100%;
    max-width: 1040px;
    height: 380px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(90deg, #5d0fec 0%, #1f074f 100%);
}

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

/* Contenido */
.profic-post-body {
    padding: 30px 120px 80px;
    max-width: 1100px;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.profic-post-body > * {
    margin: 0 0 28px;
}

.profic-post-body > *:last-child {
    margin-bottom: 0;
}

.profic-post-body h2,
.profic-post-body h3,
.profic-post-body h4 {
    margin: 56px 0 28px;
    font-weight: 700;
    color: var(--pp-ink);
}

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

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

.profic-post-body h4 {
    font-size: 20px;
    line-height: 28px;
}

.profic-post-body a {
    color: inherit;
    text-decoration: underline;
    text-underline-position: from-font;
}

.profic-post-body a:hover {
    color: var(--pp-violet);
}

.profic-post-body strong,
.profic-post-body b {
    font-weight: 700;
}

.profic-post-body ul,
.profic-post-body ol {
    padding-left: 30px;
}

.profic-post-body li + li {
    margin-top: 28px;
}

.profic-post-body li::marker {
    color: #4000be;
}

.profic-post-body li > strong:first-child,
.profic-post-body li > b:first-child {
    color: #4000be;
}

/* Bloque "TL;DR": se usa el bloque Cita de WordPress */
.profic-post-body blockquote,
.profic-post-body .wp-block-quote {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 56px;
    padding: 40px;
    border: 0;
    border-left: 8px solid var(--pp-cta);
    border-radius: 3px;
    background: rgba(93, 15, 236, 0.07);
    font-style: normal;
}

.profic-post-body blockquote > * {
    margin: 0;
}

.profic-post-body blockquote cite {
    order: -1;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 38px;
}

.profic-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Autor */
.profic-post-author-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    max-width: 1280px;
    margin-inline: auto;
    padding: 50px 195px;
    position: relative;
}

.profic-post-author-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(841px, calc(100% - 40px));
    height: 1px;
    background: rgba(9, 5, 17, 0.25);
    transform: translateX(-50%);
}

.profic-post-author-id {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-inline: 21px;
}

.profic-post-author-photo {
    position: relative;
    width: 160px;
    height: 160px;
}

.profic-post-author-photo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 152px;
    height: 56px;
    transform: translateX(-50%);
    background: url('https://test-profic.dahseo.com/wp-content/themes/hello-elementor-child/assets/images/autor-arco.svg') no-repeat center / contain;
    pointer-events: none;
}

.profic-post-author-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profic-post-author-name {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.profic-post-author-desc {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 31px;
    min-width: 0;
    padding-right: 30px;
}

.profic-post-author-desc p {
    margin: 0;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.profic-post-author-in {
    display: inline-flex;
    width: 20px;
}

/* Posts relacionados */
.profic-post-related {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1280px;
    margin-inline: auto;
    padding: 80px 120px 120px;
}

.profic-post-related-title {
    margin: 0;
    font-size: 45px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    color: var(--pp-ink);
}

.profic-post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.profic-post-card {
    display: flex;
    flex-direction: column;
    height: 440px;
    overflow: hidden;
    border-radius: 21px;
    background: #fff;
    color: var(--pp-ink);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profic-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(9, 5, 17, 0.08);
    color: var(--pp-ink);
}

.profic-post-card-img {
    flex: none;
    height: 180px;
    background: #ebebeb;
}

.profic-post-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profic-post-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.profic-post-card-info p {
    margin: 0;
}

.profic-post-card-cat {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: 0.54px;
    color: var(--pp-violet);
}

.profic-post-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--pp-ink);
}

.profic-post-card-author {
    font-size: 13px;
    line-height: 1.38;
}

.profic-post-card-date {
    margin-top: auto !important;
    font-size: 13px;
    line-height: 1.38;
    text-align: right;
    color: #8c8c8c;
}

/* Tablet */
@media (max-width: 1279px) {
    .profic-post-hero {
        padding: 160px 40px 20px;
    }

    .profic-post-body {
        padding: 30px 40px 80px;
    }

    .profic-post-author-inner {
        gap: 60px;
        padding: 50px 40px;
    }

    .profic-post-related {
        padding: 80px 40px 100px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .profic-post-hero {
        gap: 32px;
        padding: 130px 20px 20px;
    }

    .profic-post-title {
        font-size: 32px;
    }

    .profic-post-lead,
    .profic-post-body,
    .profic-post-author-desc p {
        font-size: 18px;
    }

    .profic-post-cover {
        height: 220px;
    }

    .profic-post-body {
        padding: 20px 20px 60px;
    }

    .profic-post-body blockquote {
        padding: 24px;
    }

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

    .profic-post-author-inner {
        flex-direction: column;
        gap: 30px;
        padding: 50px 20px;
    }

    .profic-post-author-desc {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }

    .profic-post-related {
        gap: 40px;
        padding: 60px 20px 80px;
    }

    .profic-post-related-title {
        font-size: 32px;
    }

    .profic-post-related-grid {
        grid-template-columns: 1fr;
    }
}
