/* =====================================================
   PostListing — layout principal
   ===================================================== */

/* ── Categorías (pills) ──────────────────────────── */
.ptl-cat-header {
    margin-bottom: 3rem;
}

.ptl-cat-titulo {
    font-family: "Lexend Deca", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    color: var(--color3);
    margin: 0 0 1rem;
}

.ptl-cat-subtitulo {
    font-family: "Lexend Deca", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 250;
    color: var(--color3);
    margin: 0;
}

.ptl-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.ptl-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1.5px solid var(--color3);
    border-radius: 20px;
    font-family: "Lexend Deca", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    color: var(--color3);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ptl-cat-pill:hover {
    background: var(--color3);
    color: #ffffff;
    text-decoration: none;
}

.ptl-cat-pill--active {
    background: var(--color3);
    color: #ffffff;
    border-color: var(--color3);
    font-weight: 500;
}

@media (max-width: 767px) {
    .ptl-cat-titulo { 
        font-size: 24px;
        font-style: normal;
        font-weight: 900; 
    }
    .ptl-cat-subtitulo {
        font-size: 20px;
        font-style: normal;
        font-weight: 250;
    }
    .ptl-cat-pill {
        font-size: 14px;
        font-style: normal;
        font-weight: 300; 
        padding: 6px 14px; 
    }
    .ptl-cat-header{
        margin-bottom: 2rem;
    }
}

.ptl-section {
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 10rem;
    background-color: var(--neutro1);
    padding: 0px;
}

.ptl-container {
    width: 85%;
    margin: 0 auto;
}

.ptl-featured .img-wrapper.ptl-img-default,
.ptl-card .img-wrapper.ptl-img-default {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptl-featured .img-wrapper.ptl-img-default img,
.ptl-card .img-wrapper.ptl-img-default img {
    width: auto;
    height: 60%;
    max-width: 60%;
    object-fit: contain;
}

/* =====================================================
   Header: título y subtítulo
   ===================================================== */
.ptl-header {
    margin-bottom: 40px;
}

.ptl-titulo {
    leading-trim: both;
    text-edge: cap;
    font-family: "Lexend Deca";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 54px;
    color: var(--color3);
}

.ptl-titulo span {
    color: var(--color1);
}

.ptl-subtitulo {
    color: var(--neutro2);
    font-family: "Lexend Deca";
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
}

/* =====================================================
   Layout: tarjeta grande izquierda + cuadrícula derecha
   ===================================================== */
.ptl-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 40px;
}

/* =====================================================
   Tarjeta destacada (primera)
   ===================================================== */
.ptl-featured {
    flex: 0 0 43%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e9eb;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.ptl-featured:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ptl-featured .img-wrapper {
    overflow: hidden;
    min-height: 0;
}

.ptl-featured .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ptl-featured:hover .img-wrapper img {
    transform: scale(1.05);
}

.ptl-cont--featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    text-align: left !important;
    align-items: flex-start;
    min-height: 0;
}

.ptl-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ptl-cont {
    height: auto;
}

.ptl-cont.ptl-cont--featured .ptl-title-row .ptl-tit {
    text-align: left;
    font-family: "Lexend Deca";
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: 35px;
    color: var(--color3);
}

.ptl-desc {
    font-size: 0.9rem;
    color: #555;
    font-family: var(--tipo1);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta: autor, fecha, tiempo de lectura ─────── */
.ptl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.ptl-meta-item {
    font-family: "Lexend Deca";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: var(--neutro2);
    white-space: nowrap;
}

.ptl-meta-label {
    color: var(--color3);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
}
.ptl-meta-label--mobile { display: none; }
.ptl-meta-label--desktop { display: inline; }

/* =====================================================
   Cuadricula secundaria (2 columnas, n filas)
   ===================================================== */
.ptl-secondary-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 16px;
    height: 100%;
    align-items: stretch;
}

.ptl-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e9eb;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    min-height: 0;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.ptl-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ptl-card .img-wrapper {
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.ptl-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ptl-card:hover .img-wrapper img {
    transform: scale(1.06);
}

/* Footer de tarjeta pequeña */
.ptl-card .ptl-cont {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    gap: 8px;
    flex: none;
    min-height: 70px;
    height: auto;
}

.ptl-card .ptl-cont .ptl-tit {
    text-align: left;
    font-family: "Lexend Deca";
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: 24px;
    color: var(--color3);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.ptl-card .ptl-cont .ptl-icon {
    flex-shrink: 0;
}

/* =====================================================
   Icono "+"
   ===================================================== */
.ptl-icon {
    all: unset;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ptl-title-row .ptl-icon svg,
.ptl-title-row .ptl-icon img {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: block;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1023px) {
    .ptl-layout {
        flex-direction: column;
    }

    .ptl-featured {
        flex: unset;
        width: 100%;
    }

    .ptl-featured .img-wrapper {
        height: 260px;
        flex: unset;
    }

    .ptl-secondary-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .ptl-card .img-wrapper {
        flex: unset;
        height: 140px;
    }
    .ptl-cont--featured{
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .ptl-container {
        width: 95%;
    }

    .ptl-secondary-grid {
        grid-template-columns: 1fr;
    }

    .ptl-card .img-wrapper {
        height: 180px;
    }

    .ptl-fq-wsp-btn {
        font-size: 20px;
        font-style: normal;
        font-weight: 800;
    }

    .ptl-section .ptl-fq-contenido {
        gap: 0px !important;
    }

    .ptl-card .ptl-cont {
        justify-content: flex-end;
    }

    .ptl-titulo {
        font-family: "Lexend Deca";
        font-size: 30px;
        font-style: normal;
        font-weight: 700;
        line-height: 40px;
        color: var(--color3);
        margin-bottom: 10px;
    }

    .ptl-subtitulo {
        color: var(--neutro2);
        font-family: "Lexend Deca";
        font-size: 20px;
        font-style: normal;
        font-weight: 300;
        line-height: 24px;
    }
}

/* =====================================================
   Bloque pregunta + wsp-card (prefijo ptl-fq-)
   ===================================================== */
.ptl-section .ptl-fq-contenedor {
    margin-top: 60px;
    overflow: visible;
}

.ptl-section .ptl-fq-pregunta {
    border: 1px solid #E8E9EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 30px 40px;
    gap: 15px;
    background: #F9FAFB;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
    overflow: visible;
    position: relative;
}

.ptl-section .ptl-fq-pregunta-left {
    width: 70%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ptl-section .ptl-fq-pregunta-right {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    overflow: visible;
    padding-top: 55px;
}

.ptl-section .ptl-fq-wsp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #6BCE82;
    color: #fff;
    font-family: "Lexend Deca";
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    white-space: nowrap;
}

.ptl-section .ptl-fq-div-int {
    width: 15%;
    text-align: center;
    display: none;
    margin: 0;
}

.ptl-section .ptl-fq-interrogacion {
    color: var(--color1);
    font-size: 96px;
    font-weight: 300;
    font-style: normal;
    width: 10%;
    line-height: 1;
    display: inline-block;
    font-family: "Lexend Deca";
}

.ptl-section .ptl-fq-div-int-svg {
    display: none;
}

.ptl-section .ptl-fq-contenido {
    flex: 1;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ptl-section .ptl-fq-txt {
    font-family: "Lexend Deca";
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
    color: var(--color3);
    margin: 0;
}

.ptl-section .ptl-fq-txt--title {
    font-family: "Lexend Deca";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
}

.ptl-section .ptl-fq-txt--text {
    font-family: "Lexend Deca";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
    color: var(--neutro2);
}

/* wsp-card */
.ptl-section .ptl-fq-wsp-card {
    flex-shrink: 0;
    width: 332px;
    height: 83px;
    border-radius: 19px 19px 0 19px;
    background: #FFFBFB;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    box-sizing: border-box;
    position: absolute;
    top: -41px;
    right: 40px;
}

.ptl-section .ptl-fq-wsp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 62px;
    height: 63px;
}

.ptl-section .ptl-fq-wsp-avatar {
    width: 62px;
    height: 63px;
    border-radius: 63px;
    object-fit: cover;
    display: block;
}

.ptl-section .ptl-fq-wsp-status {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    line-height: 0;
}

.ptl-section .ptl-fq-wsp-card-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ptl-section .ptl-fq-wsp-card-text p {
    color: #005D68;
    font-family: "Lexend Deca";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptl-section .ptl-fq-wsp-card-text p.ptl-fq-wsp-card-subtext {
    color: #6BCE82;
    font-weight: 300;
}

.ptl-section .ptl-fq-wsp-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .ptl-section .ptl-fq-contenido { flex: 1; }
    .ptl-section .ptl-fq-div-int { width: 10%; }
    .ptl-section .ptl-fq-txt { width: 95%; }
}

@media (max-width: 767px) {
    .ptl-section .ptl-fq-contenedor { margin-top: 90px; }

    .ptl-section .ptl-fq-pregunta {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 15px;
        row-gap: 12px;
        align-items: start;
        padding: 16px 20px;
        padding-top: 25px;
        border: 1px solid #FD7801;
        background: #FFF;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    }

    .ptl-section .ptl-fq-pregunta-left {
        display: contents;
    }

    .ptl-section .ptl-fq-div-int {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        align-self: center;
        display: flex;
    }

    .ptl-section .ptl-fq-interrogacion {
        display: none;
    }

    .ptl-section .ptl-fq-div-int-svg {
        display: block;
    }

    .ptl-section .ptl-fq-contenido {
        grid-column: 2;
        grid-row: 1;
    }

    .ptl-section .ptl-fq-pregunta-right {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0;
        margin-top: 0;
    }

    .ptl-section .ptl-fq-wsp-btn { width: 100%; box-sizing: border-box; }
    .ptl-section .ptl-fq-wsp-btn svg { width: 32px; height: 32px; flex-shrink: 0; }
    .ptl-section .ptl-fq-wsp-card { width: 260px; right: 20px; top: -65px; }
    .ptl-section .ptl-fq-txt--title { font-size: 14px; font-weight: 250; color: var(--neutro2); }
    .ptl-section .ptl-fq-txt--text { font-size: 12px; font-weight: 600; color: var(--color3); }
    .ptl-section .ptl-fq-interrogacion { font-size: 2.4rem; }
    .ptl-section .ptl-fq-wsp-icon { width: 50px; height: 50px; }
    .ptl-section .ptl-fq-wsp-icon svg { width: 32px; height: 32px; }
    .ptl-container { width: 90%; }

    .ptl-featured {
        grid-template-rows: auto auto;
    }

    .ptl-cont.ptl-cont--featured .ptl-title-row .ptl-tit {
        font-size: 16px;
        font-style: normal;
        font-weight: 900;
        line-height: 24px;
        margin-bottom: 0px;
        text-align: right;
    }

    .ptl-cont--featured .ptl-desc {
        display: none;
    }

    .ptl-meta-label--mobile { display: inline; }
    .ptl-meta-label--desktop { display: none; }

    .ptl-meta-item {
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
    }

    .ptl-meta-label{
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
    }

    .ptl-section .ptl-fq-wsp-card-text p {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
    }

    .ptl-section .ptl-fq-wsp-card-text p.ptl-fq-wsp-card-subtext {
        font-size: 16px;
        font-style: normal;
        font-weight: 300;
    }
}

@media (max-width: 425px) {
    .ptl-container {
        width: 100%;
    }
}
