.pfn-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .pfn-popup.pfn-activo {
        display: flex;
    }

.pfn-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.pfn-contenedor {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 592px;
}

.pfn-cerrar {
    position: absolute;
    top: 0;
    right: -36px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: url("../images/ofertas/cerrar.svg") no-repeat center / contain;
    cursor: pointer;
}

.pfn-caja {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 24px;
    background: #F9F9F9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pfn-imagen,
.pfn-imagen img {
    display: block;
    width: 100%;
    height: auto;
}

.pfn-cuerpo {
    padding: 28px 24px;
    text-align: center;
}

.pfn-titulo {
    margin: 0;
    font-family: 'ClanOffc-Bold';
    font-size: 20px;
    line-height: 1.3;
    color: #36827A;
}

.pfn-texto {
    max-width: 345px;
    margin: 3px auto 0 auto;
    font-family: 'ClanOffc-Book';
    font-size: 16px;
    line-height: 1.45;
    color: #454545;
}

.pfn-pie {
    position: relative;
    padding: 20px 24px 24px 24px;
    background: #FFFFFF;
    box-shadow: 0 -6px 12px -6px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.pfn-boton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 100px;
    background: #36827A;
    font-family: 'ClanOffc-Bold';
    font-size: 14px;
    line-height: 1.2;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .pfn-boton:hover,
    .pfn-boton:focus {
        background: #2A6A63;
        color: #FFFFFF;
        text-decoration: none;
    }

    .pfn-boton svg {
        width: 16px;
        height: 16px;
        margin-top: -2px;
    }

body.dark .pfn-caja {
    background: #262626;
}

body.dark .pfn-pie {
    background: #454545;
}

body.dark .pfn-titulo {
    color: #C6DEDB;
}

body.dark .pfn-texto {
    color: #FFFFFF;
}

@media screen and (max-width: 768px) {
    .pfn-popup {
        align-items: flex-end;
        padding: 0;
    }

    .pfn-contenedor {
        max-width: none;
    }

    .pfn-cerrar {
        top: -38px;
        right: 50%;
        margin-right: -11px;
    }

    .pfn-caja {
        max-height: calc(100vh - 60px);
        border-radius: 24px 24px 0 0;
    }

    .pfn-cuerpo {
        padding: 22px 20px;
    }

    .pfn-titulo {
        font-size: 20px;
    }

    .pfn-texto {
        max-width: 300px;
        font-size: 15px;
    }

    .pfn-pie {
        padding: 15px 20px 15px 20px;
    }

    .pfn-boton {
        padding: 12px 24px;
        font-size: 15px;
    }
}
